drm/amdgpu: Apply poison mode check to GFX IP only
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 3 Jul 2023 06:38:45 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Aug 2023 21:12:49 +0000 (17:12 -0400)
commit62c4b772bdd91ed1745c4a55b681e94aa9e48071
treef801f1bdd182004fe042b38bf5cd47275189e538
parentf957138cc30ae904346f117013fc7b428700c1f7
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c