Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdkfd: remove extra use of volatile

as the adding of mb() should be sufficient in function unmap_queues_cpsch,
remove the add of volatile type as recommended

Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Victor Zhao and committed by
Alex Deucher
b6890efb 3d0ffc64

+2 -2
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
··· 2048 2048 { 2049 2049 unsigned long end_jiffies = msecs_to_jiffies(timeout_ms) + jiffies; 2050 2050 struct device *dev = dqm->dev->adev->dev; 2051 - volatile uint64_t *fence_addr = dqm->fence_addr; 2051 + uint64_t *fence_addr = dqm->fence_addr; 2052 2052 2053 2053 while (*fence_addr != fence_value) { 2054 2054 /* Fatal err detected, this response won't come */
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h
··· 260 260 uint16_t vmid_pasid[VMID_NUM]; 261 261 uint64_t pipelines_addr; 262 262 uint64_t fence_gpu_addr; 263 - volatile uint64_t *fence_addr; 263 + uint64_t *fence_addr; 264 264 struct kfd_mem_obj *fence_mem; 265 265 bool active_runlist; 266 266 int sched_policy;