From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by mx.groups.io with SMTP id smtpd.web11.6309.1634196249305446320 for ; Thu, 14 Oct 2021 00:24:09 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: linux.alibaba.com, ip: 115.124.30.45, mailfrom: huangming@linux.alibaba.com) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=huangming@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UrlhJZY_1634196196; Received: from 842effaa37a8.tbsite.net(mailfrom:huangming@linux.alibaba.com fp:SMTPD_---0UrlhJZY_1634196196) by smtp.aliyun-inc.com(127.0.0.1); Thu, 14 Oct 2021 15:24:06 +0800 From: "Ming Huang" To: devel@edk2.groups.io, ardb+tianocore@kernel.org, leif@nuviainc.com Cc: ming.huang-@outlook.com, Ming Huang Subject: [PATCH v1] ArmPkg/Smbios: Fix max cache size 2 wrong issue Date: Thu, 14 Oct 2021 15:23:14 +0800 Message-Id: <20211014072314.54891-1-huangming@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 As SMBIOS spec, bit-31 of maximum cache size 2 should be 1 for 64K granularity. Signed-off-by: Ming Huang --- 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