[PATCH v5 drm-dp 3/9] drm/hisilicon/hibmc: Add dp serdes cfg in dp process
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Fri Mar 7 13:03:06 UTC 2025
On Fri, Mar 07, 2025 at 06:16:34PM +0800, Yongbang Shi wrote:
> From: Baihan Li <libaihan at huawei.com>
>
> Add dp serdes cfg in link training process, and related adapting
> and modificating. Change some init values about training, because we want
> completely to negotiation process, so we start with the maximum rate and
> the electrical characteristic level is 0. Becuase serdes default cfgs is
> changed and used in hibmc_kms_init(), we changed the if-statement to check
> whether the value is 0.
>
> Signed-off-by: Baihan Li <libaihan at huawei.com>
> Signed-off-by: Yongbang Shi <shiyongbang at huawei.com>
> ---
> ChangeLog:
> v4 -> v5:
> - add commit log about hibmc_kms_init(), suggested by Dmitry Baryshkov.
> - fix the format of block comments, suggested by Dmitry Baryshkov.
> - add hibmc_dp_get_serdes_rate_cfg() to correct transferring serdes cfg.
> v3 -> v4:
> - add comments for if-statement of dp_init(), suggested by Dmitry Baryshkov.
> v2 -> v3:
> - change commit to an imperative sentence, suggested by Dmitry Baryshkov.
> - put HIBMC_DP_HOST_SERDES_CTRL in dp_serdes.h, suggested by Dmitry Baryshkov.
> v1 -> v2:
> - splittting the patch and add more detailed the changes in the commit message, suggested by Dmitry Baryshkov.
> ---
> .../gpu/drm/hisilicon/hibmc/dp/dp_config.h | 1 +
> drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.c | 5 +-
> drivers/gpu/drm/hisilicon/hibmc/dp/dp_link.c | 77 ++++++++++++++-----
> drivers/gpu/drm/hisilicon/hibmc/dp/dp_reg.h | 5 ++
> .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 13 ++--
> 5 files changed, 75 insertions(+), 26 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
--
With best wishes
Dmitry
More information about the dri-devel
mailing list