[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@xxxxxxx> Sent: Wednesday, March 12, 2025 09:50 To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx Cc: Zhang, Hawking <Hawking.Zhang@xxxxxxx>; Zhou1, Tao <Tao.Zhou1@xxxxxxx> 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@xxxxxxx> --- 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