[PATCH] drm/amdgpu: disable ras ta if module param amdgpu_ras_enable = 0
Wang, Yang(Kevin)
KevinYang.Wang at amd.com
Wed Mar 12 04:13:36 UTC 2025
[AMD Official Use Only - AMD Internal Distribution Only]
It is ok, thank you for your explanation.
Best Regards,
Kevin
-----Original Message-----
From: Zhang, Hawking <Hawking.Zhang at amd.com>
Sent: Wednesday, March 12, 2025 11:58
To: Wang, Yang(Kevin) <KevinYang.Wang at amd.com>; amd-gfx at lists.freedesktop.org
Cc: Zhou1, Tao <Tao.Zhou1 at amd.com>
Subject: RE: [PATCH] drm/amdgpu: disable ras ta if module param amdgpu_ras_enable = 0
[AMD Official Use Only - AMD Internal Distribution Only]
Let's not do that. Ras ta should still be functioning to forward disable feature command even software ras is disabled by ras_enable.
Regards,
Hawking
-----Original Message-----
From: Wang, Yang(Kevin) <KevinYang.Wang at amd.com>
Sent: Wednesday, March 12, 2025 09:50
To: amd-gfx at lists.freedesktop.org
Cc: Zhang, Hawking <Hawking.Zhang at amd.com>; Zhou1, Tao <Tao.Zhou1 at amd.com>
Subject: [PATCH] drm/amdgpu: disable ras ta if module param amdgpu_ras_enable = 0
remove unnecessary ra ta laods if the module parameter is specified.
Signed-off-by: Yang Wang <kevinyang.wang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 79dad75bd0e7..f4309e79b85c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -1752,7 +1752,7 @@ int psp_ras_terminate(struct psp_context *psp)
/*
* TODO: bypass the terminate in sriov for now
*/
- if (amdgpu_sriov_vf(psp->adev))
+ if (amdgpu_sriov_vf(psp->adev) || !amdgpu_ras_enable)
return 0;
if (!psp->ras_context.context.initialized)
@@ -1777,7 +1777,7 @@ int psp_ras_initialize(struct psp_context *psp)
/*
* TODO: bypass the initialize in sriov for now
*/
- if (amdgpu_sriov_vf(adev))
+ if (amdgpu_sriov_vf(adev) || !amdgpu_ras_enable)
return 0;
if (!adev->psp.ras_context.context.bin_desc.size_bytes ||
--
2.34.1
More information about the amd-gfx
mailing list