This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/19154] New: chip vendor who is not "GenuineIntel" or "AuthenticAMD" gets no CPUID features.


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

            Bug ID: 19154
           Summary: chip vendor who is not "GenuineIntel" or
                    "AuthenticAMD" gets no CPUID features.
           Product: glibc
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: cpudebug at centtech dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

in glibc/sysdeps/x86_64/multiarch/init-arch.c, __init_cpu_features()

I notice if a processor's name string is not "GenuineIntel" or "AuthenticAMD",
then it will go thru this code path
  else {
    kind = arch_kind_other;
  }

the problem is then x86 processor like VIA Nano will not be able to use the sse
or avx optimized functions.

the fix is to change to 
  else {
    kind = arch_kind_other;
    get_common_indeces (&family, &model);
  }

so get_common_indeces() will populate __cpu_features with the information glibc
needs to use sse or avx optimized functions.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]