All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: Aaron Chou <zhoubb.aaron@gmail.com>
Cc: lorenzo.pieralisi@arm.com, guohanjun@huawei.com,
	linux-acpi@vger.kernel.org, Sudeep Holla <sudeep.holla@arm.com>
Subject: Re: [ARM64 ACPI] different CPU L3 cache size reported by /sys/device/ and dmidecode
Date: Mon, 11 May 2020 09:18:28 +0100	[thread overview]
Message-ID: <20200511081818.GA9532@bogus> (raw)
In-Reply-To: <CAMpQs4JoyZcHQLahh4w8OaowQ1y3pkTCTYvDn+dkVNOQ4zDpHQ@mail.gmail.com>

On Mon, May 11, 2020 at 03:30:51PM +0800, Aaron Chou wrote:
> In the system, I can get the L3 cache size from two or more ways.
>

Which platform is this ? More details would help.

> Firstly, I can get it from the kernel interface, such as the `lscpu` command.
> Also, I can cat the file `/sys/devices/system/cpu/cpu3/cache/index3/size`.
>

IIRC, lscpu parse the above mentioned sysfs files and the above result
match the expectation.

> The way above can give me the L3 cache size is 32768K.
>

OK

> Now if I use the `dmidecode -t cache` command, I get the L3 cache size
> is 24576K.
>

Ah, that's bad.

> And the real size of the L3 cache is 24576K.
>

OK

> Why is it? who can explain it to me?
>

ACPI reads these cache information from PPTT. The firmware which populates
the ACPI PPTT must read it from DMI entries and keep them in sync. On
this system, looks like the firmware tried to be more imaginative and
populated PPTT with wrong values. Get that firmware fixed please!

--
Regards,
Sudeep

  parent reply	other threads:[~2020-05-11  8:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11  7:30 [ARM64 ACPI] different CPU L3 cache size reported by /sys/device/ and dmidecode Aaron Chou
2020-05-11  8:10 ` Hanjun Guo
2020-05-11  8:18 ` Sudeep Holla [this message]
2020-05-11  8:38   ` Aaron Chou
  -- strict thread matches above, loose matches on Subject: below --
2020-05-11  7:28 Aaron Chou

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-all 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=20200511081818.GA9532@bogus \
    --to=sudeep.holla@arm.com \
    --cc=guohanjun@huawei.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=zhoubb.aaron@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.