public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/27061] New: Incorrect values in _rtld_global_ro._dl_x86_cpu_features
Date: Sun, 13 Dec 2020 12:37:04 +0000	[thread overview]
Message-ID: <bug-27061-131@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=27061

            Bug ID: 27061
           Summary: Incorrect values in
                    _rtld_global_ro._dl_x86_cpu_features
           Product: glibc
           Version: 2.33
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: i386,x86-64

On AVX2 machine, I got

Breakpoint 1, main () at test.c:40
40        size_t page_size = sysconf(_SC_PAGESIZE);
(gdb) p _rtld_global_ro._dl_x86_cpu_features 
$1 = {basic = {kind = arch_kind_intel, max_cpuid = 22, family = 6, 
    model = 142, stepping = 10}, features = {{cpuid = {eax = 526058, 
        ebx = 34605056, ecx = 2147154879, edx = 3219913727}, usable = {
        eax = 0, ebx = 0, ecx = 2128097795, edx = 394821904}}, {cpuid = {
        eax = 0, ebx = 43804591, ecx = 0, edx = 2617255424}, usable = {
        eax = 0, ebx = 9175848, ecx = 0, edx = 0}}, {cpuid = {eax = 0, 
        ebx = 0, ecx = 289, edx = 739248128}, usable = {eax = 0, ebx = 0, 
        ecx = 289, edx = 134217728}}, {cpuid = {eax = 15, ebx = 960, 
        ecx = 256, edx = 0}, usable = {eax = 7, ebx = 0, ecx = 0, edx = 0}}, {
      cpuid = {eax = 0, ebx = 0, ecx = 0, edx = 256}, usable = {eax = 0, 
        ebx = 0, ecx = 0, edx = 0}}, {cpuid = {eax = 12327, ebx = 0, ecx = 0, 
        edx = 0}, usable = {eax = 0, ebx = 0, ecx = 0, edx = 0}}, {cpuid = {
        eax = 0, ebx = 0, ecx = 0, edx = 0}, usable = {eax = 0, ebx = 0, 
        ecx = 0, edx = 0}}, {cpuid = {eax = 0, ebx = 0, ecx = 0, edx = 0}, 
      usable = {eax = 0, ebx = 0, ecx = 0, edx = 0}}}, preferred = {17719}, 
  xsave_state_size = 960, xsave_state_full_size = 1152, data_cache_size = 0, 
  shared_cache_size = 0, non_temporal_threshold = 0, 
  rep_movsb_threshold = 2048, rep_stosb_threshold = 2048}
(gdb) 

data_cache_size, shared_cache_size, non_temporal_threshold shouldn't be
zero and rep_movsb_threshold should be 4096.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2020-12-13 12:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-13 12:37 hjl.tools at gmail dot com [this message]
2020-12-13 12:46 ` [Bug dynamic-link/27061] " hjl.tools at gmail dot com
2020-12-13 13:36 ` hjl.tools at gmail dot com
2020-12-13 15:00 ` fweimer at redhat dot com
2020-12-13 15:21 ` [Bug dynamic-link/27061] Incorrect values in __x86_rep_movsb_threshold hjl.tools at gmail dot com
2020-12-13 15:26 ` hjl.tools at gmail dot com
2020-12-14 23:56 ` hjl.tools at gmail dot com

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=bug-27061-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).