diff options
| author | Shaoyun Liu <[email protected]> | 2017-04-28 21:18:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-05-24 21:40:12 +0000 |
| commit | cdf6adb28f79e728389b2e1a5e524504ce710eb6 (patch) | |
| tree | d484f159d7673b510fed348365593680f3311cd4 /drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |
| parent | drm/amdgpu: bump module verion for reserved vmid (diff) | |
| download | kernel-cdf6adb28f79e728389b2e1a5e524504ce710eb6.tar.gz kernel-cdf6adb28f79e728389b2e1a5e524504ce710eb6.zip | |
drm/amdgpu: Move kiq ring lock out of virt structure
The usage of kiq should not depend on the virtualization.
Signed-off-by: Shaoyun Liu <[email protected]>
Reviewed-by:Andres Rodriquez <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index b92d5f1657c5..700188a65ae4 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -1385,6 +1385,8 @@ static int gfx_v8_0_kiq_init_ring(struct amdgpu_device *adev, struct amdgpu_kiq *kiq = &adev->gfx.kiq; int r = 0; + mutex_init(&kiq->ring_mutex); + r = amdgpu_wb_get(adev, &adev->virt.reg_val_offs); if (r) return r; |
