drm/amdgpu: use irq-safe lock for kiq->ring_lock
authorpding <Pixel.Ding@amd.com>
Tue, 7 Nov 2017 06:32:36 +0000 (14:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Nov 2017 22:55:14 +0000 (17:55 -0500)
commitcdd9a8b8599b952e2b39763090689ec2ad8e40c3
tree172c1d0c5ca0cbd0254ccd341950836f465f5b62
parentdce1e131dd4dc68099ff1b70aa03cd2d0acf8639
drm/amdgpu: use irq-safe lock for kiq->ring_lock

This lock is used during register accessing in SRIOV guest.
The register accessing could happen both in irq enabled and
irq disabled cases. Always use irq-safe lock.

Signed-off-by: Pixel Ding <Pixel.Ding@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c