]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/amdgpu: clean wptr on wb when gpu recovery
authorYintian Tao <yttao@amd.com>
Fri, 28 Feb 2020 06:24:42 +0000 (14:24 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
commit7eec5cc9a8cd9304c059527e7663062e73d3a458
tree6bb53671fc553e1604e07d9f1f58fa11d5765590
parentbc45e1257fa599485d5edaf01a922b56ab631166
drm/amdgpu: clean wptr on wb when gpu recovery

BugLink: https://bugs.launchpad.net/bugs/1869061
[ Upstream commit 2ab7e274b86739f4ceed5d94b6879f2d07b2802f ]

The TDR will be randomly failed due to compute ring
test failure. If the compute ring wptr & 0x7ff(ring_buf_mask)
is 0x100 then after map mqd the compute ring rptr will be
synced with 0x100. And the ring test packet size is also 0x100.
Then after invocation of amdgpu_ring_commit, the cp will not
really handle the packet on the ring buffer because rptr is equal to wptr.

Signed-off-by: Yintian Tao <yttao@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c