drm/amdgpu/soc15: return proper error codes in baco reset
Subsystems (2)
PATCH 1/1 drm/amdgpu/soc15: return proper error codes in baco reset
Rather than just -1.
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +4 -4
@@ -427,7 +427,7 @@ static int soc15_asic_get_baco_capability(struct amdgpu_device *adev, bool *cap)if (!pp_funcs || !pp_funcs->get_asic_baco_capability) { *cap = false; -return -1 ; +return -ENOENT ; }return pp_funcs->get_asic_baco_capability (pp_handle, cap);
@@ -439,15 +439,15 @@ static int soc15_asic_baco_reset(struct amdgpu_device *adev)const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;if (!pp_funcs ||!pp_funcs->get_asic_baco_state ||!pp_funcs->set_asic_baco_state) -return -1 ; +return -ENOENT ;/* enter BACO state */ if (pp_funcs->set_asic_baco_state (pp_handle,1 )) -return -1 ; +return -EIO ;/* exit BACO state */ if (pp_funcs->set_asic_baco_state (pp_handle,0 )) -return -1 ; +return -EIO ;dev_info (adev->dev,"GPU BACO reset\n" );
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20190114195756.29970-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Qu, Jim
Reviewed-by JimQuThanks
JimQu
________________________________________
发件人: amd-gfx <[email protected]> 代表 Alex Deucher <[email protected]> 发送时间: 2019年1月15日 3:57:56
收件人: [email protected]
抄送: Deucher, Alexander
主题: [PATCH] drm/amdgpu/soc15: return proper error codes in baco reset
Rather than just -1.
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +4 -4
@@ -427,7 +427,7 @@ static int soc15_asic_get_baco_capability(struct amdgpu_device *adev, bool *cap)if (!pp_funcs || !pp_funcs->get_asic_baco_capability) { *cap = false; -return -1 ; +return -ENOENT ; }return pp_funcs->get_asic_baco_capability (pp_handle, cap);
@@ -439,15 +439,15 @@ static int soc15_asic_baco_reset(struct amdgpu_device *adev)const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs;if (!pp_funcs ||!pp_funcs->get_asic_baco_state ||!pp_funcs->set_asic_baco_state) -return -1 ; +return -ENOENT ;/* enter BACO state */ if (pp_funcs->set_asic_baco_state (pp_handle,1 )) -return -1 ; +return -EIO ;/* exit BACO state */ if (pp_funcs->set_asic_baco_state (pp_handle,0 )) -return -1 ; +return -EIO ;dev_info (adev->dev,"GPU BACO reset\n" );
--
2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx