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


Groups > linux.kernel > #1699409 > unrolled thread

Re: [PATCH v2] x86/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask

Started byBorislav Petkov <bp@suse.de>
First post2017-07-30 05:50 +0200
Last post2017-07-30 05: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 v2] x86/amd: Derive L3 shared_cpu_map from  cpu_llc_shared_mask Borislav Petkov <bp@suse.de> - 2017-07-30 05:50 +0200

#1699409 — Re: [PATCH v2] x86/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask

FromBorislav Petkov <bp@suse.de>
Date2017-07-30 05:50 +0200
SubjectRe: [PATCH v2] x86/amd: Derive L3 shared_cpu_map from cpu_llc_shared_mask
Message-ID<u8NoS-3og-1@gated-at.bofh.it>
On Thu, Jul 27, 2017 at 08:52:35PM -0500, Suravee Suthikulpanit wrote:
> For system with X86_FEATURE_TOPOEXT, current logic use APIC ID to
> calculate shared_cpu_map. However, since APIC IDs are not guaranteed
> to be contiguous for cores across different L3 (e.g. family17h system
> w/ downcore configuration). This breaks the logic, and results in
> incorrect L3 shared_cpu_map.
> 
> Instead, always use the previously calculated cpu_llc_shared_mask of
> each cpu to derive L3 shared_cpu_map. This has been tested on
> family15h and family17h systems, which has L3 and support
> X86_FEATURE_TOPOEXT.
> 
> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
> ---
>  arch/x86/kernel/cpu/intel_cacheinfo.c | 32 ++++++++++++++++++--------------
>  1 file changed, 18 insertions(+), 14 deletions(-)

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web