summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_memory.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2020-05-19 16:54:55 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-05-21 18:00:00 -0400
commitd08d692ebbc0fccb96506b80b5063b9309f219a7 (patch)
tree9b799c5c0fdccee3b62ae5d8de5a57e96e5daba0 /drivers/gpu/drm/drm_memory.c
parentf7646585a30ed8ef5ab300d4dc3b0c1d6afbe71d (diff)
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: Yong Zhao <Yong.Zhao@amd.com> Reviewed-By: Kent Russell <kent.russell@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_memory.c')
0 files changed, 0 insertions, 0 deletions