Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+7 -2
+7 -2
drivers/gpu/drm/imagination/pvr_fw_trace.c
··· 130 130 } 131 131 } 132 132 133 - /* TODO: Provide control of group mask. */ 134 - fw_trace->group_mask = 0; 133 + /* 134 + * Load the initial group_mask from the init_fw_trace_mask module 135 + * parameter. This allows early tracing before the user can write to 136 + * debugfs. Unlike update_logtype(), we don't set log_type here as that 137 + * is initialised by tracebuf_ctrl_init(). 138 + */ 139 + fw_trace->group_mask = pvr_fw_trace_init_mask; 135 140 136 141 fw_trace->tracebuf_ctrl = 137 142 pvr_fw_object_create_and_map(pvr_dev,