Comment 6 for bug 2019203

Revision history for this message
Seth Arnold (seth-arnold) wrote :

There's some special casing in that routine for s390x to read the config from /sys; at least my rpi 3b+ has the same file with reasonable looking data:

ubuntu@ubuntu:~ 4s $ cat /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size
64
ubuntu@ubuntu:~ $ uname -a
Linux ubuntu 5.15.0-1024-raspi #26-Ubuntu SMP PREEMPT Wed Jan 18 15:29:53 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu:~ $ cat /proc/cpuinfo
processor : 0
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
...

Perhaps the #if defined(__s390x__) should grow an || defined(__aarch64__) or similar?