drm/amdgpu: check GFX RAS capability before reset counters
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 9 Mar 2020 08:34:37 +0000 (16:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Mar 2020 15:52:33 +0000 (11:52 -0400)
commit06dcd7eb83ee65382305ce48686e3dadaad42088
tree69474889036f11cb277d6465ec6c481ee80a9e4c
parentc2c6f816a8155e8f33a280b392777a0a8b913ac4
drm/amdgpu: check GFX RAS capability before reset counters

disallow the logical to be enabled on platforms that
don't support gfx ras at this stage, like sriov skus,
dgpu with legacy ras.etc

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4.c