public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
@ 2021-02-20 1:03 andrei at gherzan dot com
2021-02-20 1:10 ` [Bug libc/27444] " bero at lindev dot ch
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: andrei at gherzan dot com @ 2021-02-20 1:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27444
Bug ID: 27444
Summary: sysconf reports unsupported option (-1) for
_SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
Product: glibc
Version: 2.33
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: andrei at gherzan dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Host: x86_64-poky-linux
Target: x86_64-poky-linux
Configure flags: --build=x86_64-linux --host=x86_64-poky-linux
--target=x86_64-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share
--sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include --oldincludedir=/usr/include
--infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules
--disable-dependency-tracking
--with-libtool-sysroot=/home/andrei/work/poky/build/tmp/work/core2-64-poky-linux/glibc/2.33-r0/recipe-sysroot
--enable-kernel=3.2.0 --disable-profile --disable-debug --without-gd
--enable-clocale=gnu
--with-headers=/home/andrei/work/poky/build/tmp/work/core2-64-poky-linux/glibc/2.33-r0/recipe-sysroot/usr/include
--without-selinux --enable-tunables=no --enable-bind-now
--enable-stack-protector=strong --enable-stackguard-randomization
--disable-crypt --with-default-link --disable-static --enable-nscd --enable-cet
Host: 5.10.16-arch1-1
Target: 5.10.16-yocto-standard
gcc: 10.2.0
binutils: 2.36
It was observed that with glibc 2.33, sysconf reports unsupported
option (-1) for _SC_LEVEL1_ICACHE_LINESIZE while on 2.32 it reports, as
expected 64.
This can be easily reproduced using archlinux docker images with sysconf tool:
```
└─❯ docker run -ti --rm archlinux:base-20210214.0.15477 getconf -a |
grep "GNU_LIBC_VERSION\|LEVEL1_ICACHE_LINESIZE"
GNU_LIBC_VERSION glibc 2.33
LEVEL1_ICACHE_LINESIZE
└─❯ docker run -ti --rm archlinux:base-20210131.0.14634 getconf -a |
grep "GNU_LIBC_VERSION\|LEVEL1_ICACHE_LINESIZE"
GNU_LIBC_VERSION glibc 2.32
LEVEL1_ICACHE_LINESIZE 64
```
The offending patch in glibc is:
commit 2d651eb9265d1366d7b9e881bfddd46db9c1ecc4
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Fri Sep 18 07:55:14 2020 -0700
x86: Move x86 processor cache info to cpu_features
Reverting the above patch fixes this issue. I've also tried to disable
`tunables` but that didn't make a change.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27444] sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
2021-02-20 1:03 [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33 andrei at gherzan dot com
@ 2021-02-20 1:10 ` bero at lindev dot ch
2021-03-06 16:53 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bero at lindev dot ch @ 2021-02-20 1:10 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27444
Bernhard Rosenkränzer <bero at lindev dot ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bero at lindev dot ch
--- Comment #1 from Bernhard Rosenkränzer <bero at lindev dot ch> ---
Reproducable here with both Yocto (same setup as Andrei's) and with
OpenMandriva 4.2 (which uses glibc 2.33 with a slightly different config
[--enable-kernel=5.0, and -march=znver1 in compiler flags]).
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27444] sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
2021-02-20 1:03 [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33 andrei at gherzan dot com
2021-02-20 1:10 ` [Bug libc/27444] " bero at lindev dot ch
@ 2021-03-06 16:53 ` hjl.tools at gmail dot com
2021-03-06 19:12 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-06 16:53 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27444
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |hjl.tools at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27444] sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
2021-02-20 1:03 [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33 andrei at gherzan dot com
2021-02-20 1:10 ` [Bug libc/27444] " bero at lindev dot ch
2021-03-06 16:53 ` hjl.tools at gmail dot com
@ 2021-03-06 19:12 ` hjl.tools at gmail dot com
2021-03-09 20:05 ` andrei at gherzan dot com
2021-03-15 13:22 ` hjl.tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-06 19:12 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27444
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2.34
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-03-06
URL| |https://sourceware.org/pipe
| |rmail/libc-alpha/2021-March
| |/123429.html
Ever confirmed|0 |1
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
A patch is posted at
https://sourceware.org/pipermail/libc-alpha/2021-March/123429.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27444] sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
2021-02-20 1:03 [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33 andrei at gherzan dot com
` (2 preceding siblings ...)
2021-03-06 19:12 ` hjl.tools at gmail dot com
@ 2021-03-09 20:05 ` andrei at gherzan dot com
2021-03-15 13:22 ` hjl.tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: andrei at gherzan dot com @ 2021-03-09 20:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27444
--- Comment #3 from andrei at gherzan dot com ---
(In reply to H.J. Lu from comment #2)
> A patch is posted at
>
> https://sourceware.org/pipermail/libc-alpha/2021-March/123429.html
Gave it a spin and it works as expected. Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27444] sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33
2021-02-20 1:03 [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33 andrei at gherzan dot com
` (3 preceding siblings ...)
2021-03-09 20:05 ` andrei at gherzan dot com
@ 2021-03-15 13:22 ` hjl.tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2021-03-15 13:22 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27444
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for 2.34 by
commit f53ffc9b90cbd92fa5518686daf4091bdd1d4889
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Mar 6 10:19:32 2021 -0800
x86: Handle _SC_LEVEL1_ICACHE_LINESIZE [BZ #27444]
and 2.33 branch by
commit 64f6c287ad3ccd807b7d4c694f4a91e2a662fed5
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Mar 6 10:19:32 2021 -0800
x86: Handle _SC_LEVEL1_ICACHE_LINESIZE [BZ #27444]
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-15 13:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20 1:03 [Bug libc/27444] New: sysconf reports unsupported option (-1) for _SC_LEVEL1_ICACHE_LINESIZE on X86 since v2.33 andrei at gherzan dot com
2021-02-20 1:10 ` [Bug libc/27444] " bero at lindev dot ch
2021-03-06 16:53 ` hjl.tools at gmail dot com
2021-03-06 19:12 ` hjl.tools at gmail dot com
2021-03-09 20:05 ` andrei at gherzan dot com
2021-03-15 13:22 ` hjl.tools at gmail dot com
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).