public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [RISCV] [BUG] CPU topology issue on TH1520 on Kernel 5.10.113-th15020
@ 2024-10-09  9:43 Guillem Senabre
  2024-10-09 10:54 ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: Guillem Senabre @ 2024-10-09  9:43 UTC (permalink / raw)
  To: linux-riscv

Dear Linux kernel developers, `sysfs` shows unexpected values when
listing CPU topology for a TH1520 RISC-V CPU.

In particular, the following commands output always -1:

cat /sys/devices/system/cpu/cpu0/topology/{core_id,die_id,physical_package_id}
cat /sys/devices/system/cpu/cpu1/topology/{core_id,die_id,physical_package_id}
cat /sys/devices/system/cpu/cpu2/topology/{core_id,die_id,physical_package_id}
cat /sys/devices/system/cpu/cpu3/topology/{core_id,die_id,physical_package_id}

The expected outputs would be a positive integer, rather than the -1
currently obtained for all.

For more context: We are testing qemu on top of libvirt. This issue is
blocking us since libvirt aborts after calling "virHostCPUGetCore()",
which reads: /sys/devices/system/cpu/cpu0/topology/core_id and obtain
a "-1".

We have resources allocated to debug this issue, but we'd appreciate
guidance on where to focus our efforts.

Hardware:
- Board: Sipeed LicheePi4a
- Processor: TH1520
- Architecture: riscv64

Software:
- OS: Debian GNU/Linux trixie/sid
- Kernel: Linux 5.10.113-th15020
- libvirt: 10.6.0

Thank you for your time and assistance. Please let us know if you need
any additional information to help diagnose this issue.

Best regards,
Guillem

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-09 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-09  9:43 [RISCV] [BUG] CPU topology issue on TH1520 on Kernel 5.10.113-th15020 Guillem Senabre
2024-10-09 10:54 ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox