From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4A7167803CE for ; Tue, 9 Jan 2024 16:21:43 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=TJ60YclW5bgwOA+VXh7fQ83ruZxMg9H6Kr5Q2aU3eGg=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1704817302; v=1; b=O5l3bXmxp93ux3+FAtj100V1xNUSw5sUXPpVezDP2+a5jNkPxOYAmE4HJJytBBwNwoO7+YNk p/0btFm7tlxiTRM9m6AvJIJlhsviPCxNWDdwgY6bvl3ass25OAWJDOKt+hPxOTPbQ8WEYoBegc1 snlzOl0T9j7LrUcrAkDjgWu4= X-Received: by 127.0.0.2 with SMTP id Q5pDYY7687511xJAtBPESDD7; Tue, 09 Jan 2024 08:21:42 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.20773.1704817302069926423 for ; Tue, 09 Jan 2024 08:21:42 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="484425960" X-IronPort-AV: E=Sophos;i="6.04,183,1695711600"; d="scan'208";a="484425960" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 08:21:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="1113141413" X-IronPort-AV: E=Sophos;i="6.04,183,1695711600"; d="scan'208";a="1113141413" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 09 Jan 2024 08:21:41 -0800 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 9 Jan 2024 08:21:40 -0800 X-Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 9 Jan 2024 08:21:40 -0800 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 9 Jan 2024 08:21:40 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gYyHSluOd1U4PpV6pxO+E5XMDxTvsqhR+46/+/KINqpkle79ZqDSuvKv5NE2UFXr2kMQbzwA+i1zXtHj1eTGC3o+53xaSgQ+E2Hn50wq3ZCFsRXHSu3Ky68S877FPTGgi/A8SjgUFs9vr/BOrIS5FzZyHjq2RVzQDgEChgY7ntj+2ZOK2pgq7nF7Ey38/sTzbeFf065lxivR1RPEiu+zrb6+KR4J8n/AozTpD2Y5FcJulDfhkjpRx0z65z8m0DqkGoEXkVs970WRsLxgGSyLq+Wf7VZOSB5olBt8eEuiJjtziQcCEAsiZDV/1nAHK19qaX0XxzGUuAwP4WdxounxaA== 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=WVA2sYrRECaAXpngx4XDEilqWe5sWStcJiFH51zxda8=; b=d7O9tEoTaDlVhG6VyQpyvjDaun/okWfPJ7qdnyL+Opz2y0CKI/i/BZQp5t04KFobC6oa8w6fV2TI5JX/M7x595LNyzgZIbQWIJxjHah++tUqrGn8taaxcy6CwpG6g9z6mm0wiUAKJIJluwymrlUcf3zN/GaOJ4tk/HJ2v0jDZqNGrwp8R4sHsZmxY1zT5pNRFmcmQphW12T/E1crmSCdh5FuQjidi0Ku9Q/mm7gB2MAMbOkTEl0HjBJ3Gsd61n1mAPdHDv7kfdheNCumT3OB6y16WYlJMDvLAH0pLfH0y0N50gROMU7Ob+9iouXcwypU8gr7kQ7YKNUo59g7kb2xxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com (2603:10b6:510:22b::7) by CO1PR11MB4802.namprd11.prod.outlook.com (2603:10b6:303:94::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.24; Tue, 9 Jan 2024 16:21:31 +0000 X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::1ecf:18bf:776a:986a]) by PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::1ecf:18bf:776a:986a%7]) with mapi id 15.20.7159.020; Tue, 9 Jan 2024 16:21:31 +0000 From: "Andrei Warkentin" To: Sunil V L , "devel@edk2.groups.io" CC: "Gao, Liming" , "Kinney, Michael D" , "Liu, Zhiguang" Subject: Re: [edk2-devel] [PATCH v2 1/4] MdePkg.dec: RISC-V: Define override bit for Sstc extension Thread-Topic: [PATCH v2 1/4] MdePkg.dec: RISC-V: Define override bit for Sstc extension Thread-Index: AQHaQicNbZYZRoQKZ0yFx8VPbnUv7bDRq1yw Date: Tue, 9 Jan 2024 16:21:31 +0000 Message-ID: References: <20240108113650.454940-1-sunilvl@ventanamicro.com> <20240108113650.454940-2-sunilvl@ventanamicro.com> In-Reply-To: <20240108113650.454940-2-sunilvl@ventanamicro.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH8PR11MB6856:EE_|CO1PR11MB4802:EE_ x-ms-office365-filtering-correlation-id: d9955dc1-9ab8-4fa0-8e48-08dc112f0a78 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: ZMI36X8C6MDI2XqP/JoinruLUmwgpxJUS4m0W9kmXt/Q7jb+1OH1tFIWChe7BjqhwewpdErIWLACl6N9S5Vuh/kWHWhq4k86LKJOX49RJE9YrALAs2GG+8Ga1Q4Iw1BEQYNxvNdmzI8qg4WbpTWWss/l3nEck8qRE95DP696I9RzYAJr9NYdQz0yV4eUSja81ULRrCiOGVc2tH4V5jBQx+dgHArGox2NaNSq4+FBJ+7y77amjKBVxF5BFiOuW4bzxz3oPCJzspV6Z1pszRMeIEfgdd14L05Yt7WgrKLvhRwo2OsjRws7V93lazCg+MEWMUu3FfLrXWplnbBMfu4EsACrL9mE7g85tlnY/bkCcKEBRBm9FJN8MzmqYxKoUJC98x/Yv1/ttiuLuLRowaAioG2ZSLGdm2W4gcN7mVJBhK+IPrXMQfLYqeAoToPVJD4+cnzVH4fRyP4a8BfKxJIotZswbYgzjmOydtGYs0hGoPuvoAwpieblrWBhIVO1XrO+q+wwqRics6zD2zirOK520sj6YMuw9as4fl/JUdufNxlY6FvZWO/ImiINZbjUmIxhG74AL1wheH3mBFoni7hLlg9tQzFUPNIB7oP+P34xFnZkVr3yrwHNbnMbc4m6u5mI x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?CrCioDDDpNkJfsBsPHOnOTvftSePbrW5zX314pQW8eBykFzKWMr13sZk1Gm1?= =?us-ascii?Q?zy9WC+FHM8bSJDFDoAcgh5Kj1gfUE1C7ofiSRqaD+KEQrgjGLwYyFUMcYc0x?= =?us-ascii?Q?+zyeabVkK99/GKrSqyzYncZ5MZoLsbJ7Smwah+zCnTjsvRjkXXtzdP8f0xBH?= =?us-ascii?Q?VIM+By//RMHVOYvGj+NRW5/xtULsfGBz6JfxCmj2RgUTUT7mS9F0Vaw4k1bI?= =?us-ascii?Q?1ik9xISQ1M4MNBtd9Pke9NqnSlLbFUBEzs1J29VtOn9CmIBwB90N/5F0zBEl?= =?us-ascii?Q?cvrkRpS3QU48r2/3XV+oDfxamQW9HwUUguos+7X+eFAEG5Z/FaWZz8zyOp5T?= =?us-ascii?Q?dYe/8/+r+90nBz7Ghc/H5Tdm5EM6gPypCjNuN6zguP4U7u3+wrZrftr6KZST?= =?us-ascii?Q?hZOBo8nR3MAI1IOUIkD5Xj/wrYD6iJEa+Ttervf6+EfstinizzToAjYrFBhY?= =?us-ascii?Q?IOQ5fKF064mQZIor8U6fA9jQmrjxJPQ5xdbzbFpt8CPFSPMVpdu1YnOVBAXJ?= =?us-ascii?Q?pwked6mv50Szfq9O+LhAiNfmDcBp7yEVmW3+xoT1LwT9d5cLSbd7NvZw2494?= =?us-ascii?Q?zSN0gUwVaZYiPcbOTFVW8VgkAsPkf4M1prdpqpSHP6So0kN1pTa4riNsms1G?= =?us-ascii?Q?RCgyTTPQM0O6h+mRz2NiGmYUzpPSFVeAoL99mGr5damN8++4l8Ms/bup1o/r?= =?us-ascii?Q?ArbvAo754zjrcfRyhIJOGJ224frhoHc3RoU3b7gA/h50eJR/RQBnn8OHfBmf?= =?us-ascii?Q?oPWzKaTR8SeGfFKEN9f3/TOy7CLOMin+fZhcBnpl4sRJ3O21YjkwlRaxRAeM?= =?us-ascii?Q?xR+M2zBzgYerTxLk/pZ39wVqnI78DX+cqLE169eqB0qvZpcR6kPKsznAmVoU?= =?us-ascii?Q?hBlzuCgoQ3+iBULzWYAKzXJqnOdkxjOE+zgbCzI/lMAiNOTKulha7dWe4f1T?= =?us-ascii?Q?ozO6Ne9tTkHumkJ25fFq1GexQ1g/7XtP7WVLS+E+DZ4GPpr01HNv07mmO7Am?= =?us-ascii?Q?p8/5Cw4KIh6pu1yRuiS8+NwVmTFgigU53LqnS3X16z34TqXwrHkO0Z4Xa8tq?= =?us-ascii?Q?xg3mog6MeUQNYBTCU/PA5YYfWe4thfpXcsjJ+WmsdZYiQii80IO0IbpWEu4E?= =?us-ascii?Q?wNyRmtKNhZGjTfFSMWIdrooTceGUI+KwOLAYLTHiY99H9NhO31b9gyceCvdq?= =?us-ascii?Q?she35lpX1jWFC1zGqdoKk4BeUu/0y0ai60O04Gwn2i9upz3pLPxHAyxCJbm8?= =?us-ascii?Q?Odj1tpSb+TDx/1eehdPk+PQA/Gux0JLU42J2W02j7gbbYGmpIGZbO4vor45+?= =?us-ascii?Q?6ab0Oy8WCbz1kDQtZeuTH0cu/23Y8NR5UrQdFp2ycW7rfxXfCSuhN8MKHRHA?= =?us-ascii?Q?3fuuE9jxWTUAX9DAgW8Qw+j80hvPiDcpINcYjAgLvIspyaCN1FC7Dwl4SxJO?= =?us-ascii?Q?p3jDubMVkTSjGPOADz4b6zKSFoqIMc7ygr+MVijyeuAeQAXU/7akWr9ZmoUB?= =?us-ascii?Q?soqeQWWb2Rx3PxTRw9F5iFHscqfmAzzDe+sqF6F8c9Z9+R71c+DvAskqBNtB?= =?us-ascii?Q?ZhNxUyovR4nm31aHD+9urteiPp1kMIiavVCBxOK10aC+8ZmUYZplGqf+Bx9l?= =?us-ascii?Q?QA=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH8PR11MB6856.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d9955dc1-9ab8-4fa0-8e48-08dc112f0a78 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2024 16:21:31.5955 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: W8pIUSZBn82+ZUH9uQ6WNefmiWOOeClCc9WwfhW0p0A38gIwiBWXOmYSlbPUAnve/3EKBpo8MTOyeo5McAaiydG8is2Z65Iz4VxBTq7niOs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4802 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrei.warkentin@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: dvLY9FaEadXORTBdP85fsSVKx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=O5l3bXmx; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Andrei Warkentin > -----Original Message----- > From: Sunil V L > Sent: Monday, January 8, 2024 5:37 AM > To: devel@edk2.groups.io > Cc: Sunil V L ; Gao, Liming > ; Kinney, Michael D > ; Liu, Zhiguang ; > Warkentin, Andrei > Subject: [PATCH v2 1/4] MdePkg.dec: RISC-V: Define override bit for Sstc > extension >=20 > Define the BIT 1 as the override bit for Sstc extension. This will be use= d by the > timer driver to decide whether to use SBI calls or direct CSR access to c= onfigure > the timer. >=20 > Cc: Liming Gao > Cc: Michael D Kinney > Cc: Zhiguang Liu > Cc: Andrei Warkentin > Signed-off-by: Sunil V L > --- > MdePkg/MdePkg.dec | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index > 2ee112cc087a..0459418906f8 100644 > --- a/MdePkg/MdePkg.dec > +++ b/MdePkg/MdePkg.dec > @@ -2405,6 +2405,8 @@ [PcdsFixedAtBuild.RISCV64, > PcdsPatchableInModule.RISCV64] > # Configurability to override RISC-V CPU Features > # BIT 0 =3D Cache Management Operations. This bit is relevant only if > # previous stage has feature enabled and user wants to disable it. > + # BIT 1 =3D Supervisor Time Compare (Sstc). This bit is relevant only > + if # previous stage has feature enabled and user wants to disable it. > # >=20 > gEfiMdePkgTokenSpaceGuid.PcdRiscVFeatureOverride|0xFFFFFFFFFFFFFFFF| > UINT64|0x69 >=20 > -- > 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113458): https://edk2.groups.io/g/devel/message/113458 Mute This Topic: https://groups.io/mt/103595208/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-