From nobody Mon Nov 25 12:21:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+70304+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70304+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1610642214; cv=none; d=zohomail.com; s=zohoarc; b=byjwd5Gs+k1CD1EecWnuiSp8TFTnprVDMCeHZqNxo+Ht9oGvdUkM8nJQHTd61ZZQ6/icMw0497mX9IVpCo/D4Ey7+jxbXD2C6MNAJ6p+saVCmJkzXiUetjunZpmi3IhCok3Nrm7TO9HFkX0bIuNRgfymc6ftfq8+b80GdsOE8zo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610642214; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=QqMaIUFC5fzw6KLNSUNI9ADncbiA/AWFXy+M/dR6pBw=; b=fgSJa1XZ3GEWbzIZev2IR7PPlqgjFnuSHTMYu+oyxS4+bf99/4dkzTWt1D58rcePCqRT4L4DnBUpnZijg8jFCCxmVvZg22GTteKrKOBfHDw59r0e7fI05rndeowoB4j0t2uTsEev43RmmE/Ft4+T3cEj41/ehNa8Z8ZMCGk0TBY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+70304+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1610642214562164.44364351024547; Thu, 14 Jan 2021 08:36:54 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id 6YGIYY1788612xqzXzGdsE9Y; Thu, 14 Jan 2021 08:36:53 -0800 X-Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by mx.groups.io with SMTP id smtpd.web11.4156.1610642207856569334 for ; Thu, 14 Jan 2021 08:36:47 -0800 X-Received: by mail-io1-f43.google.com with SMTP id n4so12297913iow.12 for ; Thu, 14 Jan 2021 08:36:47 -0800 (PST) X-Gm-Message-State: LFM0t3AUJCQQ4dHP8e4kYEtqx1787277AA= X-Google-Smtp-Source: ABdhPJxiQpbk1CejPJoCGXGjDUYsRJmzfWy1/r9XaNYa2gMoxfA/cGpPh6Cm0H5609riy6C+2RTzpw== X-Received: by 2002:a02:5148:: with SMTP id s69mr7215039jaa.8.1610642207077; Thu, 14 Jan 2021 08:36:47 -0800 (PST) X-Received: from cube.nuviainc.com (c-174-52-16-57.hsd1.ut.comcast.net. [174.52.16.57]) by smtp.gmail.com with ESMTPSA id y5sm3711920ilj.35.2021.01.14.08.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 08:36:46 -0800 (PST) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Rebecca Cran , Leif Lindholm , Ard Biesheuvel , nd@arm.com, Sami Mujawar , Liming Gao , Michael D Kinney , Zhiguang Liu , Sami Mujawar Subject: [edk2-devel] [PATCH v6 09/22] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Thu, 14 Jan 2021 09:36:15 -0700 Message-Id: <20210114163628.31952-10-rebecca@nuviainc.com> In-Reply-To: <20210114163628.31952-1-rebecca@nuviainc.com> References: <20210114163628.31952-1-rebecca@nuviainc.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,rebecca@nuviainc.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1610642213; bh=aXg0K3CLWYEll/9opWfX4zF3JcASVORt/QVOu8WtWHk=; h=Cc:Date:From:Reply-To:Subject:To; b=c/fjGk6KqbkYMKNhrkDTaC/jAcTIdXYp3caRR9pGiRSeDXpe4fvjSb7RgGNlE6D7G3b /G02IXyoRSvQCKPjOnZzcIuUv51or7gSGfLw1GnX6dzQ+hFeS7PfCKOVDVkhj2aubggRR L4SI80MQbaQwG6ocMXBcF/oyom0a8RXiInk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Sami Mujawar --- ArmPkg/Include/Library/ArmLib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArmPkg/Include/Library/ArmLib.h b/ArmPkg/Include/Library/ArmLi= b.h index 26cb05def0a2..fd4f06d24274 100644 --- a/ArmPkg/Include/Library/ArmLib.h +++ b/ArmPkg/Include/Library/ArmLib.h @@ -109,6 +109,10 @@ typedef enum { #define GET_MPID(ClusterId, CoreId) (((ClusterId) << 8) | (CoreId)) #define PRIMARY_CORE_ID (PcdGet32(PcdArmPrimaryCore) & ARM_CORE_MASK) =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 -=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 (#70304): https://edk2.groups.io/g/devel/message/70304 Mute This Topic: https://groups.io/mt/79679249/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-