RFR: 8262491: AArch64: CPU description should contain compatible board list [v2]
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Wed Mar 3 04:36:13 UTC 2021
On Wed, 3 Mar 2021 03:03:21 GMT, Nick Gasson <ngasson at openjdk.org> wrote:
> > What file should we refer to detect SoC on server-class machine? Can we detect SoC in same way? (e.g. sysfs)
> > If we cannot implement it in same way, I want to fix it for device tree at first.
>
> Maybe you could use the files under `/sys/devices/virtual/dmi/id/` like `board_vendor` and `board_name`?
It does not exist on Raspberry Pi OS.
pi at raspberrypi:~/github-forked/jdk $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
pi at raspberrypi:~/github-forked/jdk $ uname -a
Linux raspberrypi 5.10.11-v8+ #1399 SMP PREEMPT Thu Jan 28 12:14:03 GMT 2021 aarch64 GNU/Linux
pi at raspberrypi:~/github-forked/jdk $ ls /sys/devices/virtual/dmi/id/
ls: cannot access '/sys/devices/virtual/dmi/id/': No such file or directory
pi at raspberrypi:~/github-forked/jdk $ ls /sys/devices/virtual/dmi/
ls: cannot access '/sys/devices/virtual/dmi/': No such file or directory
pi at raspberrypi:~/github-forked/jdk $ ls /sys/devices/virtual/
bcm2708_vcio block graphics mem raw rpivid-intcmem thermal vc-mem
bcm2835-gpiomem devlink input misc rpivid-h264mem rpivid-vp9mem tty vtconsole
bdi dma_heap leds net rpivid-hevcmem sound vc workqueue
-------------
PR: https://git.openjdk.java.net/jdk/pull/2759
More information about the hotspot-dev
mailing list