Re: [RFC PATCH 1/4] drm/msm: register a fault handler for display mmu faults

2024-05-20 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-05-17 16:37:56) > diff --git a/drivers/gpu/drm/msm/msm_kms.c b/drivers/gpu/drm/msm/msm_kms.c > index af6a6fcb1173..62c8e6163e81 100644 > --- a/drivers/gpu/drm/msm/msm_kms.c > +++ b/drivers/gpu/drm/msm/msm_kms.c > @@ -200,6 +200,28 @@ struct msm_gem_address_space

Re: [PATCH] drm/msm: remove python 3.9 dependency for compiling msm

2024-05-08 Thread Stephen Boyd
Quoting Jani Nikula (2024-05-08 01:43:56) > On Tue, 07 May 2024, Abhinav Kumar wrote: > > Since commit 5acf49119630 ("drm/msm: import gen_header.py script from > > Mesa"), > > compilation is broken on machines having python versions older than 3.9 > > due to dependency on

[PATCH] phy: qcom: qmp-combo: Fix register base for QSERDES_DP_PHY_MODE

2024-04-04 Thread Stephen Boyd
c: Douglas Anderson Cc: Abhinav Kumar Cc: Dmitry Baryshkov Cc: Neil Armstrong Cc: Abel Vesa Cc: Steev Klimaszewski Cc: Johan Hovold Cc: Bjorn Andersson Fixes: 815891eee668 ("phy: qcom-qmp-combo: Introduce orientation variable") Signed-off-by: Stephen Boyd --- drivers/phy/qualcomm/phy-

[PATCH] phy: qcom: qmp-combo: Fix VCO div offset on v3

2024-04-04 Thread Stephen Boyd
ank screen or a garbled display. Other monitors are perfectly happy to get a bad clock signal. Cc: Douglas Anderson Cc: Abhinav Kumar Cc: Dmitry Baryshkov Fixes: ec17373aebd0 ("phy: qcom: qmp-combo: extract common function to setup clocks") Signed-off-by: Stephen Boyd --- drivers/p

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

2024-04-03 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-04-03 14:28:52) > > > On 4/3/2024 1:04 PM, Stephen Boyd wrote: > > Quoting Abhinav Kumar (2024-04-03 12:58:50) > >> > >> > >> On 4/3/2024 12:51 PM, Stephen Boyd wrote: > >>> Quoting Kuogee Hsieh (2024-03-29 12:

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

2024-04-03 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-04-03 12:58:50) > > > On 4/3/2024 12:51 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2024-03-29 12:50:35) > >> Currently qmp_combo_dp_power_on() always return 0 in regardless of > >> return value of cfg->configure_dp_phy(). Th

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

2024-04-03 Thread Stephen Boyd
Quoting Kuogee Hsieh (2024-03-29 12:50:35) > 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. Is this found via code inspection or because the

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

2024-03-28 Thread Stephen Boyd
Quoting Kuogee Hsieh (2024-03-28 14:07:15) > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > index 36632fa..884973a 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > @@ -2754,6

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

2024-03-28 Thread Stephen Boyd
Quoting Abhinav Kumar (2024-03-28 13:24:34) > + Johan and Bjorn for FYI > > On 3/28/2024 1:04 PM, Kuogee Hsieh wrote: > > For internal HPD case, hpd_event_thread is created to handle HPD > > interrupts generated by HPD block of DP controller. It converts > > HPD interrupts into events and executed

[PATCH] drm/msm: Add newlines to some debug prints

2024-03-25 Thread Stephen Boyd
m/msm: Move FB debug prints to drm_dbg_state()") Fixes: 721c6e0c6aed ("drm/msm: Move vblank debug prints to drm_dbg_vbl()") Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/msm_fb.c | 6 +++--- drivers/gpu/drm/msm/msm_kms.c | 4 ++-- 2 files changed, 5 insertions(+), 5 dele

Re: [PATCH v2 4/4] drm/msm/dp: Fix typo in static function (ststus => status)

2024-03-18 Thread Stephen Boyd
Quoting Douglas Anderson (2024-03-15 14:36:32) > This is a no-op change to just fix a typo in the name of a static function. > > Signed-off-by: Douglas Anderson > --- > > Changes in v2: > - ("Fix typo in static function (ststus => status)") new for v2. This was sent at

Re: [PATCH] drm/msm/dp: fix runtime_pm handling in dp_wait_hpd_asserted

2024-02-28 Thread Stephen Boyd
function to use pm_runtime_resume_and_get() and return an > error if resume fails. > > Fixes: e2969ee30252 ("drm/msm/dp: move of_dp_aux_populate_bus() to eDP > probe()") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [PATCH] drm/msm/dpu: drop obsolete documentation for dpu_encoder_virt

2023-12-16 Thread Stephen Boyd
m/msm/dpu: move encoder status to standard encoder > debugfs dir") > Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support

2023-11-09 Thread Stephen Boyd
Quoting Stephen Boyd (2023-11-08 20:20:50) > > Here's what's happening without any changes > > 1. mdp and rot are sourcing from disp_cc_pll0 at driver probe, disp_cc_pll0 > is enabled > 2. mdp is configured to restore on XO > 3. rot is configured to restore on XO >

Re: [Freedreno] [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support

2023-11-08 Thread Stephen Boyd
Quoting Stephen Boyd (2023-11-07 19:18:45) > > I also tried skipping slamming a bunch of PLL config register writes > into the PLL at probe by removing the clk_fabia_pll_configure() call but > it doesn't fix it. Maybe I need to measure the clk at probe time to see > if it is

Re: [Freedreno] [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support

2023-11-07 Thread Stephen Boyd
Quoting Stephen Boyd (2023-11-07 14:50:18) > Quoting Dmitry Baryshkov (2023-11-06 18:00:04) > > On Tue, 7 Nov 2023 at 03:36, Stephen Boyd wrote: > > > > > > Quoting Stephen Boyd (2023-11-03 18:24:47) > > > > > > I looked at this more today. It se

Re: [Freedreno] [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support

2023-11-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-11-06 18:00:04) > On Tue, 7 Nov 2023 at 03:36, Stephen Boyd wrote: > > > > Quoting Stephen Boyd (2023-11-03 18:24:47) > > > > I looked at this more today. It seems that I need to both read the > > config register at init and also mov

Re: [Freedreno] [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support

2023-11-06 Thread Stephen Boyd
Quoting Stephen Boyd (2023-11-03 18:24:47) > Quoting Dmitry Baryshkov (2023-10-03 18:23:07) > > + > > + ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CFG_REG, ); > > + if (ret) > > + return ret; > > + > > + r

Re: [Freedreno] [RFC PATCH v2 2/3] clk: qcom: implement RCG2 'parked' clock support

2023-11-03 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-10-03 18:23:07) > clk_rcg2_shared_ops implements support for the case of the RCG which > must not be completely turned off. However its design has one major > drawback: it doesn't allow us to properly implement the is_enabled > callback, which causes different kinds

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

2023-10-10 Thread Stephen Boyd
rm/msm/dp/dp_aux.c | 39 +++- > drivers/gpu/drm/msm/dp/dp_display.c | 333 > Tested-by: Stephen Boyd # Trogdor.Lazor I ran some suspend cycles too with the lid open and closed.

Re: [Freedreno] [PATCH] drm/msm/dp: support setting the DP subconnector type

2023-10-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 15:24:32) > Read the downstream port info and set the subconnector type accordingly. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 6/7] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-10-02 Thread Stephen Boyd
Quoting Abhinav Kumar (2023-09-28 17:46:11) > On 9/27/2023 3:01 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2023-09-25 09:07:18) > >> > >> However for external DP case, link training can not be guarantee always > >> success without link rate or lan

Re: [Freedreno] [PATCH v3 6/7] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-09-27 Thread Stephen Boyd
Quoting Kuogee Hsieh (2023-09-25 09:07:18) > > On 9/22/2023 6:35 PM, Abhinav Kumar wrote: > > > > Doing link training when we get hpd instead of atomic_enable() is a > > design choice we have been following for a while because for the case > > when link training fails in atomic_enable() and

Re: [Freedreno] [PATCH v3 6/7] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-09-27 Thread Stephen Boyd
Quoting Abhinav Kumar (2023-09-22 18:35:27) > On 9/22/2023 2:54 PM, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2023-09-19 02:50:12) > >> > >> This should be hpd_notify, who starts link training, not some event. > > > > I think this driver sho

Re: [Freedreno] [PATCH v3 6/7] drm/msm/dp: add pm_runtime_force_suspend()/resume()

2023-09-22 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-19 02:50:12) > On Mon, 18 Sept 2023 at 20:48, Kuogee Hsieh wrote: > > > > > > On 9/15/2023 6:21 PM, Dmitry Baryshkov wrote: > > > On Sat, 16 Sept 2023 at 00:38, Kuogee Hsieh > > > wrote: > > >> Add pm_runtime_force_suspend()/resume() to complete incorporating

Re: [Freedreno] [PATCH] drm/msm/dp: support setting the DP subconnector type

2023-09-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-07 14:48:54) > On 08/09/2023 00:34, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2023-09-03 15:24:32) > >> diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c > >> b/drivers/gpu/drm/msm/dp/dp_panel.c > >> index 97ba41593820..1c

Re: [Freedreno] [PATCH] drm/msm/dp: skip validity check for DP CTS EDID checksum

2023-09-07 Thread Stephen Boyd
ther in the future. > > (*) drm_get_edid() ignores checksum errors on CTA extensions. > > Cc: Abhinav Kumar > Cc: Dmitry Baryshkov > Cc: Kuogee Hsieh > Cc: Marijn Suijten > Cc: Rob Clark > Cc: Sean Paul > Cc: Stephen Boyd > Cc: linux-arm-...@vger.kern

Re: [Freedreno] [PATCH] drm/msm/dp: support setting the DP subconnector type

2023-09-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 15:24:32) > diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c > b/drivers/gpu/drm/msm/dp/dp_panel.c > index 97ba41593820..1cb54f26f5aa 100644 > --- a/drivers/gpu/drm/msm/dp/dp_panel.c > +++ b/drivers/gpu/drm/msm/dp/dp_panel.c > @@ -162,6 +162,11 @@ int

Re: [Freedreno] [PATCH 4/6] drm/msm: add a kernel param to select between MDP5 and DPU drivers

2023-09-06 Thread Stephen Boyd
ers. > > All platforms supported by both drivers are by default handled by the > MDP5 driver. To let them be handled by the DPU driver pass the > `msm.prefer_mdp5=false` kernel param. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 3/6] drm/msm/dpu: support binding to the mdp5 devices

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-05 10:43:50) > diff --git a/drivers/gpu/drm/msm/msm_io_utils.c > b/drivers/gpu/drm/msm/msm_io_utils.c > index 59d2788c4510..9d0d76f3a319 100644 > --- a/drivers/gpu/drm/msm/msm_io_utils.c > +++ b/drivers/gpu/drm/msm/msm_io_utils.c > @@ -50,6 +50,24 @@ struct clk

Re: [Freedreno] [PATCH 2/6] drm/msm/mdss: generate MDSS data for MDP5 platforms

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-05 10:43:49) > diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c > index 348c66b14683..fb6ee93b5abc 100644 > --- a/drivers/gpu/drm/msm/msm_mdss.c > +++ b/drivers/gpu/drm/msm/msm_mdss.c > @@ -222,6 +222,36 @@ static void

Re: [Freedreno] [PATCH v3 5/8] drm/msm/dpu: enable INTF TE operations only when supported by HW

2023-09-06 Thread Stephen Boyd
nstances, check for the major && INTF type. > > Reviewed-by: Marijn Suijten > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 6/8] drm/msm/dpu: drop DPU_INTF_TE feature flag

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 19:04:52) > Replace the only user of the DPU_INTF_TE feature flag with the direct > DPU version comparison. > > Reviewed-by: Marijn Suijten > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 7/8] drm/msm/dpu: drop useless check from dpu_encoder_phys_cmd_te_rd_ptr_irq()

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 19:04:53) > The dpu_encoder_phys_cmd_te_rd_ptr_irq() function uses neither hw_intf > nor hw_pp data, so we can drop the corresponding check. > > Reviewed-by: Marijn Suijten > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 8/8] drm/msm/dpu: move INTF tearing checks to dpu_encoder_phys_cmd_init

2023-09-06 Thread Stephen Boyd
g this check in dpu_encoder_phys_cmd_tearcheck_config() is less > useful, as this function returns void. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 4/8] drm/msm/dpu: inline _setup_intf_ops()

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 19:04:50) > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c > b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c > index 8ec6505d9e78..dd67686f5403 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c > +++

Re: [Freedreno] [PATCH v3 3/8] drm/msm/dpu: drop the DPU_PINGPONG_TE flag

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 19:04:49) > The DPU_PINGPONG_TE flag became unused, we can drop it now. > > Reviewed-by: Marijn Suijten > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 2/8] drm/msm/dpu: enable PINGPONG TE operations only when supported by HW

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 19:04:48) > The DPU_PINGPONG_TE bit is set for all PINGPONG blocks on DPU < 5.0. > Rather than checking for the flag, check for the presense of the s/presense/presence/ > corresponding interrupt line. The patch checks for the major version though?

Re: [Freedreno] [PATCH v3 1/8] drm/msm/dpu: inline _setup_pingpong_ops()

2023-09-06 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 19:04:47) > Inline the _setup_pingpong_ops() function, it makes it easier to handle > different conditions involving PINGPONG configuration. > > Reviewed-by: Marijn Suijten > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

[Freedreno] [PATCH 2/2] drm/msm/dp: Remove error message when downstream port not connected

2023-09-06 Thread Stephen Boyd
count device. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_panel.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c index 97ba41593820..ae778e1a6fd0 100644 --- a/drivers

[Freedreno] [PATCH 1/2] drm/msm/dp: Inline dp_display_is_sink_count_zero()

2023-09-06 Thread Stephen Boyd
This function is basically a one-liner when you ignore the debug logging. Just inline the function and drop the log to simplify the code. Suggested-by: Dmitry Baryshkov Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_display.c | 10 +- 1

[Freedreno] [PATCH 0/2] drm/msm/dp: More DPCD cleanups

2023-09-06 Thread Stephen Boyd
This is a follow-on to this series[1]. I can resend the whole pile if desired. [1] https://lore.kernel.org/r/20230829184735.2841739-1-swb...@chromium.org Stephen Boyd (2): drm/msm/dp: Inline dp_display_is_sink_count_zero() drm/msm/dp: Remove error message when downstream port not connected

Re: [Freedreno] [PATCH 7/7] drm/msm/dp: Remove dp_display_is_ds_bridge()

2023-09-05 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-09-03 15:40:49) > On 29/08/2023 21:47, Stephen Boyd wrote: > > This function is simply drm_dp_is_branch() so use that instead of > > open-coding it. > > > > Cc: Vinod Polimera > > Cc: Kuogee Hsieh > > Signed-off-by: Stephen

[Freedreno] [PATCH 6/7] drm/msm/dp: Inline dp_link_parse_sink_count()

2023-08-29 Thread Stephen Boyd
ust use drm_dp_read_sink_count() in the one place this function is called to simplify. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_link.c | 38 +++- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/driv

[Freedreno] [PATCH 2/7] drm/msm/dp: Use drm_dp_read_sink_count() helper

2023-08-29 Thread Stephen Boyd
Use the common function drm_dp_read_sink_count() instead of open-coding it. This shrinks the kernel text a tiny bit. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_panel.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions

[Freedreno] [PATCH 7/7] drm/msm/dp: Remove dp_display_is_ds_bridge()

2023-08-29 Thread Stephen Boyd
This function is simply drm_dp_is_branch() so use that instead of open-coding it. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_display.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/msm/dp

[Freedreno] [PATCH 3/7] drm/msm/dp: Remove dead code related to downstream cap info

2023-08-29 Thread Stephen Boyd
to downstream ports. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_panel.c | 25 +++-- drivers/gpu/drm/msm/dp/dp_panel.h | 6 -- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/drivers/gpu/drm/msm/dp

[Freedreno] [PATCH 4/7] drm/msm/dp: Remove aux_cfg_update_done and related code

2023-08-29 Thread Stephen Boyd
The member 'aux_cfg_update_done' is always false. This is dead code that never runs. Remove it. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_panel.c | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/gpu/drm/msm/dp

[Freedreno] [PATCH 5/7] drm/msm/dp: Simplify with drm_dp_{max_link_rate, max_lane_count}()

2023-08-29 Thread Stephen Boyd
These are open-coded versions of common functions. Replace them with the common code to improve readability. Cc: Vinod Polimera Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_panel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[Freedreno] [PATCH 0/7] drm/msm/dp: Simplify DPCD related code with helpers

2023-08-29 Thread Stephen Boyd
, but I haven't tried to do that yet. Stephen Boyd (7): drm/msm/dp: Replace open-coded drm_dp_read_dpcd_caps() drm/msm/dp: Use drm_dp_read_sink_count() helper drm/msm/dp: Remove dead code related to downstream cap info drm/msm/dp: Remove aux_cfg_update_done and related code drm/msm/dp: Simplify

[Freedreno] [PATCH 1/7] drm/msm/dp: Replace open-coded drm_dp_read_dpcd_caps()

2023-08-29 Thread Stephen Boyd
Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_panel.c | 42 --- drivers/gpu/drm/msm/dp/dp_panel.h | 4 +-- 2 files changed, 6 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp

[Freedreno] [PATCH] drm/msm/dp: Add newlines to debug printks

2023-08-25 Thread Stephen Boyd
These debug printks are missing newlines, causing drm debug logs to be hard to read. Add newlines so that the messages are on their own line. Cc: Kuogee Hsieh Cc: Vinod Polimera Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [Freedreno] [PATCH v1] drm/msm/dp: do not reinitialize phy unless retry during link training

2023-08-25 Thread Stephen Boyd
t; failed. > > [drm:dp_aux_isr] *ERROR* Unexpected DP AUX IRQ 0x0100 when not busy > > Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") > Closes: https://gitlab.freedesktop.org/drm/msm/-/issues/30 > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v1 1/2] drm/msm/dp: enable HDP plugin/unplugged interrupts to hpd_enable/disable

2023-05-12 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-05-11 17:54:19) > On Fri, 12 May 2023 at 03:16, Kuogee Hsieh wrote: > > 1) DP with GPIO: No downstream drm_bridge are connected, is_edp = false > > and internal HPD-logic is in used (internal_hpd = true). Power needs to > > be on at all times etc. > > > > 2) DP

Re: [Freedreno] [PATCH v1 1/2] drm/msm/dp: enable HDP plugin/unplugged interrupts to hpd_enable/disable

2023-05-11 Thread Stephen Boyd
Quoting Bjorn Andersson (2023-05-11 08:44:16) > On Wed, May 10, 2023 at 05:39:07PM -0700, Abhinav Kumar wrote: > > > > > > On 5/10/2023 4:55 PM, Stephen Boyd wrote: > > > Quoting Kuogee Hsieh (2023-05-10 13:31:04) > > > > The internal_hpd flag was in

Re: [Freedreno] [PATCH v1 1/2] drm/msm/dp: enable HDP plugin/unplugged interrupts to hpd_enable/disable

2023-05-10 Thread Stephen Boyd
Quoting Kuogee Hsieh (2023-05-10 13:31:04) > The internal_hpd flag was introduced to handle external DP HPD derived from > GPIO > pinmuxed into DP controller. Was it? It looks more like it was done to differentiate between eDP and DP, because internal_hpd is set only if DRM_BRIDGE_OP_HPD is set

Re: [Freedreno] [PATCH v1 2/2] drm/msm/dp: add mutex to protect internal_hpd against race condition between different threads

2023-05-10 Thread Stephen Boyd
Quoting Kuogee Hsieh (2023-05-10 13:31:05) > Intrenal_hpd is referenced by event thread but set by drm bridge callback > context. Add mutex to protect internal_hpd to avoid conflicts between > threads. > > Signed-off-by: Kuogee Hsieh > --- This patch looks completely unnecessary. How can

Re: [Freedreno] [PATCH v2 2/2] drm/msm/adreno: change adreno_is_* functions to accept const argument

2023-04-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-04-11 09:19:03) > All adreno_is_*() functions do not modify their argument in any way, so > they can be changed to accept const struct adreno_gpu pointer. > > Suggested-by: Stephen Boyd > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 1/2] drm/msm/adreno: warn if chip revn is verified before being set

2023-04-11 Thread Stephen Boyd
ry so that the warning is displayed really just once instead of > being displayed for each of comparisons. > > Suggested-by: Stephen Boyd > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/adreno: warn if chip revn is verified before being set

2023-04-10 Thread Stephen Boyd
ry so that the warning is displayed really just once instead of > being displayed for each of comparisons. > > Suggested-by: Stephen Boyd > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/adreno/adreno_gpu.h | 63 - > 1 file changed, 40 in

Re: [Freedreno] [RFC PATCH] drm/msm/a5xx: really check for A510 in a5xx_gpu_init

2023-04-10 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2023-04-08 18:13:29) > The commit 010c8bbad2cb ("drm: msm: adreno: Disable preemption on Adreno > 510") added special handling for a510 (this SKU doesn't seem to support > preemption, so the driver should clamp nr_rings to 1). However the > gpu->revn is not yet set (it is

Re: [Freedreno] [PATCH] drm/msm/adreno: fix sparse warnings in a6xx code

2023-04-10 Thread Stephen Boyd
gt; @@ -51,8 +51,8 @@ struct a6xx_gmu { > > struct msm_gem_address_space *aspace; > > - void * __iomem mmio; > - void * __iomem rscc; > + void __iomem * mmio; > + void __iomem * rscc; Should stick that * to the member name. void __iomem *rscc; with that Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v14 14/14] drm/msm/dp: set self refresh aware based on PSR support

2023-03-27 Thread Stephen Boyd
Quoting Bjorn Andersson (2023-03-26 09:35:56) > On Sun, Mar 26, 2023 at 09:27:23AM -0700, Bjorn Andersson wrote: > > On Thu, Mar 02, 2023 at 10:03:17PM +0530, Vinod Polimera wrote: > > > For the PSR to kick in, self_refresh_aware has to be set. > > > Initialize it based on the PSR support for the

Re: [Freedreno] [PATCH] dt-bindings: yamllint: Require a space after a comment '#'

2023-03-06 Thread Stephen Boyd
ith comments which were not intended to be > comments are revealed. Those were in ti,sa2ul.yaml, ti,cal.yaml, and > brcm,bcmgenet.yaml. > > Signed-off-by: Rob Herring Reviewed-by: Stephen Boyd > diff --git a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml > b/Doc

Re: [Freedreno] [PATCH] drm/msm/dp: check core_initialized flag at both host_init() and host_deinit()

2023-02-27 Thread Stephen Boyd
n > interrupt received") > Signed-off-by: Kuogee Hsieh The code looks OK to me, so Reviewed-by: Stephen Boyd once the commit text is cleaned up to indicate the proper function names.

Re: [Freedreno] [PATCH v1] drm/msm/disp/dpu: fix sc7280_pp base address

2023-02-27 Thread Stephen Boyd
Quoting Kuogee Hsieh (2023-02-27 09:04:31) > Correct sc7280 pp block base address. What goes wrong if this is left unchanged? How important is it to fix this? Does the display fail to work? Does it fix something for a new feature that isn't yet enabled upstream? This information is useful to put

Re: [Freedreno] [PATCH v6 2/2] drm/msm/dp: enhance dp controller isr

2023-01-18 Thread Stephen Boyd
Quoting Doug Anderson (2023-01-18 10:29:59) > Hi, > > On Tue, Dec 27, 2022 at 6:16 PM Kuogee Hsieh wrote: > > + > > if (isr & DP_INTR_AUX_ERROR) { > > aux->aux_error_num = DP_AUX_ERR_PHY; > > dp_catalog_aux_clear_hw_interrupts(aux->catalog); > > +

Re: [Freedreno] [PATCH 2/5] clk: qcom: gdsc: Support 'synced_poweroff' genpd flag

2022-12-16 Thread Stephen Boyd
Quoting Akhil P Oommen (2022-12-15 07:10:58) > Add support for the newly added 'synced_poweroff' genpd flag. This allows > some clients (like adreno gpu driver) to request gdsc driver to ensure > a votable gdsc (like gpucc cx gdsc) has collapsed at hardware. > > Signed-off-by: Akhil P Oommen >

Re: [Freedreno] [PATCH v12 2/5] dt-bindings: msm/dp: add data-lanes and link-frequencies property

2022-12-15 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-12-15 13:12:49) > On 15/12/2022 02:38, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-12-14 14:56:23) > >> > >> Once link training start, then there are no any interactions between > >> controller and phy during link traini

Re: [Freedreno] [PATCH v12 2/5] dt-bindings: msm/dp: add data-lanes and link-frequencies property

2022-12-15 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-12-15 09:08:04) > > On 12/14/2022 4:38 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-12-14 14:56:23) > >> On 12/13/2022 3:06 PM, Stephen Boyd wrote: > >>> Quoting Kuogee Hsieh (2022-12-13 13:44:05) > > > >> There

Re: [Freedreno] [PATCH v2] drm/msm/dp: do not complete dp_aux_cmd_fifo_tx() if irq is not for aux transfer

2022-12-15 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-12-15 10:46:42) > On 15/12/2022 20:32, Kuogee Hsieh wrote: > > if (!aux->cmd_busy) > > return; > > > > if (aux->native) > > - dp_aux_native_handler(aux, isr); > > + ret = dp_aux_native_handler(aux, isr); > >

Re: [Freedreno] [PATCH v12 2/5] dt-bindings: msm/dp: add data-lanes and link-frequencies property

2022-12-14 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-12-14 14:56:23) > > On 12/13/2022 3:06 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-12-13 13:44:05) > >> Add both data-lanes and link-frequencies property into endpoint > > Why do we care? Please tell us why it's important. Any respo

Re: [Freedreno] [PATCH] drm/msm/dp: do not complete dp_aux_cmd_fifo_tx() if irq is not for aux transfer

2022-12-14 Thread Stephen Boyd
Quoting Doug Anderson (2022-12-14 16:14:42) > Hi, > > On Wed, Dec 14, 2022 at 3:46 PM Abhinav Kumar > wrote: > > > > Hi Doug > > > > On 12/14/2022 2:29 PM, Doug Anderson wrote: > > > Hi, > > > > > > On Wed, Dec 14, 2022 at 1:21 PM Kuogee Hsieh > > > wrote: > > >> > > >> There are 3 possible

Re: [Freedreno] [PATCH v12 4/5] drm/msm/dp: parser link-frequencies as property of dp_out endpoint

2022-12-13 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-12-13 13:44:07) > Add capability to parser and retrieve max DP link supported rate from to parse > link-frequencies property of dp_out endpoint. > > Changes in v6: > -- second patch after split parser patch into two patches > > Changes in v7: > -- without checking cnt

Re: [Freedreno] [PATCH v12 3/5] drm/msm/dp: parser data-lanes as property of dp_out endpoint

2022-12-13 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-12-13 13:44:06) > Add capability to parser data-lanes as property of dp_out endpoint. > Also retain the original capability to parser data-lanes as property > of mdss_dp node to handle legacy case. > > Changes in v6: > -- first patch after split parser patch into two > >

Re: [Freedreno] [PATCH v12 2/5] dt-bindings: msm/dp: add data-lanes and link-frequencies property

2022-12-13 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-12-13 13:44:05) > Add both data-lanes and link-frequencies property into endpoint Why do we care? Please tell us why it's important. > > Changes in v7: > -- split yaml out of dtsi patch > -- link-frequencies from link rate to symbol rate > -- deprecation of old

Re: [Freedreno] [v4] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-09-11 Thread Stephen Boyd
Quoting Kalyan Thota (2022-09-08 00:26:28) > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > index a35ecb6..bbda09a 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c > @@ -307,6

Re: [Freedreno] [RFC PATCH 3/3] drm/msm: filter out modes for DP/eDP bridge having unsupported clock

2022-09-07 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-08-29 20:33:09) > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > b/drivers/gpu/drm/msm/dp/dp_display.c > index bfd0aeff3f0d..8b91d8adf921 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -117,6 +117,7 @@ struct

Re: [Freedreno] [RFC PATCH 2/3] drm/msm: filter out modes for DSI bridge having unsupported clock

2022-09-07 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-08-29 20:33:08) > diff --git a/drivers/gpu/drm/msm/dsi/dsi.c b/drivers/gpu/drm/msm/dsi/dsi.c > index 39bbabb5daf6..3a06a157d1b1 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi.c > +++ b/drivers/gpu/drm/msm/dsi/dsi.c > @@ -265,6 +265,11 @@ int msm_dsi_modeset_init(struct

Re: [Freedreno] [RFC PATCH 3/3] drm/msm/dp: move dp_request_irq() call to dp_display_probe()

2022-09-07 Thread Stephen Boyd
t_irq() call to dp_display_probe(). > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [RFC PATCH 2/3] drm/msm/dp: switch to using platform_get_irq()

2022-09-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-09-01 02:15:26) > There is little point in using irq_of_parse_and_map(). Switch to plain > and usual platform_get_irq() for parsing the DP IRQ line. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/dp/dp_display.c | 4 ++-- > 1 file changed, 2

Re: [Freedreno] [RFC PATCH 1/3] drm/msm/dp: fold disable_irq into devm_request_irq

2022-09-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-09-01 02:15:25) > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > b/drivers/gpu/drm/msm/dp/dp_display.c > index bfd0aeff3f0d..3173e6962a78 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -1251,13 +1251,12 @@ int

Re: [Freedreno] [PATCH v2] drm/msm/dp: cleared DP_DOWNSPREAD_CTRL register before start link training

2022-09-07 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-09-07 12:50:37) > DOWNSPREAD_CTRL (0x107) shall be cleared to 0 upon power-on reset or an > upstream device disconnect. This patch will enforce this rule by always > cleared DOWNPREAD_CTRL register to 0 before start link training. At rare DOWNSPREAD_CTRL > case that DP

Re: [Freedreno] [PATCH 3/5] dt-bindings: clock: drop minItems equal to maxItems

2022-08-30 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2022-08-25 04:33:32) > minItems, if missing, are implicitly equal to maxItems, so drop > redundant piece to reduce size of code. > > Signed-off-by: Krzysztof Kozlowski > --- Applied to clk-next

Re: [Freedreno] [PATCH v5 0/6] clk/qcom: Support gdsc collapse polling using 'reset' interface

2022-08-29 Thread Stephen Boyd
+Philipp Quoting Akhil P Oommen (2022-08-28 12:21:13) > > Some clients like adreno gpu driver would like to ensure that its gdsc > is collapsed at hardware during a gpu reset sequence. This is because it > has a votable gdsc which could be ON due to a vote from another subsystem > like tz, hyp

Re: [Freedreno] [PATCH v2] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa()

2022-08-24 Thread Stephen Boyd
; Changes in v2: > -- fix Fixes tag's text > > Fixes: 937f941ca06f ("drm/msm/dp: Use qmp phy for DP PLL and PHY") > Signed-off-by: Kuogee Hsieh > > Reviewed-by: Stephen Boyd > eviewed-by: Abhinav Kumar Missing an R. > > diff --git a/drivers/gpu/drm/msm/dp/d

Re: [Freedreno] [PATCH] drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa()

2022-08-24 Thread Stephen Boyd
> > Fixes: 937f941ca06f "drm/msm/dp: Use qmp phy for DP PLL and PHY" Should be Fixes: 937f941ca06f ("drm/msm/dp: Use qmp phy for DP PLL and PHY") > Signed-off-by: Kuogee Hsieh > --- Good catch! Thanks for fixing it. Reviewed-by: Stephen Boyd

Re: [Freedreno] [RFC PATCH] drm/msm: lookup the ICC paths in both mdp5/dpu and mdss devices

2022-08-23 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-08-05 04:56:30) > diff --git a/drivers/gpu/drm/msm/msm_io_utils.c > b/drivers/gpu/drm/msm/msm_io_utils.c > index 7b504617833a..d02cd29ce829 100644 > --- a/drivers/gpu/drm/msm/msm_io_utils.c > +++ b/drivers/gpu/drm/msm/msm_io_utils.c > @@ -124,3 +126,23 @@ void

[Freedreno] [PATCH v2] drm/msm/dp: Silence inconsistent indent warning

2022-08-23 Thread Stephen Boyd
D bit") Reported-by: kernel test robot Signed-off-by: Stephen Boyd --- Changes from v1 (https://lore.kernel.org/r/20220823024356.783318-1-swb...@chromium.org) * Roll in extra whitespace fix drivers/gpu/drm/msm/dp/dp_link.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

Re: [Freedreno] [PATCH] drm/msm/dp: Silence inconsistent indent warning

2022-08-23 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-08-23 10:47:02) > link->request.test_lane_count; > - link->dp_link.link_params.rate = link->request.test_link_rate; > + link->dp_link.link_params.rate = > + drm_dp_bw_code_to_link_rate(link->request.test_link_rate); > > return 0; > >

Re: [Freedreno] [PATCH v3 3/3] dt-bindings: msm/dp: handle DP vs eDP difference

2022-08-22 Thread Stephen Boyd
only for DP controllers. > > Take care of these differences. > > Reviewed-by: Rob Herring > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v3 2/3] dt-bindings: msm/dp: add missing properties

2022-08-22 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-08-22 11:48:59) > Document missing definitions for opp-table (DP controller OPPs), aux-bus > (DP AUX BUS) and data-lanes (DP/eDP lanes mapping) properties. > > Reviewed-by: Stephen Boyd > Acked-by: Krzysztof Kozlowski > Signed-off-by

Re: [Freedreno] [PATCH v3 1/3] dt-bindings: msm/dp: mark vdda supplies as deprecated

2022-08-22 Thread Stephen Boyd
ions from eDP/DP controller") removed support for VDDA supplies > from the DP controller driver. > Mark these properties as deprecated and drop them from the example. > > Acked-by: Rob Herring > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/dpu: drop unused variable from dpu_kms_mdp_snapshot()

2022-08-22 Thread Stephen Boyd
ot;drm/msm/dpu: merge base_off with blk_off in struct > dpu_hw_blk_reg_map") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/dpu: drop unused memory allocation

2022-08-22 Thread Stephen Boyd
ted-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 8/9] dt-bindings: msm/dp: add missing properties

2022-08-22 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-08-22 11:46:39) > On 12/07/2022 02:16, Rob Herring wrote: > > > > But this is the wrong location for 'data-lanes'. It belongs in an > > endpoint node. > > I rechecked the existing device trees (sc7280-herobrine.dtsi). The > data-lanes are already inside the main dp

[Freedreno] [PATCH] drm/msm/dp: Silence inconsistent indent warning

2022-08-22 Thread Stephen Boyd
Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_link.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c index 36f0af02749f..1620110806cf 100644 --- a/drivers/gpu/drm/msm/dp/dp_link.c +++ b/drivers/gpu/

Re: [Freedreno] [PATCH v2 6/9] arm64: dts: qcom: sc7280: drop unused clocks from eDP node

2022-08-22 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-10 01:41:30) > The eDP node includes two clocks which are used by the eDP PHY rather > than eDP controller itself. Drop these clocks to remove extra difference > between eDP and DP controllers. > > Suggested-by: Stephen Boyd > Signed-off-by

Re: [Freedreno] [PATCH v3] drm/msm/dp: check hpd_state before push idle pattern at dp_bridge_disable()

2022-08-15 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-08-11 08:20:01) > > On 8/10/2022 6:00 PM, Abhinav Kumar wrote: > > > > Even then, you do have a valid point. DRM framework should not have > > caused the disable path to happen without an enable. > > > > I went through the stack mentioned in the issue. > > > > Lets see

Re: [Freedreno] [PATCH v3] drm/msm/dp: check hpd_state before push idle pattern at dp_bridge_disable()

2022-08-10 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-08-10 16:57:51) > > On 8/10/2022 3:22 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-08-10 12:25:51) > >> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > >> b/drivers/gpu/drm/msm/dp/dp_display.c > >> index b36f8b6..67

  1   2   3   4   5   6   7   8   9   10   >