diff options
| author | Alex Deucher <[email protected]> | 2017-09-28 13:47:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-09-28 20:03:20 +0000 |
| commit | e23b74aab5dc48d3e508a2bc171ccd152fb03803 (patch) | |
| tree | b715c0cff8755ec4f0b51bc696080e982e881bb7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h | |
| parent | drm/amdgpu: clarify license in amdgpu_trace_points.c (diff) | |
| download | kernel-e23b74aab5dc48d3e508a2bc171ccd152fb03803.tar.gz kernel-e23b74aab5dc48d3e508a2bc171ccd152fb03803.zip | |
drm/amdgpu: fix vf error handling
The error handling for virtual functions assumed a single
vf per VM and didn't properly account for bare metal. Make
the error arrays per device and add locking.
Reviewed-by: Gavin Wan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h index 2a3278ec76ba..6436bd053325 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h @@ -56,7 +56,10 @@ enum AMDGIM_ERROR_CATEGORY { AMDGIM_ERROR_CATEGORY_MAX }; -void amdgpu_vf_error_put(uint16_t sub_error_code, uint16_t error_flags, uint64_t error_data); +void amdgpu_vf_error_put(struct amdgpu_device *adev, + uint16_t sub_error_code, + uint16_t error_flags, + uint64_t error_data); void amdgpu_vf_error_trans_all (struct amdgpu_device *adev); #endif /* __VF_ERROR_H__ */ |
