drm/amd/display: Pass errors from amdgpu_dm_init() up
Subsystems (3)
PATCH 1/1 drm/amd/display: Pass errors from amdgpu_dm_init() up
Errors in amdgpu_dm_init() are silently ignored and dm_hw_init() will succeed. However often these are fatal errors and it would be better to pass them up.
Signed-off-by Mario Limonciello <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -1
@@ -2556,8 +2556,12 @@ static int amdgpu_dm_smu_write_watermarks_table(struct amdgpu_device *adev)static int dm_hw_init (void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; +int r; +/* Create DAL display manager */ -amdgpu_dm_init (adev); + r =amdgpu_dm_init (adev); +if (r) +return r;amdgpu_dm_hpd_init (adev);return 0 ;
Signature · 1 line
2.43.0
Quoted 5 lines · Mario Limonciello
Errors in
amdgpu_dm_init()are silently ignored anddm_hw_init()will succeed. However often these are fatal errors and it would be better to pass them up.Signed-off-by Mario Limonciello <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 22 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5
-1@@ -2556,8 +2556,12 @@ static int amdgpu_dm_smu_write_watermarks_table(struct amdgpu_device *adev)static int dm_hw_init (void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; +int r; +/* Create DAL display manager */ -amdgpu_dm_init (adev); + r =amdgpu_dm_init (adev); +if (r) +return r;amdgpu_dm_hpd_init (adev);return 0 ;