From nobody Mon Jun 27 08:57:47 2022 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 2EE83879DE1 for ; Mon, 27 Jun 2022 08:57:59 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2117.outbound.protection.outlook.com [40.107.255.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LWhT212jdz4krw; Mon, 27 Jun 2022 08:57:58 +0000 (UTC) (envelope-from schakrabarti@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FqbGacH1enVeTzE5ONsNqncuUO/aB5Fuu4aIwiPTR4So+M5kkMguXKstCPgxYLePOD8xR8eUo8aqIkcN5JTLcBgWP8GZpc0E2fyg8Mxm6pf0x/7ezCvGG1cdteXmb2+4payqsKi1CRB/jZ7R/1xJDuc/GcfZhxRDbcEhqDHkjbOrvMMrSEusiOda6vYGYXqc1xmAkP6FjzBJFIo5tS9lagDXgNmuyE7LkzGTeMUN3UKu3UgfVB3Hy/rPOLYWXkMxqMcc4kfgvBQnBX3gBM1sRUMrMi2VEQjnFTdJyu1F/u3rdncYGfhqR38N7ZdIdiqlbsO/0jdVZTvtnuuhqm2slg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nE2u0nZPsMg9OHrtgqFqBAR+zHB7CSmChGTF01Gnf98=; b=Rlw1wzUYjEFwIG9HkJTTl0Ll6iMLL5Jp4vl/cAZuvjhmqoiNitPEn0PXzbNwtMj+mbHNE1vxTg9OLcGc2N78m+GUbOj/awYqxKj2zSWiyXC1OX5snEVQOMJOs8UpCMaJJduTwActnmDbzVL+2UGkoyjvtBxoXLQhlqB9fqJOa2yQVQU97WNfVPI/Ds5342wZjI2TYUn8ylxMcG+oW4sW7cHsmMvcWxQhqupyNPfLE3aEeqjYHJwylNo3O8aXAvN+90V0J2Mz/aM2r1XiJyviC+2DPwj7qM1WWD5sdDP341QEE+wq/tVUAJqYR1QLWpsAOjeGggoo/PWJRy1K2lAw+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nE2u0nZPsMg9OHrtgqFqBAR+zHB7CSmChGTF01Gnf98=; b=dwLj0PCNj63gbQ3EepfZ1dvm296uh9I8OFzW4H+n8XS7w+e+tl9ow3J5edCh673NR0lZeSbNXWL93h8UonPsqfo4fMiSDGf/E4nnCAlkw77cgh1d6bBrAuZXXH6tyLn7gIdkFJMzNRqnsWoMKUVz6gtTiBTrjD4cxNstC2bpdso= Received: from PSAP153MB0536.APCP153.PROD.OUTLOOK.COM (2603:1096:301:75::14) by SI2P153MB0637.APCP153.PROD.OUTLOOK.COM (2603:1096:4:1fc::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.5; Mon, 27 Jun 2022 08:57:47 +0000 Received: from PSAP153MB0536.APCP153.PROD.OUTLOOK.COM ([fe80::bda2:79a7:8be8:b026]) by PSAP153MB0536.APCP153.PROD.OUTLOOK.COM ([fe80::bda2:79a7:8be8:b026%4]) with mapi id 15.20.5395.011; Mon, 27 Jun 2022 08:57:47 +0000 From: Souradeep Chakrabarti To: "freebsd-arm@FreeBSD.org" , Andrew Turner CC: Wei Hu Subject: SMCCC v1.1 compliant HVC call Thread-Topic: SMCCC v1.1 compliant HVC call Thread-Index: AdiKA2Q7WTo8sgKeSKGdouN0obA7iw== Date: Mon, 27 Jun 2022 08:57:47 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=65dbb190-b593-4487-94bb-e1ebfc239a79;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2022-06-27T08:52:51Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 10b5024e-6902-40c2-ddf0-08da581b1b93 x-ms-traffictypediagnostic: SI2P153MB0637:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AfLsa/0a1wHK2C5zto+cpCLyQQ3mji+JHYQO5De8VTqm3Fgqhw0i2F+HuK76qlloMK1arpOpnrSiyNaA9lRl0sXnSfs1MdSIkofsbtMPruhWZuEWFVssaN/AbRDr55zjtU5EsnPzRDtANbge4vrsdS2qCVjm00/JoId3m1hhxqyUIh9a97ENkT2xE0IFniilWJvH3KdYwq8KQg9sd2826rAX1el8oKt8r9ANcNTj0OU5MTcEu9MfK2XJYeW/iJfeNUdYF9mJPAOG6/cYLES46o/67bYGuRBjTx2/ozlgeUIvoDY1PUnrDMciLR42soswzqFCjPD5ycM+AUViz8PeGaSeat8NHOn5Ft+NwRoX0XpGoFy/OlZtlPIhhN0VZqLgCytGKQTrxqqJq35K9Le6H+QHOVub/vbajzWm0wjJOni54Y1yCP3G72Aul3q8sRy4Lky/zLufEmrUrEs1IhAnETbxphZxGeZla2/yicV6LE5ngj9ePjQYjAY2+HRUnEa7/HdFC20l3qAFyIvH+DpE3uMIc4juohT/DVxqiZX9DnaxErIMfzoaWvyg0j6yufNH1jc4gPZM8sz68LLEKHRBT7Fh6j4u05uIGWo6AIJu9F2rQUmGmdZmT26astR7+buG3gRINB0tqUbMQ/x/KA2XFI9jSWLwbbtfnBAUBjUOUpPmoC4ZDB9djf2kDB3v4Yh44sEwqsUTWHaCF7V4lBt82n9xQr6jqwIykFFCKxfLRp73xTWkBFlZs4jKIqYk/PIZZ3e+vnemA+9sGg2tX9G1hDi2jfioX2670SXzI3fK4+9QuA73BCaE8BX4tt1DIdxWL3wxk4TS7z2boQ3Veq2tZejEoAMPvQ1QUd2ydKHB2ik= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PSAP153MB0536.APCP153.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(346002)(376002)(136003)(39860400002)(451199009)(33656002)(10290500003)(966005)(64756008)(478600001)(41300700001)(38100700002)(5660300002)(66446008)(71200400001)(30864003)(186003)(110136005)(107886003)(66556008)(66476007)(66946007)(122000001)(8990500004)(83380400001)(6506007)(8676002)(9686003)(82950400001)(82960400001)(2906002)(7696005)(316002)(55016003)(4326008)(450100002)(86362001)(8936002)(38070700005)(52536014)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?sg+atw62wcD4tklGzslB3BfGkpzOYbN8fJc2ocyXllutpfBv/xjFgRMGrNoB?= =?us-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vVIcDYtA3hILyeY5Ym?= =?us-ascii?Q?THfTJSmTQalyPGv/Lerp3uTqi4TBEDDyQ0f7LzmMFq9noQs0z5pYxwL14RCA?= =?us-ascii?Q?zmmVh0x1PydHWTnw/3NCMt8OnX1sxGXiW1vKwNXxaopLdYtfmEekEA5uMDwR?= =?us-ascii?Q?BKUDST1agl7i8eFciBhvY7gNwfEpuq3Uq80NqDRxCdOWb/xlbveSyeBodYYL?= =?us-ascii?Q?BP50uAmGdw4b9V5jJw2gGbWX4RxJZvLh8cVpZUgQKv84vSslucoB4O4Ntgk+?= =?us-ascii?Q?RM27klEMbfjzIkQk4ky6z5hbei73a7w/Zd6se6XFZgq6jzD9Y01rO/WbvIWu?= =?us-ascii?Q?mfyZNOc3gN9vekZiR+Y2CRoAE0LJjVQpgvDcZr4ISh4k99zWMGyOpILw/2ka?= =?us-ascii?Q?fGq65ooYisXctTWMSvzM3bv2sJqck0sEfVRXvYFVSC+7gUztjv+qrH9GhG2p?= =?us-ascii?Q?3Wm84vM1cntrjwbAwS0FZ3IpnQWEYxDUIF4U7bnim4gM5857y3NWJfBTGEfH?= =?us-ascii?Q?xYybQX463G1gW5vK8GyhTDDoxuiW4zSNe3W94V48WRy2lTvfroIGgU+0u0sW?= =?us-ascii?Q?cXSVDCQsU0j4uvbWGQ2e21T+hpwKg/A9c9LEiOq9AlJZprEhUxNHiNvSicE8?= =?us-ascii?Q?d+wjYO/R8uGMoatifNnlj1vDQWhAJ5I/af15R9Iz?= Content-Type: multipart/alternative; boundary="_000_PSAP153MB05364B5DEC6F1379B71C3758CCB99PSAP153MB0536APCP_" 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 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PSAP153MB0536.APCP153.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 10b5024e-6902-40c2-ddf0-08da581b1b93 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jun 2022 08:57:47.6071 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ar22mXJlze35EVrVtGq5+ARLIGcgQ8TWvBpJgBPPQjHNkr6xkCG/SlSjuBqwkEfWXglsSG1NjR17sBidsR+teG6OtOhW6oU/DFqbCdl8n0g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2P153MB0637 X-Rspamd-Queue-Id: 4LWhT212jdz4krw X-Spamd-Bar: --------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=microsoft.com header.s=selector2 header.b=dwLj0PCN; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=microsoft.com; spf=pass (mx1.freebsd.org: domain of schakrabarti@microsoft.com designates 40.107.255.117 as permitted sender) smtp.mailfrom=schakrabarti@microsoft.com X-Spamd-Result: default: False [-9.84 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[microsoft.com:s=selector2]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.107.255.117:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_MED(-2.00)[microsoft.com:dkim]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[microsoft.com:+]; DMARC_POLICY_ALLOW(-0.50)[microsoft.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[40.107.255.117:from]; NEURAL_HAM_SHORT(-0.84)[-0.837]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.104.0.0/14, country:US]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; WHITELIST_SPF_DKIM(-3.00)[microsoft.com:d:+,microsoft.com:s:+] X-ThisMailContainsUnwantedMimeParts: N --_000_PSAP153MB05364B5DEC6F1379B71C3758CCB99PSAP153MB0536APCP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Andrew, In Linux we have SMCCC v1.1 compliant HVC call arm_smccc_1_1_hvc(), which i= s used for SMCCC and HVC call convention. In FreeBSD do we have something similar? I can arm_smccc_smc() in sys/dev/psci/smccc.h, but could not find the imple= mentation details of it. If I need to use SMCCC compliant HVC call, what API should I use? Thanks & Regards, Souradeep --_000_PSAP153MB05364B5DEC6F1379B71C3758CCB99PSAP153MB0536APCP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Andrew,
 
In Linux we have SMCCC v1.1 compliant HVC call arm_smccc_1_1_hvc(), wh= ich is used for SMCCC and HVC call convention.
In FreeBSD do we have something similar?
 
I can arm_smccc_smc() in sys/dev/psci/smccc.h, but could not find the = implementation details of it. If I need to use SMCCC compliant
HVC call, what API should I use?
 
Thanks & Regards,
Souradeep
 
--_000_PSAP153MB05364B5DEC6F1379B71C3758CCB99PSAP153MB0536APCP_--