diff options
| author | Shaoyun Liu <Shaoyun.Liu@amd.com> | 2017-04-28 17:18:26 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 17:40:12 -0400 |
| commit | cdf6adb28f79e728389b2e1a5e524504ce710eb6 (patch) | |
| tree | d484f159d7673b510fed348365593680f3311cd4 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |
| parent | b98b8dbc39d59a06b2104cfafed71ce465573e8e (diff) | |
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 <Shaoyun.Liu@amd.com>
Reviewed-by:Andres Rodriquez <andresx7@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 978841792001..14f88672de84 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
| @@ -614,6 +614,8 @@ static int gfx_v9_0_kiq_init_ring(struct amdgpu_device *adev, | |||
| 614 | struct amdgpu_kiq *kiq = &adev->gfx.kiq; | 614 | struct amdgpu_kiq *kiq = &adev->gfx.kiq; |
| 615 | int r = 0; | 615 | int r = 0; |
| 616 | 616 | ||
| 617 | mutex_init(&kiq->ring_mutex); | ||
| 618 | |||
| 617 | r = amdgpu_wb_get(adev, &adev->virt.reg_val_offs); | 619 | r = amdgpu_wb_get(adev, &adev->virt.reg_val_offs); |
| 618 | if (r) | 620 | if (r) |
| 619 | return r; | 621 | return r; |
