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/amdgpu: Remove volatile from amdgpu and amdgpu_ih headers

Remove the unnecessary use of volatile in some of the amdgpu.h and
amdgpu_ih.h headers.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Rodrigo Siqueira <siqueira@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Rodrigo Siqueira and committed by
Alex Deucher
89702530 f307cfb9

+4 -4
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 721 721 /* VRAM scratch page for HDP bug, default vram page */ 722 722 struct amdgpu_mem_scratch { 723 723 struct amdgpu_bo *robj; 724 - volatile uint32_t *ptr; 724 + uint32_t *ptr; 725 725 u64 gpu_addr; 726 726 }; 727 727
+3 -3
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h
··· 56 56 bool use_bus_addr; 57 57 58 58 struct amdgpu_bo *ring_obj; 59 - volatile uint32_t *ring; 59 + uint32_t *ring; 60 60 uint64_t gpu_addr; 61 61 62 62 uint64_t wptr_addr; 63 - volatile uint32_t *wptr_cpu; 63 + uint32_t *wptr_cpu; 64 64 65 65 uint64_t rptr_addr; 66 - volatile uint32_t *rptr_cpu; 66 + uint32_t *rptr_cpu; 67 67 68 68 bool enabled; 69 69 unsigned rptr;