projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d37f379
)
drivers/amd/pm: check the return value of amdgpu_bo_kmap
author
Li Zhong
<floridsleeves@gmail.com>
Sat, 24 Sep 2022 22:19:39 +0000
(15:19 -0700)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 6 Oct 2022 15:57:29 +0000
(11:57 -0400)
amdgpu_bo_kmap() returns error when fails to map buffer object. Add the
error check and propagate the error.
Signed-off-by: Li Zhong <floridsleeves@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
b/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
index 8fd0782a2b206712ae4782efbb7bd157a551546e..f5e08b60f66ef9fa2d84bd2a86d712a839928e36 100644
(file)
--- a/
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
+++ b/
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c
@@
-1384,13
+1384,16
@@
static int kv_dpm_enable(struct amdgpu_device *adev)
static void kv_dpm_disable(struct amdgpu_device *adev)
{
struct kv_power_info *pi = kv_get_pi(adev);
+ int err;
amdgpu_irq_put(adev, &adev->pm.dpm.thermal.irq,
AMDGPU_THERMAL_IRQ_LOW_TO_HIGH);
amdgpu_irq_put(adev, &adev->pm.dpm.thermal.irq,
AMDGPU_THERMAL_IRQ_HIGH_TO_LOW);
- amdgpu_kv_smc_bapm_enable(adev, false);
+ err = amdgpu_kv_smc_bapm_enable(adev, false);
+ if (err)
+ DRM_ERROR("amdgpu_kv_smc_bapm_enable failed\n");
if (adev->asic_type == CHIP_MULLINS)
kv_enable_nb_dpm(adev, false);