Skip to content
Commit d08d692e authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: improve error handling in pcie_bw



1. Initialize the counters to 0 in case the callback
   fails to initialize them.
2. The counters don't exist on APUs so return an error
   for them.
3. Return an error if the callback doesn't exist.

Reviewed-by: default avatarYong Zhao <Yong.Zhao@amd.com>
Reviewed-By: default avatarKent Russell <kent.russell@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f7646585
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment