diff options
| author | Tomer Tayar <[email protected]> | 2023-05-03 10:19:17 +0000 |
|---|---|---|
| committer | Oded Gabbay <[email protected]> | 2023-12-19 09:09:44 +0000 |
| commit | aa5cea38ce687021bf97f9f4cdb18b26db290964 (patch) | |
| tree | bd6b3f93d6b747716a910c50e0c2bdca71d624e9 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | accel/habanalabs: update debugfs-driver-habanalabs with the device-name direc... (diff) | |
| download | kernel-aa5cea38ce687021bf97f9f4cdb18b26db290964.tar.gz kernel-aa5cea38ce687021bf97f9f4cdb18b26db290964.zip | |
accel/habanalabs: add parent_device sysfs attribute
The device debugfs directory was modified to be named as the
device-name.
This name is the parent device name, i.e. either the PCI address in case
of an ASIC, or the simulator device name in case of a simulator.
This change makes it more difficult for a user to access the debugfs
directory for a specific accel device, because he can't just use the
accel minor id, but he needs to do more device-dependent operations to
get the device name.
To make it easier to get this name, add a 'parent_device' sysfs
attribute that the user can read using the minor id before accessing
debugfs.
Signed-off-by: Tomer Tayar <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
