drm/amdgpu: drop volatile from ring buffer
authorChristian König <christian.koenig@amd.com>
Tue, 8 Oct 2024 15:23:22 +0000 (17:23 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Oct 2024 20:32:03 +0000 (16:32 -0400)
commit57e92d991e31ee237774aa9390586fad83630634
treee34e26711f597ddb5f2b2e4160e60fc2aabb729c
parentdac64cb3e029e9ae9ca251798bcb9cdb118d68d5
drm/amdgpu: drop volatile from ring buffer

Volatile only prevents the compiler from re-ordering reads and writes.
Since we always only modify the ring buffer from one CPU thread and have
an explicit barrier before signaling the HW this should have no effect at
all and just prevents compiler optimisations.

While at it drop the local variables as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h