summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Coster <matt.coster@imgtec.com>2026-01-13 10:16:41 +0000
committerMatt Coster <matt.coster@imgtec.com>2026-01-19 11:20:21 +0000
commitee184ab0ffb6cdd20527aa3b3729b824f52d3cd7 (patch)
tree639f979b8ee3dd8473bb959c0b7ec49c01c676b1
parentc6978643ea1c74c913f925c08ef9bafbdc031a04 (diff)
drm/imagination: Load FW trace config at init
We have a module parameter to set the initial group mask before debugfs is available for any specific device, but don't currently use that value when initialising devices. Use the module parameter value as the initial value for group_mask. Reviewed-by: Alessio Belle <alessio.belle@imgtec.com> Link: https://patch.msgid.link/20260113-device-support-info-v1-3-91e5db7f7294@imgtec.com Signed-off-by: Matt Coster <matt.coster@imgtec.com>
-rw-r--r--drivers/gpu/drm/imagination/pvr_fw_trace.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imagination/pvr_fw_trace.c b/drivers/gpu/drm/imagination/pvr_fw_trace.c
index a2aa588cbe5f..93119f0f23a9 100644
--- a/drivers/gpu/drm/imagination/pvr_fw_trace.c
+++ b/drivers/gpu/drm/imagination/pvr_fw_trace.c
@@ -130,8 +130,13 @@ int pvr_fw_trace_init(struct pvr_device *pvr_dev)
}
}
- /* TODO: Provide control of group mask. */
- fw_trace->group_mask = 0;
+ /*
+ * Load the initial group_mask from the init_fw_trace_mask module
+ * parameter. This allows early tracing before the user can write to
+ * debugfs. Unlike update_logtype(), we don't set log_type here as that
+ * is initialised by tracebuf_ctrl_init().
+ */
+ fw_trace->group_mask = pvr_fw_trace_init_mask;
fw_trace->tracebuf_ctrl =
pvr_fw_object_create_and_map(pvr_dev,