drm/imagination: Access FW initialised state with READ/WRITE_ONCE
authorBrajesh Gupta <brajesh.gupta@imgtec.com>
Tue, 19 May 2026 08:25:29 +0000 (13:55 +0530)
committerMatt Coster <matt.coster@imgtec.com>
Tue, 19 May 2026 11:40:15 +0000 (12:40 +0100)
commitfe49308cb80d24972595a6b87c516a322d22c92c
tree3fe22f97e3902155aa4ff504c0df35032e494ccd
parent42577ba79fbfbc6c2f246d523cb22a66329d4826
drm/imagination: Access FW initialised state with READ/WRITE_ONCE

Update FW initialised state shared resource access with READ/WRITE_ONCE
to prevent following:
- Non-atomic access to variable in multi-thread/CPU case.
- Merge successive loads from the same variable.

Signed-off-by: Brajesh Gupta <brajesh.gupta@imgtec.com>
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
Link: https://patch.msgid.link/20260519-b4-context_reset-v2-4-931018a7131d@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
drivers/gpu/drm/imagination/pvr_device.c
drivers/gpu/drm/imagination/pvr_fw.c
drivers/gpu/drm/imagination/pvr_mmu.c
drivers/gpu/drm/imagination/pvr_power.c