aboutsummaryrefslogtreecommitdiffstats
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 12:56:16 -0400
commit34dfca890835ca9f4a59c8a2ff6be8c0513637c7 (patch)
tree4cf6af3638dd2eff792a91d7ddd212fbfe04eb3c
parentdrm/amdgpu: Rely on MCUMC_STATUS for umc v8_10 correctable error counter only (diff)
downloadlinux-dev-34dfca890835ca9f4a59c8a2ff6be8c0513637c7.tar.xz
linux-dev-34dfca890835ca9f4a59c8a2ff6be8c0513637c7.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>
-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 a26c5723c46e..5f0d6983714a 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: