]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/amdgpu: disable GFX ring and disable PQ wptr in hw_fini
authorMonk Liu <Monk.Liu@amd.com>
Mon, 29 Jan 2018 11:24:32 +0000 (19:24 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit535e87864bef20e44d7711988b909d59462a82dd
tree438d4168b615a24581216c2483be48842545bc78
parent118422793ec57e2c2bcb7d20bc96d9ee7a0d8389
drm/amdgpu: disable GFX ring and disable PQ wptr in hw_fini

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 9f0178fb67699992d38601cb923b434f9986dd68 ]

otherwise there will be DMAR reading error comes out from CP since
GFX is still alive and CPC's WPTR_POLL is still enabled, which would
lead to DMAR read error.

fix:
we can hault CPG after hw_fini, but cannot halt CPC becaues KIQ
stil need to be alive to let RLCV invoke, but its WPTR_POLL could
be disabled.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c