]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: check ring being ready before using
authorDing Pixel <pding@amd.com>
Wed, 18 Jan 2017 09:26:38 +0000 (17:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Jan 2017 21:47:01 +0000 (16:47 -0500)
commitf3ca81b58e26e79abda983ae3bc66d03cd5ac75d
tree1eb4020ee24a97f3c59e02d387856feca0278a8c
parentf6c49d34454df58d3d275ab02dc5ea6f704c8947
drm/amdgpu: check ring being ready before using

Return success when the ring is properly initialized, otherwise return
failure.

Tonga SRIOV VF doesn't have UVD and VCE engines, the initialization of
these IPs is bypassed. The system crashes if application submit IB to
their rings which are not ready to use. It could be a common issue if
IP having ring buffer is disabled for some reason on specific ASIC, so
it should check the ring being ready to use.

Bug: amdgpu_test crashes system on Tonga VF.

Signed-off-by: Ding Pixel <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_cs.c