drm/amdgpu: support gfx ras error injection and err_cnt query
authorDennis Li <Dennis.Li@amd.com>
Wed, 31 Jul 2019 12:45:50 +0000 (20:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jul 2019 19:51:14 +0000 (14:51 -0500)
commit83b0582c90576dd838bfbec84579f7e674cf59b2
treec6accef7ee6c40fd32ad8d0340012df901928175
parent2c960ea02f5863c910f9c839e8564ea01d868547
drm/amdgpu: support gfx ras error injection and err_cnt query

check gfx error count in both ras querry function and
ras interrupt handler.

gfx ras is still disabled by default due to known stability
issue found in gpu reset.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c