diff options
author | Krystian Pradzynski <krystian.pradzynski@linux.intel.com> | 2023-05-24 09:48:47 +0200 |
---|---|---|
committer | Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> | 2023-07-07 09:33:28 +0200 |
commit | 667f74e35ab13c5918e8247db502aa59d41d3447 (patch) | |
tree | 1620acb94616fb71fcbc89dd427284276eb29df5 | |
parent | f9d918cfd5c5d3171c65bdfc9a59469f44a976d7 (diff) | |
download | linux-stable-667f74e35ab13c5918e8247db502aa59d41d3447.tar.gz linux-stable-667f74e35ab13c5918e8247db502aa59d41d3447.tar.bz2 linux-stable-667f74e35ab13c5918e8247db502aa59d41d3447.zip |
accel/ivpu: Add fw_name file to debugfs
Add information about currently used firmware, makes test
automation of different firmware images easier.
Signed-off-by: Krystian Pradzynski <krystian.pradzynski@linux.intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230524074847.866711-6-stanislaw.gruszka@linux.intel.com
-rw-r--r-- | drivers/accel/ivpu/ivpu_debugfs.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/accel/ivpu/ivpu_debugfs.c b/drivers/accel/ivpu/ivpu_debugfs.c index e2502d2b53c0..5e5996fd4f9f 100644 --- a/drivers/accel/ivpu/ivpu_debugfs.c +++ b/drivers/accel/ivpu/ivpu_debugfs.c @@ -27,6 +27,15 @@ static int bo_list_show(struct seq_file *s, void *v) return 0; } +static int fw_name_show(struct seq_file *s, void *v) +{ + struct drm_info_node *node = (struct drm_info_node *)s->private; + struct ivpu_device *vdev = to_ivpu_device(node->minor->dev); + + seq_printf(s, "%s\n", vdev->fw->name); + return 0; +} + static int fw_trace_capability_show(struct seq_file *s, void *v) { struct drm_info_node *node = (struct drm_info_node *)s->private; @@ -97,6 +106,7 @@ static int reset_pending_show(struct seq_file *s, void *v) static const struct drm_info_list vdev_debugfs_list[] = { {"bo_list", bo_list_show, 0}, + {"fw_name", fw_name_show, 0}, {"fw_trace_capability", fw_trace_capability_show, 0}, {"fw_trace_config", fw_trace_config_show, 0}, {"last_bootmode", last_bootmode_show, 0}, |