diff options
author | Tal Risin <trisin@habana.ai> | 2024-02-26 10:56:35 +0100 |
---|---|---|
committer | Ofir Bitton <obitton@habana.ai> | 2024-06-23 08:46:07 +0200 |
commit | 26250af92fb8bae06d9d7c0e7275e018232b47fd (patch) | |
tree | 4a5a8a4d5cc81140204ae5031781d10f2906db28 /drivers/accel | |
parent | accel/habanalabs: use parent device for trace events (diff) | |
download | linux-26250af92fb8bae06d9d7c0e7275e018232b47fd.tar.xz linux-26250af92fb8bae06d9d7c0e7275e018232b47fd.zip |
accel/habanalabs: expose server type in debugfs
Exposing server type through debugfs to enable easier access via
scripts.
Signed-off-by: Tal Risin <trisin@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Diffstat (limited to 'drivers/accel')
-rw-r--r-- | drivers/accel/habanalabs/common/debugfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/accel/habanalabs/common/debugfs.c b/drivers/accel/habanalabs/common/debugfs.c index de3ae2e47ec4..ca7677293a55 100644 --- a/drivers/accel/habanalabs/common/debugfs.c +++ b/drivers/accel/habanalabs/common/debugfs.c @@ -1717,6 +1717,11 @@ static void add_files_to_device(struct hl_device *hdev, struct hl_dbg_device_ent root, &hdev->device_release_watchdog_timeout_sec); + debugfs_create_u16("server_type", + 0444, + root, + &hdev->asic_prop.server_type); + for (i = 0, entry = dev_entry->entry_arr ; i < count ; i++, entry++) { debugfs_create_file(hl_debugfs_list[i].name, 0644, |