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 3E14AAC0B13 for ; Tue, 31 Oct 2023 04:16:18 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=07+lqONSwx4oRgCYIocCIHWOF6kFdyAkUnQ/FtYwe/Y=; 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=1698725776; v=1; b=i94n+6hfQwb7fF1CLMlGlvmlhTfsfYEDF5TWChHafPvcsEc/M1dQr+GCvilZz1iI5Gz5B2T3 92AeE57XYx3QhPjy0pdSHKQtYhzp/ojxMl05qxq0EDm5sBWddowpNHR2Bd5i1TWnwsicW61vVcg L+ytoxPvgXzx/knuamPTQ4nI= X-Received: by 127.0.0.2 with SMTP id RJKOYY7687511xqCrECuyTB8; Mon, 30 Oct 2023 21:16:16 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.179802.1698725775985800613 for ; Mon, 30 Oct 2023 21:16:16 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="385402622" X-IronPort-AV: E=Sophos;i="6.03,264,1694761200"; d="scan'208";a="385402622" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 21:16:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="754025174" X-IronPort-AV: E=Sophos;i="6.03,264,1694761200"; d="scan'208";a="754025174" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Oct 2023 21:16:14 -0700 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 30 Oct 2023 21:16:14 -0700 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 30 Oct 2023 21:16:14 -0700 X-Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 30 Oct 2023 21:16:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L99PKQfZ6FxPoUkhl0LXrPEI4LH+cTnxMuiUktFilaA25QpCNB/I00rgWjajfrYYPJtZdU2DHlu1quovd02wpZpsnxA/1RGUDUbdxxoOrIhMWqILukxPvbbpFw3Ydj+fG6b/Od1tWUPXJub2TEsc6wQhaD3/SRywRmRYwOK3nzJxpr1r12pUKb+tuw7ugvBMqN/pUl6mL2pSP8YczIbdpvSu35z0MgwbirCPgOnsQDW4IYcAH3pHQlnQwei1D0hPA2zG9XY+XYke7UJ8oTZy5C/vZ5U4jGt/r8DRdz78/QCTWIMIadSJDmIPIXRamlOG+cWAOKr1G8gTdmjw+yraEQ== 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=IPlFTF+Xp9xaa6LyScHc7jJEnKTvSQ8iwgMbcZYcUd4=; b=KeuXc7aS0xnH5JRbhbp2ypw4gkjFeZss059/NZUnsysFHn9m0rqic93R7ZafgF0NlxH58iNzuL00SyAbfcOmdt86wbGcnihf2BRZfWQRmp1q4Dom681Gdcf22Fa3EhHYtCmE/5hgeaidhOEFw8TvqteHb3fr17jqwAddE6kg/qMR9Aii6WTVtA2G002tpNd4ytNa/irfKSUx/sm6SLSEyx+jd1OBJmBOv2PycUC3K5pXrvgjE41HXyXF71pgym3I08xBGwy0E8iSYgQwllo2U3vKV0z9iNHf9AG06p8XVydh8eYserZGtrLos1gpVVd6PNCEx6N4T+wdH4F4R3b3fQ== 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 MW4PR11MB6761.namprd11.prod.outlook.com (2603:10b6:303:20d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.26; Tue, 31 Oct 2023 04:16:11 +0000 X-Received: from PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::2659:597c:90a6:1fc0]) by PH8PR11MB6856.namprd11.prod.outlook.com ([fe80::2659:597c:90a6:1fc0%7]) with mapi id 15.20.6933.028; Tue, 31 Oct 2023 04:16:10 +0000 From: "Andrei Warkentin" To: Dhaval , "devel@edk2.groups.io" CC: Ard Biesheuvel , "Yao, Jiewen" , "Justen, Jordan L" , "Gerd Hoffmann" , Sunil V L , "Laszlo Ersek" , "Kinney, Michael D" , "Gao, Liming" , "Liu, Zhiguang" , Daniel Schaefer Subject: Re: [edk2-devel] [PATCH v7 0/5] Cache Management Operations Support For RISC-V Thread-Topic: [PATCH v7 0/5] Cache Management Operations Support For RISC-V Thread-Index: AQHaCnayUaVGDOCt+0K1cg3FReogabBjTOIQ Date: Tue, 31 Oct 2023 04:16:10 +0000 Message-ID: References: <20231029144613.150580-1-dhaval@rivosinc.com> In-Reply-To: <20231029144613.150580-1-dhaval@rivosinc.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH8PR11MB6856:EE_|MW4PR11MB6761:EE_ x-ms-office365-filtering-correlation-id: ca16cc96-ec9e-460e-b67e-08dbd9c81d22 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: +OCGG272jTczFBkZ+quyaeBMUD+nqdP2mwHw1CWxrRRu3WF3LIyuOQgTxROxa6/XcHBw9DVbeBPAtvvujmuJJyATkh1TtfkMTUsYdv3/1u0zhf/u/TSPciRD7PYVBwk6hsYS+Srrdb9VemWG4xSQm1mXmAw2x0/29nNnssZS1yIi9t3j8xnLQvZmUjkhSc7YHzZy2qhbT5hn6eqCAQYoKznF5oZtxmebsh5WNZCdLYZe9VR5eMtMacNousiXfsF+reip8iXEEdZThc6eAvPa2nGC4QJrXUds546IQfmPVTHrTrYoo5VQ9Uqq/CH9G/+bKG1snVxpJR8DvehYEs9kcC3rFl7xihd2IKTTineIsA3Ew5InUynM0qWrl1QOT3Kdgvy65jgkLn3ka93vf8p+mzYX4+m4+s1FJbLJAAWdJ1o1ybGQWf6pZj7sHqZ+buWpO+zvSKOxBb4mBnZA2zLfrKGvwYB3wGBKeCaLX9GBgn6TyZNBWqdqcIlhGy6hWjR/YKc+v3A5rLsT8yYfwNhdMm9s2Li3WOabQHwUYAQdHgWfL1HpT5WQ541uN8huofknExETazASu2vr92lCKIhEhgCLj/0aUZ2KwAB2tcjxCto= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?QXMalFnf8RpYuoGNylRJzhoYnVrRqsc0uGdt0V60FxQKsvhGPL0sJTLwMbeO?= =?us-ascii?Q?pTg5B+wbMxjROU0GYjIkwOk7t0K4eyAh/Dp2epcjWa8AuqFVCgiHSbtAOBqE?= =?us-ascii?Q?R8lpA8BcbPHWijLiU+MnPjQ7BgbkaFi7mouJ2nSIzts7SLOR93p0qJNUgSYW?= =?us-ascii?Q?T9MlM3+l+RLQbDuNM7MwueiRFGUs+TjKY03bE0pD0rQRX+L+WwjGws6Y8SYd?= =?us-ascii?Q?YtyZW1zZlRkF0WhJo18//9qBBWGDWCTiX3F0maYAEkwpDJT4NzfzsADSAeG8?= =?us-ascii?Q?RGU+mn65J4ccxJVBDw52GDZMbbNxPjmDhQ0Ydc8ohMI0gPuLCnw7CXLwhF4Y?= =?us-ascii?Q?qxEhbj+N8zcnL8E94pfkOhh4dv/rEdm28oy5dx+cW4jYI0RZaZClRjTHk7bi?= =?us-ascii?Q?AFlIlW5GkPLJJJmzJz401lVa/ghcosGveu2RpBaKpoQS/oFr1zb+eXqGGVFX?= =?us-ascii?Q?p5L/VPYRS1XVQa5lXB3QXHecIZhHUYLNtH6u1zniZ96P6DuM6rAuM3pke+YK?= =?us-ascii?Q?gkgxhY22n47Ej9pkE1DDfLBKQMTWBTOq6DPkspaVuF2XyFKsV+7Kft5R1KIz?= =?us-ascii?Q?Oy9QkIjYPZN2oNKEbsKW7UujZh656SBCA7H38KOSS7adJvuHob0uUuQMIdbv?= =?us-ascii?Q?KCGAe4CRgFgl1+fkeYqTge3FOo+ACAZyi+3st8xugKNSduBHjAnsmCLL/hP0?= =?us-ascii?Q?jDNSW3085k7iWraBv/kSDCPvfqPpfw+w/9hIvNWhGAkRtHJ78tH3yZ8szAC9?= =?us-ascii?Q?bIloONR9KEpgB1U1Gt24maA9EX/t2kZtJb/onrK1XrKk+SdYZZceCY9h44Yj?= =?us-ascii?Q?xeCavnXeuSPETweZCm3NzIs8FcVxVTTKszLEwtS/Zlc0Taqxdk5Jn2PnKK86?= =?us-ascii?Q?RaqV3DQXEx4wDllb8WcMbEg2wXQtkrp/8JqTdwJJTrfhTUBBnw2laDB5gdxs?= =?us-ascii?Q?YxrktJUXK6GAk/E+VQRDKPERf4bWL3+FWbAuS4PUBWl2nQx3VPtN/VbioCqK?= =?us-ascii?Q?IsCPZwQoqvNiDdAeDxH5SONvbe05ekqMrMQcULmvBZrVvgJfHIRx/AxGnYhF?= =?us-ascii?Q?l1AYwVjDSDRiemLaZocb8XKsPGPkp9n2BBKQL+PQCOV8WNeLYaOs1SzlYq0u?= =?us-ascii?Q?MrenT64RNEi7aWaXVZjDZR0f21cEQ+FfZ+KtSSpwSU1w974HJKqK4KGckqI4?= =?us-ascii?Q?ASTzTo71CsIdGpG5oxuPnGULBi41/iEUipa+tDSuCQ0XSrxd0Gv4xyPCPg97?= =?us-ascii?Q?Bqo9Sb0g/k6WEPs63MN3sJcgHPgKD4C3lCYvBQVB5rPgNs+GTddQCdjWn3Kw?= =?us-ascii?Q?TtO8Q1GSuySKTZMeAWXcP69l3DBcvPFCK5ifYTWAMxqo2JXMFECOQUgfcqzF?= =?us-ascii?Q?3PdylG94qgGWXG3Jsz5hDermc91EJP0cidbpi+SyAFi35rKstoZOdGJOc8h/?= =?us-ascii?Q?FIa1khO4KaYTf7KhmKcC/CLZXOvzdLIcrqTtkNQBd4RVdZpgHfWHdmeMbKjy?= =?us-ascii?Q?uxJhvyPDpVaw5gBIA1l5rtmkgptHvceiEq5Yibd/OAGE2cP6DIVcXp6j4hOn?= =?us-ascii?Q?bhCDOO+JXwT9C/vRRcqkCdrgWKUUgqtGlUoPlD2WGqcB+byhHXLKitd6zMTU?= =?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: ca16cc96-ec9e-460e-b67e-08dbd9c81d22 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2023 04:16:10.7968 (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: cOVDs4g8AMtVDfTk+htY+Ki+zQU4QJOQdx6WKSWGBIrY2Q647Boz2a5htH32CppFzjFquPtS+6ARNj7DHxSzOfRHj7jnPB44QcLJQtzACEY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR11MB6761 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: 2TTcfa88jD7XMLLSWPAOjkuox7686176AA= 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=i94n+6hf; 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 Hi Dhaval, Do you mind sharing the repo with the full patch set? Like a github link? A > -----Original Message----- > From: Dhaval > Sent: Sunday, October 29, 2023 9:46 AM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Yao, Jiewen > ; Justen, Jordan L ; Ger= d > Hoffmann ; Sunil V L ; > Warkentin, Andrei ; Laszlo Ersek > ; Kinney, Michael D ; > Gao, Liming ; Liu, Zhiguang > ; Daniel Schaefer > Subject: [PATCH v7 0/5] Cache Management Operations Support For RISC-V >=20 > Implementing code to support Cache Management Operations (CMO) defined > by RISC-V CMO instructions.https://github.com/riscv/riscv-CMOs > This is a re-write of original series v5. > The patchset contains 5 patches- created based on V5 feedback. > 1. Restructuring of existing code and move instruction declarations into > BaseLib 2. Renaming existing functions to denote type of instruction used= to > maanage cache. > This is useful for further patches where more cache management > instructions are added. > 3. Add the new cache maintenance operations to BaseLib, including the > new assembly instruction encodings. > 4. Update BaseCacheMaintenanceLib (utilizing the new BaseLib primitives) = 5. > Add platform level PCD to allow overriding of RISC-V features. >=20 > Cc: Ard Biesheuvel > Cc: Jiewen Yao > Cc: Jordan Justen > Cc: Gerd Hoffmann > Cc: Sunil V L > Cc: Andrei Warkentin > Cc: Laszlo Ersek > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Daniel Schaefer >=20 > Dhaval (5): > MdePkg: Move RISC-V Cache Management Declarations Into BaseLib > MdePkg: Rename Cache Management Function To Clarify Fence Based Op > MdePkg: Implement RISC-V Cache Management Operations > MdePkg: Utilize Cache Management Operations Implementation For RISC-V > OvmfPkg/RiscVVirt: Override for RV CPU Features >=20 > MdePkg/MdePkg.dec | 8= + > OvmfPkg/RiscVVirt/RiscVVirt.dsc.inc | 1= + > MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf | > 5 + > MdePkg/Library/BaseLib/BaseLib.inf | 2= +- > MdePkg/Include/Library/BaseLib.h | 53= ++++++ > MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c | 172 > ++++++++++++++++---- > MdePkg/Include/RiscV64/RiscVasm.inc | 19= +++ > MdePkg/Library/BaseLib/RiscV64/FlushCache.S | 21= --- > MdePkg/Library/BaseLib/RiscV64/RiscVCacheMgmt.S | 38= +++++ > MdePkg/MdePkg.uni | 4= + > 10 files changed, 269 insertions(+), 54 deletions(-) create mode 100644 > MdePkg/Include/RiscV64/RiscVasm.inc > delete mode 100644 MdePkg/Library/BaseLib/RiscV64/FlushCache.S > create mode 100644 MdePkg/Library/BaseLib/RiscV64/RiscVCacheMgmt.S >=20 > -- > 2.39.2 -=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 (#110363): https://edk2.groups.io/g/devel/message/110363 Mute This Topic: https://groups.io/mt/102256459/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-