Tomer Tayar aa5cea38ce 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 <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-12-19 11:09:44 +02:00
..
2023-12-02 06:27:20 +09:00
2023-11-02 14:05:18 -10:00
2023-12-09 12:44:10 -08:00
2023-11-01 14:46:51 -10:00
2023-12-06 10:08:41 +01:00
2023-11-01 14:46:51 -10:00
2023-11-03 18:56:51 -10:00
2023-12-12 13:06:29 +09:00
2023-10-30 19:09:55 -10:00
2023-12-03 09:03:07 +09:00
2023-12-08 08:58:39 -08:00
2023-12-13 15:55:55 +10:00
2023-10-31 18:32:51 -10:00
2023-11-03 15:44:25 -10:00
2023-11-04 16:25:36 -10:00
2023-11-09 14:18:42 -08:00
2023-12-05 06:54:52 +09:00
2023-10-30 19:09:55 -10:00
2023-11-03 10:07:39 -10:00
2023-11-05 18:45:32 -08:00
2023-12-08 12:36:45 -08:00
2023-12-12 13:06:29 +09:00
2023-11-09 13:37:28 -08:00
2023-11-02 14:40:51 -10:00
2023-11-10 09:19:46 -08:00
2023-12-07 12:22:36 -08:00
2023-11-04 16:20:36 -10:00
2023-11-10 12:22:14 -08:00
2023-11-03 16:00:42 -10:00
2023-10-30 13:14:27 +00:00
2023-11-05 18:49:40 -08:00
2023-11-23 17:40:15 -08:00
2023-10-25 16:50:11 +02:00
2023-11-03 19:10:41 -10:00
2023-11-10 11:44:38 -08:00
2023-10-19 10:26:26 +03:00
2023-11-02 15:13:50 -10:00
2023-12-12 11:32:33 +10:00
2023-12-01 09:55:01 -05:00
2023-11-04 15:58:13 -10:00
2023-11-10 09:19:46 -08:00
2023-11-10 09:19:46 -08:00
2023-11-10 09:19:46 -08:00