aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-08-04 05:46:41 +0000
committerAlex Deucher <[email protected]>2023-08-30 19:51:17 +0000
commitbf227a4f0558320513b86c279996021480f9e750 (patch)
treedaf32c9e6e4e6143165ea41b1263c096d31b1b0d /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/amdgpu: remove unused parameter in amdgpu_vmid_grab_idle (diff)
downloadkernel-bf227a4f0558320513b86c279996021480f9e750.tar.gz
kernel-bf227a4f0558320513b86c279996021480f9e750.zip
drm/amdgpu: Use READ_ONCE() when reading the values in 'sdma_v4_4_2_ring_get_rptr'
Use READ_ONCE() instead of declaring the pointer volatile. To prevent the compiler from refetching or reordering the read, so that the read value is always consistent. Link: https://lwn.net/Articles/624126/ Cc: Felix Kuehling <[email protected]> Cc: Guchun Chen <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Cc: "Pan, Xinhui" <[email protected]> Cc: Le Ma <[email protected]> Cc: Hawking Zhang <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions