drm/amdgpu: Support passing amdgpu critical error to host via GPU Mailbox.
authorGavin Wan <Gavin.Wan@amd.com>
Fri, 23 Jun 2017 17:55:15 +0000 (13:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:05:52 +0000 (11:05 -0400)
commit890419409a3aba2ca7185a824e47d8ded8df11a2
tree0b9575763284a062e87738446a7c77c44095fb98
parent8e1b90cc44181405418071a13ead5892c3879239
drm/amdgpu: Support passing amdgpu critical error to host via GPU Mailbox.

This feature works for SRIOV enviroment. For non-SRIOV enviroment, the
trans_error function does nothing.

The error information includes error_code (16bit), error_flags(16bit)
and error_data(64bit). Since there are not many errors, we keep the
errors in an array and transfer all errors to Host before amdgpu
initialization function (amdgpu_device_init) exit.

Signed-off-by: Gavin Wan <Gavin.Wan@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_vf_error.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.h
drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c
drivers/gpu/drm/amd/amdgpu/mxgpu_vi.h