mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02: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:
parent
2444eb0ec8
commit
8d45d88e0b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user