From nobody Thu Oct 19 11:58:26 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SB5pB47Pyz4xMBG for ; Thu, 19 Oct 2023 11:58:26 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SB5pB3Yjhz4FD5 for ; Thu, 19 Oct 2023 11:58:26 +0000 (UTC) (envelope-from daemon-user@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697716706; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=SdBrO4fd/YrOHcMEq/lWH9g/w8MntcM08gMoyhHmqqs=; b=ASQYSVxsmr3KY5fAsiYSBMv4WxDT4MK0oCT+FQ4w5p42bloLmrVabP6waa19f6Jlg5leUG e2tbnffDUvfbwg/uozgNFnoERcW8orMYHLtXjMHMBwwYyzvD5IMvJOeGdaZtYCWOFDZwTB hn6qszCYK/snpHmSiuU01XlNgceb90Q1J+zPghzaTClz2fosxeSoRkXFA2wwKfhDdjFaiC j2S6sTA9qop0f1CP6i7mQ7zyjVTnotXb3qDBJ9JDJK9dc5og8Nb3YZ85q0DxLfErl/07Jk J/VRKbyPBVCQDSCaYKMB51S8UUz5kCTDBJKsV7JA/fyZ0s7d6YdjkudXdns7Zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697716706; a=rsa-sha256; cv=none; b=LcyNuW8fJurv1DBsvRxqd/SnewQ/PGSIG+Ozk4P35dy5W5SfGDQTga4Txd6oAHWDkdgbBG PT6NOeX7oig3/AkMdmp+xRMQKjZQV2Ej1zZp3nqeI3XFY0KBpMPzAFFfXh8QbTKdDwajow mJQ/M85ajeN3CBLg5+An19RhixT/4UJmLL7iqZsY6DmvmISWYUzeUGFiacNgJ/sumxuw8D /RQKZfBQz6lD/8ibOUbcslby2LppfG6m/tZTM2QruML5VwtpSPpdskh06W0WN2YIVmT/A0 Fmd6ooW0wV2/XvPHKiWIPuANzYxAZh7d/jh9QsWKgSFHizn7nxxU2Jr5I7H4ZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697716706; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=SdBrO4fd/YrOHcMEq/lWH9g/w8MntcM08gMoyhHmqqs=; b=YLvwu9Lr4iQ2xcIUAuwx/vpHvAJTPJMx36QhjZxwrKSnL/fCPpUZUO5AVPEW8Pp9QMVerl 31kitWp2Y0VrBcAAUAopj3pCjsw/e5WZgaXHRiRyie7LQmOqpTaHGBIR2qAo7dxv9+U0wW u2X22p7Ap3jVr2LyCkN7yZ9w7VNEZ7682o+3GnYp7GRIGcMHi8/eFjMmOH/xacfnoYEFph 8FL7NQJAPDiC722YkNxUx9eyQ+ESer8LlrWeqWZdGSbDXkALFVdbHu6LFwW6d6hRI020Kt zI3UyVo8QD2J+Mwgf65ffAs6P3GAoTDUGAiFgJZMlp41gOr5MuED4fuDBB4f8g== Received: from reviews.nyi.freebsd.org (reviews.nyi.freebsd.org [IPv6:2610:1c1:1:606c::16:b]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4SB5pB2Pc5zp2Z for ; Thu, 19 Oct 2023 11:58:26 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by reviews.nyi.freebsd.org (Postfix, from userid 1346) id 4C91E32C80; Thu, 19 Oct 2023 11:58:26 +0000 (UTC) Date: Thu, 19 Oct 2023 11:58:26 +0000 To: freebsd-arm@freebsd.org From: "titus_edc.ro (Titus Manea)" Reply-to: "titus_edc.ro (Titus Manea)" Subject: [Differential] D42286: support for scmi-smc transport Message-ID: <9cc994fe43f82ab371e6e27162820a32@localhost.localdomain> X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: , , , X-Herald-Rules: <28>, <31>, <177>, <79>, <179> X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk Thread-Topic: PHID-DREV-ckzu63ead5wif42gjhms X-Phabricator-Mail-ID: 4119637 X-Phabricator-Send-Attempt: z3smnezbsflvpikw In-Reply-To: References: Thread-Index: OWY0NzNkYjc4MWU1N2ViZTczYjIwYjlkOTQyIGUxGeI= X-Phabricator-Stamps: actor(@titus_edc.ro) application(Differential) author(@titus_edc.ro) herald(H28) herald(H31) herald(H79) herald(H177) herald(H179) monogram(D42286) object-type(DREV) phid(PHID-DREV-ckzu63ead5wif42gjhms) reviewer(@andrew) reviewer(@freebsd-arm-list) revision-repository(rG) revision-status(needs-review) subscriber(@imp) via(web) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_9cc994fe43f82ab371e6e27162820a32" --b1_9cc994fe43f82ab371e6e27162820a32 Content-Type: text/plain; charset = "utf-8" Content-Transfer-Encoding: base64 dGl0dXNfZWRjLnJvIGNyZWF0ZWQgdGhpcyByZXZpc2lvbi4KdGl0dXNfZWRjLnJvIGFkZGVkIGEg cmV2aWV3ZXI6IGZyZWVic2QtYXJtLWxpc3QuCkhlcmFsZCBhZGRlZCBhIHN1YnNjcmliZXI6IGlt cC4KSGVyYWxkIGFkZGVkIGEgcmV2aWV3ZXI6IGFuZHJldy4KSGVyYWxkIGFkZGVkIGEgcmV2aWV3 ZXI6IGFuZHJldy4KdGl0dXNfZWRjLnJvIHJlcXVlc3RlZCByZXZpZXcgb2YgdGhpcyByZXZpc2lv bi4KClJFVklTSU9OIFNVTU1BUlkKICBhZGQgc3VwcG9ydCBmb3IgYXJtLHNjbWktc21jIHRyYW5z cG9ydAogIGkgdXNlZCB0byBlbmFibGUgY3B1IGNsb2NrIC8gY3B1ZnJlcV9kdCBvbiByazM1NjYg Ym9hcmRzCiAgYWxzbyBhbmQgZ2x1ZSBjb2RlIGZvciBjbGtfcmVjYWxjX2ZyZXEKICBkcml2ZXIg c2hvdWxkIGxvYWQgYWZ0ZXIgbW1pby1zaG1lbSBidXQgYmVmb3JlIGNwdWZyZXFfZHQKClJFUE9T SVRPUlkKICByRyBGcmVlQlNEIHNyYyByZXBvc2l0b3J5CgpSRVZJU0lPTiBERVRBSUwKICBodHRw czovL3Jldmlld3MuZnJlZWJzZC5vcmcvRDQyMjg2CgpBRkZFQ1RFRCBGSUxFUwogIHN5cy9kZXYv ZmlybXdhcmUvYXJtL3NjbWkuYwogIHN5cy9kZXYvZmlybXdhcmUvYXJtL3NjbWlfY2xrLmMKCkVN QUlMIFBSRUZFUkVOQ0VTCiAgaHR0cHM6Ly9yZXZpZXdzLmZyZWVic2Qub3JnL3NldHRpbmdzL3Bh bmVsL2VtYWlscHJlZmVyZW5jZXMvCgpUbzogdGl0dXNfZWRjLnJvLCBmcmVlYnNkLWFybS1saXN0 LCBhbmRyZXcKQ2M6IGltcCwgcHN0ZWYsIGRzbAo= --b1_9cc994fe43f82ab371e6e27162820a32 Content-Type: text/x-patch; charset=utf-8; name="D42286.129076.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="D42286.129076.patch" ZGlmZiAtLWdpdCBhL3N5cy9kZXYvZmlybXdhcmUvYXJtL3NjbWlfY2xrLmMgYi9zeXMvZGV2L2Zp cm13YXJlL2FybS9zY21pX2Nsay5jCi0tLSBhL3N5cy9kZXYvZmlybXdhcmUvYXJtL3NjbWlfY2xr LmMKKysrIGIvc3lzL2Rldi9maXJtd2FyZS9hcm0vc2NtaV9jbGsuYwpAQCAtMTU1LDggKzE1NSwx NiBAQAogc3RhdGljIGludAogc2NtaV9jbGtub2RlX3JlY2FsY19mcmVxKHN0cnVjdCBjbGtub2Rl ICpjbGssIHVpbnQ2NF90ICpmcmVxKQogeworICAgICAgICBzdHJ1Y3Qgc2NtaV9jbGtub2RlX3Nv ZnRjICpjbGtfc2M7CisgICAgICAgIHN0cnVjdCBzY21pX2Nsa19zb2Z0YyAqc2M7CisgICAgICAg IGludCBlcnJvcjsKKyAgICAgICAgY2xrX3NjID0gY2xrbm9kZV9nZXRfc29mdGMoY2xrKTsKKyAg ICAgICAgc2MgPSBkZXZpY2VfZ2V0X3NvZnRjKGNsa19zYy0+ZGV2KTsKIAotCXJldHVybiAoMCk7 CisgICAgICAgIGVycm9yID0gc2NtaV9jbGtfZ2V0X3JhdGUoc2MsIGNsa19zYy0+Y2xvY2tfaWQs IGZyZXEpOworICAgICAgICBkcHJpbnRmKCIlczogJWxkXG4iLCBfX2Z1bmNfXywgKmZyZXEpOwor CisJcmV0dXJuIChlcnJvcik7CiB9CiAKIHN0YXRpYyBpbnQKZGlmZiAtLWdpdCBhL3N5cy9kZXYv ZmlybXdhcmUvYXJtL3NjbWkuYyBiL3N5cy9kZXYvZmlybXdhcmUvYXJtL3NjbWkuYwotLS0gYS9z eXMvZGV2L2Zpcm13YXJlL2FybS9zY21pLmMKKysrIGIvc3lzL2Rldi9maXJtd2FyZS9hcm0vc2Nt aS5jCkBAIC00NCwxMCArNDQsMTUgQEAKICNpbmNsdWRlIDxkZXYvb2Z3L29md19idXNfc3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