drm/amdgpu: Fix KFD-related kernel oops on Hawaii
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 5 Sep 2019 23:22:02 +0000 (19:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2019 16:21:16 +0000 (18:21 +0200)
commite0af3b19ad77b4a2c53ef05c1c11e2f58462d59c
treefbb630943f8b5a411aa24698129ed0c4ae618bd7
parentf7ace7f25214e80b06cead8fcabfb12a6176035c
drm/amdgpu: Fix KFD-related kernel oops on Hawaii

[ Upstream commit dcafbd50f2e4d5cc964aae409fb5691b743fba23 ]

Hawaii needs to flush caches explicitly, submitting an IB in a user
VMID from kernel mode. There is no s_fence in this case.

Fixes: eb3961a57424 ("drm/amdgpu: remove fence context from the job")
Signed-off-by: Felix Kuehling <Felix.Kuehling@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 <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c