From 9fc1ec9a1adda2a333a4eca120a0f56199ea80de Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 11 Mar 2021 11:02:51 -0500 Subject: [PATCH] drm/amdgpu: disable gfxoff for ROCm workloads on Raven1 Causes hangs. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c index fa27262b5c2a..894215ce346a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c @@ -642,7 +642,9 @@ void amdgpu_amdkfd_set_compute_idle(struct kgd_dev *kgd, bool idle) /* Temp workaround to fix the soft hang observed in certain compute * applications if GFXOFF is enabled. */ - if (adev->asic_type == CHIP_SIENNA_CICHLID) { + if ((adev->asic_type == CHIP_SIENNA_CICHLID) || + ((adev->asic_type == CHIP_RAVEN) && + (adev->apu_flags &AMD_APU_IS_RAVEN))) { pr_debug("GFXOFF is %s\n", idle ? "enabled" : "disabled"); amdgpu_gfx_off_ctrl(adev, idle); } -- 2.29.2