From: "Leif Lindholm" <leif@nuviainc.com>
To: devel@edk2.groups.io, huangming@linux.alibaba.com
Cc: ardb+tianocore@kernel.org, ming.huang-@outlook.com,
Rebecca Cran <rebecca@nuviainc.com>
Subject: Re: [edk2-devel] [PATCH v1] ArmPkg/Smbios: Fix max cache size 2 wrong issue
Date: Thu, 14 Oct 2021 11:07:04 +0100 [thread overview]
Message-ID: <20211014100704.gbhrrny2ayefrygn@leviathan> (raw)
In-Reply-To: <20211014072314.54891-1-huangming@linux.alibaba.com>
+Rebecca
On Thu, Oct 14, 2021 at 15:23:14 +0800, Ming Huang wrote:
> As SMBIOS spec, bit-31 of maximum cache size 2 should be 1
> for 64K granularity.
>
> Signed-off-by: Ming Huang <huangming@linux.alibaba.com>
> ---
> ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c b/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
> index fb484086a4..4b409ff745 100644
> --- a/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
> +++ b/ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClass.c
> @@ -219,7 +219,7 @@ ConfigureCacheArchitectureInformation (
> CacheSize32 = CacheSize16;
> } else if ((CacheSize64 / 64) < MAX_INT16) {
> CacheSize16 = (1 << 15) | (CacheSize64 / 64);
> - CacheSize32 = CacheSize16;
> + CacheSize32 = (1 << 31) | (CacheSize64 / 64);
> } else {
> if ((CacheSize64 / 1024) <= 2047) {
> CacheSize32 = CacheSize64;
> --
> 2.17.1
>
>
>
>
>
>
next prev parent reply other threads:[~2021-10-14 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-14 7:23 [PATCH v1] ArmPkg/Smbios: Fix max cache size 2 wrong issue Ming Huang
2021-10-14 10:07 ` Leif Lindholm [this message]
2021-10-14 12:05 ` [edk2-devel] " Rebecca Cran
2021-10-15 10:52 ` Leif Lindholm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211014100704.gbhrrny2ayefrygn@leviathan \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox