Re: [PATCH v3] drm/msm/dp: assign correct DP controller ID to x1e80100 interface table

2024-04-03 Thread Kuogee Hsieh
Dmitry, any more comments? On 3/29/2024 12:46 PM, Kuogee Hsieh wrote: At current x1e80100 interface table, interface #3 is wrongly connected to DP controller #0 and interface #4 wrongly connected to DP controller #2. Fix this problem by connect Interface #3 to DP controller #0 and interface #4

Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-04-03 Thread Kuogee Hsieh
Dmitry, Any more comments? On 3/29/2024 12:50 PM, Kuogee Hsieh wrote: Currently qmp_combo_dp_power_on() always return 0 in regardless of return value of cfg->configure_dp_phy(). This patch propagate return value of cfg->configure_dp_phy() all the way back to caller. Changes in V3: --

Re: [PATCH] drm/msm/dp: allow voltage swing / pre emphasis of 3

2024-04-01 Thread Kuogee Hsieh
m/msm/dp: add displayPort driver support") Signed-off-by: Dmitry Baryshkov Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 6 +++--- drivers/gpu/drm/msm/dp/dp_link.c | 22 +++--- drivers/gpu/drm/msm/dp/dp_link.h | 14 +- 3 files c

[PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-03-29 Thread Kuogee Hsieh
ev_err() to qmp_v3_configure_dp_phy() -- add dev_err() to qmp_v4_configure_dp_phy() Fixes: 52e013d0bffa ("phy: qcom-qmp: Add support for DP in USB3+DP combo phy") Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 13 + 1 file changed, 9

[PATCH v3] drm/msm/dp: assign correct DP controller ID to x1e80100 interface table

2024-03-29 Thread Kuogee Hsieh
to DP controller to complete x1e80100 interface table. Changs in V3: -- add v2 changes log Changs in V2: -- add x1e80100 to subject -- add Fixes Fixes: e3b1f369db5a ("drm/msm/dpu: Add X1E80100 support") Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar Reviewed-by: Abel Vesa --

[PATCH v2] drm/msm/dp: assign correct DP controller ID to x1e80100 interface table

2024-03-29 Thread Kuogee Hsieh
to DP controller to complete x1e80100 interface table. Fixes: e3b1f369db5a ("drm/msm/dpu: Add X1E80100 support") Signed-off-by: Kuogee Hsieh Reviewed-by: Abhinav Kumar Reviewed-by: Abel Vesa --- .../drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h | 34 -- 1 file c

[PATCH v2] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-03-29 Thread Kuogee Hsieh
Currently qmp_combo_dp_power_on() always return 0 in regardless of return value of cfg->configure_dp_phy(). This patch propagate return value of cfg->configure_dp_phy() all the way back to caller. Fixes: 52e013d0bffa ("phy: qcom-qmp: Add support for DP in USB3+DP combo phy") Signe

[PATCH v1] phy/qcom-qmp-combo: propagate correct return value at phy_power_on()

2024-03-28 Thread Kuogee Hsieh
Currently qmp_combo_dp_power_on() always return 0 in regardless of return value of cfg->configure_dp_phy(). This patch propagate return value of cfg->configure_dp_phy() all the way back to caller. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 5 +++--

[PATCH v1] drm/msm/dp: use dp_hpd_plug_handle() and dp_hpd_unplug_handle() directly

2024-03-28 Thread Kuogee Hsieh
context. Since they are executed under thread context already, there is no reason to hand over those events to hpd_event_thread. Hence dp_hpd_plug_handle() and dp_hpd_unplug_hanlde() are called directly at dp_bridge_hpd_notify(). Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp

[PATCH v1] drm/msm/dp: assign correct DP controller ID to interface table

2024-03-28 Thread Kuogee Hsieh
to DP controller to complete x1e80100 interface table. Signed-off-by: Kuogee Hsieh --- .../drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h | 34 -- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h b

Re: [PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-11 Thread Kuogee Hsieh
://lore.kernel.org/all/1664408211-25314-1-git-send-email-quic_khs...@quicinc.com/ Fixes: 8a3b4c17f863 ("drm/msm/dp: employ bridge mechanism for display enable and disable") Signed-off-by: Abhinav Kumar Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp

Re: [RFC PATCH] drm/msm/dp: move link_ready out of HPD event thread

2024-03-11 Thread Kuogee Hsieh
] : https://lore.kernel.org/all/1664408211-25314-1-git-send-email-quic_khs...@quicinc.com/ Signed-off-by: Abhinav Kumar Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu

Re: [PATCH RESEND v3 15/15] drm/msm/dp: drop dp_parser

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Finally drop separate "parsing" submodule. There is no need in it anymore. All submodules handle DT properties directly rather than passing them via the separate structure pointer. Signed-off-by: Dmitry Baryshkov Tested-by: Ku

Re: [PATCH RESEND v3 14/15] drm/msm/dp: move next_bridge handling to dp_display

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Remove two levels of indirection and fetch next bridge directly in dp_display_probe_tail(). Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 43

Re: [PATCH RESEND v3 13/15] drm/msm/dp: move link property handling to dp_panel

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Instead of passing link properties through the separate struct, parse them directly in the dp_panel. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 8

Re: [PATCH RESEND v3 12/15] drm/msm/dp: move all IO handling to dp_catalog

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Rather than parsing the I/O addresses from dp_parser and then passing them via a struct pointer to dp_catalog, handle I/O region parsing in dp_catalog and drop it from dp_parser. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed

Re: [PATCH RESEND v3 11/15] drm/msm/dp: handle PHY directly in dp_ctrl

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: There is little point in going trough dp_parser->io indirection each time the driver needs to access the PHY. Store the pointer directly in dp_ctrl_private. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hs

Re: [PATCH RESEND v3 10/15] drm/msm/dp: remove PHY handling from dp_catalog.c

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Inline dp_catalog_aux_update_cfg() and call phy_calibrate() from dp_aux functions directly. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_aux.c | 9 +++-- drivers

Re: [PATCH RESEND v3 09/15] drm/msm/dp: move phy_configure_opts to dp_ctrl

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: There is little point in sharing phy configuration structure between several modules. Move it to dp_ctrl, which becomes the only submodule re-configuring the PHY. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee

Re: [PATCH RESEND v3 08/15] drm/msm/dp: split dp_ctrl_clk_enable into four functuions

2024-01-26 Thread Kuogee Hsieh
. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 220 +--- drivers/gpu/drm/msm/dp/dp_ctrl.h| 16 +-- drivers/gpu/drm/msm/dp/dp_display.c | 4 +- 3 files changed, 108 insertions

Re: [PATCH RESEND v3 07/15] drm/msm/dp: stop parsing clock names from DT

2024-01-26 Thread Kuogee Hsieh
can be moved to the device data. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 73 ++-- drivers/gpu/drm/msm/dp/dp_ctrl.h | 6 ++ drivers/gpu/drm/msm/dp/dp_parser.c | 112

Re: [PATCH RESEND v3 06/15] drm/msm/dp: simplify stream clocks handling

2024-01-26 Thread Kuogee Hsieh
Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 91 -- drivers/gpu/drm/msm/dp/dp_parser.c | 41 - drivers/gpu/drm/msm/dp/dp_parser.h | 2 - 3 files changed, 47 insertions(+), 87 deletions

Re: [PATCH RESEND v3 05/15] drm/msm/dp: fold dp_power into dp_ctrl module

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: The dp_power submodule is limited to handling the clocks only following previous cleanups. Fold it into the dp_ctrl submodule, removing one unnecessary level of indirection. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed

Re: [PATCH RESEND v3 04/15] drm/msm/dp: inline dp_power_(de)init

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: In preparation to cleanup of the dp_power module, inline dp_power_init() and dp_power_deinit() functions, which are now just turning the clocks on and off. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh

Re: [PATCH RESEND v3 03/15] drm/msm/dp: parse DT from dp_parser_get

2024-01-26 Thread Kuogee Hsieh
-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 6 -- drivers/gpu/drm/msm/dp/dp_parser.c | 8 +++- drivers/gpu/drm/msm/dp/dp_parser.h | 3 --- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers

Re: [PATCH RESEND v3 02/15] drm/msm/dp: drop unused fields from dp_power_private

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Drop unused and obsolete fields from struct dp_power_private. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_power.c | 3 --- 1 file changed, 3

Re: [PATCH RESEND v3 01/15] drm/msm/dp: drop unused parser definitions

2024-01-26 Thread Kuogee Hsieh
On 1/26/2024 10:26 AM, Dmitry Baryshkov wrote: Drop several unused and obsolete definitions from the dp_parser module. Signed-off-by: Dmitry Baryshkov Tested-by: Kuogee Hsieh Reviewed-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_parser.h | 46

Re: [PATCH 13/14] drm/msm/dp: move next_bridge handling to dp_display

2024-01-22 Thread Kuogee Hsieh
On 1/19/2024 6:31 PM, Dmitry Baryshkov wrote: On Fri, 19 Jan 2024 at 23:14, Kuogee Hsieh wrote: Dmitry, I am testing this patch serial with msm-next branch. This patch cause system crash during booting up for me. Is this patch work for you? Yes, tested on top of linux-next. However I

Re: [PATCH 13/14] drm/msm/dp: move next_bridge handling to dp_display

2024-01-19 Thread Kuogee Hsieh
Dmitry, I am testing this patch serial with msm-next branch. This patch cause system crash during booting up for me. Is this patch work for you? On 12/29/2023 2:56 PM, Dmitry Baryshkov wrote: Remove two levels of indirection and fetch next bridge directly in dp_display_probe_tail().

[PATCH v3] drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case

2024-01-17 Thread Kuogee Hsieh
ore precise describe this patch Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_link.c | 12 +++- drivers/gpu/drm/msm/dp/dp_reg.h | 3 +++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v2] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2024-01-17 Thread Kuogee Hsieh
On 1/17/2024 10:40 AM, Dmitry Baryshkov wrote: On Wed, 17 Jan 2024 at 20:29, Kuogee Hsieh wrote: On 1/17/2024 10:12 AM, Dmitry Baryshkov wrote: On Wed, 17 Jan 2024 at 19:54, Kuogee Hsieh wrote: MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. At current implementation

Re: [PATCH v2] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2024-01-17 Thread Kuogee Hsieh
On 1/17/2024 10:12 AM, Dmitry Baryshkov wrote: On Wed, 17 Jan 2024 at 19:54, Kuogee Hsieh wrote: MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. At current implementation, at DP_TEST_DYNAMIC_RANGE_CEA case the In the current implementation, in the ... case Colorimetry Indicator

[PATCH v2] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2024-01-17 Thread Kuogee Hsieh
. Changes in V2: -- drop retrieving colorimetry from colorspace -- drop dr = link->dp_link.test_video.test_dyn_range assignment Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_link.c | 11 ++- driver

Re: [PATCH v1] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2024-01-11 Thread Kuogee Hsieh
On 1/10/2024 3:38 PM, Dmitry Baryshkov wrote: On Wed, 10 Jan 2024 at 22:18, Kuogee Hsieh wrote: MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. At current implementation, Colorimetry Indicator Field of MISC0 is not configured correctly. This patch add support of RGB formats

[PATCH v1] drm/msm/dp: remove mdss_dp_test_bit_depth_to_bpc()

2024-01-11 Thread Kuogee Hsieh
mdss_dp_test_bit_depth_to_bpc() can be replace by mdss_dp_test_bit_depth_to_bpp() / 3. Hence remove it. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_debug.c | 2 +- drivers/gpu/drm/msm/dp/dp_link.h | 23 --- 2 files changed, 1 insertion(+), 24 deletions

[PATCH v1] drm/msms/dp: fixed link clock divider bits be over written in BPC unknown case

2024-01-10 Thread Kuogee Hsieh
to (DP_TEST_BIT_DEPTH_8 >> DP_TEST_BIT_DEPTH_SHIFT). Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 5 - drivers/gpu/drm/msm/dp/dp_link.c | 10 +++--- 2 files changed, 7 insertions(+), 8 deletion

[PATCH v1] drm/msm/dp: correct configure Colorimetry Indicator Field at MISC0

2024-01-10 Thread Kuogee Hsieh
MSA MISC0 bit 1 to 7 contains Colorimetry Indicator Field. At current implementation, Colorimetry Indicator Field of MISC0 is not configured correctly. This patch add support of RGB formats Colorimetry. Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") Signed-off-by: Ku

Re: [PATCH v6] drm/msm/dpu: improve DSC allocation

2023-12-20 Thread Kuogee Hsieh
On 12/19/2023 2:32 PM, Dmitry Baryshkov wrote: On Tue, 19 Dec 2023 at 18:18, Kuogee Hsieh wrote: Hi Dmitry, Anymore comments from you? No, for some reason I missed this patch. Please excuse me. On 12/14/2023 10:56 AM, Kuogee Hsieh wrote: At DSC V1.1 DCE (Display Compression Engine

Re: [PATCH v6] drm/msm/dpu: improve DSC allocation

2023-12-19 Thread Kuogee Hsieh
Hi Dmitry, Anymore comments from you? On 12/14/2023 10:56 AM, Kuogee Hsieh wrote: At DSC V1.1 DCE (Display Compression Engine) contains a DSC encoder. However, at DSC V1.2 DCE consists of two DSC encoders, one has an odd index and another one has an even index. Each encoder can work

[PATCH v6] drm/msm/dpu: improve DSC allocation

2023-12-14 Thread Kuogee Hsieh
dsc() into _dpu_rm_reserve_dsc_single() and _dpu_rm_reserve_dsc_pair() Fixes: f2803ee91a41 ("drm/msm/disp/dpu1: Add DSC support in RM") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 154 + 1 file changed, 139 insertions(+), 15 deletions(-) diff --

Re: [PATCH v5] drm/msm/dpu: improve DSC allocation

2023-12-14 Thread Kuogee Hsieh
On 12/13/2023 3:00 PM, Dmitry Baryshkov wrote: On Wed, 13 Dec 2023 at 20:58, Kuogee Hsieh wrote: At DSC V1.1 DCE (Display Compression Engine) contains a DSC encoder. However, at DSC V1.2 DCE consists of two DSC encoders, one has an odd index and another one has an even index. Each encoder

Re: [PATCH v5] drm/msm/dpu: improve DSC allocation

2023-12-14 Thread Kuogee Hsieh
On 12/13/2023 3:00 PM, Dmitry Baryshkov wrote: On Wed, 13 Dec 2023 at 20:58, Kuogee Hsieh wrote: At DSC V1.1 DCE (Display Compression Engine) contains a DSC encoder. However, at DSC V1.2 DCE consists of two DSC encoders, one has an odd index and another one has an even index. Each encoder

[PATCH v5] drm/msm/dpu: improve DSC allocation

2023-12-13 Thread Kuogee Hsieh
lit _dpu_rm_reserve_dsc() into _dpu_rm_reserve_dsc_single() and _dpu_rm_reserve_dsc_pair() Fixes: f2803ee91a41 ("drm/msm/disp/dpu1: Add DSC support in RM") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 162 + 1 file changed, 1

[PATCH v4] drm/msm/dpu: improve DSC allocation

2023-12-12 Thread Kuogee Hsieh
dpu_rm_pingpong_dsc_check() -- for pair allocation use i += 2 at for loop Changes in V2: -- split _dpu_rm_reserve_dsc() into _dpu_rm_reserve_dsc_single() and _dpu_rm_reserve_dsc_pair() Fixes: f2803ee91a41 ("drm/msm/disp/dpu1: Add DSC support in RM") Signed-off-by: Kuogee Hsieh --- drivers/g

Re: [PATCH v3] drm/msm/dpu: improve DSC allocation

2023-12-11 Thread Kuogee Hsieh
On 12/11/2023 1:30 PM, Dmitry Baryshkov wrote: On Mon, 11 Dec 2023 at 20:38, Kuogee Hsieh wrote: A DCE (Display Compression Engine) contains two DSC hard slice encoders. Each DCE start with even DSC encoder index followed by "starts". But it will not be correct. The DCE doe

Re: [PATCH] drm/msm/dp: call dp_display_get_next_bridge() during probe

2023-12-11 Thread Kuogee Hsieh
result in -EPROBE_DEFR loops. Signed-off-by: Dmitry Baryshkov --- Dependencies: https://patchwork.freedesktop.org/series/120375/ --- Reviewed-by: Kuogee Hsieh drivers/gpu/drm/msm/dp/dp_display.c | 36 + 1 file changed, 21 insertions(+), 15 deletions(-) diff

[PATCH v3] drm/msm/dpu: improve DSC allocation

2023-12-11 Thread Kuogee Hsieh
i += 2 at for loop Changes in V2: -- split _dpu_rm_reserve_dsc() into _dpu_rm_reserve_dsc_single() and _dpu_rm_reserve_dsc_pair() Fixes: f2803ee91a41 ("drm/msm/disp/dpu1: Add DSC support in RM") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_

[PATCH v2] drm/msm/dpu: improve DSC allocation

2023-12-04 Thread Kuogee Hsieh
() into _dpu_rm_reserve_dsc_single() and _dpu_rm_reserve_dsc_pair() Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 171 ++--- 1 file changed, 156 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c

Re: [PATCH v1] drm/msm/dpu: improve DSC allocation

2023-12-04 Thread Kuogee Hsieh
On 11/29/2023 7:57 PM, Dmitry Baryshkov wrote: On Wed, 29 Nov 2023 at 22:31, Kuogee Hsieh wrote: A DCE (Display Compression Engine) contains two DSC hard slice encoders. Each DCE start with even DSC encoder index followed by an odd DSC encoder index. Each encoder can work independently

[PATCH v9 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-12-01 Thread Kuogee Hsieh
e dp_pm_suspend() with pm_runtime_force_suspend() -- replace dp_pm_resume() with pm_runtime_force_resume() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_aux.c | 5 + drivers/gpu/drm/msm/dp/dp_display.c | 181 ++-- drivers/gpu/drm/ms

[PATCH v9 7/7] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-12-01 Thread Kuogee Hsieh
ialize rc = 0 Changes in v3: -- add done_probing callback into devm_of_dp_aux_populate_bus() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_aux.c | 34 - drivers/gpu/drm/msm/dp/dp_display.c | 59 +++-- 2

[PATCH v9 4/7] drm/msm/dp: move parser->parse() and dp_power_client_init() to probe

2023-12-01 Thread Kuogee Hsieh
ove dp_power_client_deinit() to remove() Changes in v5: -- explain why parser->parse() and dp_power_client_init() are moved to probe time -- tear down sub modules if failed Changes in v4: -- split this patch out of "incorporate pm_runtime framework into DP driver" patch Signed-off-

[PATCH v9 0/7] incorporate pm runtime framework and eDP clean up

2023-12-01 Thread Kuogee Hsieh
on top of latest msm-next branch Kuogee Hsieh (7): drm/msm/dp: tie dp_display_irq_handler() with dp driver drm/msm/dp: rename is_connected with link_ready drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes drm/msm/dp: move parser->parse() and dp_power_client_i

[PATCH v9 1/7] drm/msm/dp: tie dp_display_irq_handler() with dp driver

2023-12-01 Thread Kuogee Hsieh
eck at dp_display_request_irq() Changes in v3: -- move calling dp_display_irq_handler() to probe Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 32 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 - 2 files changed,

[PATCH v9 6/7] drm/msm/dp: delete EV_HPD_INIT_SETUP

2023-12-01 Thread Kuogee Hsieh
accordingly. Changes in v4: -- reworded commit text -- drop EV_HPD_INIT_SETUP -- drop msm_dp_irq_postinstall() Changes in v3: -- drop EV_HPD_INIT_SETUP and msm_dp_irq_postinstall() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4

[PATCH v9 3/7] drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes

2023-12-01 Thread Kuogee Hsieh
Currently DP driver use drm_helper_hpd_irq_event(), bypassing drm bridge framework, to report HPD status changes to user space frame work. Replace it with drm_bridge_hpd_notify() since DP driver is part of drm bridge. Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu

[PATCH v9 2/7] drm/msm/dp: rename is_connected with link_ready

2023-12-01 Thread Kuogee Hsieh
: -- reworded commit text according to review comments from change #4 Changes in v4: -- reworded commit text Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 19 +-- drivers/gpu/drm/msm/dp/dp_display.h | 2 +- drivers/gpu/drm

[PATCH v1] drm/msm/dpu: improve DSC allocation

2023-11-29 Thread Kuogee Hsieh
, the DSC with even index have to mapping to even pingpong index and DSC with odd index have to mapping to odd pingpong index at its data path. This patch improve DSC allocation mechanism with consideration of above factors. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c

[PATCH v8 4/7] drm/msm/dp: move parser->parse() and dp_power_client_init() to probe

2023-11-29 Thread Kuogee Hsieh
ove dp_power_client_deinit() to remove() Changes in v5: -- explain why parser->parse() and dp_power_client_init() are moved to probe time -- tear down sub modules if failed Changes in v4: -- split this patch out of "incorporate pm_runtime framework into DP driver" patch Signed-off-

[PATCH v8 6/7] drm/msm/dp: delete EV_HPD_INIT_SETUP

2023-11-29 Thread Kuogee Hsieh
accordingly. Changes in v4: -- reworded commit text -- drop EV_HPD_INIT_SETUP -- drop msm_dp_irq_postinstall() Changes in v3: -- drop EV_HPD_INIT_SETUP and msm_dp_irq_postinstall() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4

[PATCH v8 7/7] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-11-29 Thread Kuogee Hsieh
ialize rc = 0 Changes in v3: -- add done_probing callback into devm_of_dp_aux_populate_bus() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_aux.c | 34 - drivers/gpu/drm/msm/dp/dp_display.c | 59 +++-- 2

[PATCH v8 1/7] drm/msm/dp: tie dp_display_irq_handler() with dp driver

2023-11-29 Thread Kuogee Hsieh
eck at dp_display_request_irq() Changes in v3: -- move calling dp_display_irq_handler() to probe Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 32 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 - 2 files changed,

[PATCH v8 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-11-29 Thread Kuogee Hsieh
_resume_and_get() instead of pm_runtime_get() -- error checking pm_runtime_resume_and_get() return value -- add EV_POWER_PM_GET and PM_EV_POWER_PUT to handle HPD_GPIO case -- replace dp_pm_suspend() with pm_runtime_force_suspend() -- replace dp_pm_resume() with pm_runtime_force_resume() Signed-off-b

[PATCH v8 3/7] drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes

2023-11-29 Thread Kuogee Hsieh
Currently DP driver use drm_helper_hpd_irq_event(), bypassing drm bridge framework, to report HPD status changes to user space frame work. Replace it with drm_bridge_hpd_notify() since DP driver is part of drm bridge. Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu

[PATCH v8 0/7] incorporate pm runtime framework and eDP clean up

2023-11-29 Thread Kuogee Hsieh
on top of latest msm-next branch Kuogee Hsieh (7): drm/msm/dp: tie dp_display_irq_handler() with dp driver drm/msm/dp: rename is_connected with link_ready drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes drm/msm/dp: move parser->parse() and dp_power_client_init() to pr

[PATCH v8 2/7] drm/msm/dp: rename is_connected with link_ready

2023-11-29 Thread Kuogee Hsieh
: -- reworded commit text according to review comments from change #4 Changes in v4: -- reworded commit text Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 19 +-- drivers/gpu/drm/msm/dp/dp_display.h | 2 +- drivers/gpu/drm

Re: [PATCH v7 0/7] incorporate pm runtime framework and eDP clean up

2023-11-09 Thread Kuogee Hsieh
On 11/8/2023 10:27 AM, Abhinav Kumar wrote: On 11/8/2023 10:10 AM, Kuogee Hsieh wrote: On 11/7/2023 1:23 PM, Dmitry Baryshkov wrote: On Tue, 7 Nov 2023 at 23:01, Kuogee Hsieh wrote: On 11/6/2023 5:55 PM, Dmitry Baryshkov wrote: On Sat, 7 Oct 2023 at 01:55, Kuogee Hsieh wrote

Re: [PATCH v7 0/7] incorporate pm runtime framework and eDP clean up

2023-11-08 Thread Kuogee Hsieh
On 11/7/2023 1:23 PM, Dmitry Baryshkov wrote: On Tue, 7 Nov 2023 at 23:01, Kuogee Hsieh wrote: On 11/6/2023 5:55 PM, Dmitry Baryshkov wrote: On Sat, 7 Oct 2023 at 01:55, Kuogee Hsieh wrote: The purpose of this patch series is to incorporate pm runtime framework into MSM eDP/DP driver so

Re: [PATCH v7 0/7] incorporate pm runtime framework and eDP clean up

2023-11-07 Thread Kuogee Hsieh
On 11/6/2023 5:55 PM, Dmitry Baryshkov wrote: On Sat, 7 Oct 2023 at 01:55, Kuogee Hsieh wrote: The purpose of this patch series is to incorporate pm runtime framework into MSM eDP/DP driver so that eDP panel can be detected by DRM eDP panel driver during system probe time. During

[PATCH v7 2/7] drm/msm/dp: rename is_connected with link_ready

2023-10-06 Thread Kuogee Hsieh
: -- reworded commit text according to review comments from change #4 Changes in v4: -- reworded commit text Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 19 +-- drivers/gpu/drm/msm/dp/dp_display.h | 2 +- drivers/gpu/drm

[PATCH v7 1/7] drm/msm/dp: tie dp_display_irq_handler() with dp driver

2023-10-06 Thread Kuogee Hsieh
eck at dp_display_request_irq() Changes in v3: -- move calling dp_display_irq_handler() to probe Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 32 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 - 2 files changed,

[PATCH v7 3/7] drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes

2023-10-06 Thread Kuogee Hsieh
Currently DP driver use drm_helper_hpd_irq_event(), bypassing drm bridge framework, to report HPD status changes to user space frame work. Replace it with drm_bridge_hpd_notify() since DP driver is part of drm bridge. Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu

[PATCH v7 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-10-06 Thread Kuogee Hsieh
_resume_and_get() instead of pm_runtime_get() -- error checking pm_runtime_resume_and_get() return value -- add EV_POWER_PM_GET and PM_EV_POWER_PUT to handle HPD_GPIO case -- replace dp_pm_suspend() with pm_runtime_force_suspend() -- replace dp_pm_resume() with pm_runtime_force_resume() Signed-off-b

[PATCH v7 7/7] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-10-06 Thread Kuogee Hsieh
ialize rc = 0 Changes in v3: -- add done_probing callback into devm_of_dp_aux_populate_bus() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_aux.c | 34 - drivers/gpu/drm/msm/dp/dp_display.c | 59 +++-- 2

[PATCH v7 4/7] drm/msm/dp: move parser->parse() and dp_power_client_init() to probe

2023-10-06 Thread Kuogee Hsieh
ove dp_power_client_deinit() to remove() Changes in v5: -- explain why parser->parse() and dp_power_client_init() are moved to probe time -- tear down sub modules if failed Changes in v4: -- split this patch out of "incorporate pm_runtime framework into DP driver" patch Signed-off-

[PATCH v7 6/7] drm/msm/dp: delete EV_HPD_INIT_SETUP

2023-10-06 Thread Kuogee Hsieh
accordingly. Changes in v4: -- reworded commit text -- drop EV_HPD_INIT_SETUP -- drop msm_dp_irq_postinstall() Changes in v3: -- drop EV_HPD_INIT_SETUP and msm_dp_irq_postinstall() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4

[PATCH v7 0/7] incorporate pm runtime framework and eDP clean up

2023-10-06 Thread Kuogee Hsieh
(), dp_pm_resume() and dp_pm_prepare(), are removed and replaced with functions provided by pm runtiem framework such as pm_runtime_force_suspend() and pm_runtime_force_resume(). In addition, both eDP aux-bus and irq handler are bound at system probe time too. Kuogee Hsieh (7): drm/msm/dp: tie

[PATCH v6 7/7] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-10-06 Thread Kuogee Hsieh
= 0 Changes in v3: -- add done_probing callback into devm_of_dp_aux_populate_bus() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_aux.c | 34 - drivers/gpu/drm/msm/dp/dp_display.c | 59 +++-- 2

[PATCH v6 3/7] drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes

2023-10-06 Thread Kuogee Hsieh
Currently DP driver use drm_helper_hpd_irq_event(), bypassing drm bridge framework, to report HPD status changes to user space frame work. Replace it with drm_bridge_hpd_notify() since DP driver is part of drm bridge. Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu

[PATCH v6 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-10-06 Thread Kuogee Hsieh
) -- replace dp_pm_resume() with pm_runtime_force_resume() Signed-off-by: Kuogee Hsieh Reported-by: kernel test robot --- drivers/gpu/drm/msm/dp/dp_aux.c | 5 ++ drivers/gpu/drm/msm/dp/dp_display.c | 167 drivers/gpu/drm/msm/dp/dp_power.c | 16 dri

[PATCH v6 4/7] drm/msm/dp: move parser->parse() and dp_power_client_init() to probe

2023-10-06 Thread Kuogee Hsieh
ove dp_power_client_deinit() to remove() Changes in v5: -- explain why parser->parse() and dp_power_client_init() are moved to probe time -- tear down sub modules if failed Changes in v4: -- split this patch out of "incorporate pm_runtime framework into DP driver" patch Signed-off-

[PATCH v6 6/7] drm/msm/dp: delete EV_HPD_INIT_SETUP

2023-10-06 Thread Kuogee Hsieh
accordingly. Changes in v4: -- reworded commit text -- drop EV_HPD_INIT_SETUP -- drop msm_dp_irq_postinstall() Changes in v3: -- drop EV_HPD_INIT_SETUP and msm_dp_irq_postinstall() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4

[PATCH v6 2/7] drm/msm/dp: rename is_connected with link_ready

2023-10-06 Thread Kuogee Hsieh
: -- reworded commit text according to review comments from change #4 Changes in v4: -- reworded commit text Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 19 +-- drivers/gpu/drm/msm/dp/dp_display.h | 2 +- drivers/gpu/drm

[PATCH v6 0/7] incorporate pm runtime framework and eDP clean up

2023-10-06 Thread Kuogee Hsieh
(), dp_pm_resume() and dp_pm_prepare(), are removed and replaced with functions provided by pm runtiem framework such as pm_runtime_force_suspend() and pm_runtime_force_resume(). In addition, both eDP aux-bus and irq handler are bound at system probe time too. Kuogee Hsieh (7): drm/msm/dp: tie

[PATCH v6 1/7] drm/msm/dp: tie dp_display_irq_handler() with dp driver

2023-10-06 Thread Kuogee Hsieh
eck at dp_display_request_irq() Changes in v3: -- move calling dp_display_irq_handler() to probe Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dp/dp_display.c | 32 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 - 2 files changed,

Re: [PATCH v5 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-10-06 Thread Kuogee Hsieh
On 10/6/2023 11:04 AM, Dmitry Baryshkov wrote: On 06/10/2023 19:42, Kuogee Hsieh wrote: On 10/6/2023 4:56 AM, Dmitry Baryshkov wrote: On 04/10/2023 19:26, Kuogee Hsieh wrote: Currently DP driver is executed independent of PM runtime framework. This leads msm eDP panel can not being

Re: [PATCH v5 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-10-06 Thread Kuogee Hsieh
On 10/6/2023 4:56 AM, Dmitry Baryshkov wrote: On 04/10/2023 19:26, Kuogee Hsieh wrote: Currently DP driver is executed independent of PM runtime framework. This leads msm eDP panel can not being detected by edp_panel driver during generic_edp_panel_probe() due to AUX DPCD read failed at edp

[PATCH v5 7/7] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-10-04 Thread Kuogee Hsieh
= 0 Changes in v3: -- add done_probing callback into devm_of_dp_aux_populate_bus() Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_aux.c | 34 - drivers/gpu/drm/msm/dp/dp_display.c | 59 +++-- 2 files changed, 51 insertions(+),

[PATCH v5 6/7] drm/msm/dp: delete EV_HPD_INIT_SETUP

2023-10-04 Thread Kuogee Hsieh
accordingly. Changes in v4: -- reworded commit text -- drop EV_HPD_INIT_SETUP -- drop msm_dp_irq_postinstall() Changes in v3: -- drop EV_HPD_INIT_SETUP and msm_dp_irq_postinstall() Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4

[PATCH v5 5/7] drm/msm/dp: incorporate pm_runtime framework into DP driver

2023-10-04 Thread Kuogee Hsieh
() with pm_runtime_force_resume() Signed-off-by: Kuogee Hsieh Reported-by: kernel test robot --- drivers/gpu/drm/msm/dp/dp_aux.c | 5 ++ drivers/gpu/drm/msm/dp/dp_display.c | 166 drivers/gpu/drm/msm/dp/dp_power.c | 16 drivers/gpu/drm/msm/dp/dp_power.h | 11 --- 4

[PATCH v5 4/7] drm/msm/dp: move parser->parse() and dp_power_client_init() to probe

2023-10-04 Thread Kuogee Hsieh
why parser->parse() and dp_power_client_init() are moved to probe time -- tear down sub modules if failed Changes in v4: -- split this patch out of "incorporate pm_runtime framework into DP driver" patch Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/d

[PATCH v5 2/7] drm/msm/dp: rename is_connected with link_ready

2023-10-04 Thread Kuogee Hsieh
: -- reworded commit text according to review comments from change #4 Changes in v4: -- reworded commit text Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 19 +-- drivers/gpu/drm/msm/dp/dp_display.h | 2 +- drivers/gpu/drm/msm/dp/dp_drm.c | 14

[PATCH v5 3/7] drm/msm/dp: use drm_bridge_hpd_notify() to report HPD status changes

2023-10-04 Thread Kuogee Hsieh
Currently DP driver use drm_helper_hpd_irq_event(), bypassing drm bridge framework, to report HPD status changes to user space frame work. Replace it with drm_bridge_hpd_notify() since DP driver is part of drm bridge. Signed-off-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov --- drivers/gpu

[PATCH v5 1/7] drm/msm/dp: tie dp_display_irq_handler() with dp driver

2023-10-04 Thread Kuogee Hsieh
eck at dp_display_request_irq() Changes in v3: -- move calling dp_display_irq_handler() to probe Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 32 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 - 2 files changed, 13 insertions(+), 20 deletions(-) d

[PATCH v5 0/7] incorporate pm runtime framework and eDP clean up

2023-10-04 Thread Kuogee Hsieh
(), dp_pm_resume() and dp_pm_prepare(), are removed and replaced with functions provided by pm runtiem framework such as pm_runtime_force_suspend() and pm_runtime_force_resume(). In addition, both eDP aux-bus and irq handler are bound at system probe time too. Kuogee Hsieh (7): drm/msm/dp: tie

Re: [PATCH v4 7/8] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-10-03 Thread Kuogee Hsieh
On 10/3/2023 3:36 PM, Dmitry Baryshkov wrote: On Wed, 4 Oct 2023 at 01:12, Kuogee Hsieh wrote: On 10/3/2023 10:53 AM, Dmitry Baryshkov wrote: On Tue, 3 Oct 2023 at 19:44, Kuogee Hsieh wrote: On 9/27/2023 3:00 PM, Dmitry Baryshkov wrote: On Wed, 27 Sept 2023 at 23:54, Kuogee Hsieh wrote

Re: [PATCH v4 7/8] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-10-03 Thread Kuogee Hsieh
On 10/3/2023 10:53 AM, Dmitry Baryshkov wrote: On Tue, 3 Oct 2023 at 19:44, Kuogee Hsieh wrote: On 9/27/2023 3:00 PM, Dmitry Baryshkov wrote: On Wed, 27 Sept 2023 at 23:54, Kuogee Hsieh wrote: After incorporated pm_runtime framework into eDP/DP driver, the incorporating original

Re: [PATCH v4 8/8] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-10-03 Thread Kuogee Hsieh
On 10/3/2023 10:56 AM, Dmitry Baryshkov wrote: On 03/10/2023 20:25, Kuogee Hsieh wrote: On 9/27/2023 2:57 PM, Dmitry Baryshkov wrote: On Wed, 27 Sept 2023 at 23:54, Kuogee Hsieh wrote: Currently eDP population is done at msm_dp_modeset_init() which happen at binding time. Move eDP

Re: [PATCH v4 8/8] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-10-03 Thread Kuogee Hsieh
On 9/27/2023 2:57 PM, Dmitry Baryshkov wrote: On Wed, 27 Sept 2023 at 23:54, Kuogee Hsieh wrote: Currently eDP population is done at msm_dp_modeset_init() which happen at binding time. Move eDP population to be done at display probe time so that probe deferral cases can be handled

Re: [PATCH v4 8/8] drm/msm/dp: move of_dp_aux_populate_bus() to eDP probe()

2023-10-03 Thread Kuogee Hsieh
On 9/27/2023 2:57 PM, Dmitry Baryshkov wrote: On Wed, 27 Sept 2023 at 23:54, Kuogee Hsieh wrote: Currently eDP population is done at msm_dp_modeset_init() which happen at binding time. Move eDP population to be done at display probe time so that probe deferral cases can be handled

  1   2   3   4   5   6   7   8   9   10   >