[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: [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: [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: [PATCH] drm/msm/hdmi: support attaching the "next" bridge

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

Re: [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: [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: [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: [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

[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

[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

[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

[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: [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: [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: [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: [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: [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: [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: [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: [PATCH v4 4/7] dt-bindings: drm/bridge: anx7625: Add mode-switch support

2022-06-16 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-15 10:20:20) > > .../display/bridge/analogix,anx7625.yaml | 64 +++ > 1 file changed, 64 insertions(+) Can this file get a link to the product brief[1]? It helps to quickly find the block diagram. > > diff --git >

Re: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [PATCH v7 8/8] drm: Config orientation property if panel provides it

2022-06-10 Thread Stephen Boyd
ested-by: Doug Anderson > Signed-off-by: Hsin-Yi Wang > --- Reviewed-by: Stephen Boyd

Re: [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: [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: [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: [PATCH v6 4/8] drm/panel: lvds: Implement .get_orientation callback

2022-06-08 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-08 02:48:12) > To return the orientation property to drm/kms driver. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Hans de Goede > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

Re: [PATCH v6 5/8] drm/panel: panel-simple: Implement .get_orientation callback

2022-06-08 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-08 02:48:13) > To return the orientation property to drm/kms driver. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Hans de Goede > Reviewed-by: Douglas Anderson > Reviewed-by: Sam Ravnborg > --- Reviewed-by: Stephen Boyd

Re: [PATCH v6 6/8] drm/panel: ili9881c: Implement .get_orientation callback

2022-06-08 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-08 02:48:14) > To return the orientation property to drm/kms driver. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Hans de Goede > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

Re: [PATCH v6 7/8] drm/panel: elida-kd35t133: Implement .get_orientation callback

2022-06-08 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-08 02:48:15) > To return the orientation property to drm/kms driver. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Hans de Goede > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

Re: [PATCH v6 3/8] drm/panel: panel-edp: Implement .get_orientation callback

2022-06-08 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-08 02:48:11) > To return the orientation property to drm/kms driver. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Hans de Goede > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

Re: [PATCH v6 2/8] drm/panel: boe-tv101wum-nl6: Implement .get_orientation callback

2022-06-08 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-08 02:48:10) > To return the orientation property to drm/kms driver. > > Signed-off-by: Hsin-Yi Wang > Reviewed-by: Hans de Goede > Reviewed-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

Re: [PATCH v6 1/8] drm/panel: Add an API to allow drm to set orientation from panel

2022-06-08 Thread Stephen Boyd
panel_orientation); Then this fits on one line: return drm_connector_set_panel_orientation(connector, orientation); > +} > +EXPORT_SYMBOL(drm_connector_set_orientation_from_panel); > + Otherwise Reviewed-by: Stephen Boyd

Re: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [PATCH v4 8/8] drm/mediatek: Config orientation property if panel provides it

2022-06-06 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-06 08:24:31) > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c > b/drivers/gpu/drm/mediatek/mtk_dsi.c > index d9f10a33e6fa..c56282412bfa 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -822,6 +823,12 @@ static int

Re: [PATCH v4 4/8] drm/panel: lvds: Implement .get_orientation callback

2022-06-06 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-06 08:24:27) > diff --git a/drivers/gpu/drm/panel/panel-lvds.c > b/drivers/gpu/drm/panel/panel-lvds.c > index f11252fb00fe..491b64c2c8d6 100644 > --- a/drivers/gpu/drm/panel/panel-lvds.c > +++ b/drivers/gpu/drm/panel/panel-lvds.c > @@ -99,15 +99,30 @@ static int

Re: [PATCH v4 1/8] drm/panel: Add an API drm_panel_get_orientation() to return panel orientation

2022-06-06 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-06 08:24:24) > diff --git a/drivers/gpu/drm/drm_panel.c b/drivers/gpu/drm/drm_panel.c > index f634371c717a..e12056cfeca8 100644 > --- a/drivers/gpu/drm/drm_panel.c > +++ b/drivers/gpu/drm/drm_panel.c > @@ -223,6 +223,15 @@ int drm_panel_get_modes(struct drm_panel

Re: [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: [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: [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: [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: [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: [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: [PATCH v3 1/4] drm/dp: Add wait_hpd_asserted() callback to struct drm_dp_aux

2022-05-19 Thread Stephen Boyd
Quoting Doug Anderson (2022-05-12 16:24:13) > On Wed, May 11, 2022 at 6:58 PM Stephen Boyd wrote: > > Quoting Douglas Anderson (2022-04-18 10:17:54) > > > diff --git a/include/drm/dp/drm_dp_helper.h > > > b/include/drm/dp/drm_dp_helper.h > > > ind

Re: [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: [PATCH v8 02/16] clk: Provide new devm_clk helpers for prepared and enabled clocks

2022-05-19 Thread Stephen Boyd
The Cc list is huge. Here it goes! Quoting Uwe Kleine-König (2022-03-14 07:16:29) > When a driver keeps a clock prepared (or enabled) during the whole > lifetime of the driver, these helpers allow to simplify the drivers. > > Reviewed-by: Jonathan Cameron > Reviewed-by: Alexandru Ardelean >

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

2022-05-19 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-05-19 10:45:37) > diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c > b/drivers/phy/qualcomm/phy-qcom-edp.c > index cacd32f..90093cd 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: [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: [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: [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

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

2022-05-18 Thread Stephen Boyd
gt; > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

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

2022-05-18 Thread Stephen Boyd
Should subject be "phy: qcom:" prefix? Quoting Kuogee Hsieh (2022-05-18 13:24:02) > 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

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

2022-05-18 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-05-18 12:55:40) > If there are errors while trying to enable the pm in the > bind path, it will lead to unclocked access of hw revision > register thereby crashing the device. > > This will not address why the pm_runtime_get_sync() fails > but at the very least we

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

2022-05-17 Thread Stephen Boyd
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 @@ void

Re: [PATCH v3 1/4] drm/dp: Add wait_hpd_asserted() callback to struct drm_dp_aux

2022-05-11 Thread Stephen Boyd
Quoting Douglas Anderson (2022-04-18 10:17:54) > Sometimes it's useful for users of the DP AUX bus (like panels) to be > able to poll HPD. Let's add a callback that allows DP AUX busses > drivers to provide this. > > Suggested-by: Dmitry Baryshkov > Signed-off-by: Douglas Anderson > --- > Left

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-11 18:30:55) > On 12/05/2022 04:29, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-05-11 18:01:31) > >> On Thu, 12 May 2022 at 03:54, Stephen Boyd wrote: > >>> > >>> Quoting Dmitry Baryshkov (2022-05-06 18:00:

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-11 18:01:31) > On Thu, 12 May 2022 at 03:54, Stephen Boyd wrote: > > > > Quoting Dmitry Baryshkov (2022-05-06 18:00:20) > > > > Does this supersede commit 01013ba9bbdd ("drm/msm/disp/dpu1: avoid > > clearing hw interrupts if

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

2022-05-11 Thread Stephen Boyd
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 100644 > > --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c > > +++

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Stephen Boyd
terfaces") Does this supersede commit 01013ba9bbdd ("drm/msm/disp/dpu1: avoid clearing hw interrupts if hw_intr is null during drm uninit")? I mean that with this patch applied kms->irq_requested makes the check in dpu_core_irq_uninstall() irrelevant because it isn't called anymore? > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [PATCH] drm/msm/dpu: remove NULL-ness check in dpu_hw_intr_destroy

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-07 04:40:09) > There is no need to check that kfree() argument is not NULL. Remove > extra check and call kfree() unconditionally. > > Reported-by: kernel test robot > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [PATCH] drm/msm/dpu: add DRM_MODE_ROTATE_180 back to supported rotations

2022-05-11 Thread Stephen Boyd
is bit was removed > and kms_rotation_crc IGT test starts skipping now whereas > it was previously passing. > > Restore DRM_MODE_ROTATE_180 bit to the supported rotations > list. > > Fixes: dabfdd89eaa92 ("add inline rotation support for sc7280") > Signed-off-by: Abhinav Kumar > --- Reviewed-by: Stephen Boyd

Re: [PATCH] drm/msm: Fix fb plane offset calculation

2022-05-10 Thread Stephen Boyd
Quoting Rob Clark (2022-05-10 09:52:16) > From: Rob Clark > > The offset got dropped by accident. > > Fixes: d413e6f97134 ("drm/msm: Drop msm_gem_iova()") > Signed-off-by: Rob Clark > --- Reviewed-by: Stephen Boyd Tested-by: Stephen Boyd # CoachZ

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

2022-05-06 Thread Stephen Boyd
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 interrupts > after software reset of

RE: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-05 Thread Stephen Boyd
Quoting Sankeerth Billakanti (QUIC) (2022-05-05 11:47:20) > >Quoting Sankeerth Billakanti (2022-05-05 11:02:36) > >> > >> Our internal power grid documents list the regulators as VDD_A_*_1P2 > >> and VDD_A_*_0P9 for all the platforms. > > > >Do your internal power grid documents indicate what

RE: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-05 Thread Stephen Boyd
Quoting Sankeerth Billakanti (2022-05-05 11:02:36) > >> > >> Quoting Douglas Anderson (2022-04-25 14:06:42) > >> > >> Having 'a' in 'vdda' typically means 'analog' for 'analog' circuits, > >> so I'd expect this to only matter for the phy that contains the analog > >> circuitry. It would be great

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

2022-05-04 Thread Stephen Boyd
unnecessary parenthesis > -- while(1) to replace while (!kthread_should_stop()) > > Reported-by: Dmitry Baryshkov > Fixes: 570d3e5d28db ("drm/msm/dp: stop event kernel thread when DP unbind") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd

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

2022-05-02 Thread Stephen Boyd
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. > To make sure event thread exit its loop

Re: [PATCH] drm/msm/dsi: pll_7nm: remove unsupported dividers for DSI pixel clock

2022-05-02 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-01 12:56:20) > Remove dividers that are not recommended for DSI DPHY mode when setting Is "DPHY" intentional or just "PHY" should be here? > up the clock tree for the DSI pixel clock. > > Signed-off-by: Dmitry Baryshkov

Re: [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb()

2022-05-02 Thread Stephen Boyd
s to support writeback in > hw_ctl") What commit is this? > Reported-by: kernel test robot > Signed-off-by: Abhinav Kumar > --- Patch contents look sane Reviewed-by: Stephen Boyd

Re: [PATCH v2] drm/msm/disp/dpu1: avoid clearing hw interrupts if hw_intr is null during drm uninit

2022-05-02 Thread Stephen Boyd
ice_initial_probe+0x1c/0x28 > > Changes in V2: > - Update commit message and coreect fixes tag. > > Fixes: f25f656608e3 ("drm/msm/dpu: merge struct dpu_irq into struct > dpu_hw_intr") > Signed-off-by: Vinod Polimera > --- Reviewed-by: Stephen Boyd

Re: [PATCH v2] drm/msm/dpu: Clean up CRC debug logs

2022-05-02 Thread Stephen Boyd
ssica Zhang # RB5 (qrb5165) > --- Reviewed-by: Stephen Boyd

Re: [PATCH v5 3/5] drm/msm/dp: set stream_pixel rate directly

2022-04-28 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-02-16 21:55:27) > The only clock for which we set the rate is the "stream_pixel". Rather > than storing the rate and then setting it by looping over all the > clocks, set the clock rate directly. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [PATCH v5 3/5] drm/msm/dp: set stream_pixel rate directly

2022-04-28 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-04-19 09:34:18) > On 08/03/2022 23:46, Stephen Boyd wrote: > > > > Yes that's my concern. The qmp phy driver has a couple clk_set_rate() > > calls in the .configure_dp_phy callback. That is called from > > phy_power_on()

Re: [PATCH] drm/msm/disp/dpu1: avoid clearing hw interrupts if hw_intr is null during drm uninit

2022-04-26 Thread Stephen Boyd
Quoting Vinod Polimera (2022-04-25 23:02:11) > Avoid clearing irqs and derefernce hw_intr when hw_intr is null. Presumably this is only the case when the display driver doesn't fully probe and something probe defers? Can you clarify how this situation happens? > > BUG: Unable to handle kernel

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

2022-04-26 Thread Stephen Boyd
("drm/msm/dp: add fail safe mode outside of event_mutex > context") > Reported-by: Douglas Anderson > Signed-off-by: Kuogee Hsieh Reviewed-by: Stephen Boyd

Re: [PATCH v1] drm/msm: select DRM_DP_AUX_BUS for the AUX bus support

2022-04-26 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-04-25 17:41:28) > Add missing dependency on the AUX bus implementation. > > Fixes: 82c59ed16695 ("drm/msm/dp: Add eDP support via aux_bus") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

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

2022-04-26 Thread Stephen Boyd
rom link status at previous dpcd read and we like 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") > Sig

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

2022-04-26 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-04-25 22:56:35) > Current DP driver implementation has adding safe mode done at > dp_hpd_plug_handle() which is expected to be executed under event > thread context. > > However there is possible circular locking happen (see blow stack trace) > after edp driver call

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

2022-04-25 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-04-25 15:11:03) > At normal operation, transmit phy test pattern has to be terminated before > DP controller switch to video ready state. However during phy compliance > testing, transmit phy test pattern should not be terminated until end of > compliance test which

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

2022-04-25 Thread Stephen Boyd
ot;drm/msm/dp: use dp_ctrl_off_link_stream during PHY compliance test run") > Signed-off-by: Kuogee Hsieh > --- Otherwise, Reviewed-by: Stephen Boyd

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

2022-04-25 Thread Stephen Boyd
Quoting Kuogee Hsieh (2022-04-25 15:29:30) > > On 4/20/2022 3:38 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2022-04-14 14:03:43) > > > >> diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > >> b/drivers/gpu/drm/msm/dp/dp_display.c > >> index 0

Re: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-04-25 Thread Stephen Boyd
Quoting Douglas Anderson (2022-04-25 14:06:42) > We're supposed to list the supplies in the dt bindings but there are > none in the DP controller bindings. Looking at the Linux driver and > existing device trees, we can see that two supplies are expected: > - vdda-0p9-supply > - vdda-1p2-supply >

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