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 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..678289a 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -1729,10 +1729,20 @@ void

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

2022-08-09 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-08-09 13:44:50) > dp_bridge_disable() is the first step toward tearing down main link. > Its major function is to start transmitting idle pattern to replace > video stream. This patch will check hpd_state to make sure main link > is enabled before commit changes of main

Re: [Freedreno] [PATCH v2] drm/msm/dp: delete DP_RECOVERED_CLOCK_OUT_EN to fix tps4

2022-08-01 Thread Stephen Boyd
RECOVERED_CLOCK_OUT_EN to fix SCRAMBLING_DISABLE > be wrongly set at tps4. > > Changes in v2: > -- fix Fixes tag > > Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/dp: delete DP_RECOVERED_CLOCK_OUT_EN to fix tps4

2022-08-01 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-08-01 12:42:50) > Data Symbols scrambled is required for tps4 at link training 2. > Therefore SCRAMBLING_DISABLE bit should not be set for tps4 to > work. > RECOVERED_CLOCK_OUT_EN is for enable simple EYE test for jitter > measurement with minimal equipment for embedded

Re: [Freedreno] [PATCH v3 02/11] clk: mux: Introduce devm_clk_hw_register_mux_parent_hws()

2022-07-29 Thread Stephen Boyd
Quoting Marijn Suijten (2022-06-29 15:53:22) > Add the devres variant of clk_hw_register_mux_hws() for registering a > mux clock with clk_hw parent pointers instead of parent names. > > Signed-off-by: Marijn Suijten > Reviewed-by: Dmitry Baryshkov > --- Applied to clk-next

Re: [Freedreno] [PATCH v3 03/11] clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()

2022-07-29 Thread Stephen Boyd
Quoting Marijn Suijten (2022-06-29 15:53:23) > Add the devres and non-devres variant of > clk_hw_register_fixed_factor_parent_hw() for registering a fixed factor > clock with clk_hw parent pointer instead of parent name. > > Signed-off-by: Marijn Suijten > --- Applied to clk-next

Re: [Freedreno] [PATCH v3 01/11] clk: divider: Introduce devm_clk_hw_register_divider_parent_hw()

2022-07-29 Thread Stephen Boyd
Quoting Marijn Suijten (2022-06-29 15:53:21) > Add the devres variant of clk_hw_register_divider_parent_hw() for > registering a divider clock with clk_hw parent pointer instead of parent > name. > > Signed-off-by: Marijn Suijten > Reviewed-by: Dmitry Baryshkov > --- Applied to clk-next

Re: [Freedreno] [PATCH v3 00/11] drm/msm/dsi_phy: Replace parent names with clk_hw pointers

2022-07-29 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-14 03:19:12) > On 30/06/2022 01:53, Marijn Suijten wrote: > > Marijn Suijten (11): > >clk: divider: Introduce devm_clk_hw_register_divider_parent_hw() > >clk: mux: Introduce devm_clk_hw_register_mux_parent_hws() > >clk: fixed-factor: Introduce

Re: [Freedreno] [PATCH v2 5/7] arm64: dts: qcom: sc7280: Update gpu register list

2022-07-19 Thread Stephen Boyd
Quoting Akhil P Oommen (2022-07-18 23:37:16) > On 7/19/2022 11:19 AM, Stephen Boyd wrote: > > Quoting Akhil P Oommen (2022-07-18 21:07:05) > >> On 7/14/2022 11:10 AM, Akhil P Oommen wrote: > >>> IIUC, qcom gdsc driver doesn't ensure hardware is collapsed since the

Re: [Freedreno] [PATCH v2 5/7] arm64: dts: qcom: sc7280: Update gpu register list

2022-07-18 Thread Stephen Boyd
Quoting Akhil P Oommen (2022-07-18 21:07:05) > On 7/14/2022 11:10 AM, Akhil P Oommen wrote: > > On 7/12/2022 4:57 AM, Doug Anderson wrote: > >> Hi, > >> > >> On Fri, Jul 8, 2022 at 11:00 PM Akhil P Oommen > >> wrote: > >>> Update gpu register array with gpucc memory region. > >>> > >>>

Re: [Freedreno] [PATCH v2 3/9] arm64: dts: qcom: sc7280: split register block for DP controller

2022-07-18 Thread Stephen Boyd
ned-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 1/9] arm64: dts: qcom: sc7180: split register block for DP controller

2022-07-18 Thread Stephen Boyd
ned-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 1/9] dt-bindings: msm/dp: drop extra p1 region

2022-07-08 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-07-08 12:38:09) > + kuogee > > On 7/8/2022 12:27 PM, Stephen Boyd wrote: > > > > Yes I see the same address for P1 on sc7280. Maybe it's a typo? Abhinav, > > can you confirm? > > P1 block does exist on sc7280 and yes its address i

Re: [Freedreno] [PATCH 1/9] dt-bindings: msm/dp: drop extra p1 region

2022-07-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-07 20:46:43) > On 08/07/2022 04:28, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-07-07 14:31:56) > >> The p1 region was probably added by mistake, none of the DTS files > >> provides one (and the driver source code also doesn't

Re: [Freedreno] [PATCH 5/9] dt-bindings: msm/dp: account for clocks specific for qcom, sc7280-edp

2022-07-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-07 20:59:02) > On 08/07/2022 04:32, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-07-07 14:32:00) > >> diff --git > >> a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > >> b/Documentatio

Re: [Freedreno] [PATCH 9/9] arm64: dts: qcom: sc7280: drop address/size-cells from eDP node

2022-07-07 Thread Stephen Boyd
t; > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 8/9] arm64: dts: qcom: sc7280: drop #clock-cells from displayport-controller

2022-07-07 Thread Stephen Boyd
-off-by: Dmitry Baryshkov > --- Same "the it" comment. Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 7/9] arm64: dts: qcom: sc7180: drop #clock-cells from displayport-controller

2022-07-07 Thread Stephen Boyd
ny clocks. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

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

2022-07-07 Thread Stephen Boyd
t; > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 5/9] dt-bindings: msm/dp: account for clocks specific for qcom, sc7280-edp

2022-07-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-07 14:32:00) > diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > index f00eae66196f..1ef845005b14 100644 > ---

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

2022-07-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-07 14:31:59) > Document missing definitions for opp-table (DP controller OPPs), aux-bus > (eDP AUX BUS) and data-lanes (DP/eDP lanes mapping) properties. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 2/9] dt-bindings: msm/dp: bring back support for legacy DP reg property

2022-07-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-07 14:31:57) > The commit 687825c402f1 ("dt-bindings: msm/dp: Change reg definition") > changed reg property to list separate register blocks, which broke > validation of DT files using single register block. Restore > compatibility with older (single register

Re: [Freedreno] [PATCH 1/9] dt-bindings: msm/dp: drop extra p1 region

2022-07-07 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-07-07 14:31:56) > The p1 region was probably added by mistake, none of the DTS files > provides one (and the driver source code also doesn't use one). Drop it > now. Yes, looks like the driver doesn't use it. > > Fixes: 687825c402f1 ("dt-bindings: msm/dp: Change

Re: [Freedreno] [PATCH v4] drm/msm/dp: make eDP panel as the first connected connector

2022-07-07 Thread Stephen Boyd
helper_move_panel_connectors_to_head() to > dpu_kms_drm_obj_init() > > Changes in v4: > -- move drm_helper_move_panel_connectors_to_head() to msm_drm_init() > > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/dsi: Set panel orientation when directly connected

2022-07-07 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-07-07 14:11:08) > > > On 7/6/2022 12:14 PM, Stephen Boyd wrote: > > Set the panel orientation in drm when the panel is directly connected, > > i.e. we're not using an external bridge. The external bridge case is > > already handled by the pa

Re: [Freedreno] [PATCH] arm64: dta: qcom: sc7180: delete vdda-1p2 and vdda-0p9 from mdss_dp

2022-07-06 Thread Stephen Boyd
Subject should have 'dts', not 'dta'. Quoting Kuogee Hsieh (2022-07-01 08:47:16) > Both vdda-1p2-supply and vdda-0p9-supply regulators are controlled > by dp combo phy. Therefore remove them from dp controller. > > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

[Freedreno] [PATCH] drm/msm/dsi: Set panel orientation when directly connected

2022-07-06 Thread Stephen Boyd
coming from __drm_mode_object_add() on Wormdingler boards. Cc: Hsin-Yi Wang Cc: Douglas Anderson Signed-off-by: Stephen Boyd --- This relies on commit 5e41b01a7808 ("drm/panel: Add an API to allow drm to set orientation from panel") which is in drm-misc drivers/gpu/drm/msm/dsi/dsi_man

Re: [Freedreno] [PATCH] drm/msm/dp: use ARRAY_SIZE for calculating num_descs

2022-06-27 Thread Stephen Boyd
ng the value manually. > > Reported-by: Kuogee Hsieh > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-24 18:02:50) > > On 6/24/2022 5:46 PM, Dmitry Baryshkov wrote: > > On Sat, 25 Jun 2022 at 03:28, Dmitry Baryshkov > > wrote: > >> On Sat, 25 Jun 2022 at 03:23, Kuogee Hsieh wrote: > >>> On 6/24/2022 5:21 PM, Dmitry Baryshkov wrote: > On Sat, 25 Jun 2022 at

Re: [Freedreno] [PATCH] drm/msm/dpu: simplify and unify dpu_encoder_get_intf and dpu_encoder_get_wb

2022-06-24 Thread Stephen Boyd
e > explicit return rather than the goto. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

[Freedreno] [PATCH] drm/msm/dp: Remove encoder pointer from struct msm_dp

2022-06-24 Thread Stephen Boyd
We don't need to stash the encoder here. Instead we can simply pass it around as an argument. Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_display.c | 4 +--- drivers/gpu/drm/msm/dp/dp_display.h | 1 - drivers/gpu/drm/msm/dp/dp_drm.c | 8 drivers/gpu

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Stephen Boyd (2022-06-24 17:11:01) > Quoting Abhinav Kumar (2022-06-24 17:03:37) > > > > So let me try to explain this as this is what i understood from the > > patch and how kuogee explained me. > > > > The ordering of the array still matters

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-06-24 17:03:37) > Hi Stephen / Dmitry > > Let me try to explain the issue kuogee is trying to fix below: > > On 6/24/2022 4:56 PM, Kuogee Hsieh wrote: > > > > On 6/24/2022 4:45 PM, Stephen Boyd wrote: > >> Quoting Kuogee Hsieh (2022-

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-24 16:30:59) > > On 6/24/2022 4:12 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-06-24 15:53:45) > >> MSM_DP_CONTROLLER_1 need to match to the index = 1 of sc7280_dp_cfg[] <== > >> This is correct > >> > >&

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-24 15:53:45) > > MSM_DP_CONTROLLER_1 need to match to the index = 1 of sc7280_dp_cfg[] <== > This is correct > > The problem is sc7280_dp_cfg[] have two entries since eDP place at index > of MSM_DP_CONTROLLER_1. > > but .num_desc = 1  <== this said only have one

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-24 14:49:57) > > On 6/24/2022 2:40 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-06-24 14:17:50) > >> On 6/24/2022 1:00 PM, Stephen Boyd wrote: > >>> Quoting Kuogee Hsieh (2022-06-24 10:15:11) > >>>> C

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-24 14:17:50) > > On 6/24/2022 1:00 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-06-24 10:15:11) > >> Current the index (dp->id) of DP descriptor table (sc_dp_cfg[]) are > >> tightly > >> coupled with DP contro

Re: [Freedreno] [PATCH v1 2/3] drm/msm/dp: decoupling dp->id out of dp controller_id at scxxxx_dp_cfg table

2022-06-24 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-24 10:15:11) > Current the index (dp->id) of DP descriptor table (sc_dp_cfg[]) are > tightly > coupled with DP controller_id. This means DP use controller id 0 must be > placed > at first entry of DP descriptor table (sc_dp_cfg[]). Otherwise the > internal

Re: [Freedreno] [PATCH] drm/msm/dp: no dp_hpd_unplug_handle() required for eDP

2022-06-23 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-23 16:34:16) > eDP implementation does not reuried to support hpd signal. Therefore s/reuried/require/ > it only has either ST_DISPLAY_OFF or ST_CONNECTED state during normal > operation. This patch remove unnecessary dp_hpd_unplug_handle() for > eDP but still keep

[Freedreno] [PATCH v2 3/3] drm/msm/dp: Get rid of dp_ctrl_on_stream_phy_test_report()

2022-06-22 Thread Stephen Boyd
This API isn't really more than a couple lines now that we don't store the pixel_rate to the struct member. Inline it into the caller. Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 44 1 file changed, 17 insertions(+), 27

[Freedreno] [PATCH v2 2/3] drm/msm/dp: Remove pixel_rate from struct dp_ctrl

2022-06-22 Thread Stephen Boyd
but never using it so we just remove the assignment from there. Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- dp_ctrl_on_link() almost doesn't even use the pixel_clk either. It just prints the value. I kept it around because maybe it is useful? But if not, then we can remove even more code

[Freedreno] [PATCH v2 1/3] drm/msm/dp: Reorganize code to avoid forward declaration

2022-06-22 Thread Stephen Boyd
Let's move these functions around to avoid having to forward declare dp_ctrl_on_stream_phy_test_report(). Also remove dp_ctrl_reinitialize_mainlink() forward declaration because we're doing that sort of task. Reviewed-by: Kuogee Hsieh Reviewed-by: Dmitry Baryshkov Signed-off-by: Stephen Boyd

[Freedreno] [PATCH v2 0/3] drm/msm/dp: More cleanups for force link train

2022-06-22 Thread Stephen Boyd
These patches do a little cleanup on the v9 patch[1] from Kuogee. Changes from v1: * Reduce code even more in second patch * Pick up tags on first patch Stephen Boyd (3): drm/msm/dp: Reorganize code to avoid forward declaration drm/msm/dp: Remove pixel_rate from struct dp_ctrl drm/msm/dp

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

2022-06-22 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-21 10:01:29) > This patch add regulator_set_load() before enable regulator at > eDP phy driver. > > Signed-off-by: Kuogee Hsieh > Reviewed-by: Douglas Anderson > Reviewed-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2] drm/msm/dp: reset drm_dev to NULL at dp_display_unbind()

2022-06-22 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-22 12:55:31) > During msm initialize phase, dp_display_unbind() will be called to undo > initializations had been done by dp_display_bind() previously if there is > error happen at msm_drm_bind. Under this kind of circumstance, drm_device > may not be populated

Re: [Freedreno] [PATCH] drm/msm/dp: reset drm_dev to NULL at dp_display_unbind()

2022-06-22 Thread Stephen Boyd
> [ 53.840875] drm_dev_dbg+0xfc/0x1b8 > [ 53.844480] dp_pm_suspend+0x70/0xf8 > [ 53.848164] dpm_run_callback+0x60/0x1a0 > [ 53.85] __device_suspend+0x304/0x3f4 > [ 53.856363] dpm_suspend+0xf8/0x3a8 > [ 53.859959] dpm_suspend_start+0x8c/0xc0 > > Signed-off-by: Kuogee Hsieh > --- Any fixes tag? Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 2/3] drm/msm/dp: Remove pixel_rate from struct dp_ctrl

2022-06-21 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 16:07:58) > On 17/06/2022 23:47, Stephen Boyd wrote: > > This struct member is stored to in the function that calls the function > > which uses it. That's possible with a function argument instead of > > storing to a struct member

[Freedreno] [PATCH] drm/msm/dpu: Increment vsync_cnt before waking up userspace

2022-06-21 Thread Stephen Boyd
: Mark Yacoub Cc: Jessica Zhang Fixes: 885455d6bf82 ("drm/msm: Change dpu_crtc_get_vblank_counter to use vsync count.") Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm

Re: [Freedreno] [PATCH 3/3] arm64: dts: qcom: msm8996: add #clock-cells to the HDMI PHY node

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 03:36:08) > Add #clock-cells property to the HDMI PHY device node to let other nodes > resolve the hdmipll clock. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 2/3] drm/msm/hdmi: make hdmi_phy_8996 OF clk provider

2022-06-17 Thread Stephen Boyd
mitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/hdmi: support attaching the "next" bridge

2022-06-17 Thread Stephen Boyd
> --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH] drm/msm/hdmi: drop empty bridge callbacks

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-16 01:50:54) > Drop empty callbacks msm_hdmi_bridge_enable() and > msm_hdmi_bridge_disable(). > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v5 3/3] drm/msm: stop storing the array of CRTCs in struct msm_drm_private

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 12:14:29) > diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c > index 44485363f37a..567e77dae43b 100644 > --- a/drivers/gpu/drm/msm/msm_drv.c > +++ b/drivers/gpu/drm/msm/msm_drv.c > @@ -427,20 +428,23 @@ static int msm_drm_init(struct

Re: [Freedreno] [PATCH v5 2/3] drm/msm/mdp5: convert to drm_crtc_handle_vblank()

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 12:14:28) > Stop using deprecated drm_handle_vblank(), use drm_crtc_handle_vblank() > instead. > > Reviewed-by: Abhinav Kumar > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v5 1/3] drm/msm/mdp4: convert to drm_crtc_handle_vblank()

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 12:14:27) > Stop using deprecated drm_handle_vblank(), use drm_crtc_handle_vblank() > instead. > > Reviewed-by: Abhinav Kumar > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

[Freedreno] [PATCH 3/3] drm/msm/dp: Get rid of dp_ctrl_on_stream_phy_test_report()

2022-06-17 Thread Stephen Boyd
This API isn't really more than a couple lines now that we don't store the pixel_rate to the struct member. Inline it into the caller. Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 40 1 file changed, 15 insertions(+), 25

[Freedreno] [PATCH 2/3] drm/msm/dp: Remove pixel_rate from struct dp_ctrl

2022-06-17 Thread Stephen Boyd
but never using it so we just remove the assignment from there. Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 57 drivers/gpu/drm/msm/dp/dp_ctrl.h | 1 - 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/drivers

[Freedreno] [PATCH 1/3] drm/msm/dp: Reorganize code to avoid forward declaration

2022-06-17 Thread Stephen Boyd
Let's move these functions around to avoid having to forward declare dp_ctrl_on_stream_phy_test_report(). Also remove dp_ctrl_reinitialize_mainlink() forward declaration because we're doing that sort of task. Cc: Kuogee Hsieh Signed-off-by: Stephen Boyd --- drivers/gpu/drm/msm/dp/dp_ctrl.c

[Freedreno] [PATCH 0/3] drm/msm/dp: More cleanups for force link train

2022-06-17 Thread Stephen Boyd
These patches do a little cleanup on the v9 patch from Kuogee. Stephen Boyd (3): drm/msm/dp: Reorganize code to avoid forward declaration drm/msm/dp: Remove pixel_rate from struct dp_ctrl drm/msm/dp: Get rid of dp_ctrl_on_stream_phy_test_report() drivers/gpu/drm/msm/dp/dp_ctrl.c | 145

Re: [Freedreno] [PATCH 1/2] drm/msm/dp: remove unused stubs

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 12:49:20) > Refactoring DP code transformed several functions into empty stubs. > Remove them. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 2/2] drm/msm/dp: remove dp_display_en/disable prototypes and data argument

2022-06-17 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-17 12:49:21) > Remove unused dp_display_en/disable prototypes. While we are at it, > remove extra 'data' argument that is unused. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/dp/dp_display.c | 13 + > 1 file changed, 5

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

2022-06-16 Thread Stephen Boyd
: > -- drop 0 assignment at local variable (ret = 0) > > Changes in v8: > -- add patch to remove pixel_rate from dp_ctrl > > Changes in v9: > -- forward declare dp_ctrl_on_stream_phy_test_report() > > Fixes: 62671d2ef24b ("drm/msm/dp: fixes wrong connection state caused by > failure of link train") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

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

2022-06-16 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-16 10:09:20) > diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.h > b/drivers/gpu/drm/msm/dp/dp_ctrl.h > index 0745fde..9a39b00 100644 > --- a/drivers/gpu/drm/msm/dp/dp_ctrl.h > +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.h > @@ -21,7 +21,8 @@ struct dp_ctrl { > }; > > int

Re: [Freedreno] [PATCH v8 2/2] drm/msm/dp: clean up pixel_rate from dp_ctrl.c

2022-06-16 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-16 10:09:21) > dp_ctrl keep an local cache of pixel_rate which increase confusing > in regrading how pixel_rate being used. This patch refer pixel_rate > directly from dp_panel to eliminate unnecessary pixel_rate variable > from struct dp_ctrl. > > Changes in v8: > --

Re: [Freedreno] [PATCH] drm/msm/gem: Drop obj lock in msm_gem_free_object()

2022-06-16 Thread Stephen Boyd
Quoting Rob Clark (2022-06-13 13:50:32) > diff --git a/drivers/gpu/drm/msm/msm_gem.h b/drivers/gpu/drm/msm/msm_gem.h > index d608339c1643..432032ad4aed 100644 > --- a/drivers/gpu/drm/msm/msm_gem.h > +++ b/drivers/gpu/drm/msm/msm_gem.h > @@ -229,7 +229,19 @@ msm_gem_unlock(struct drm_gem_object

Re: [Freedreno] [PATCH v3 07/14] drm/msm/hdmi: enable core-vcc/core-vdda-supply for 8996 platform

2022-06-16 Thread Stephen Boyd
m8996") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-16 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-15 23:21:56) > > I have more or less the same setup using a longer format and using the > git-log instead of git-show. This way I can just do a git fixes > drivers/gpu/drm/msm and spot the commit in question. I've long desired to have this be part of

Re: [Freedreno] [PATCH 1/3] drm/msm/dpu: move intf and wb assignment to dpu_encoder_setup_display()

2022-06-16 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-06-15 22:59:25) > Hi Dmitry > > On 6/15/2022 10:55 PM, Dmitry Baryshkov wrote: > > On 14/06/2022 22:32, Abhinav Kumar wrote: > >> intf and wb resources are not dependent on the rm global > >> state so need not be allocated during dpu_encoder_virt_atomic_mode_set(). > >>

Re: [Freedreno] [PATCH v2 4/5] drm/msm: move KMS aspace init to the separate helper

2022-06-15 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-04 17:16:04) > diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c > index a37a3bbc04d9..98ae0036ab57 100644 > --- a/drivers/gpu/drm/msm/msm_drv.c > +++ b/drivers/gpu/drm/msm/msm_drv.c > @@ -262,6 +263,46 @@ static int msm_drm_uninit(struct

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

2022-06-15 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-15 08:53:57) > Display resolution change is implemented through drm modeset. Older > modeset (resolution) has to be disabled first before newer modeset > (resolution) can be enabled. Display disable will turn off both > pixel clock and main link clock so that main

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

2022-06-14 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-14 14:05:02) > Display resolution change is implemented through drm modeset. Older > modeset (resolution) has to be disabled first before newer modeset > (resolution) can be enabled. Display disable will turn off both > pixel clock and main link clock so that main

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

2022-06-14 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-06-13 14:48:37) > 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-trained during display enable

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

2022-06-10 Thread Stephen Boyd
ally helps anyone, but OK. > > changes in v2: > -- drop the first patch (drm/msm: enable msm irq after all initializations > are done successfully at msm_drm_init()) since the problem had been fixed by > other patch > > Fixes: a65c95ff88f2 ("drm/msm/dp: stop event kernel thread when DP unbind") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

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

2022-06-10 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-05-27 14:32:13) > 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 trained during display enable

Re: [Freedreno] [PATCH v3 06/14] drm/msm/hdmi: drop unused GPIO support

2022-06-10 Thread Stephen Boyd
> > Reported-by: kernel test robot > Signed-off-by: Dmitry Baryshkov > --- One question Reviewed-by: Stephen Boyd > diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c > index 7267167d5ef1..6d79f1b910a5 100644 > --- a/drivers/gpu/drm/msm/hdmi/hdmi.c

Re: [Freedreno] [PATCH] drm/msm/hdmi: fill the pwr_regs bulk regulators

2022-06-10 Thread Stephen Boyd
y. > > Fixes: 31b3b1f5e352 ("drm/msm/hdmi: use bulk regulator API") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 03/11] clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()

2022-06-10 Thread Stephen Boyd
Quoting Marijn Suijten (2022-06-10 00:46:32) > On 2022-06-09 15:12:09, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-06-02 03:20:19) > > > On Thu, 2 Jun 2022 at 01:07, Marijn Suijten > > > wrote: > > > > diff --git a/drivers/clk/clk-fixed-fa

Re: [Freedreno] [PATCH v2 03/11] clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()

2022-06-09 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-02 03:20:19) > On Thu, 2 Jun 2022 at 01:07, Marijn Suijten > wrote: > > diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c > > index 54942d758ee6..fabb98d0cdb2 100644 > > --- a/drivers/clk/clk-fixed-factor.c > > +++

Re: [Freedreno] [PATCH] drm/msm/mdp4: Fix refcount leak in mdp4_modeset_init_intf

2022-06-08 Thread Stephen Boyd
ot;drm: convert drivers to use of_graph_get_remote_node") > Signed-off-by: Miaoqian Lin > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 12/12] drm/msm/hdmi-phy: populate 8x60 HDMI PHY requirements

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:23) > Declare that 8x60 HDMI PHY uses the core-vdda regulator and slave_iface > clock (this is the same config as is used by the 8960). > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 11/12] drm/msm/hdmi: reuse MSM8960's config for MSM8660

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:22) > MSM8660 requires the same set of clocks and regulators as MSM8960. Reuse > MSM8960's config for the MSM8660 (8x60). > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 10/12] drm/msm/hdmi: merge platform config for 8974/8084/8994/8996

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:21) > Since there is no more difference between the HDMI platform data > between MSM8974/APQ8084/MSM8994/MSM8996, merge these configs into a > single entry. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 09/12] drm/msm/hdmi: drop hpd_regs usage on 8x74/8084

2022-06-08 Thread Stephen Boyd
; Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 07/12] drm/msm/hdmi: enable core-vcc/core-vdda-supply for 8996 platform

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:18) > DB820c makes use of core-vcc-supply and core-vdda-supply, however the > driver code doesn't support these regulators. Enable them for HDMI on > 8996 platform. The 'vdda-supply' name makes me think this is another scenario where the phy isn't

Re: [Freedreno] [PATCH v2 08/12] drm/msm/hdmi: drop empty 'none' regulator lists

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:19) > Several platform configs use empty 'none' regulator arrays. They are not > necessary, as the code will use corresponding _cnt field and skip the > array completely. Drop them now. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 06/12] drm/msm/hdmi: drop unused GPIO support

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:17) > @@ -543,41 +529,16 @@ static int msm_hdmi_bind(struct device *dev, struct > device *master, void *data) > hdmi_cfg->mmio_name = "core_physical"; > hdmi_cfg->qfprom_mmio_name = "qfprom_physical"; > > - for (i = 0; i <

Re: [Freedreno] [PATCH v2 05/12] drm/msm/hdmi: drop the hdmi-mux support

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:16) > With the last (and only) in-kernel user of hdmi-mux regulator, drop it > from the HDMI driver. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 04/12] arm: dts: qcom: apq8064-ifc6410: drop hdmi-mux-supply

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:15) > The HDMI circuitry on the IFC6410 is not powered by the 3v3. Drop the > hdmi-mux-supply property. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 03/12] dt-bindings: display/msm: hdmi: mark hdmi-mux-supply as deprecated

2022-06-08 Thread Stephen Boyd
, etc). Mark it as deprecated. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2 02/12] dt-bindings: display/msm: hdmi: mark old GPIO properties as deprecated

2022-06-08 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-06-08 05:07:13) > Mark obsolete GPIO properties as deprecated. They are not used by > existing device trees. While we are at it, also drop them from the > schema example. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [Freedreno] [PATCH v2] drm/msm/dpu: Move min BW request and full BW disable back to mdss

2022-05-31 Thread Stephen Boyd
It's not terribly > surprising that the hang is gone after this patch since the line of > code that was failing is no longer present in the kernel. > > Fixes: a670ff578f1f ("drm/msm/dpu: always use mdp device to scale bandwidth") > Fixes: c33b7c0389e1 ("drm/msm/dpu: add support for clk and bw scaling for > display") > Signed-off-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

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

2022-05-26 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-05-25 14:02:18) > This patch add regulator_set_load() before enable regulator at > eDP phy driver. > > Signed-off-by: Kuogee Hsieh > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

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

2022-05-26 Thread Stephen Boyd
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 implementation instead of manually

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

2022-05-20 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-05-20 13:40:55) > 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

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

2022-05-20 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-05-20 13:06:05) > 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

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

2022-05-20 Thread Stephen Boyd
quot; > > Changes in v7: > -- delete "suspended" flag > > Fixes: 989ebe7bc446 ("drm/msm/dp: do not initialize phy until plugin > interrupt received") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

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

2022-05-19 Thread Stephen Boyd
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 > @@ -87,14 +87,19 @@ struct qcom_edp { > >

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

2022-05-19 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-05-19 10:45:38) > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c > b/drivers/phy/qualcomm/phy-qcom-qmp.c > index b144ae1..24f39ee 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c > @@ -5008,6 +5019,11 @@ static int

Re: [Freedreno] [PATCH v2] drm/msm/dpu: handle pm_runtime_get_sync() errors in bind path

2022-05-18 Thread Stephen Boyd
pm errors start happening in the bind path? Reviewed-by: Stephen Boyd

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

2022-05-18 Thread Stephen Boyd
y: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

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