From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (EUR02-VE1-obe.outbound.protection.outlook.com [40.107.2.42]) by mx.groups.io with SMTP id smtpd.web12.6135.1608118334919351422 for ; Wed, 16 Dec 2020 03:32:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=IkZ75Cfx; spf=pass (domain: arm.com, ip: 40.107.2.42, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MWdN+zfjppP4hUkx8+OoAhnxciEFrOa++s65JwymI+g=; b=IkZ75Cfx+EaP2rDZvOLDNTxtb8yVfw75sa6bE0F9XLTKEPOoNh4HWQ7oWoKOzYyB2XAhcXp6HZcB4a6kml7rDcRqE+HDxZx2ZRIl/aT/AdQ/6y5WVNCqstDlatOjssaRXokiDupCsr3AktU74+pSVtaIdTRmBR0B4mok+i8kc8s= Received: from MR2P264CA0121.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::13) by PR3PR08MB5595.eurprd08.prod.outlook.com (2603:10a6:102:83::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 16 Dec 2020 11:32:11 +0000 Received: from VE1EUR03FT016.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:30:cafe::3e) by MR2P264CA0121.outlook.office365.com (2603:10a6:500:30::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17 via Frontend Transport; Wed, 16 Dec 2020 11:32:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT016.mail.protection.outlook.com (10.152.18.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Wed, 16 Dec 2020 11:32:11 +0000 Received: ("Tessian outbound 665ba7fbdfd9:v71"); Wed, 16 Dec 2020 11:32:10 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 91ceeb49416aa064 X-CR-MTA-TID: 64aa7808 Received: from d9d399b0227f.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 10BED656-6D04-46A8-A220-8DD5B413CF9A.1; Wed, 16 Dec 2020 11:32:05 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d9d399b0227f.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 16 Dec 2020 11:32:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fW5awXAr2S4/2EdcwUlRcdViIhjLKWk+Z76/c3gyG1zMToGs93KT2fGYtSP3ZH78h8sp5UJCm7qU5XDG+WsuEnfpyCJDRDos7r3FMLZLXmQYDavONDJ1VaophUKLpo3lOx8DoFk+16HNKCCzys7yHLn5Gmne9BsqnryRVp4GbBSI8e3OyAtVHCLFTwyEoPXhJRYSIIsZKoqv8famn4+QBkL0kF8CBNaKzC9Oqo/dCl4ftl92qxNMloWGED5wMaYpBIjfnltlOUQIHHiWGilFBkeguB2YuHwsS7eKyObv1oLDnFzgL7Fi9hUDh0GL0qP386uSfL92TDASknYCPfW/uA== 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-SenderADCheck; bh=MWdN+zfjppP4hUkx8+OoAhnxciEFrOa++s65JwymI+g=; b=aNslAlSV7ShyHZ6s8Cmm/BfwdeJxZUEc7l4rwcu+Cd/6odQ7PTfhJkC/D+ZSaq8jYbZSuZHW//CYVM1KzPMAB5JxBx1/0iSu8sBAVxW8bDuoL60Uz1CgGhD82wqBuG0B0XPW0bPkO/Ij8gjKkBZU5XHJIeQW+FnfIE7uAh7sjHyRTI1+z3A20eb0du1U64F73lj2nPFtVBZc1PXwnM5Ix/xroeV0O4gkRu3qD6pED9paGFbOqYTKXrAfomhTAKRcKMG4OOIBC68iWCwactTrvk0+ZUP8xB4HNsVuJfD/W4+YsRUUcBpESw7u0DMkVNEMvJJfOEL0ht9Qq6x7abm9gQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MWdN+zfjppP4hUkx8+OoAhnxciEFrOa++s65JwymI+g=; b=IkZ75Cfx+EaP2rDZvOLDNTxtb8yVfw75sa6bE0F9XLTKEPOoNh4HWQ7oWoKOzYyB2XAhcXp6HZcB4a6kml7rDcRqE+HDxZx2ZRIl/aT/AdQ/6y5WVNCqstDlatOjssaRXokiDupCsr3AktU74+pSVtaIdTRmBR0B4mok+i8kc8s= Received: from DB7PR08MB3097.eurprd08.prod.outlook.com (2603:10a6:5:1d::27) by DB6PR0801MB2117.eurprd08.prod.outlook.com (2603:10a6:4:2e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17; Wed, 16 Dec 2020 11:32:00 +0000 Received: from DB7PR08MB3097.eurprd08.prod.outlook.com ([fe80::315c:f6c3:2600:bd39]) by DB7PR08MB3097.eurprd08.prod.outlook.com ([fe80::315c:f6c3:2600:bd39%6]) with mapi id 15.20.3654.025; Wed, 16 Dec 2020 11:32:00 +0000 From: "Sami Mujawar" To: "devel@edk2.groups.io" , "rebecca@nuviainc.com" CC: Michael D Kinney , Liming Gao , Zhiguang Liu , Leif Lindholm , Ard Biesheuvel , nd Subject: Re: [edk2-devel] [PATCH v4 09/10] ArmPkg: Add definition of the maximum cache level in ARMv8-A Thread-Topic: [edk2-devel] [PATCH v4 09/10] ArmPkg: Add definition of the maximum cache level in ARMv8-A Thread-Index: AQHWzMMRQ4Atx9E/R0SO00hZKCUuAan5pBNQ Date: Wed, 16 Dec 2020 11:31:58 +0000 Message-ID: References: <20201207175427.28712-1-rebecca@nuviainc.com> <20201207175427.28712-10-rebecca@nuviainc.com> In-Reply-To: <20201207175427.28712-10-rebecca@nuviainc.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 2BA96869E8DBD34BA6526959E8232D4C.1 Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; x-originating-ip: [2a00:23c6:548a:4800:ac83:fe43:cf2a:e70f] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c0b136e0-43ff-40b4-42ec-08d8a1b63aa3 x-ms-traffictypediagnostic: DB6PR0801MB2117:|PR3PR08MB5595: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1775;OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: iQdWqrKFAyU/Zoq3KNFOjBXpNlijqw/G1IYtvAvSThSYItvCrTDbNj3Q5BP7qQTL+xFZwvsedTJsu4FG7yQ1eyoF2Nbeanpd9XnjvC1nVZii+mVCNwR0qluheOges829Bg7r+CVW7mDTwQERyV3iqrfdN/crBB2+9ouleGsgB61EiI6r2hkXWf1UaNoaxbhRaVWAxFrNA7hfPeakRzJIAkaoX1e4cXO58c/7S0v9TEpXGMMtcGwMNQ8EefhtTm5iidMS8vW+U3bAZc4MDlgEDV1cgtk502k97o7xV0Xj3i8tAXbaA4+ooL5iuHG60XRFkN6bhmW7I/qc9746PP5QPLNEEau8Aguuv/BULGs7Kg0ffIiEr7kg2ih6xwtP/bEKK3THsN5IQKjvtWFLkVHDvg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3097.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(366004)(346002)(39860400002)(396003)(136003)(186003)(66476007)(66556008)(86362001)(4326008)(7696005)(110136005)(8676002)(76116006)(71200400001)(66446008)(9686003)(2906002)(66946007)(5660300002)(6506007)(64756008)(8936002)(83380400001)(966005)(54906003)(478600001)(316002)(55016002)(53546011)(52536014)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Eq/PWBFUqYsMy39gY4iIY9zgW2z4HZLh3OPNyOt0muqCfIyEa/P2KYBFh9Op?= =?us-ascii?Q?YhvZXScRdsgHR8wg7Tvun+rtSIlqRRSrG7pRuqLUzYadYR0pauDP3yRxVxQF?= =?us-ascii?Q?kkutjvEqWtceujBiwp5I8Qzi66KNgXACriZnyN6UZdnLK1eS3wXu2xayGNIp?= =?us-ascii?Q?3zJnFlTI9+ahiQ2+O+A0XWhNmN0Ine1NsqkUsda2xoD58ofXgCf0/GEa63fY?= =?us-ascii?Q?IYTDUSCuoKEU3K2cDxoMAvGrO+R8Mp231LjvCq1gjszOlKc3TVnHaxYfZkDF?= =?us-ascii?Q?N8xBWUg4CQ+JAUcD76u6LZxeraCtkbfQPblNxnqmVpSWSO7tzUjLg2tzCXj4?= =?us-ascii?Q?KrktNM3VD6OLEh8zkHlR6DmlzNlyzgSvYK2Ujoo3j/OxtkyCHGLiUB2sgpUs?= =?us-ascii?Q?sNJMzJGZshhx4WUFbdaBqv1SmE/fZqCUjfogJXeZQhkINqeRSzZ140a9fMBM?= =?us-ascii?Q?bGfQt8Ld/YlpqPPw1pkCaZy/DjraXaCJtc9d8KYXyjKmtrlElUPah5zHdVt6?= =?us-ascii?Q?yDkS/JjA8IyxcPG76/jFTruAgKKz9eF80XiWccGLqt+DpX0l87jz6oUCPDVw?= =?us-ascii?Q?HltU+mK7q0BQk9jy4uAjgjdF0Q2q38AN0LUN/XjmT2q1gNRgDhmNNAHmUT3R?= =?us-ascii?Q?rNQjhULoOnub3Ix7TJa7ekoU6EQtrASpPJf3zr71oRsOtOkBxpXiEP3qtVID?= =?us-ascii?Q?XW4az6CSkF81q5IqbvVODBvrKrsjrPutVxTwqTeqqg1nVGrTfIrqssjzSk0d?= =?us-ascii?Q?mJzVWxHwNB8W+BeJIu9RDgjl4VZwqVcAbW7VLaxa6GGtmHxoBZpGm401lOk6?= =?us-ascii?Q?Tge3/ej3oSAYXzAI2d0e+O12Vrp1fAtPdJScHbJq6r2yhIkefjHyql9sFdWV?= =?us-ascii?Q?kqDqLOpfcm6S1/LOtdzOncoAcUtk6b59sTo/Wo+iQJ6b7EBp0oQ0qm58ky4b?= =?us-ascii?Q?CTgCany8/fhSpTcUR81x6++7jqcWkoXQhvZyzWJ4ZGGFEF4klVjoJfth1hw8?= =?us-ascii?Q?onKlrOpmTJozeRNtIaMQz3cSZmaUDDYZw/U0vGAR3pxDlWg=3D?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2117 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 51b2f7ce-75ef-4c43-5ac6-08d8a1b63441 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CQrEdbghpqpUwbI59yLd8MGt6uZ94ATY0X3YtExF854eWfvTq/kdZQEi9JPAD0R1XM+ag+ai2oKGVeoHtyGi+/zbKv+pKlMktdDXGq1vUJm2z+59zdSvCh/B0bMYO26xnzTmNMxTiOXBlAykKX1LeT3SS9xtxy9kjlmngUzTImL/vxDq8RVDGE6Kwf3Z+fLS1ZPFqm8qa1LnH22ENJkUgzpoiTkqA1nXnuJXvBqScrplqaYGvodIKQzEapL7TNFFzLwgiNpSFOTGjG11+inm8DuQJtY1+KAk+C0hO8Vd7wStEsIxj93E/jNePWHZBB+hKx+UZlJsaJh9NSjgpf5SaXoYla0L+iXdDNXvOHaVhCUPNBOl9g4Xb2yPJ4ZEZbfL78onWiN0O4f157unAmNo/Bz+shbcXiBCRYcb+swE/692nuykbzsfIc6U0DvWLIxym8dKhAYJyio5MCSEfnOq0Bx71XHgdzQ4a2PDtUbI02U= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(39860400002)(396003)(376002)(136003)(346002)(46966005)(52536014)(82310400003)(53546011)(316002)(966005)(4326008)(356005)(47076004)(82740400003)(5660300002)(186003)(9686003)(26005)(336012)(8936002)(55016002)(70586007)(70206006)(8676002)(6506007)(33656002)(110136005)(2906002)(81166007)(7696005)(54906003)(86362001)(478600001)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Dec 2020 11:32:11.1565 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0b136e0-43ff-40b4-42ec-08d8a1b63aa3 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT016.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5595 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Rebecca, This patch looks good to me. Reviewed-by: Sami Mujawar Regards, Sami Mujawar -----Original Message----- From: devel@edk2.groups.io On Behalf Of Rebecca Cra= n via groups.io Sent: 07 December 2020 05:54 PM To: devel@edk2.groups.io Cc: Rebecca Cran ; Michael D Kinney ; Liming Gao ; Zhiguang Liu ; Leif Lindholm ; Ard Biesheuvel Subject: [edk2-devel] [PATCH v4 09/10] ArmPkg: Add definition of the maxim= um cache level in ARMv8-A The ARM Architecture Reference Manual for ARMv8-A defines up to seven levels of cache, L1 through L7. Define MAX_ARM_CACHE_LEVEL to be 7. Signed-off-by: Rebecca Cran --- ArmPkg/Include/Library/ArmLib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmL= ib.h index 87c3a6f1ecac..4e26991727cb 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -108,6 +108,10 @@ typedef enum { #define GET_MPID(ClusterId, CoreId) (((ClusterId) << 8) | (CoreId)) #define PRIMARY_CORE_ID (PcdGet32(PcdArmPrimaryCore) & ARM_CORE_MAS= K) =20 +// The ARM Architecture Reference Manual for ARMv8-A defines up +// to 7 levels of cache, L1 through L7. +#define MAX_ARM_CACHE_LEVEL 7 + UINTN EFIAPI ArmDataCacheLineLength ( --=20 2.26.2