Commit ed17c71b authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu:change kiq lock name

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a90ad3c2
...@@ -97,7 +97,7 @@ void amdgpu_virt_init_setting(struct amdgpu_device *adev) ...@@ -97,7 +97,7 @@ void amdgpu_virt_init_setting(struct amdgpu_device *adev)
adev->mode_info.num_crtc = 1; adev->mode_info.num_crtc = 1;
adev->enable_virtual_display = true; adev->enable_virtual_display = true;
mutex_init(&adev->virt.lock); mutex_init(&adev->virt.lock_kiq);
} }
uint32_t amdgpu_virt_kiq_rreg(struct amdgpu_device *adev, uint32_t reg) uint32_t amdgpu_virt_kiq_rreg(struct amdgpu_device *adev, uint32_t reg)
...@@ -110,14 +110,14 @@ uint32_t amdgpu_virt_kiq_rreg(struct amdgpu_device *adev, uint32_t reg) ...@@ -110,14 +110,14 @@ uint32_t amdgpu_virt_kiq_rreg(struct amdgpu_device *adev, uint32_t reg)
BUG_ON(!ring->funcs->emit_rreg); BUG_ON(!ring->funcs->emit_rreg);
mutex_lock(&adev->virt.lock); mutex_lock(&adev->virt.lock_kiq);
amdgpu_ring_alloc(ring, 32); amdgpu_ring_alloc(ring, 32);
amdgpu_ring_emit_hdp_flush(ring); amdgpu_ring_emit_hdp_flush(ring);
amdgpu_ring_emit_rreg(ring, reg); amdgpu_ring_emit_rreg(ring, reg);
amdgpu_ring_emit_hdp_invalidate(ring); amdgpu_ring_emit_hdp_invalidate(ring);
amdgpu_fence_emit(ring, &f); amdgpu_fence_emit(ring, &f);
amdgpu_ring_commit(ring); amdgpu_ring_commit(ring);
mutex_unlock(&adev->virt.lock); mutex_unlock(&adev->virt.lock_kiq);
r = dma_fence_wait(f, false); r = dma_fence_wait(f, false);
if (r) if (r)
...@@ -138,14 +138,14 @@ void amdgpu_virt_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v) ...@@ -138,14 +138,14 @@ void amdgpu_virt_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v)
BUG_ON(!ring->funcs->emit_wreg); BUG_ON(!ring->funcs->emit_wreg);
mutex_lock(&adev->virt.lock); mutex_lock(&adev->virt.lock_kiq);
amdgpu_ring_alloc(ring, 32); amdgpu_ring_alloc(ring, 32);
amdgpu_ring_emit_hdp_flush(ring); amdgpu_ring_emit_hdp_flush(ring);
amdgpu_ring_emit_wreg(ring, reg, v); amdgpu_ring_emit_wreg(ring, reg, v);
amdgpu_ring_emit_hdp_invalidate(ring); amdgpu_ring_emit_hdp_invalidate(ring);
amdgpu_fence_emit(ring, &f); amdgpu_fence_emit(ring, &f);
amdgpu_ring_commit(ring); amdgpu_ring_commit(ring);
mutex_unlock(&adev->virt.lock); mutex_unlock(&adev->virt.lock_kiq);
r = dma_fence_wait(f, false); r = dma_fence_wait(f, false);
if (r) if (r)
......
...@@ -46,7 +46,7 @@ struct amdgpu_virt { ...@@ -46,7 +46,7 @@ struct amdgpu_virt {
uint64_t csa_vmid0_addr; uint64_t csa_vmid0_addr;
bool chained_ib_support; bool chained_ib_support;
uint32_t reg_val_offs; uint32_t reg_val_offs;
struct mutex lock; struct mutex lock_kiq;
struct amdgpu_irq_src ack_irq; struct amdgpu_irq_src ack_irq;
struct amdgpu_irq_src rcv_irq; struct amdgpu_irq_src rcv_irq;
struct delayed_work flr_work; struct delayed_work flr_work;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment