drm/amdgpu: Apply poison mode check to GFX IP only
For GFX IP that only supports poison consumption, GFX RAS won't be marked as enabled. i.e., hardware doesn't support gfx sram ecc. But driver still needs to issue firmware to enable poison consumption mode for GFX IP. In such case, check poison mode and treat GFX IP as RAS capable IP block. Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f957138cc3
commit
62c4b772bd
@ -3153,6 +3153,7 @@ int amdgpu_ras_is_supported(struct amdgpu_device *adev,
|
||||
* that the ras block supports ras function.
|
||||
*/
|
||||
if (!ret &&
|
||||
block == AMDGPU_RAS_BLOCK__GFX &&
|
||||
amdgpu_ras_is_poison_mode_supported(adev) &&
|
||||
amdgpu_ras_get_ras_block(adev, block, 0))
|
||||
ret = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user