drm/amd/ras: enable uniras via IP version check
Subsystems (2)
PATCH 1/1 drm/amd/ras: enable uniras via IP version check
enable uniras via IP version check
Signed-off-by Ce Sun <[email protected]>
Reviewed-by YiPeng Chai <[email protected]>
--- drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c +3 -2
@@ -290,8 +290,9 @@ static int amdgpu_ras_mgr_sw_init(struct amdgpu_ip_block *ip_block)/* Disabled by default */ con->uniras_enabled = false; -/* Enabled only in debug mode */ -if (adev->debug_enable_ras_aca) { +if (amdgpu_ip_version (adev,MP0_HWIP ,0 ) ==IP_VERSION (13 ,0 ,14 )) { + con->uniras_enabled = true; + } else if (adev->debug_enable_ras_aca) { con->uniras_enabled = true;RAS_DEV_INFO (adev,"Debug amdgpu uniras!" ); }
Signature · 1 line
2.34.1