diff options
| author | Luben Tuikov <[email protected]> | 2021-05-19 01:07:17 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-05-27 16:22:54 +0000 |
| commit | a46751fbcde505e6aff8622e17995092c8d86ae4 (patch) | |
| tree | b652fc0e941f3e517dc5a24eb0666575cd741679 /drivers/gpu/drm/amd/display/modules/power/power_helpers.h | |
| parent | drm/amdgpu: Don't query CE and UE errors (diff) | |
| download | kernel-a46751fbcde505e6aff8622e17995092c8d86ae4.tar.gz kernel-a46751fbcde505e6aff8622e17995092c8d86ae4.zip | |
drm/amdgpu: Fix RAS function interface
The correctable and uncorrectable errors
are calculated at each invocation of this
function. Therefore, it is highly inefficient to
return just one of them based on a Boolean
input. If the caller wants both, twice the work
would be done. (And this work is O(n^3) on
Vega20.)
Fix this "interface" to simply return what it had
calculated--both values. Let the caller choose
what it wants to record, inspect, use.
Cc: Alexander Deucher <[email protected]>
Cc: John Clements <[email protected]>
Cc: Hawking Zhang <[email protected]>
Signed-off-by: Luben Tuikov <[email protected]>
Reviewed-by: Alexander Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/power/power_helpers.h')
0 files changed, 0 insertions, 0 deletions
