Commit 667f74e3 authored by Krystian Pradzynski's avatar Krystian Pradzynski Committed by Stanislaw Gruszka

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: default avatarKrystian Pradzynski <krystian.pradzynski@linux.intel.com>
Reviewed-by: default avatarStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: default avatarStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230524074847.866711-6-stanislaw.gruszka@linux.intel.com
parent f9d918cf
...@@ -27,6 +27,15 @@ static int bo_list_show(struct seq_file *s, void *v) ...@@ -27,6 +27,15 @@ static int bo_list_show(struct seq_file *s, void *v)
return 0; 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) static int fw_trace_capability_show(struct seq_file *s, void *v)
{ {
struct drm_info_node *node = (struct drm_info_node *)s->private; 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) ...@@ -97,6 +106,7 @@ static int reset_pending_show(struct seq_file *s, void *v)
static const struct drm_info_list vdev_debugfs_list[] = { static const struct drm_info_list vdev_debugfs_list[] = {
{"bo_list", bo_list_show, 0}, {"bo_list", bo_list_show, 0},
{"fw_name", fw_name_show, 0},
{"fw_trace_capability", fw_trace_capability_show, 0}, {"fw_trace_capability", fw_trace_capability_show, 0},
{"fw_trace_config", fw_trace_config_show, 0}, {"fw_trace_config", fw_trace_config_show, 0},
{"last_bootmode", last_bootmode_show, 0}, {"last_bootmode", last_bootmode_show, 0},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment