public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] x86: Add support for Zhaoxin processors
@ 2020-04-24 12:29 mayshao-oc
  2020-04-24 12:29 ` [PATCH v3 1/3] x86: Add CPU Vendor ID detection " mayshao-oc
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: mayshao-oc @ 2020-04-24 12:29 UTC (permalink / raw)
  To: libc-alpha
  Cc: hjl.tools, carlos, fw, QiyuanWang, HerryYang, RickyLi, mayshao-oc

This patch series fix Shanghai Zhaoxin processor CPU Vendor ID detection
problem in glibc sysdep module.  Current glibc doesn't recognize Zhaoxin
CPU Vendor ID("CentaurHauls" and "Shanghai") and set kind to
arch_kind_other.  These lead to incorrect result of __cache_sysconf(),
incorrect value for variables like __x86_shared_cache_size, and fail
of test case tst-get-cpu-features.

v3:
 - code formatting fixups
 - Add a new function get_common_info() that extracts the code in
   init_cacheinfo() to get the value of shared, threads.

v2:
https://sourceware.org/pipermail/libc-alpha/2020-March/112286.html
 - Remove the bit_arch_Prefer_MAP_32BIT_EXEC flag on the Zhaoxin processor
   with family==0x6.

v1:
https://sourceware.org/pipermail/libc-alpha/2019-December/109170.html

This series was checked on x86_64-linux-gnu.

mayshao (3):
  x86: Add CPU Vendor ID detection support for Zhaoxin processors
  x86: Add cache information support for Zhaoxin processors
  x86: Add the test case of __get_cpu_features support for Zhaoxin
    processors

 sysdeps/x86/cacheinfo.c            | 477 ++++++++++++++++++++++---------------
 sysdeps/x86/cpu-features.c         |  54 +++++
 sysdeps/x86/cpu-features.h         |   1 +
 sysdeps/x86/tst-get-cpu-features.c |   2 +
 4 files changed, 338 insertions(+), 196 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-04-30 20:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24 12:29 [PATCH v3 0/3] x86: Add support for Zhaoxin processors mayshao-oc
2020-04-24 12:29 ` [PATCH v3 1/3] x86: Add CPU Vendor ID detection " mayshao-oc
2020-04-24 12:53   ` H.J. Lu
2020-04-24 12:29 ` [PATCH v3 2/3] x86: Add cache information " mayshao-oc
2020-04-24 12:53   ` H.J. Lu
2020-04-26  5:54     ` Mayshao-oc
2020-04-26 12:07       ` H.J. Lu
2020-04-30  5:09         ` Mayshao-oc
2020-04-30  5:15           ` H.J. Lu
2020-04-30  6:04             ` Mayshao-oc
2020-04-30 12:52               ` H.J. Lu
2020-04-30 13:22                 ` Mayshao-oc
2020-04-30 13:55                   ` H.J. Lu
2020-04-30 14:39                     ` Mayshao-oc
2020-04-30 19:10               ` Joseph Myers
2020-04-30 19:16                 ` Florian Weimer
2020-04-30 19:21                   ` H.J. Lu
2020-04-30 20:04                     ` Florian Weimer
2020-04-24 12:29 ` [PATCH v3 3/3] x86: Add the test case of __get_cpu_features " mayshao-oc
2020-04-24 12:54   ` H.J. Lu

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 read-only IMAP folder(s) and NNTP newsgroup(s).