drm/amd/display: add proper error message for vblank init
Subsystems (3)
PATCH v2 1/1 drm/amd/display: add proper error message for vblank init
v1 - DRM_ERROR to dev_err (Mario)
Update message to identifiy the vblank initialization fail case
Signed-off-by Saleemkhan Jamadar <[email protected]>
Reviewed-by Rodrigo Siqueira <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -2
@@ -2217,8 +2217,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)adev_to_drm (adev)->mode_config.cursor_height = adev->dm.dc->caps.max_cursor_size;if (drm_vblank_init (adev_to_drm (adev), adev->dm.display_indexes_num)) { -DRM_ERROR ( -"amdgpu: failed to initialize sw for display support.\n" ); +dev_err (adev->dev, +"amdgpu: failed to initialize vblank sw for display support.\n" ); goto error; }
Signature · 1 line
2.34.1
Quoted 15 lines · Saleemkhan Jamadar
v1 -
DRM_ERRORtodev_err(Mario)Update message to identifiy the vblank initialization fail case
Signed-off-by Saleemkhan Jamadar <[email protected]>Reviewed-by Rodrigo Siqueira <[email protected]>--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-0
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int amdgpu_dm_init(struct amdgpu_device *adev) · line 2224
Quoted 10 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2
-2@@ -2217,8 +2217,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)adev_to_drm (adev)->mode_config.cursor_height = adev->dm.dc->caps.max_cursor_size;if (drm_vblank_init (adev_to_drm (adev), adev->dm.display_indexes_num)) { -DRM_ERROR ( -"amdgpu: failed to initialize sw for display support.\n" ); +dev_err (adev->dev, +"amdgpu: failed to initialize vblank sw for display support.\n" ); goto error; }
FYI - I had suggested drm_err() not dev_err().