drm/amdgpu: add amdgpu_ras.c to support ras (v2)
authorxinhui pan <xinhui.pan@amd.com>
Wed, 31 Oct 2018 06:38:28 +0000 (14:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:50 +0000 (15:36 -0500)
commitc030f2e4166c3f5597c7e7a70bcd9ab383695de4
tree59a0c88ae94e00885d84bb2524981270ecad7006
parentea11421391e718a173f8dae96517e76531043a5c
drm/amdgpu: add amdgpu_ras.c to support ras (v2)

add obj management.
add feature control.
add debugfs infrastructure.
add sysfs infrastructure.
add IH infrastructure.
add recovery infrastructure.

It is a framework. Other IPs need call amdgpu_ras_xxx function instead of
psp_ras_xxx functions.

v2: squash in warning fixes

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h [new file with mode: 0644]