From: Brice Goglin <Brice.Goglin@inria.fr>
To: Borislav Petkov <bp@suse.de>, LKML <linux-kernel@vger.kernel.org>
Subject: AMD Bulldozer topology regression since 4.6
Date: Tue, 29 Nov 2016 08:03:15 +0100 [thread overview]
Message-ID: <583D2833.4030508@inria.fr> (raw)
Hello
Since Linux 4.6 (and still in 4.9-rc5 at least), both AMD Bulldozer
cores of a single dual-core compute unit report the same core_id:
$ cat /sys/devices/system/cpu/cpu{?,??}/topology/core_id
0
0
1
1
2
2
3
0
3
[...]
Before 4.5 (and for a very long time), the kernel reported different
core_ids:
0
1
2
3
4
5
6
7
0
[...]
This causes user-space tools (at least all that rely on hwloc for
topology discovery) to think the processor has dual-threaded cores
instead of dual-core compute-unit modules.
The cause is likely this patch, which seems to assume both cores of a
same compute-unit have the same ID, which is wrong?
commit 8196dab4fc159943df6baaac04973bb1accb7100
Author: Borislav Petkov <bp@suse.de>
Date: Fri Mar 25 15:52:36 2016 +0100
x86/cpu: Get rid of compute_unit_id
It is cpu_core_id anyway.
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1458917557-8757-3-git-send-email-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Thanks
Brice
next reply other threads:[~2016-11-29 7:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 7:03 Brice Goglin [this message]
2016-11-29 19:39 ` AMD Bulldozer topology regression since 4.6 Borislav Petkov
2016-11-29 21:02 ` Brice Goglin
2016-11-29 21:15 ` Borislav Petkov
2017-01-03 10:49 ` Brice Goglin
2017-01-03 13:22 ` Borislav Petkov
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=583D2833.4030508@inria.fr \
--to=brice.goglin@inria.fr \
--cc=bp@suse.de \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).