drm/amdgpu: Fix ineffective ras_mask settings
Subsystems (2)
PATCH 1/1 drm/amdgpu: Fix ineffective ras_mask settings
For the special asic with mem ecc enabled but sram ecc not enabled, even if the ras block is not supported on .ras_enabled, if the asic supports poison mode and the ras block has ras configuration, it can be considered that the ras block supports ras function only with sram ecc is not enabled, otherwise the modprobe argument ras feature mask is ineffective.
Signed-off-by Stanley.Yang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
@@ -3405,7 +3405,8 @@ int amdgpu_ras_is_supported(struct amdgpu_device *adev, block ==AMDGPU_RAS_BLOCK__VCN || block == AMDGPU_RAS_BLOCK__JPEG) &&amdgpu_ras_is_poison_mode_supported (adev) && - amdgpu_ras_get_ras_block(adev, block, 0)) +amdgpu_ras_get_ras_block (adev, block,0 ) && + !amdgpu_atomfirmware_sram_ecc_supported(adev)) ret = 1;return ret;
Signature · 1 line
2.25.1