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: Switch reset_reason fields from enum to u32

Update the reset_reason fwif structure fields from enum to u32 to remove
any ambiguity from the interface (enum is not a fixed size thus is unfit
for the purpose of the data type).

Fixes: a26f067feac1f ("drm/imagination: Add FWIF headers")
Signed-off-by: Alexandru Dadu <alexandru.dadu@imgtec.com>
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
Link: https://patch.msgid.link/20260323-b4-firmware-context-reset-notification-handling-v3-2-1a66049a9a65@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>

authored by

Alexandru Dadu and committed by
Matt Coster
d2f83a6c da173557

+11 -3
+6 -2
drivers/gpu/drm/imagination/pvr_rogue_fwif.h
··· 1347 1347 struct rogue_fwif_fwccb_cmd_context_reset_data { 1348 1348 /* Context affected by the reset */ 1349 1349 u32 server_common_context_id; 1350 - /* Reason for reset */ 1351 - enum rogue_context_reset_reason reset_reason; 1350 + /* 1351 + * Reason for reset 1352 + * The valid values for reset_reason are the ones from 1353 + * enum rogue_context_reset_reason 1354 + */ 1355 + u32 reset_reason; 1352 1356 /* Data Master affected by the reset */ 1353 1357 u32 dm; 1354 1358 /* Job ref running at the time of reset */
+5 -1
drivers/gpu/drm/imagination/pvr_rogue_fwif_shared.h
··· 261 261 }; 262 262 263 263 struct rogue_context_reset_reason_data { 264 - enum rogue_context_reset_reason reset_reason; 264 + /* 265 + * The valid values for reset_reason are the ones from 266 + * enum rogue_context_reset_reason 267 + */ 268 + u32 reset_reason; 265 269 u32 reset_ext_job_ref; 266 270 }; 267 271