From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by mx.groups.io with SMTP id smtpd.web11.1006.1608060474149118047 for ; Tue, 15 Dec 2020 11:27:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=wwAfRteN; spf=pass (domain: nuviainc.com, ip: 209.85.221.68, mailfrom: leif@nuviainc.com) Received: by mail-wr1-f68.google.com with SMTP id a12so20972588wrv.8 for ; Tue, 15 Dec 2020 11:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BLf/BAIKcPOIoVqdojRs9N6eqOIIPWaswg3nt9x69Uc=; b=wwAfRteNYrm0DpnNCxJT0/4Md8YhH69hb7KIdy5s1NWoUUUj31W67X0KGEWUXw97DM bJN4T0jraN3b1OQiYxjC4RmDydfsbKwsOqUKpjjkSDHuzQZfMG5QFXwuf4NyzVEVcnkU oNFeEtq/yc347OJGDWcW0mdZCzfxHbBLwZtbRPpri+WxK8SEL/0dhrAEOKQ7OAXq0SW1 YnOAE1H63cnhrH+qCF2N95l3HMM+T7LPynpZ0IKHH8kvXD/vnxy0oud79ue8/XxnfXfi 5KVcNoBU3LvZ5QY7zWylOn+0Pjp8EBc18HDnWXnbVmVBKkbqkhdDkND82Pdz904vyycb 0hEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BLf/BAIKcPOIoVqdojRs9N6eqOIIPWaswg3nt9x69Uc=; b=IGb046zmSgCOiFCQAMRDsrQVG0QH2LXvaPV0S6G9l1hr/Sl141Mbk6RF2Dr7vOpKHB P9NGnU5l+TUhLk89Y1awArVNSYKGZO27oujRVa4VagZSPy5zaOpEuifVHQNtlgqZZSQK r0CQL72jMCkSLFyM6PXdZGTiwy7TORWAHBXVI14Keqvd84gGUorh0NULDLSHQhHOg3gA T0fCD/XPMxFaLNXuPGW0t0FG+lcKgPkDw2V+znBhuSrODLoSGQbnA9FRyIzBBdaZ+zjE ISjSXqoSj7Vhb4efdetu8jgmKGu83EjV4SojiLnOhBD7yyH/t/Eceo+KjICu8m3VzfE+ PUNg== X-Gm-Message-State: AOAM533/pDOIVp8u4K/RUmOa0FqNOb0OAyOXqJkmSlQY4F2JMKhoiuoK Z3ekltRjUAX+ntQr13gWokAdfg== X-Google-Smtp-Source: ABdhPJzbcj+JbFMfPMsEKJ/0S7qExDta2jXZWtJ5GAL8i3sxY/6DcOe118GYQaq39svY8JCmRMPzsw== X-Received: by 2002:a5d:68c9:: with SMTP id p9mr35333252wrw.139.1608060472749; Tue, 15 Dec 2020 11:27:52 -0800 (PST) Return-Path: Received: from vanye (cpc1-cmbg19-2-0-cust915.5-4.cable.virginm.net. [82.27.183.148]) by smtp.gmail.com with ESMTPSA id m21sm38048215wml.13.2020.12.15.11.27.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 11:27:52 -0800 (PST) Date: Tue, 15 Dec 2020 19:27:50 +0000 From: "Leif Lindholm" To: Rebecca Cran Cc: devel@edk2.groups.io, Michael D Kinney , Liming Gao , Zhiguang Liu , Ard Biesheuvel Subject: Re: [PATCH v4 09/10] ArmPkg: Add definition of the maximum cache level in ARMv8-A Message-ID: <20201215192750.GG1664@vanye> References: <20201207175427.28712-1-rebecca@nuviainc.com> <20201207175427.28712-10-rebecca@nuviainc.com> MIME-Version: 1.0 In-Reply-To: <20201207175427.28712-10-rebecca@nuviainc.com> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 07, 2020 at 10:54:26 -0700, Rebecca Cran wrote: > 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 Reviewed-by: Leif Lindholm > --- > ArmPkg/Include/Library/ArmLib.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLib.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_MASK) > > +// 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 ( > -- > 2.26.2 >