mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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>
This commit is contained in:
parent
3d0ffc6418
commit
b6890efb59
|
|
@ -2048,7 +2048,7 @@ int amdkfd_fence_wait_timeout(struct device_queue_manager *dqm,
|
|||
{
|
||||
unsigned long end_jiffies = msecs_to_jiffies(timeout_ms) + jiffies;
|
||||
struct device *dev = dqm->dev->adev->dev;
|
||||
volatile uint64_t *fence_addr = dqm->fence_addr;
|
||||
uint64_t *fence_addr = dqm->fence_addr;
|
||||
|
||||
while (*fence_addr != fence_value) {
|
||||
/* Fatal err detected, this response won't come */
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ struct device_queue_manager {
|
|||
uint16_t vmid_pasid[VMID_NUM];
|
||||
uint64_t pipelines_addr;
|
||||
uint64_t fence_gpu_addr;
|
||||
volatile uint64_t *fence_addr;
|
||||
uint64_t *fence_addr;
|
||||
struct kfd_mem_obj *fence_mem;
|
||||
bool active_runlist;
|
||||
int sched_policy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user