mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 20:42:29 -04:00
drm/amd/ras: enable uniras via IP version check
enable uniras via IP version check Signed-off-by: Ce Sun <cesun102@amd.com> Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -290,13 +290,10 @@ 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) ||
|
||||
adev->debug_enable_ras_aca)
|
||||
con->uniras_enabled = true;
|
||||
RAS_DEV_INFO(adev, "Debug amdgpu uniras!");
|
||||
}
|
||||
|
||||
if (!con->uniras_enabled)
|
||||
else
|
||||
return 0;
|
||||
|
||||
ras_mgr = kzalloc_obj(*ras_mgr);
|
||||
|
||||
Reference in New Issue
Block a user