[PATCH v1 drm-dp 1/4] drm/hisilicon/hibmc: Add dp phy cfg to adjust serdes rate, voltage and pre-emphasis

2025-01-26 Thread Yongbang Shi
From: Baihan Li This phy is inited and configured for dp, and integrating them into dp init and dp link training process. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- drivers/gpu/drm/hisilicon/hibmc/dp/dp_comm.h | 1

[PATCH v1 drm-dp 3/4] drm/hisilicon/hibmc: Add debugfs interface to enable colorbar feature and get link status

2025-01-26 Thread Yongbang Shi
From: Baihan Li Create 3 files in drm debugfs: colorbar-cfg: Get/Set colorbar cfg hibmc-dp: Get dp link status hibmc-dp-edid: Print edid information Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 3 +- drivers/gpu/drm/hisilicon

[PATCH v1 drm-dp 4/4] drm/hisilicon/hibmc: Enable this hot plug detect of irq feature

2025-01-26 Thread Yongbang Shi
From: Baihan Li This is a series of functions about getting dp connector status function, registering irq function, interrupt handler function, and hpd event process function to realize DP HPD feature. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- .../gpu/drm/hisilicon/hibmc/dp

[PATCH v1 drm-dp 2/4] drm/hisilicon/hibmc: Getting connector info and edid by using aux channel

2025-01-26 Thread Yongbang Shi
From: Baihan Li Registering drm_aux and using it to get connector edid with drm functions. Refactoring some structs to fit aux's register framework. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- drivers/gpu/drm/hisilicon/hibmc/dp/dp_aux.c | 16 +--- drivers/gpu/drm/hisi

[PATCH v1 drm-dp 0/4] Add HPD, getting EDID, colorbar features in DP function

2025-01-26 Thread Yongbang Shi
From: Baihan Li To support DP HPD, edid printing, and colorbar display features based on the Hisislcon DP devices. Baihan Li (4): drm/hisilicon/hibmc: Add dp phy cfg to adjust serdes rate, voltage and pre-emphasis drm/hisilicon/hibmc: Getting connector info and edid by using aux cha

[PATCH v9 drm-dp 4/5] drm/hisilicon/hibmc: refactored struct hibmc_drm_private

2025-01-03 Thread Yongbang Shi
From: Baihan Li Refactored struct hibmc_drm_private to separate VGA module from generic struct. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov Reviewed-by: Tian Tao --- ChangeLog: v8 -> v9: - changing bahan li to Baihan Li, clear sign-off mismatc

[PATCH v9 drm-dp 0/5] Add dp module in hibmc driver

2025-01-03 Thread Yongbang Shi
From: Baihan Li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH v9 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc driver

2025-01-03 Thread Yongbang Shi
From: Baihan Li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov Reviewed-by: Tian Tao --- ChangeLog: v8 -> v9: - changing bahan li to Baihan Li, clear sign-off mismatc

[PATCH v9 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2025-01-03 Thread Yongbang Shi
: Yongbang Shi Reviewed-by: Dmitry Baryshkov Reviewed-by: Tian Tao --- ChangeLog: v8 -> v9: - changing bahan li to Baihan Li, clear sign-off mismatches warnings, suggested by Dmitry Baryshkov. v7 -> v8: - adding pci_set_master() in hibmc_pci_probe(). v6 -> v7: - lowercasing hex, sug

[PATCH v9 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc drivers

2025-01-03 Thread Yongbang Shi
From: Baihan Li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov Reviewed-by: Tian Tao --- Changelog: v8 -> v9: - changing bahan li to Baihan Li, clear sign-off mismatches warnings, suggested by Dmi

[PATCH v9 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc drivers

2025-01-03 Thread Yongbang Shi
From: Baihan Li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov Reviewed-by: Tian Tao --- ChangeLog: v8 -> v9: - changing bahan li to Baihan Li, clear sign-off mismatc

Re: [PATCH v8 drm-dp 0/5] Add dp module in hibmc driver

2025-01-03 Thread Yongbang Shi
On Thu, 2 Jan 2025 at 14:53, Yongbang Shi wrote: On Thu, Dec 19, 2024 at 10:52:32AM +0800, Yongbang Shi wrote: Does everyone have a question with the patch? -:225: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'reg_value' - possible side-effects? #225: FILE: drivers/gpu/drm/hisilico

Re: [PATCH v8 drm-dp 0/5] Add dp module in hibmc driver

2025-01-02 Thread Yongbang Shi
On Thu, Dec 19, 2024 at 10:52:32AM +0800, Yongbang Shi wrote: Does everyone have a question with the patch? -:225: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'reg_value' - possible side-effects? #225: FILE: drivers/gpu/drm/hisilicon/hibmc/dp/dp_comm.h:23: +#define dp_field_modify

Re: [PATCH v8 drm-dp 0/5] Add dp module in hibmc driver

2024-12-18 Thread Yongbang Shi
Does everyone have a question with the patch? From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both

[PATCH v8 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-12-12 Thread Yongbang Shi
: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v7 -> v8: - adding pci_set_master() in hibmc_pci_probe(). v6 -> v7: - lowercasing hex, suggested by Dmitry Baryshkov. v5 -> v6: - adding hpd and get_edid comments in the beginning of patch, suggested by Dmitry Baryshkov.

[PATCH v8 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc drivers

2024-12-12 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v5 -> v6: - adding do{} while(0) in macro defination function, suggested by Dmitry Barysh

[PATCH v8 drm-dp 4/5] drm/hisilicon/hibmc: refactored struct hibmc_drm_private

2024-12-12 Thread Yongbang Shi
From: baihan li Refactored struct hibmc_drm_private to separate VGA module from generic struct. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v3 -> v4: - separating hibmc_vdac and hibmc_dp changes into separate patche, suggested

[PATCH v8 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc drivers

2024-12-12 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- Changelog: v7 -> v8: - adding DP_AUX_NATIVE_WRITE case in switch statement in hibmc_dp_aux_parse_xfer(). v6 -> v7: - deleteing

[PATCH v8 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc driver

2024-12-12 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v5 -> v6: - using drm_dbg_dp() to print debug info instead of drm_info(), suggested by Dmi

[PATCH v8 drm-dp 0/5] Add dp module in hibmc driver

2024-12-12 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH v7 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc

2024-12-09 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v5 -> v6: - adding do{} while(0) in macro defination function, suggested by Dmitry Barysh

[PATCH v7 drm-dp 4/5] drm/hisilicon/hibmc: separate struct of vdac

2024-12-09 Thread Yongbang Shi
From: baihan li Refactored struct hibmc_drm_private to separate VGA module from generic struct. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v3 -> v4: - separating hibmc_vdac and hibmc_dp changes into separate patche, suggested

[PATCH v7 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-12-09 Thread Yongbang Shi
: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v6 -> v7: - lowercasing hex, suggested by Dmitry Baryshkov. v5 -> v6: - adding hpd and get_edid comments in the beginning of patch, suggested by Dmitry Baryshkov. v3 -> v4: - static inline hibmc_dp_prepare(), suggested

[PATCH v7 drm-dp 0/5] Add dp module in hibmc driver

2024-12-09 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH v7 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-12-09 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi Reviewed-by: Dmitry Baryshkov --- ChangeLog: v5 -> v6: - using drm_dbg_dp() to print debug info instead of drm_info(), suggested by Dmi

[PATCH v7 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-12-09 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- Changelog: v6 -> v7: - deleteing unset fields in struct hibmc_link_cap, suggested by Dmitry Baryshkov. - using macro instead of constants

Re: [PATCH v6 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-12-09 Thread Yongbang Shi
On Mon, Dec 02, 2024 at 09:13:19PM +0800, Yongbang Shi wrote: From: baihan li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- Changelog: v5 -> v6: - using drm_dbg_dp() to print debug info instead of drm_info(), suggested

[PATCH v6 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-12-02 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- Changelog: v5 -> v6: - using drm_dbg_dp() to print debug info instead of drm_info(), suggested by Dmitry Baryshkov. v3 -> v4: - opti

[PATCH v6 drm-dp 0/5] Add dp module in hibmc driver

2024-12-02 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH v6 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-12-02 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v5 -> v6: - using drm_dbg_dp() to print debug info instead of drm_info(), suggested by Dmitry Baryshkov. - adding code comme

[PATCH v6 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-12-02 Thread Yongbang Shi
: Yongbang Shi --- ChangeLog: v5 -> v6: - adding hpd and get_edid comments in the beginning of patch, suggested by Dmitry Baryshkov. v3 -> v4: - static inline hibmc_dp_prepare(), suggested by Dmitry Baryshkov. --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- .../gpu/drm/his

[PATCH v6 drm-dp 4/5] drm/hisilicon/hibmc: separate struct of vdac

2024-12-02 Thread Yongbang Shi
From: baihan li Refactored struct hibmc_drm_private to separate VGA module from generic struct. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - separating hibmc_vdac and hibmc_dp changes into separate patche, suggested by Dmitry Baryshkov. v2 -> v3:

[PATCH v6 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc

2024-12-02 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v5 -> v6: - adding do{} while(0) in macro defination function, suggested by Dmitry Baryshkov. v4 -> v5: - fixing

Re: [PATCH v5 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-12-02 Thread Yongbang Shi
On Mon, Nov 18, 2024 at 10:28:05PM +0800, Yongbang Shi wrote: From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - static inline hibmc_dp_prep

Re: [PATCH v5 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc

2024-11-25 Thread Yongbang Shi
在 2024/11/22 9:42, Dmitry Baryshkov 写道: On Mon, Nov 18, 2024 at 10:28:01PM +0800, Yongbang Shi wrote: From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v4 ->

[PATCH v5 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc

2024-11-18 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v4 -> v5: - fixing build errors reported by kernel test robot Closes: https://lore.kernel.org/oe-kbuild-

[PATCH v5 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-11-18 Thread Yongbang Shi
From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - static inline hibmc_dp_prepare(), suggested by Dmitry Baryshkov. --- drivers/gpu/drm/hisili

[PATCH v5 drm-dp 0/5] Add dp module in hibmc driver

2024-11-18 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH v5 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-11-18 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - changed the type of train_set to array, suggested by Dmitry Baryshkov. - using actual link rate instead of magic

[PATCH v5 drm-dp 4/5] drm/hisilicon/hibmc: separate struct of vdac

2024-11-18 Thread Yongbang Shi
From: baihan li Refactored struct hibmc_drm_private to separate VGA module from generic struct. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - separating hibmc_vdac and hibmc_dp changes into separate patche, suggested by Dmitry Baryshkov. v2 -> v3:

[PATCH v5 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-11-18 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- Changelog: v3 -> v4: - optimizing hibmc_dp_link_get_adjust_train() to delete for loop, suggested by Dmitry Baryshkov. - changing ELNRNG to EIO error c

Re: [PATCH V3 drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc

2024-11-12 Thread Yongbang Shi
On Fri, Nov 01, 2024 at 06:50:25PM +0800, Yongbang Shi wrote: From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: baihan li Signed-off-by: yongbang shi Is this a proper capitalization of your names? Usually the first letter of

[PATCH v4 drm-dp 5/5] drm/hisilicon/hibmc: add dp module in hibmc

2024-11-12 Thread Yongbang Shi
From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - static inline hibmc_dp_prepare(), suggested by Dmitry Baryshkov. --- drivers/gpu/drm/hisili

[PATCH v4 drm-dp 4/5] drm/hisilicon/hibmc: separate struct of vdac

2024-11-12 Thread Yongbang Shi
From: baihan li Refactored struct hibmc_drm_private to separate VGA module from generic struct. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - separating hibmc_vdac and hibmc_dp changes into separate patche, suggested by Dmitry Baryshkov. v2 -> v3:

[PATCH v4 drm-dp 2/5] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-11-12 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- Changelog: v3 -> v4: - optimizing hibmc_dp_link_get_adjust_train() to delete for loop, suggested by Dmitry Baryshkov. - changing ELNRNG to EIO error c

[PATCH v4 drm-dp 0/4] Add dp module in hibmc driver

2024-11-12 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH v4 drm-dp 3/5] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-11-12 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - changed the type of train_set to array, suggested by Dmitry Baryshkov. - using actual link rate instead of magic

[PATCH v4 drm-dp 1/5] drm/hisilicon/hibmc: add dp aux in hibmc

2024-11-12 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: Baihan Li Signed-off-by: Yongbang Shi --- ChangeLog: v3 -> v4: - retun error codes in result incorrect branch, suggested by Dmitry Baryshkov. - replacing all ret= w

Re: [PATCH V3 drm-dp 3/4] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-11-12 Thread Yongbang Shi
On Tue, 5 Nov 2024 at 06:06, Yongbang Shi wrote: On Fri, Nov 01, 2024 at 06:50:27PM +0800, Yongbang Shi wrote: From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: baihan li Signed-off-by: yongbang shi --- ChangeLog: v2 ->

Re: [PATCH V3 drm-dp 3/4] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-11-04 Thread Yongbang Shi
On Fri, Nov 01, 2024 at 06:50:27PM +0800, Yongbang Shi wrote: From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: baihan li Signed-off-by: yongbang shi --- ChangeLog: v2 -> v3: - fix build errors reported by kernel test ro

Re: [PATCH V3 drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-11-04 Thread Yongbang Shi
I will accept your advices in all the patchs. Thanks, Baihan. On Fri, Nov 01, 2024 at 06:50:28PM +0800, Yongbang Shi wrote: From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: baihan li Signed-off-by: yongbang shi

[PATCH V3 drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc

2024-11-01 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: baihan li Signed-off-by: yongbang shi --- ChangeLog: v2 -> v3: - put the macro definations in latter patch where they are actually used, suggested by Dmitry Barysh

[PATCH V3 drm-dp 0/4] Add dp module in hibmc driver

2024-11-01 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

[PATCH V3 drm-dp 2/4] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-11-01 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: baihan li Signed-off-by: yongbang shi --- Changelog: v2 -> v3: - using switchcase in dp_link_reduce_lane, suggested by Dmitry Baryshkov. - deleting dp_link_pattern2dpcd function and using macros direc

[PATCH V3 drm-dp 3/4] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-11-01 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: baihan li Signed-off-by: yongbang shi --- ChangeLog: v2 -> v3: - fix build errors reported by kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202410250

[PATCH V3 drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-11-01 Thread Yongbang Shi
From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: baihan li Signed-off-by: yongbang shi --- ChangeLog: v2 -> v3: - fix build errors reported by kernel test robot Closes: https://lore.kernel.org/oe-kbuild-

Re: [PATCH V2 drm-dp 2/4] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-10-31 Thread Yongbang Shi
On Tue, Oct 22, 2024 at 08:41:46PM +0800, Yongbang Shi wrote: From: baihan li Add link training process functions in this moduel. We should probably have a bounty for a developer who finally writes a generic DP link training helpers. Signed-off-by: baihan li Missing SoB --- ChangeLog

Re: [PATCH V2 drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc

2024-10-31 Thread Yongbang Shi
On Tue, 29 Oct 2024 at 16:15, Yongbang Shi wrote: On Tue, Oct 22, 2024 at 08:41:45PM +0800, Yongbang Shi wrote: From: baihan li +} + +enum dpcd_revision { +DPCD_REVISION_10 = 0x10, +DPCD_REVISION_11, +DPCD_REVISION_12, +DPCD_REVISION_13, +DPCD_REVISION_14, Any reason for

Re: [PATCH V2 drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc

2024-10-29 Thread Yongbang Shi
On Tue, Oct 22, 2024 at 08:41:45PM +0800, Yongbang Shi wrote: From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: baihan li --- ChangeLog: v1 -> v2: - using drm_dp_aux frame implement dp aux read and write functions, sugges

Re: [PATCH V2 drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc

2024-10-29 Thread Yongbang Shi
On Tue, Oct 22, 2024 at 08:41:45PM +0800, Yongbang Shi wrote: From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: baihan li --- ChangeLog: v1 -> v2: - using drm_dp_aux frame implement dp aux read and write functions, sugges

Re: [PATCH V2 drm-dp 2/4] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-10-29 Thread Yongbang Shi
On Tue, Oct 22, 2024 at 08:41:46PM +0800, Yongbang Shi wrote: From: baihan li Add link training process functions in this moduel. We should probably have a bounty for a developer who finally writes a generic DP link training helpers. Signed-off-by: baihan li Missing SoB --- ChangeLog

Re: [PATCH drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-10-22 Thread Yongbang Shi
On Tue, 22 Oct 2024 at 15:24, Yongbang Shi wrote: On Mon, Sep 30, 2024 at 06:06:10PM +0800, shiyongbang wrote: From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: baihan li --- drivers/gpu/drm/hisilicon/hibmc

[PATCH V2 drm-dp 3/4] drm/hisilicon/hibmc: add dp hw moduel in hibmc

2024-10-22 Thread Yongbang Shi
From: baihan li Build a dp level that hibmc driver can enable dp by calling their functions. Signed-off-by: baihan li --- ChangeLog: v1 -> v2: - changed some defines and functions to former patch, suggested by Dmitry Baryshkov. - sorting the headers including in dp_hw.h and hibmc_drm_drv.c

[PATCH V2 drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-10-22 Thread Yongbang Shi
From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: baihan li --- ChangeLog: v1 -> v2: - deleting struct dp_mode and dp_mode_cfg function, suggested by Dmitry Baryshkov. - modifying drm_simple_encoder_init function,

[PATCH V2 drm-dp 1/4] drm/hisilicon/hibmc: add dp aux in hibmc

2024-10-22 Thread Yongbang Shi
From: baihan li Add dp aux read/write functions. They are basic functions and will be used later. Signed-off-by: baihan li --- ChangeLog: v1 -> v2: - using drm_dp_aux frame implement dp aux read and write functions, suggested by Jani Nikula. - using drm dp header files' dp macros instead,

[PATCH V2 drm-dp 2/4] drm/hisilicon/hibmc: add dp link moduel in hibmc

2024-10-22 Thread Yongbang Shi
From: baihan li Add link training process functions in this moduel. Signed-off-by: baihan li --- ChangeLog: v1 -> v2: - using drm_dp_* functions implement dp link training process, suggested by Jani Nikula. - fix build errors reported by kernel test robot Closes: https://lore.kernel.

[PATCH V2 drm-dp 0/4] Add dp module in hibmc driver

2024-10-22 Thread Yongbang Shi
From: baihan li Realizing the basic display function of DP cable for DP connector displaying. Add DP module in hibmc drm driver, which is for Hisilicon Hibmc SoC which used for Out-of-band management. Blow is the general hardware connection, both the Hibmc and the host CPU are on the same mother

Re: [PATCH drm-dp 3/4] drm/hisilicon/hibmc: add dp kapi moduel in hibmc drivers

2024-10-22 Thread Yongbang Shi
On Mon, 21 Oct 2024 at 15:22, Yongbang Shi wrote: Hi Dmitry, There're some format problems with the previous replies. Send it again here. Thanks for your advices, I'll resolve the problems you mentioned. On Mon, Sep 30, 2024 at 06:06:09PM +0800, shiyongbang wrote: From: baihan

Re: [PATCH drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-10-22 Thread Yongbang Shi
On Mon, Sep 30, 2024 at 06:06:10PM +0800, shiyongbang wrote: From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual. Signed-off-by: baihan li --- drivers/gpu/drm/hisilicon/hibmc/Makefile | 2 +- .../gpu/drm/hisilicon/hibmc/hi

Re: [PATCH drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-10-22 Thread Yongbang Shi
Okay, I'll fix them. Thanks, Baihan On Mon, 21 Oct 2024 at 14:54, s00452708 wrote: Thanks, I will modify codes according to your comments, and I also replied some questions or reasons why I did it below. On Mon, Sep 30, 2024 at 06:06:10PM +0800, shiyongbang wrote: From: baihan li To suppo

Re: [PATCH drm-dp 3/4] drm/hisilicon/hibmc: add dp kapi moduel in hibmc drivers

2024-10-21 Thread Yongbang Shi
Hi Dmitry, There're some format problems with the previous replies. Send it again here. Thanks for your advices, I'll resolve the problems you mentioned. On Mon, Sep 30, 2024 at 06:06:09PM +0800, shiyongbang wrote: From: baihan li Build a kapi level that hibmc driver can enable dp by calling

Re: [PATCH drm-dp 4/4] drm/hisilicon/hibmc: add dp module in hibmc

2024-10-21 Thread Yongbang Shi
Thanks, I will modify codes according to your comments, and I also replied some questions or reasons why I did it below. On Mon, Sep 30, 2024 at 06:06:10PM +0800, shiyongbang wrote: From: baihan li To support DP interface displaying in hibmc driver. Add a encoder and connector for DP modual.