]> Git Repo - linux.git/commitdiff
drm/amdgpu: drop ras check at asic level for new blocks
authorHawking Zhang <[email protected]>
Sat, 4 Mar 2023 12:22:23 +0000 (20:22 +0800)
committerAlex Deucher <[email protected]>
Wed, 15 Mar 2023 22:45:27 +0000 (18:45 -0400)
amdgpu_ras_register_ras_block should always be invoked
by ras_sw_init, where driver needs to check ras caps
at ip level, instead of asic level.

Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Stanley Yang <[email protected]>
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index b0d050ffc200d473195dbb2679b5e7c0362d80c2..11df6ee052b4f491f0c3f62241c4298e55e52c85 100644 (file)
@@ -3076,9 +3076,6 @@ int amdgpu_ras_register_ras_block(struct amdgpu_device *adev,
        if (!adev || !ras_block_obj)
                return -EINVAL;
 
-       if (!amdgpu_ras_asic_supported(adev))
-               return 0;
-
        ras_node = kzalloc(sizeof(*ras_node), GFP_KERNEL);
        if (!ras_node)
                return -ENOMEM;
This page took 0.074802 seconds and 4 git commands to generate.