diff options
author | Dani Liberman <dliberman@habana.ai> | 2023-11-13 22:11:13 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-12-19 12:09:43 +0300 |
commit | 47a552863d6c9ea26abe9ad35d2c35e4d6896551 (patch) | |
tree | 94945842fc1f20b6612795fdbd47b0e723d7b3fc /Documentation | |
parent | c9f9d0e3d0db300315d3bde7f122439633e6f007 (diff) | |
download | linux-47a552863d6c9ea26abe9ad35d2c35e4d6896551.tar.xz |
accel/habanalabs: expose module id through sysfs
Module ID exposes the physical location of the device in the server,
from the pov of the devices in regard to how they are connected by
internal fabric.
This information is already exposed in our INFO ioctl, but there are
utilities and scripts running in data-center which are already
accessing sysfs for topology information and it is easier for them
to continue getting that information from sysfs instead of opening
a file descriptor.
Signed-off-by: Dani Liberman <dliberman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/ABI/testing/sysfs-driver-habanalabs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-driver-habanalabs b/Documentation/ABI/testing/sysfs-driver-habanalabs index c63ca1ad500d..89fe3b09d4ad 100644 --- a/Documentation/ABI/testing/sysfs-driver-habanalabs +++ b/Documentation/ABI/testing/sysfs-driver-habanalabs @@ -149,6 +149,12 @@ Contact: ogabbay@kernel.org Description: Displays the current clock frequency, in Hz, of the MME compute engine. This property is valid only for the Goya ASIC family +What: /sys/class/accel/accel<n>/device/module_id +Date: Nov 2023 +KernelVersion: not yet upstreamed +Contact: ogabbay@kernel.org +Description: Displays the device's module id + What: /sys/class/accel/accel<n>/device/pci_addr Date: Jan 2019 KernelVersion: 5.1 |