From: Jiawei Gu Date: Fri, 5 Feb 2021 09:45:18 +0000 (+0800) Subject: drm/amdgpu: extend MAX_KIQ_REG_TRY to 1000 X-Git-Tag: accepted/tizen/unified/20230118.172025~7243^2~19^2~453 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=006cc1a213cf9ff3d1307ff2d5c51e6c8d62a758;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: extend MAX_KIQ_REG_TRY to 1000 Extend retry times of KIQ to avoid starvation situation caused by long time full access of GPU by other VFs. Signed-off-by: Jiawei Gu Reviewed-by: Emily.Deng Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 9717cb4..86452f4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -287,7 +287,7 @@ enum amdgpu_kiq_irq { #define MAX_KIQ_REG_WAIT 5000 /* in usecs, 5ms */ #define MAX_KIQ_REG_BAILOUT_INTERVAL 5 /* in msecs, 5ms */ -#define MAX_KIQ_REG_TRY 80 /* 20 -> 80 */ +#define MAX_KIQ_REG_TRY 1000 int amdgpu_device_ip_set_clockgating_state(void *dev, enum amd_ip_block_type block_type,