Re: [PATCH 2/3] x86/topology: Fix AMD core count
From: Borislav Petkov
Date: Tue Mar 22 2016 - 07:22:37 EST
Hi Sherry,
On Tue, Mar 22, 2016 at 03:10:15AM -0500, Sherry Hurwitz wrote:
> Boris, this documentation will help tremendously.
Yeah, I'm collecting more stuff for it. If you feel like something else
should be explained there, holler.
> In just this line of
> code:
>
> nr_local_cpus = nr_cores * nr_siblings
>
> we have an Intel HT = AMD core = logical_cpu
> and core = AMD compute unit.
>
> Anybody surprised there was a bug?
>
> The surprising thing is that running lscpu on a 32 core 2 socket 6300
> Opteron system without
> the patches I get the same output as with the patches and it matches Ray's.
> I don't see an impact.
Yeah, so the logic is closer to an Intel core which can have 1 or more
threads and we did set x86_max_cores to the number of Bulldozer cores
(each of them in a pair forming a Compute Unit). And that's fine but
then we did set smp_num_siblings to 2.
In any case, I'm not seeing any issues here too but we wanted for you
guys to run those changes too before we apply them.
In any case, they will be in 4.6 and you could test tip/master from time
to time and scream if there's an issue.
Thanks!
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.