]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 19 Jul 2017 07:59:01 +0000 (09:59 +0200)
commit58323096bda6bee70b6805959d4949724b7329af
tree3129e8e8d79878b50c8e9b6c7b80634e914d941b
parentbcf13cbc8787f5d3c3f0145a2d04c0a584aed24b
drm/amdgpu: check ring being ready before using

BugLink: http://bugs.launchpad.net/bugs/1702863
[ Upstream commit c5f21c9f878b8dcd54d0b9739c025ca73cb4c091 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c