On Mon, Dec 09, 2024 at 10:48:37PM +0800, Yongbang Shi wrote: > From: baihan li <libaihan@xxxxxxxxxx> > > Add link training process functions in this moduel. > > Signed-off-by: Baihan Li <libaihan@xxxxxxxxxx> > Signed-off-by: Yongbang Shi <shiyongbang@xxxxxxxxxx> > --- > Changelog: > v6 -> v7: > - deleteing unset fields in struct hibmc_link_cap, suggested by Dmitry Baryshkov. > - using macro instead of constants in hibmc_dp_link_training_configure(), suggested by Dmitry Baryshkov. > v5 -> v6: > - using drm_dbg_dp() to print debug info instead of drm_info(), suggested by Dmitry Baryshkov. > v3 -> v4: > - optimizing hibmc_dp_link_get_adjust_train() to delete for loop, suggested by Dmitry Baryshkov. > - changing ELNRNG to EIO error code, suggested by Dmitry Baryshkov. > - deleting meaningless macro, suggested by Dmitry Baryshkov. > - fixing build errors reported by kernel test robot <lkp@xxxxxxxxx> > Closes: https://lore.kernel.org/oe-kbuild-all/202411041559.WIfxRN6n-lkp@xxxxxxxxx/ > v2 -> v3: > - using switchcase in dp_link_reduce_lane, suggested by Dmitry Baryshkov. > - deleting dp_link_pattern2dpcd function and using macros directly, suggested by Dmitry Baryshkov. > - deleting EFAULT error codes, suggested by Dmitry Baryshkov. > v1 -> v2: > - using drm_dp_* functions implement dp link training process, suggested by Jani Nikula. > - fix build errors reported by kernel test robot <lkp@xxxxxxxxx> > Closes: https://lore.kernel.org/oe-kbuild-all/202410031735.8iRZZR6T-lkp@xxxxxxxxx/ > v1:https://lore.kernel.org/all/20240930100610.782363-1-shiyongbang@xxxxxxxxxx/ > --- > drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- > drivers/gpu/drm/hisilicon/hibmc/dp/dp_comm.h | 21 ++ > drivers/gpu/drm/hisilicon/hibmc/dp/dp_link.c | 329 +++++++++++++++++++ > drivers/gpu/drm/hisilicon/hibmc/dp/dp_reg.h | 8 + > 4 files changed, 359 insertions(+), 1 deletion(-) > create mode 100644 drivers/gpu/drm/hisilicon/hibmc/dp/dp_link.c > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> -- With best wishes Dmitry