drm/amd/display: Update VCP X.Y logging to improve usefulness
authorGeorge Shen <george.shen@amd.com>
Thu, 16 Sep 2021 23:59:34 +0000 (19:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Sep 2021 21:30:00 +0000 (17:30 -0400)
commit356af2f32f443b89ac2ebb033f325c9dd93884e9
tree146add4687fac61e81e7df74b2d5d6285658a8d8
parent3626a6aebe62ce7067cdc460c0c644e9445386bb
drm/amd/display: Update VCP X.Y logging to improve usefulness

[Why]
Recently debugging efforts have involved setting/checking the
X.Y value used during payload allocation. Current output for
Y was calculated with incorrect bitshift. Y value is also not
human readable.

[How]
Refactor logging into separate function. Fix Y calculation error
and format output to be human readable.

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c