[Freedreno] [PATCH v1 1/2] drm/msm/dp: reset DP controller before transmit phy test pattern

2022-04-25 Thread Kuogee Hsieh
sinker once main link setup again. Fixes: ee35444be0c8 ("drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/d

[Freedreno] [PATCH v1 2/2] drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test

2022-04-25 Thread Kuogee Hsieh
: 64e190e720a7 ("drm/msm/dp: DisplayPort PHY compliance tests fixup") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c ind

Re: [Freedreno] [PATCH] drm/msm/dp: tear down main link at unplug handle immediately

2022-04-25 Thread Kuogee Hsieh
On 4/20/2022 3:38 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-04-14 14:03:43) Two stages are required to setup up main link to be ready to transmit video stream. Stage 1: dp_hpd_plug_handle() perform link training to set up main link stage 2: user space framework (msm_dp_display_enable

[Freedreno] [PATCH v2] drm/msm/dp: tear down main link at unplug handle immediately

2022-04-25 Thread Kuogee Hsieh
t;) Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 29 + drivers/gpu/drm/msm/dp/dp_ctrl.h| 1 + drivers/gpu/drm/msm/dp/dp_display.c | 113 +++- 3 files changed, 63 insertions(+), 80 deletions(-) di

[Freedreno] [PATCH v2 0/2] fix DP phy compliance test

2022-04-25 Thread Kuogee Hsieh
Current DP phy compliance test failed due to test pattern generation was terminated premature. Kuogee Hsieh (2): drm/msm/dp: reset DP controller before transmit phy test pattern drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test drivers/gpu/drm/msm/dp

[Freedreno] [PATCH v2 1/2] drm/msm/dp: reset DP controller before transmit phy test pattern

2022-04-25 Thread Kuogee Hsieh
sinker once main link setup again. Changes in v2: -- correct Fixes's commit id Fixes: 52352fe2f866 ("drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- 1

[Freedreno] [PATCH v2 2/2] drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test

2022-04-25 Thread Kuogee Hsieh
ike to use those level to start link training. Changes in v2: -- add more details commit text -- correct Fixes Fixes: 2e0adc765d88 ("drm/msm/dp: do not end dp link training until video is ready") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 15 +++

[Freedreno] [PATCH v2] drm/msm/dp: remove fail safe mode related code

2022-04-25 Thread Kuogee Hsieh
a4/0x684 __arm64_sys_ioctl+0x118/0x154 invoke_syscall+0x78/0x224 el0_svc_common+0x178/0x200 do_el0_svc+0x94/0x13c el0_svc+0x5c/0xec el0t_64_sync_handler+0x78/0x108 el0t_64_sync+0x1a4/0x1a8 Changes in v2: -- re text commit title -- remove a

[Freedreno] [PATCH v3 0/2] fix DP phy compliance test

2022-04-26 Thread Kuogee Hsieh
Current DP phy compliance test failed due to test pattern generation was terminated premature. Kuogee Hsieh (2): drm/msm/dp: reset DP controller before transmit phy test pattern drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test drivers/gpu/drm/msm/dp

[Freedreno] [PATCH v3 2/2] drm/msm/dp: do not stop transmitting phy test pattern during DP phy compliance test

2022-04-26 Thread Kuogee Hsieh
ike to use those level to start link training. Changes in v2: -- add more details commit text -- correct Fixes Changes in v3: -- drop unnecessary braces Fixes: 2e0adc765d88 ("drm/msm/dp: do not end dp link training until video is ready") Signed-off-by: Kuogee Hsieh Reviewed-by: S

[Freedreno] [PATCH v3 1/2] drm/msm/dp: reset DP controller before transmit phy test pattern

2022-04-26 Thread Kuogee Hsieh
sinker once main link setup again. Changes in v2: -- correct Fixes's commit id Fixes: 52352fe2f866 ("drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run") Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- 1

[Freedreno] [PATCH v3] drm/msm/dp: remove fail safe mode related code

2022-04-26 Thread Kuogee Hsieh
fail safe mode Changes in v3: -- remove dp_panel_add_fail_safe_mode() from dp_panel.h -- add Fixes Fixes: 8b2c181 ("drm/msm/dp: add fail safe mode outside of event_mutex context") Signed-off-by: Kuogee Hsieh Fixes: f1b47e6a8df8 ("drm/msm/dp: remove fail safe mode related code"

[Freedreno] [PATCH v4] drm/msm/dp: remove fail safe mode related code

2022-04-26 Thread Kuogee Hsieh
fail safe mode Changes in v3: -- remove dp_panel_add_fail_safe_mode() from dp_panel.h -- add Fixes Changes in v4: -- to=diand...@chromium.org Fixes: 8b2c181 ("drm/msm/dp: add fail safe mode outside of event_mutex context") Signed-off-by: Kuogee Hsieh Fixes: f1b47e6a8df8 ("drm/m

[Freedreno] [PATCH v5] drm/msm/dp: remove fail safe mode related code

2022-04-26 Thread Kuogee Hsieh
fail safe mode Changes in v3: -- remove dp_panel_add_fail_safe_mode() from dp_panel.h -- add Fixes Changes in v4: -- to=diand...@chromium.org Fixes: 8b2c181 ("drm/msm/dp: add fail safe mode outside of event_mutex context") Reported-by: Douglas Anderson Signed-off-by: Kuogee

[Freedreno] [PATCH v6] drm/msm/dp: remove fail safe mode related code

2022-04-26 Thread Kuogee Hsieh
fail safe mode Changes in v3: -- remove dp_panel_add_fail_safe_mode() from dp_panel.h -- add Fixes Changes in v5: -- to=diand...@chromium.org Changes in v6: -- fix Fixes commit ID Fixes: 8b2c181e3dcf ("drm/msm/dp: add fail safe mode outside of event_mutex context") Reported

Re: [Freedreno] [PATCH v4 5/5] drm/msm/dp: Implement hpd_notify()

2022-05-02 Thread Kuogee Hsieh
On 5/2/2022 9:53 AM, Bjorn Andersson wrote: The Qualcomm DisplayPort driver contains traces of the necessary plumbing to hook up USB HPD, in the form of the dp_hpd module and the dp_usbpd_cb struct. Use this as basis for implementing the hpd_notify() callback, by amending the dp_hpd module with

[Freedreno] [PATCH] drm/msm/dp: fix event thread stuck in wait_event after kthread_sop()

2022-05-02 Thread Kuogee Hsieh
kthread_should_stop() into wait_event's condition checking so that event thread will exit its loop after kernal_stop(). Fixes: 570d3e5d28db ("drm/msm/dp: stop event kernel thread when DP unbind") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 11 --- 1 file change

Re: [Freedreno] [PATCH v4 5/5] drm/msm/dp: Implement hpd_notify()

2022-05-02 Thread Kuogee Hsieh
On 5/2/2022 3:29 PM, Bjorn Andersson wrote: On Mon 02 May 13:59 PDT 2022, Kuogee Hsieh wrote: On 5/2/2022 9:53 AM, Bjorn Andersson wrote: The Qualcomm DisplayPort driver contains traces of the necessary plumbing to hook up USB HPD, in the form of the dp_hpd module and the dp_usbpd_cb struct

[Freedreno] [PATCH v2] drm/msm/dp: fix event thread stuck in wait_event after kthread_stop()

2022-05-02 Thread Kuogee Hsieh
kthread_should_stop() into wait_event's condition checking so that event thread will exit its loop after kernal_stop(). Changes in v2: -- correct spelling error at commit title Reported-by: Dmitry Baryshkov Fixes: 570d3e5d28db ("drm/msm/dp: stop event kernel thread when DP unbind") Signed-off-b

Re: [Freedreno] [PATCH v2] drm/msm/dp: fix event thread stuck in wait_event after kthread_stop()

2022-05-03 Thread Kuogee Hsieh
On 5/2/2022 6:13 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-05-02 16:04:28) Event thread supposed to exit from its while loop after kthread_stop(). However there may has possibility that event thread is pending in the middle of wait_event due to condition checking never become true

[Freedreno] [PATCH v3] drm/msm/dp: fix event thread stuck in wait_event after kthread_stop()

2022-05-03 Thread Kuogee Hsieh
shkov Fixes: 570d3e5d28db ("drm/msm/dp: stop event kernel thread when DP unbind") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers

[Freedreno] [PATCH] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-06 Thread Kuogee Hsieh
checking to always clear mask bits of interrupt status registers to disable interrupts if enable flag is false. Fixes: ba0a422be723 ("drm/msm/dp: do not initialize phy until plugin interrupt received") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 9 +++-- 1 file

Re: [Freedreno] [PATCH] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-09 Thread Kuogee Hsieh
On 5/6/2022 5:29 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-05-06 14:41:07) dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable

[Freedreno] [PATCH v2] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-09 Thread Kuogee Hsieh
ll be handled though, so it's possible the irq is pending from before we disable the irq in the hardware. Changes in v2: -- add more details commit text Fixes: ba0a422be723 ("drm/msm/dp: do not initialize phy until plugin interrupt received") Signed-off-by: Kuogee Hsieh --- dr

[Freedreno] [PATCH v3] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
rrupt received") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 9 +++-- drivers/gpu/drm/msm/dp/dp_display.c | 18 ++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_

[Freedreno] [PATCH v4] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
t;drm/msm/dp: do not initialize phy until plugin interrupt received") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 9 +++-- drivers/gpu/drm/msm/dp/dp_display.c | 18 ++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/m

Re: [Freedreno] [PATCH v4] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
On 5/11/2022 2:47 PM, Dmitry Baryshkov wrote: On 12/05/2022 00:40, Kuogee Hsieh wrote: dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable

[Freedreno] [PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
Changes in v3: -- add synchrons_irq() -- add atomic_t suspended Changes in v4: -- correct Fixes's commit ID -- remove synchrons_irq() Changes in v5: -- revise commit text Fixes: 989ebe7bc446 ("drm/msm/dp: do not initialize phy until plugin interrupt received") Signed-off-by: Kuoge

Re: [Freedreno] [PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-12 Thread Kuogee Hsieh
On 5/11/2022 6:03 PM, Dmitry Baryshkov wrote: On Thu, 12 May 2022 at 04:01, Stephen Boyd wrote: Quoting Dmitry Baryshkov (2022-05-11 17:41:50) On 12/05/2022 03:02, Kuogee Hsieh wrote: diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c index af7a80c..f3e333e

Re: [Freedreno] [PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-12 Thread Kuogee Hsieh
On 5/11/2022 6:03 PM, Dmitry Baryshkov wrote: On Thu, 12 May 2022 at 04:01, Stephen Boyd wrote: Quoting Dmitry Baryshkov (2022-05-11 17:41:50) On 12/05/2022 03:02, Kuogee Hsieh wrote: diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c index af7a80c..f3e333e

[Freedreno] [PATCH v6] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-12 Thread Kuogee Hsieh
ize phy until plugin interrupt received") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 9 +++-- drivers/gpu/drm/msm/dp/dp_display.c | 25 - 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c

Re: [Freedreno] [PATCH v6] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-17 Thread Kuogee Hsieh
On 5/17/2022 1:25 AM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-05-12 12:43:18) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/drm/msm/dp/dp_ctrl.c index af7a80c..f3e333e 100644 --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c @@ -1389,8 +1389,13

[Freedreno] [PATCH v7] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-17 Thread Kuogee Hsieh
Changes in v5: -- revise commit text Changes in v6: -- add event_lock to protect "suspended" Changes in v7: -- delete "suspended" flag Fixes: 989ebe7bc446 ("drm/msm/dp: do not initialize phy until plugin interrupt received") Signed-off-by: Kuogee Hsieh --- driv

[Freedreno] [PATCH v1 1/2] phy/qcom: add regulator_set_load to edp/dp phy

2022-05-17 Thread Kuogee Hsieh
This patch add regulator_set_load() to both eDP and DP phy driver to have totally control regulators. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 25 + drivers/phy/qualcomm/phy-qcom-qmp.c | 24 2 files changed, 45

[Freedreno] [PATCH v1 0/2] eDP/DP Phy vdda realted function

2022-05-17 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP/DP phy 2) remove vdda related function out of eDP/DP controller Kuogee Hsieh (2): phy/qcom: add regulator_set_load to edp/dp phy drm/msm/dp: delete vdda regulator related functions from eDP/DP controller drivers/gpu/drm/msm/dp/dp_parser.c | 14

[Freedreno] [PATCH v1 2/2] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-17 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch remove vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_parser.c | 14 -- drivers

Re: [Freedreno] [PATCH v1 1/2] phy/qcom: add regulator_set_load to edp/dp phy

2022-05-18 Thread Kuogee Hsieh
On 5/18/2022 2:29 AM, Vinod Koul wrote: On 17-05-22, 10:25, Kuogee Hsieh wrote: pls use the correct subsystem tag, "phy: xxx" in this case This patch add regulator_set_load() to both eDP and DP phy driver to have totally control regulators. Can you explain what is meant by "

[Freedreno] [PATCH v2 0/2] eDP/DP Phy vdda realted function

2022-05-18 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP/DP phy 2) remove vdda related function out of eDP/DP controller Kuogee Hsieh (2): phy/qcom: add regulator_set_load to edp/dp phy drm/msm/dp: delete vdda regulator related functions from eDP/DP controller drivers/gpu/drm/msm/dp/dp_parser.c | 14

[Freedreno] [PATCH v2 1/2] phy/qcom: add regulator_set_load to edp/dp phy

2022-05-18 Thread Kuogee Hsieh
This patch add regulator_set_load() to both eDP and DP phy driver to have totally control regulators. Changes in v2: -- no regulator_set_laod() before disable regulator Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 25 + drivers/phy/qualcomm/phy

[Freedreno] [PATCH v2 2/2] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-18 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch remove vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_parser.c | 14 -- drivers

Re: [Freedreno] [PATCH v2 0/2] eDP/DP Phy vdda realted function

2022-05-18 Thread Kuogee Hsieh
On 5/18/2022 10:16 AM, Dmitry Baryshkov wrote: On Wed, 18 May 2022 at 19:43, Kuogee Hsieh wrote: 1) add regulator_set_load() to eDP/DP phy 2) remove vdda related function out of eDP/DP controller These patches touch two subsystems and have a dependency between them. How do we merge them

Re: [Freedreno] [PATCH v2 1/2] phy/qcom: add regulator_set_load to edp/dp phy

2022-05-18 Thread Kuogee Hsieh
On 5/18/2022 10:12 AM, Dmitry Baryshkov wrote: On Wed, 18 May 2022 at 19:43, Kuogee Hsieh wrote: This patch add regulator_set_load() to both eDP and DP phy driver to have totally control regulators. Changes in v2: -- no regulator_set_laod() before disable regulator Signed-off-by: Kuogee

Re: [Freedreno] [PATCH v2 1/2] phy/qcom: add regulator_set_load to edp/dp phy

2022-05-18 Thread Kuogee Hsieh
On 5/18/2022 10:52 AM, Dmitry Baryshkov wrote: On 18/05/2022 20:36, Kuogee Hsieh wrote: On 5/18/2022 10:12 AM, Dmitry Baryshkov wrote: On Wed, 18 May 2022 at 19:43, Kuogee Hsieh wrote: This patch add regulator_set_load() to both eDP and DP phy driver to have totally control regulators

Re: [Freedreno] [PATCH v2 0/2] eDP/DP Phy vdda realted function

2022-05-18 Thread Kuogee Hsieh
On 5/18/2022 10:31 AM, Dmitry Baryshkov wrote: On 18/05/2022 20:29, Kuogee Hsieh wrote: On 5/18/2022 10:16 AM, Dmitry Baryshkov wrote: On Wed, 18 May 2022 at 19:43, Kuogee Hsieh wrote: 1) add regulator_set_load() to eDP/DP phy 2) remove vdda related function out of eDP/DP controller

[Freedreno] [PATCH v3 0/3] eDP/DP Phy vdda realted function

2022-05-18 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy/qualcomm: add regulator_set_load to edp phy phy/qualcomm: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v3 1/3] phy/qualcomm: add regulator_set_load to edp phy

2022-05-18 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Changes in v3: -- no regulator_set_load before disable regulator -- no supply name string change at probe -- split into two patches Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 10

[Freedreno] [PATCH v3 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-18 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_parser.c | 14 -- drivers

[Freedreno] [PATCH v3 2/3] phy/qualcomm: add regulator_set_load to dp phy

2022-05-18 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Changes in v2: -- no regulator_set_load() before disable regulator Changes in v3: -- split into two patches Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-qmp.c | 12 1 file changed, 12

[Freedreno] [PATCH v4 0/3] eDP/DP Phy vdda realted function

2022-05-18 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy/qualcomm: add regulator_set_load to edp phy phy/qualcomm: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v4 1/3] phy/qualcomm: add regulator_set_load to edp phy

2022-05-18 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom

[Freedreno] [PATCH v4 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-18 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/gpu/drm/msm/dp

[Freedreno] [PATCH v4 2/3] phy/qualcomm: add regulator_set_load to dp phy

2022-05-18 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy

[Freedreno] [PATCH v5 0/3] eDP/DP Phy vdda realted function

2022-05-19 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v5 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-19 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom

[Freedreno] [PATCH v5 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-19 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy

[Freedreno] [PATCH v5 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-19 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

Re: [Freedreno] [PATCH v7] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-19 Thread Kuogee Hsieh
On 5/17/2022 9:21 AM, Kuogee Hsieh wrote: Is anyone has comments on this patch? dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts

[Freedreno] [PATCH v6 0/3] eDP/DP Phy vdda realted function

2022-05-19 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v6 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-19 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom

[Freedreno] [PATCH v6 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-19 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy

[Freedreno] [PATCH v6 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-19 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

Re: [Freedreno] [PATCH v6 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-20 Thread Kuogee Hsieh
On 5/19/2022 5:19 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-05-19 16:11:40) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index cacd32f..78b7306 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c

[Freedreno] [PATCH v7 0/3] eDP/DP Phy vdda realted function

2022-05-20 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v7 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom

[Freedreno] [PATCH v7 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy

[Freedreno] [PATCH v7 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-20 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v8 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index cacd32f

[Freedreno] [PATCH v8 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy

[Freedreno] [PATCH v8 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-20 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v8 0/3] eDP/DP Phy vdda realted function

2022-05-20 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v9 0/3] eDP/DP Phy vdda realted function

2022-05-20 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v9 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index cacd32f

[Freedreno] [PATCH v9 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom

[Freedreno] [PATCH v9 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-20 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v10 0/3] eDP/DP Phy vdda realted function

2022-05-20 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v10 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index

[Freedreno] [PATCH v10 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-20 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v10 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom

[Freedreno] [PATCH v11 0/3] eDP/DP Phy vdda realted function

2022-05-20 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v11 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-20 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v11 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy

[Freedreno] [PATCH v11 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-20 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh --- drivers/phy/qualcomm/phy-qcom-edp.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index

[Freedreno] [PATCH v12 0/3] eDP/DP Phy vdda realted function

2022-05-25 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v12 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-25 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Douglas Anderson --- drivers/phy/qualcomm/phy-qcom-edp.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy

[Freedreno] [PATCH v12 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-25 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 41 + 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/drivers/phy

[Freedreno] [PATCH v12 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-25 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH v13 0/3] eDP/DP Phy vdda realted function

2022-05-25 Thread Kuogee Hsieh
1) add regulator_set_load() to eDP phy 2) add regulator_set_load() to DP phy 3) remove vdda related function out of eDP/DP controller Kuogee Hsieh (3): phy: qcom-edp: add regulator_set_load to edp phy phy: qcom-qmp: add regulator_set_load to dp phy drm/msm/dp: delete vdda regulator related

[Freedreno] [PATCH v13 1/3] phy: qcom-edp: add regulator_set_load to edp phy

2022-05-25 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Douglas Anderson --- drivers/phy/qualcomm/phy-qcom-edp.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy

[Freedreno] [PATCH v13 2/3] phy: qcom-qmp: add regulator_set_load to dp phy

2022-05-25 Thread Kuogee Hsieh
This patch add regulator_set_load() before enable regulator at DP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Douglas Anderson --- drivers/phy/qualcomm/phy-qcom-qmp.c | 40 - 1 file changed, 31 insertions(+), 9 deletions

[Freedreno] [PATCH v13 3/3] drm/msm/dp: delete vdda regulator related functions from eDP/DP controller

2022-05-25 Thread Kuogee Hsieh
Vdda regulators are related to both eDP and DP phy so that it should be managed at eDP and DP phy driver instead of controller. This patch removes vdda regulators related functions out of eDP/DP controller. Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd Reviewed-by: Dmitry Baryshkov

[Freedreno] [PATCH] drm/msm/dp: force link training for display resolution change

2022-05-26 Thread Kuogee Hsieh
During display resolution changes display have to be disabled first followed by display enable with new resolution. This patch force main link always be retrained during display enable procedure to simplify implementation instead of manually kicking of irq_hpd handle. Signed-off-by: Kuogee Hsieh

[Freedreno] [PATCH v2] drm/msm/dp: force link training for display resolution change

2022-05-26 Thread Kuogee Hsieh
force_link_train flag on DP only (is_edp == false) Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 6 +++--- drivers/gpu/drm/msm/dp/dp_ctrl.h| 2 +- drivers/gpu/drm/msm/dp/dp_display.c | 15 --- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a

Re: [Freedreno] [PATCH] drm/msm/dp: force link training for display resolution change

2022-05-27 Thread Kuogee Hsieh
On 5/26/2022 5:07 PM, Stephen Boyd wrote: Quoting Kuogee Hsieh (2022-05-26 10:26:18) During display resolution changes display have to be disabled first followed by display enable with new resolution. This patch force main link always be retrained during display enable procedure to simplify

[Freedreno] [PATCH v3] drm/msm/dp: force link training for display resolution change

2022-05-27 Thread Kuogee Hsieh
Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl.c| 6 +++--- drivers/gpu/drm/msm/dp/dp_ctrl.h| 2 +- drivers/gpu/drm/msm/dp/dp_display.c | 15 --- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c b/drivers/gpu/

[Freedreno] [PATCH v4] drm/msm/dp: force link training for display resolution change

2022-05-27 Thread Kuogee Hsieh
(is_edp == false) Changes in v3: -- revise commit text -- add Fixes tag Changes in v4: -- revise commit text Fixes: 62671d2ef24b ("drm/msm/dp: fixes wrong connection state caused by failure of link train") Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_ctrl

[Freedreno] [PATCH] dt-bindings: msm: update maintainers list with proper id

2022-06-03 Thread Kuogee Hsieh
Use quic id instead of codeaurora id in maintainers list for display devicetree bindings. Signed-off-by: Kuogee Hsieh --- Documentation/devicetree/bindings/display/msm/dp-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings

[Freedreno] [PATCH v1 0/2] Fix NOC fatal error if msm_drm_init() failed

2022-06-03 Thread Kuogee Hsieh
system crash due to NOC fatal error if any module initialization faield during msm_drm_init() Kuogee Hsieh (2): drm/msm: enable msm irq after all initializations are done successfully at msm_drm_init() drm/msm/dp: check core_initialized before disable interrupts at dp_display_unbind

[Freedreno] [PATCH v1 2/2] drm/msm/dp: check core_initialized before disable interrupts at dp_display_unbind()

2022-06-03 Thread Kuogee Hsieh
[01f21a217]CNOC3 ERROR: ERRLOG0_LOW = 0x0006 QTISECLIB [01f23dfd3]NOC error fatal Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp

[Freedreno] [PATCH v1 1/2] drm/msm: enable msm irq after all initializations are done successfully at msm_drm_init()

2022-06-03 Thread Kuogee Hsieh
successfully so that no msm_irq_unistall() required at msm_drm_uninit() if any module initialization failed happen at msm_drm_init(). Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/msm_drv.c | 29 ++--- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a

Re: [Freedreno] [PATCH v4] drm/msm/dp: force link training for display resolution change

2022-06-03 Thread Kuogee Hsieh
Any one has any comments? Thanks, On 5/27/2022 2:32 PM, Kuogee Hsieh wrote: During display resolution changes display have to be disabled first followed by display enabling with new resolution. Display disable will turn off both pixel clock and main link clock so that main link have to be re

<    1   2   3   4   5   6   7   8   9   10   >