Re: [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: [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: [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: [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: [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: [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: [PATCH] drm/bridge: ps8640: Add back the 50 ms mystery delay after HPD

2022-10-19 Thread Stephen Boyd
ng things. > > Let's go back and add back in the mysterious 50 ms delay. We only want > to do this the first time we see HPD go high after booting the MCU, > not every time we double-check HPD. > > With this, the backlight initializes reliably on homestar. > > Fixes: 826cff3f7ebb ("drm/bridge: parade-ps8640: Enable runtime power > management") > Signed-off-by: Douglas Anderson > --- Reviewed-by: Stephen Boyd

Re: [PATCH v3 2/7] firmware: raspberrypi: Move the clock IDs to the firmware header

2022-10-14 Thread Stephen Boyd
Quoting Maxime Ripard (2022-10-13 02:13:09) > We'll need the clock IDs in more drivers than just the clock driver from > now on, so let's move them in the firmware header. > > Signed-off-by: Maxime Ripard > --- Acked-by: Stephen Boyd

Re: [PATCH v2 3/7] firmware: raspberrypi: Provide a helper to query a clock max rate

2022-09-28 Thread Stephen Boyd
; > Signed-off-by: Maxime Ripard > Acked-by: Stephen Boyd

Re: [PATCH v1 2/7] clk: bcm: rpi: Add a function to retrieve the maximum

2022-09-14 Thread Stephen Boyd
Quoting Stefan Wahren (2022-09-14 11:09:04) > Am 14.09.22 um 20:05 schrieb Stephen Boyd: > > Quoting Stefan Wahren (2022-09-14 10:45:48) > >> Am 14.09.22 um 17:50 schrieb Stephen Boyd: > >>> Furthermore, I wonder if even that part needs to be implemented. Wh

Re: [PATCH v1 2/7] clk: bcm: rpi: Add a function to retrieve the maximum

2022-09-14 Thread Stephen Boyd
Quoting Stefan Wahren (2022-09-14 11:09:04) > Am 14.09.22 um 20:05 schrieb Stephen Boyd: > > Quoting Stefan Wahren (2022-09-14 10:45:48) > >> Am 14.09.22 um 17:50 schrieb Stephen Boyd: > >>> Furthermore, I wonder if even that part needs to be implemented. Wh

Re: [PATCH v1 2/7] clk: bcm: rpi: Add a function to retrieve the maximum

2022-09-14 Thread Stephen Boyd
Quoting Maxime Ripard (2022-09-14 09:15:02) > Hi Stephen, > > Thanks for reviewing that series > > On Wed, Sep 14, 2022 at 08:50:33AM -0700, Stephen Boyd wrote: > > Quoting Maxime Ripard (2022-08-15 08:31:24) > > > @@ -254,6 +255,33 @@ static int raspberrypi

Re: [PATCH v1 2/7] clk: bcm: rpi: Add a function to retrieve the maximum

2022-09-14 Thread Stephen Boyd
Quoting Stefan Wahren (2022-09-14 10:45:48) > Am 14.09.22 um 17:50 schrieb Stephen Boyd: > > > > Furthermore, I wonder if even that part needs to be implemented. Why > > not make a direct call to rpi_firmware_property() and get the max rate? > > All of that can liv

Re: [PATCH v1 2/7] clk: bcm: rpi: Add a function to retrieve the maximum

2022-09-14 Thread Stephen Boyd
Quoting Maxime Ripard (2022-08-15 08:31:24) > @@ -254,6 +255,33 @@ static int raspberrypi_fw_dumb_determine_rate(struct > clk_hw *hw, > return 0; > } > > +unsigned long rpi_firmware_clk_get_max_rate(struct clk *clk) > +{ > + const struct raspberrypi_clk_data *data; > +

Re: [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: [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: [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: [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: [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: [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: [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: [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: (subset) [PATCH v2 0/7] Devm helpers for regulator get and enable

2022-08-30 Thread Stephen Boyd
Quoting Mark Brown (2022-08-15 15:07:35) > On Mon, Aug 15, 2022 at 01:58:55PM -0700, Stephen Boyd wrote: > > > I think the main issue is that platform drivers are being asked to do > > too much. We've put the burden on platform driver authors to intimately > > unde

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

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

[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: [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: (subset) [PATCH v2 0/7] Devm helpers for regulator get and enable

2022-08-15 Thread Stephen Boyd
Quoting Laurent Pinchart (2022-08-15 11:52:36) > Hi Mark, > > On Mon, Aug 15, 2022 at 05:33:06PM +0100, Mark Brown wrote: > > On Mon, Aug 15, 2022 at 06:54:45PM +0300, Laurent Pinchart wrote: > > > > > - With devres, you don't have full control over the order in which > > > resources will be

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

Re: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [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: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-07-06 Thread Stephen Boyd
Quoting Prashant Malani (2022-07-06 11:26:19) > > Stephen, any pending concerns? No more pending concerns. > If not,I will post a v6 series with the suggested changes: > - Drop typec-switch binding; instead add a new top-level port with > end-points for each Type-C connector's switch. > - Drop

[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: [PATCH] video: of_display_timing.h: include errno.h

2022-06-30 Thread Stephen Boyd
Quoting Hsin-Yi Wang (2022-06-30 10:33:29) > If CONFIG_OF is not enabled, default of_get_display_timing() returns an > errno, so include the header. > > Fixes: 422b67e0b31a ("videomode: provide dummy inline functions for > !CONFIG_OF") > Suggested-by: Stephen Boyd &

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-30 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-28 13:56:22) > On Tue, Jun 28, 2022 at 1:40 PM Stephen Boyd wrote: > > > > I suppose none of those things matter though as long as there is some > > typec switch registered here so that the driver can be informed of the > >

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-29 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-29 15:55:10) > On Wed, Jun 29, 2022 at 2:58 PM Stephen Boyd wrote: > > > > My understanding is there are 4 DP lanes on it6505 and two lanes are > > connected to one usb-c-connector and the other two lanes are connected > > to

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-29 Thread Stephen Boyd
Quoting Rob Herring (2022-06-29 10:58:52) > On Wed, Jun 29, 2022 at 9:01 AM Pin-yen Lin wrote: > > > > > > Yes it6505 is just a protocol converter. But in our use case, the output > > > DP > > > lines are connected to the Type-C ports and the chip has to know which > > > port has DP Alt mode

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-28 12:48:11) > On Tue, Jun 28, 2022 at 12:25 PM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-22 10:34:34) > > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c > > > b/drivers/gpu/drm/bridge/analogix/a

Re: [PATCH v5 5/9] drm/bridge: anx7625: Add typec_mux_set callback function

2022-06-28 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-22 10:34:34) > From: Pin-Yen Lin > > Add the callback function when the driver receives state > changes of the Type-C port. The callback function configures the > crosspoint switch of the anx7625 bridge chip, which can change the > output pins of the signals

Re: [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: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-24 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-24 14:41:36) > On Fri, Jun 24, 2022 at 12:50 PM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-23 19:48:04) > > > On Thu, Jun 23, 2022 at 7:13 PM Stephen Boyd wrote: > > > > > > > > Quoting Prashant Ma

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

[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: [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: [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: [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: [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: [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: [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: [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: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-24 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-23 19:48:04) > On Thu, Jun 23, 2022 at 7:13 PM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-23 17:35:38) > > > On Thu, Jun 23, 2022 at 4:14 PM Stephen Boyd wrote: > > > > > > > > I'm not aware

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-23 17:35:38) > On Thu, Jun 23, 2022 at 4:14 PM Stephen Boyd wrote: > > > > I'm not aware of any documentation for the dos and don'ts here. Are > > there any examples in the bindings directory that split up a device into > > subnodes

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

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-23 12:08:21) > On Thu, Jun 23, 2022 at 11:30 AM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-22 10:34:30) > > > diff --git a/Documentation/devicetree/bindings/usb/typec-switch.yaml > > > b/Documentation/devicetr

Re: [PATCH v5 6/9] dt/bindings: drm/bridge: it6505: Add mode-switch support

2022-06-23 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-23 11:37:08) > On Thu, Jun 23, 2022 at 11:24 AM Stephen Boyd wrote: > > > > Quoting Prashant Malani (2022-06-22 10:34:35) > > > From: Pin-Yen Lin > > > > > > ITE IT6505 can be used in systems to switch USB Type-C Dis

Re: [PATCH v5 1/9] dt-bindings: usb: Add Type-C switch binding

2022-06-23 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-22 10:34:30) > diff --git a/Documentation/devicetree/bindings/usb/typec-switch.yaml > b/Documentation/devicetree/bindings/usb/typec-switch.yaml > new file mode 100644 > index ..78b0190c8543 > --- /dev/null > +++

Re: [PATCH v5 6/9] dt/bindings: drm/bridge: it6505: Add mode-switch support

2022-06-23 Thread Stephen Boyd
Quoting Prashant Malani (2022-06-22 10:34:35) > From: Pin-Yen Lin > > ITE IT6505 can be used in systems to switch USB Type-C DisplayPort > alternate mode lane traffic between 2 Type-C ports. How does it work? From what I can tell from the information I find when googling this part[1] and looking

[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

[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

[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

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

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