From nobody Thu Apr 25 05:16:26 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+69646+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+69646+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1609801133; cv=none; d=zohomail.com; s=zohoarc; b=Z0v66rm9hF7BviahUrvhzDKoHqcZo9yesS+GOZEQQ41jsEWG5Jzuv0NytjzGfycQKXcK9hNUweitfJiY/PHetKGGxGhHymZ9lR/de8EqQcwx//6VWE6UKB346y5Aca29+wB/3mijV0lHiMTJWNXFqZ7LPFMCofgVNduHteOw7vY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609801133; 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=+Tl/0s6TCOw4MH5zEg39TBQRo2JbxwyhZH0D33q3IHE=; b=RkNgDngM+2ZTkMhfdtaopySje5BSNqdOiCxEAhz8XTNF0luZqOCrc3caLo5nwS7IWuFftasmbILdYTMaCZ7bn5NFKhxwcEzkPw3HIvDVzPRfu7bi2BgNNzOv6cjr7I81o3jJfpB/UhoY8BkoJqUTm6/4vExoLB08mqZb4IaLfZg= 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+69646+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1609801133932950.4551511007865; Mon, 4 Jan 2021 14:58:53 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id cMTBYY1788612xahiQOOoj4p; Mon, 04 Jan 2021 14:58:53 -0800 X-Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web10.68.1609801133010299294 for ; Mon, 04 Jan 2021 14:58:53 -0800 X-Received: by mail-pl1-f174.google.com with SMTP id g3so15344712plp.2 for ; Mon, 04 Jan 2021 14:58:52 -0800 (PST) X-Gm-Message-State: WMayU1dESdF8C2mtLFKEQhGux1787277AA= X-Google-Smtp-Source: ABdhPJxqKDkP8erbwQo84rQn1xD8b6jGVIKaLfwm1Wg4Xo+AGswS3ta+oKcg15O17ZYU2DxvBF/Jrw== X-Received: by 2002:a17:90b:a17:: with SMTP id gg23mr1084026pjb.129.1609801132176; Mon, 04 Jan 2021 14:58:52 -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 x143sm64185289pgx.66.2021.01.04.14.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 14:58:51 -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 v5 08/23] ArmPkg: Add definition of the maximum cache level in ARMv8-A Date: Mon, 4 Jan 2021 15:58:15 -0700 Message-Id: <20210104225830.12606-9-rebecca@nuviainc.com> In-Reply-To: <20210104225830.12606-1-rebecca@nuviainc.com> References: <20210104225830.12606-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=1609801133; bh=zvpDW6eKpgM41RtjyoeNxw8o5qUx8q2vrP5q2eaIxzk=; h=Cc:Date:From:Reply-To:Subject:To; b=Hx4vmEijetEeH5QDGfRamG6VTgqNddGPik9W3E2AxoAGNKrK+i49LZtaE86ESGdwAWc 5XW8R0OD3wUfM4h17rEJTLxFMfdzyU7V5R3LPQs/FYLQsK9F2XwOavYYKWh0AvvaMhBCx I5YkyQCeY3qlYWnQeXGipYsHiXY+zh0cT8c= 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 (#69646): https://edk2.groups.io/g/devel/message/69646 Mute This Topic: https://groups.io/mt/79438410/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-