aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorCandice Li <candice.li@amd.com>2022-09-07 15:58:59 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-09-13 14:25:39 -0400
commitdf2c6e0c95ca22db5d6bea7e8169841c95426f8d (patch)
tree3ad8cee42ddae720269dd759c4495e7409625bdc /drivers/gpu/drm
parentdrm/amdgpu: use dirty framebuffer helper (diff)
downloadlinux-dev-df2c6e0c95ca22db5d6bea7e8169841c95426f8d.tar.xz
linux-dev-df2c6e0c95ca22db5d6bea7e8169841c95426f8d.zip
drm/amdgpu: Enable full reset when RAS is supported on gc v11_0_0
Enable full reset for RAS supported configuration on gc v11_0_0. v2: simplify the code. Signed-off-by: Candice Li <candice.li@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 55284b24f113..2e50db3b761e 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -421,6 +421,7 @@ static bool soc21_need_full_reset(struct amdgpu_device *adev)
{
switch (adev->ip_versions[GC_HWIP][0]) {
case IP_VERSION(11, 0, 0):
+ return amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC);
case IP_VERSION(11, 0, 2):
return false;
default: