diff options
author | Shashank Sharma <shashank.sharma@amd.com> | 2023-02-27 15:42:28 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-07 14:22:14 -0500 |
commit | c07edf915ece65ce11a765bf4f9f0a1000bb7a33 (patch) | |
tree | e0ea5093272735ebbd1364e2c3b4c185417d8e50 /drivers/gpu/drm/amd/pm/amdgpu_pm.c | |
parent | b059cba51979b3431b75e0c6f18e9f75e427537c (diff) | |
download | linux-c07edf915ece65ce11a765bf4f9f0a1000bb7a33.tar.gz linux-c07edf915ece65ce11a765bf4f9f0a1000bb7a33.tar.bz2 linux-c07edf915ece65ce11a765bf4f9f0a1000bb7a33.zip |
drm/amdgpu: fix return value check in kfd
This patch fixes a return value check in kfd doorbell handling.
This function should return 0(error) only when the ida_simple_get
returns < 0(error), return > 0 is a success case.
Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Fixes: 16f0013157bf ("drm/amdkfd: Allocate doorbells only when needed")
Acked-by: Christian Koenig <chriatian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions