Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1666567 > unrolled thread

Re: [PATCH v4 2/2] amd: uncore: Get correct number of cores sharing last level cache

Started byBorislav Petkov <bp@alien8.de>
First post2017-06-15 10:50 +0200
Last post2017-06-15 10:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v4 2/2] amd: uncore: Get correct number of cores sharing  last level cache Borislav Petkov <bp@alien8.de> - 2017-06-15 10:50 +0200

#1666567 — Re: [PATCH v4 2/2] amd: uncore: Get correct number of cores sharing last level cache

FromBorislav Petkov <bp@alien8.de>
Date2017-06-15 10:50 +0200
SubjectRe: [PATCH v4 2/2] amd: uncore: Get correct number of cores sharing last level cache
Message-ID<tSyDw-cv-13@gated-at.bofh.it>
On Wed, Jun 14, 2017 at 11:26:58AM -0500, Janakarajan Natarajan wrote:
> In Family 17h, the number of cores sharing a cache level is obtained
> from the Cache Properties CPUID leaf (0x8000001d) by passing in the
> cache level in ECX. In prior families, a cache level of 2 was used to
> determine this information.
> 
> To get the right information, irrespective of Family, iterate over
> the cache levels using CPUID 0x8000001d. The last level cache is the
> last value to return a non-zero value in EAX.
> 
> Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
> ---
>  arch/x86/events/amd/uncore.c | 19 ++++++++++++++++---
>  1 file changed, 16 insertions(+), 3 deletions(-)

Reviewed-by: Borislav Petkov <bp@suse.de>

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web