From: Hawking Zhang Date: Sun, 29 Jan 2023 14:48:15 +0000 (+0800) Subject: drm/amdgpu: Enable persistent edc harvesting in APP APU X-Git-Tag: v6.6.7~2401^2~12^2~428 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8107e4996f4ec3304485c608b5880185840c464c;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: Enable persistent edc harvesting in APP APU Persistent edc harvesting is supported in APP APU Signed-off-by: Hawking Zhang Reviewed-by: Tao Zhou Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c index 8a16a06..5ae8960 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -2624,7 +2624,8 @@ release_con: int amdgpu_persistent_edc_harvesting_supported(struct amdgpu_device *adev) { - if (adev->gmc.xgmi.connected_to_cpu) + if (adev->gmc.xgmi.connected_to_cpu || + adev->gmc.is_app_apu) return 1; return 0; }