Re: [PATCH v1] drivers/amd/kv_dpm: check the return value of amdgpu_kv_smc_bapm_enable

2022-09-24 Thread Li Zhong
On Thu, Sep 22, 2022 at 8:04 PM Lazar, Lijo wrote: > > > > On 9/23/2022 1:36 AM, Li Zhong wrote: > > Check the return value of amdgpu_kv_smc_bapm_enable() and log the error > > when it fails. > > > > Signed-off-by: Li Zhong > > --- > >

[PATCH v2] drivers/amd/pm: check the return value of amdgpu_bo_kmap

2022-09-24 Thread Li Zhong
amdgpu_bo_kmap() returns error when fails to map buffer object. Add the error check and propagate the error. Signed-off-by: Li Zhong --- v2: revise the compile error drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 5 - drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 5 - 2 files

[PATCH v1] drivers/amd/kv_dpm: check the return value of amdgpu_kv_smc_bapm_enable

2022-09-23 Thread Li Zhong
Check the return value of amdgpu_kv_smc_bapm_enable() and log the error when it fails. Signed-off-by: Li Zhong --- drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c b/drivers/gpu/drm/amd

[PATCH v1] drivers:amdgpu: check the return value of amdgpu_bo_kmap

2022-09-22 Thread Li Zhong
amdgpu_bo_kmap() returns error when fails to map buffer object. Add the error check and propagate the error. Signed-off-by: Li Zhong --- drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay

Re: [PATCH v1] drivers:amdgpu: check the return value of amdgpu_bo_kmap

2022-09-22 Thread Li Zhong
On Wed, Sep 21, 2022 at 7:11 PM Chen, Guchun wrote: > > Perhaps you need to update the prefix of patch subject to 'drm/amd/pm: check > return value ...'. > > With above addressed, it's: Acked-by: Guchun Chen > > Regards, > Guchun > > -Original Message- >

[PATCH v2] drivers/amd/pm: check the return value of amdgpu_bo_kmap

2022-09-22 Thread Li Zhong
amdgpu_bo_kmap() returns error when fails to map buffer object. Add the error check and propagate the error. Signed-off-by: Li Zhong --- drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay

[PATCH v1] drivers:adp8870_bl: check the return value of adp8870_write

2022-09-22 Thread Li Zhong
Check and propagate the return value of adp8870_write() when it fails, which is possible when SMBus writing byte fails. Signed-off-by: Li Zhong --- drivers/video/backlight/adp8870_bl.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/video/backlight/adp8870_bl.c

[PATCH v1] drivers/gpu/drm/i915/gt: Check the return value of i915_active_acquire()

2022-09-19 Thread Li Zhong
i915_active_acquire() could return error when the acquire fails. Check and return the error code. Signed-off-by: Li Zhong --- drivers/gpu/drm/i915/gt/intel_timeline.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_timeline.c b/drivers/gpu