[PATCH v2 2/2] drm: bridge: cdns-mhdp8546: Add support for no-hpd

2023-04-05 Thread Jayesh Choudhary
Signed-off-by: Rahul T R Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 37 --- .../drm/bridge/cadence/cdns-mhdp8546-core.h | 1 + 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546

[PATCH v2 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-04-05 Thread Jayesh Choudhary
the auxiliary channels connected to the DP connector to confirm the connection. So add no-hpd property to the bindings, to disable hpd when not connected or unusable. Signed-off-by: Rahul T R Signed-off-by: Jayesh Choudhary --- .../devicetree/bindings/display/bridge/cdns,mhdp8546.yaml | 6

[PATCH v2 0/2] "no-hpd" support in CDNS DP bridge driver

2023-04-05 Thread Jayesh Choudhary
In J721s2 EVM, DP0 HPD is not connected to correct HPD pin on SOC which results in HPD detect as always connnected, so when display is not connected driver continuously retries to read EDID and DPCD registers. To handle such cases add support for no hpd configuration in cdns-mhdp driver. DT chang

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-04-14 Thread Jayesh Choudhary
On 06/04/23 07:10, Laurent Pinchart wrote: Hi Jayesh, Thank you for the patch. On Wed, Apr 05, 2023 at 07:54:39PM +0530, Jayesh Choudhary wrote: From: Rahul T R The mhdp bridge can work without its HPD pin hooked up to the connector, but the current bridge driver throws an error when hpd

Re: [PATCH v2 2/2] drm: bridge: cdns-mhdp8546: Add support for no-hpd

2023-04-14 Thread Jayesh Choudhary
On 06/04/23 07:22, Laurent Pinchart wrote: Hi Jayesh, Thank you for the patch. On Wed, Apr 05, 2023 at 07:54:40PM +0530, Jayesh Choudhary wrote: From: Rahul T R In J721S2 EVMs DP0 hpd is not connected to correct hpd pin on SOC, to handle such cases, Add support for "no-hpd" p

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-04-14 Thread Jayesh Choudhary
On 11/04/23 11:36, Krzysztof Kozlowski wrote: On 05/04/2023 16:24, Jayesh Choudhary wrote: From: Rahul T R The mhdp bridge can work without its HPD pin hooked up to the connector, but the current bridge driver throws an error when hpd line is not connected to the connector. For such cases

[PATCH 0/2] "no-hpd" support in CDNS DP bridge driver

2023-03-17 Thread Jayesh Choudhary
In J721s2 EVM, DP0 HPD is not connected to correct HPD pin on SOC which results in HPD detect as always connnected, so when display is not connected driver continuously retries to read EDID and DPCD registers. To handle such cases add support for no hpd configuration in cdns-mhdp driver. DT chang

[PATCH 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-03-17 Thread Jayesh Choudhary
From: Rahul T R Add no-hpd property to the bindings, to disable hpd when not connected or unusable Signed-off-by: Rahul T R Signed-off-by: Jayesh Choudhary --- .../devicetree/bindings/display/bridge/cdns,mhdp8546.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation

[PATCH 2/2] drm: bridge: cdns-mhdp8546: Add support for no-hpd

2023-03-17 Thread Jayesh Choudhary
Signed-off-by: Rahul T R Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 37 --- .../drm/bridge/cadence/cdns-mhdp8546-core.h | 1 + 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546

Re: [PATCH 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-03-22 Thread Jayesh Choudhary
Hello Krzysztof, On 17/03/23 18:08, Krzysztof Kozlowski wrote: On 16/03/2023 15:08, Jayesh Choudhary wrote: From: Rahul T R Add no-hpd property to the bindings, to disable hpd when not connected or unusable Signed-off-by: Rahul T R Signed-off-by: Jayesh Choudhary --- .../devicetree

Re: [PATCH 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-03-22 Thread Jayesh Choudhary
On 21/03/23 18:08, Krzysztof Kozlowski wrote: On 21/03/2023 13:02, Jayesh Choudhary wrote: +type: boolean +description: + Set if the HPD line on the bridge isn't hooked up to anything or is + otherwise unusable. It's the property of the panel, not bridge.

Re: [PATCH 1/2] dt-bindings: drm/bridge: Add no-hpd property

2023-03-23 Thread Jayesh Choudhary
On 21/03/23 20:47, Krzysztof Kozlowski wrote: On 21/03/2023 15:28, Jayesh Choudhary wrote: On 21/03/23 18:08, Krzysztof Kozlowski wrote: On 21/03/2023 13:02, Jayesh Choudhary wrote: +type: boolean +description: + Set if the HPD line on the bridge isn't hooked

[PATCH] drm: bridge: cdns-mhdp8546: Add mode_valid hook for the drm_bridge_funcs

2024-05-24 Thread Jayesh Choudhary
e modes in this case as well. Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 31 +++ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8

[PATCH v2 0/2] Add mode_valid hook for sii902x bridge

2024-05-24 Thread Jayesh Choudhary
check in atomic_check dunction call (in a separate patch) v1 patch: <https://lore.kernel.org/all/20240408081435.216927-1-j-choudh...@ti.com/> Jayesh Choudhary (2): drm/bridge: sii902x: Fix mode_valid hook drm/bridge: Add pixel clock check in atomic_check drivers/gpu/drm/bridge/

[PATCH v2 2/2] drm/bridge: Add pixel clock check in atomic_check

2024-05-24 Thread Jayesh Choudhary
Check the pixel clock for the mode in atomic_check and ensure that it is within the range supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/sii902x.c b

[PATCH v2 1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-05-24 Thread Jayesh Choudhary
id hook in drm_bridge_funcs as well with proper clock checks for maximum and minimum pixel clock supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 38 ++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/drive

Re: [PATCH v2 1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-05-24 Thread Jayesh Choudhary
Hello Sam, On 24/05/24 13:48, Sam Ravnborg wrote: Hi Jayesh, On Fri, May 24, 2024 at 01:03:04PM +0530, Jayesh Choudhary wrote: Currently, mode_valid hook returns all mode as valid and it is defined only in drm_connector_helper_funcs. With the introduction of 'DRM_BRIDGE_ATTACH_NO_CONN

[PATCH v3 0/2] Add mode_valid hook for sii902x bridge

2024-05-24 Thread Jayesh Choudhary
408081435.216927-1-j-choudh...@ti.com/> Jayesh Choudhary (2): drm/bridge: sii902x: Fix mode_valid hook drm/bridge: Add pixel clock check in atomic_check drivers/gpu/drm/bridge/sii902x.c | 43 ++-- 1 file changed, 41 insertions(+), 2 deletions(-) -- 2.25.1

[PATCH v3 1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-05-24 Thread Jayesh Choudhary
id hook in drm_bridge_funcs as well with proper clock checks for maximum and minimum pixel clock supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 37 ++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH v3 2/2] drm/bridge: Add pixel clock check in atomic_check

2024-05-24 Thread Jayesh Choudhary
Check the pixel clock for the mode in atomic_check and ensure that it is within the range supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm

Re: [PATCH v3 1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-05-24 Thread Jayesh Choudhary
Hello Dmitry, On 24/05/24 15:11, Dmitry Baryshkov wrote: On Fri, May 24, 2024 at 03:05:08PM +0530, Jayesh Choudhary wrote: Currently, mode_valid hook returns all mode as valid and it is defined only in drm_connector_helper_funcs. With the introduction of 'DRM_BRIDGE_ATTACH_NO_CONN

Re: [PATCH v3 1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-05-27 Thread Jayesh Choudhary
On 25/05/24 01:16, Dmitry Baryshkov wrote: On Fri, May 24, 2024 at 05:54:02PM +0530, Jayesh Choudhary wrote: Hello Dmitry, On 24/05/24 15:11, Dmitry Baryshkov wrote: On Fri, May 24, 2024 at 03:05:08PM +0530, Jayesh Choudhary wrote: Currently, mode_valid hook returns all mode as valid and

Re: [PATCH] drm: bridge: cdns-mhdp8546: Add mode_valid hook for the drm_bridge_funcs

2024-05-27 Thread Jayesh Choudhary
On 24/05/24 15:13, Dmitry Baryshkov wrote: On Fri, May 24, 2024 at 12:43:48PM +0530, Jayesh Choudhary wrote: With the support for the 'DRM_BRIDGE_ATTACH_NO_CONNECTOR' case, the connector_helper funcs are not initialized if the encoder has this flag in its bridge_attach call. Till

[PATCH] drm/bridge: sii902x: Fix mode_valid hook

2024-04-08 Thread Jayesh Choudhary
Currently, mode_valid hook returns all mode as valid. Add the check for the maximum and minimum pixel clock that the bridge can support while validating a mode. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 16 +++- 1 file changed, 15 insertions(+), 1

[PATCH] drm/bridge: ti-sn65dsi86: Fix ti_sn_bridge_set_dsi_rate function

2024-04-08 Thread Jayesh Choudhary
value is 0x97 (exclusive). So add check for that. [0]: <https://www.ti.com/lit/gpn/sn65dsi86> Fixes: ca1b885cbe9e ("drm/bridge: ti-sn65dsi86: Split the setting of the dp and dsi rates") Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 48 +

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix ti_sn_bridge_set_dsi_rate function

2024-04-10 Thread Jayesh Choudhary
Hello Doug, Thanks for the review. On 08/04/24 14:33, Doug Anderson wrote: Hi, On Mon, Apr 8, 2024 at 12:36 AM Jayesh Choudhary wrote: Due to integer calculations, the rounding off can cause errors in the final value propagated in the registers. Considering the example of 1080p (very

Re: [PATCH] drm/bridge: ti-sn65dsi86: Fix ti_sn_bridge_set_dsi_rate function

2024-06-18 Thread Jayesh Choudhary
Hello Doug, On 11/04/24 10:12, Doug Anderson wrote: Hi, On Wed, Apr 10, 2024 at 4:42 AM Jayesh Choudhary wrote: Hello Doug, Thanks for the review. On 08/04/24 14:33, Doug Anderson wrote: Hi, On Mon, Apr 8, 2024 at 12:36 AM Jayesh Choudhary wrote: Due to integer calculations, the

[PATCH v2 2/2] drm/bridge: ti-sn65dsi86: Fix ti_sn_bridge_set_dsi_rate function

2024-06-18 Thread Jayesh Choudhary
idge driver") Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index d13b42d7c512..5bf12af6b657 100644 --- a

[PATCH v2 0/2] SN65DSI86 minor fixes

2024-06-18 Thread Jayesh Choudhary
during code inspection. v1 patch: <https://lore.kernel.org/all/20240408073623.186489-1-j-choudh...@ti.com/> [0]: <https://www.ti.com/lit/gpn/sn65dsi86> Jayesh Choudhary (2): drm/bridge: ti-sn65dsi86: Add atomic_check hook for the bridge drm/bridge: ti-sn65dsi86: Fix ti_sn_bri

[PATCH v2 1/2] drm/bridge: ti-sn65dsi86: Add atomic_check hook for the bridge

2024-06-18 Thread Jayesh Choudhary
0x96. So add check for that. [0]: <https://www.ti.com/lit/gpn/sn65dsi86> Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 65 +++ 1 file changed, 46 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/d

Re: [PATCH v2 1/2] drm/bridge: ti-sn65dsi86: Add atomic_check hook for the bridge

2024-06-18 Thread Jayesh Choudhary
Hello Dmitry, Thanks for the review. On 18/06/24 14:29, Dmitry Baryshkov wrote: On Tue, Jun 18, 2024 at 01:44:17PM GMT, Jayesh Choudhary wrote: Add the atomic_check hook to ensure that the parameters are within the valid range. As of now, dsi clock freqency is being calculated in

Re: [PATCH v2 2/2] drm/bridge: ti-sn65dsi86: Fix ti_sn_bridge_set_dsi_rate function

2024-06-18 Thread Jayesh Choudhary
Hello Dmitry, On 18/06/24 14:33, Dmitry Baryshkov wrote: On Tue, Jun 18, 2024 at 01:44:18PM GMT, Jayesh Choudhary wrote: During code inspection, it was found that due to integer calculations, the rounding off can cause errors in the final value propagated in the registers. Considering the

Re: [PATCH v2 1/2] drm/bridge: ti-sn65dsi86: Add atomic_check hook for the bridge

2024-06-27 Thread Jayesh Choudhary
Hello Dmitry, On 18/06/24 15:45, Dmitry Baryshkov wrote: On Tue, 18 Jun 2024 at 12:56, Jayesh Choudhary wrote: Hello Dmitry, Thanks for the review. On 18/06/24 14:29, Dmitry Baryshkov wrote: On Tue, Jun 18, 2024 at 01:44:17PM GMT, Jayesh Choudhary wrote: Add the atomic_check hook to

Re: [PATCH] drm/bridge: sii902x: Fix mode_valid hook

2024-05-03 Thread Jayesh Choudhary
Hello Maxime, Thanks for the review. On 15/04/24 13:10, Maxime Ripard wrote: Hi, On Mon, Apr 08, 2024 at 01:44:35PM +0530, Jayesh Choudhary wrote: Currently, mode_valid hook returns all mode as valid. Add the check for the maximum and minimum pixel clock that the bridge can support while

[PATCH v2] drm: bridge: cdns-mhdp8546: Move mode_valid hook to drm_bridge_funcs

2024-05-30 Thread Jayesh Choudhary
the modes. Signed-off-by: Jayesh Choudhary --- Changelog v1->v2: - Remove mode_valid hook from connector_helper_funcs as it is not required. (Function despite being identical has been moved below with other bridge_funcs instead of keeping it up with drm_connector_helper_funcs) v1

[PATCH v4 1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-05-30 Thread Jayesh Choudhary
id hook to drm_bridge_funcs with proper clock checks for maximum and minimum pixel clock supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/

[PATCH v4 0/2] Add mode_valid and atomic_check hooks for sii902x bridge

2024-05-30 Thread Jayesh Choudhary
(in a separate patch) v1 patch: <https://lore.kernel.org/all/20240408081435.216927-1-j-choudh...@ti.com/> Jayesh Choudhary (2): drm/bridge: sii902x: Fix mode_valid hook drm/bridge: Add pixel clock check in atomic_check drivers/gpu/drm/bridge/sii902x.c | 38

[PATCH v4 2/2] drm/bridge: Add pixel clock check in atomic_check

2024-05-30 Thread Jayesh Choudhary
Check the pixel clock for the mode in atomic_check and ensure that it is within the range supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm

Re: [PATCH v4 2/2] drm/bridge: Add pixel clock check in atomic_check

2024-05-30 Thread Jayesh Choudhary
Hello Maxime, On 30/05/24 15:04, Maxime Ripard wrote: Hi, On Thu, May 30, 2024 at 02:59:30PM GMT, Jayesh Choudhary wrote: Check the pixel clock for the mode in atomic_check and ensure that it is within the range supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm

Re: [v4,1/2] drm/bridge: sii902x: Fix mode_valid hook

2024-06-11 Thread Jayesh Choudhary
Hello Sui, Sam! Thanks for the review. (Sorry for delayed response. I was OoO last week) On 31/05/24 19:34, Sui Jingfeng wrote: Hi, Jayesh On 5/31/24 21:33, Sam Ravnborg wrote: Hi Jayesh, +    static const struct drm_bridge_funcs sii902x_bridge_funcs = {    .attach = sii902x_bridge_at

[PATCH v5 2/3] drm/bridge: sii902x: Support atomic bridge APIs

2024-06-13 Thread Jayesh Choudhary
Change exisitig enable() and disable() bridge hooks to their atomic counterparts as the former hooks are deprecated. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge

[PATCH v5 1/3] drm/bridge: sii902x: Fix mode_valid hook

2024-06-13 Thread Jayesh Choudhary
t actually checking the modes. So move the mode_valid hook to drm_bridge_funcs with proper clock checks for maximum and minimum pixel clock supported by the bridge. Signed-off-by: Jayesh Choudhary Reviewed-by: Dmitry Baryshkov Acked-by: Sui Jingfeng --- drivers/gpu/drm/bridge/sii9

[PATCH v5 3/3] drm/bridge: sii902x: Add pixel clock check in atomic_check

2024-06-13 Thread Jayesh Choudhary
Check the pixel clock for the mode in atomic_check and ensure that it is within the range supported by the bridge. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/sii902x.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm

[PATCH v5 0/3] SII902X HDMI Bridge fixups

2024-06-13 Thread Jayesh Choudhary
re clear - Add the hook for drm_bridge_funcs as well - Add check in atomic_check dunction call (in a separate patch) v1 patch: <https://lore.kernel.org/all/20240408081435.216927-1-j-choudh...@ti.com/> Jayesh Choudhary (3): drm/bridge: sii902x: Fix mode_valid hook drm/bridge: sii902x: Sup

Re: [PATCH v8 11/13] drm/atomic-helper: Separate out bridge pre_enable/post_disable from enable/disable

2025-02-04 Thread Jayesh Choudhary
if (funcs) { if (funcs->atomic_enable) I have tested display on J784S4-EVM for MHDP and DSI with this diff on top of your series. With the above change addressed, Reviewed-by: Jayesh Choudhary drm_atomic_helper_commit_writebacks(dev, old_state); Warm Regards, Jayesh

Re: [PATCH 1/2] dt-bindings: display: ti,am65x-dss: Add support for AM62L DSS

2025-01-24 Thread Jayesh Choudhary
mpatible: enum: - ti,am625-dss - ti,am62a7,dss + - ti,am62l,dss s/ti,am62l,dss/ti,am62l-dss There seems to be inconsistency in the usage of the compatible name in the conditional below. Same is with the compatible "ti,am62a7,dss". Can you fix that too? With

Re: [RFC PATCH] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

2025-01-27 Thread Jayesh Choudhary
Hello Tomi, Alexander, On 24/01/25 13:38, Alexander Stein wrote: Hi, Am Donnerstag, 23. Januar 2025, 17:20:34 CET schrieb Tomi Valkeinen: Hi, On 16/01/2025 13:16, Jayesh Choudhary wrote: For the cases we have DRM_BRIDGE_ATTACH_NO_CONNECTOR flag set, Any idea if any other platform than K3

[RFC PATCH] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

2025-01-16 Thread Jayesh Choudhary
t;drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge") Signed-off-by: Jayesh Choudhary --- NOTE: Found this issue in one particular board where edid read failed. Issue log: <https://gist.github.com/Jayesh2000/233f87f9becdf1e66f1da6fd53f77429> Adding conditional fixes the null po

[PATCH] drm/bridge: ti-sn65dsi86: Add necessary DSI flags

2025-04-11 Thread Jayesh Choudhary
Enable NO_EOT and SYNC flags for DSI to use VIDEO_SYNC_PULSE_MODE with EOT disabled. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti

Re: [PATCH v2 00/18] drm/bridge: cdns-dsi: Make it work a bit better

2025-04-11 Thread Jayesh Choudhary
nnector (https://lore.kernel.org/all/20250411105155.303657-1-j-choudh...@ti.com/) Tested-by: Jayesh Choudhary Signed-off-by: Tomi Valkeinen --- Changes in v2: - Change the tidss clock adjustment from mode_fixup() to atomic_check() - Link to v1: https://lore.kernel.org/r/20250320-cdns-dsi-impro-

Re: [PATCH v2 10/18] drm/bridge: cdns-dsi: Fix event mode

2025-04-11 Thread Jayesh Choudhary
Hello Tomi, On 02/04/25 19:00, Tomi Valkeinen wrote: The timings calculation gets it wrong for DSI event mode, resulting in too large hbp value. Fix the issue by taking into account the pulse/event mode difference. Signed-off-by: Tomi Valkeinen Reviewed-by: Jayesh Choudhary --- drivers

[RFC PATCH] drm/bridge: ti-sn65dsi86: Enable HPD functionality

2025-04-24 Thread Jayesh Choudhary
7; as mentioned in the comments in the driver. Signed-off-by: Jayesh Choudhary --- Hello All, Sending this RFC patch to get some thoughts on hpd for sn65dsi86. Now that we have a usecase for hpd in sn65dsi86, I wanted to get some comments on this approach to "NOT DISABLE" hpd in the bri

Re: [PATCH] drm/bridge: ti-sn65dsi86: Add necessary DSI flags

2025-04-16 Thread Jayesh Choudhary
Hello Doug, On 13/04/25 07:22, Doug Anderson wrote: Hi, On Fri, Apr 11, 2025 at 2:23 AM Jayesh Choudhary wrote: Enable NO_EOT and SYNC flags for DSI to use VIDEO_SYNC_PULSE_MODE with EOT disabled. Any chance you could add some details to this commit message? Your subject says that these

Re: [RFC PATCH] drm/bridge: ti-sn65dsi86: Enable HPD functionality

2025-05-01 Thread Jayesh Choudhary
Hello Max, On 01/05/25 13:42, Max Krummenacher wrote: On Mon, Apr 28, 2025 at 02:15:12PM -0700, Doug Anderson wrote: Hello Jayesh, Hi, On Thu, Apr 24, 2025 at 6:32 PM Kumar, Udit wrote: Hello Jayesh, On 4/24/2025 4:24 PM, Jayesh Choudhary wrote: For TI SoC J784S4, the display pipeline

Re: [PATCH] drm/bridge: ti-sn65dsi86: Add necessary DSI flags

2025-04-24 Thread Jayesh Choudhary
Hello Doug, On 17/04/25 02:40, Jayesh Choudhary wrote: Hello Doug, On 13/04/25 07:22, Doug Anderson wrote: Hi, On Fri, Apr 11, 2025 at 2:23 AM Jayesh Choudhary wrote: Enable NO_EOT and SYNC flags for DSI to use VIDEO_SYNC_PULSE_MODE with EOT disabled. Any chance you could add some

Re: [RFC PATCH] drm/bridge: ti-sn65dsi86: Enable HPD functionality

2025-04-25 Thread Jayesh Choudhary
Hello Krzysztof, On 25/04/25 11:04, Krzysztof Kozlowski wrote: On 24/04/2025 12:54, Jayesh Choudhary wrote: For TI SoC J784S4, the display pipeline looks like: TIDSS -> CDNS-DSI -> SN65DSI86 -> DisplayConnector -> DisplaySink This requires HPD to detect connection form the c

[PATCH v2] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-05-08 Thread Jayesh Choudhary
_dp_dpcd_read_link_status' to find if we have something connected at the sink. [0]: <https://www.ti.com/lit/gpn/SN65DSI86> (Pg. 32) Fixes: c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridge connector operations for DP") Cc: Max Krummenacher Signed-off-by: Jayesh Choud

Re: [PATCH v1] drm/bridge: ti-sn65dsi86: Use HPD in a DP use case

2025-05-07 Thread Jayesh Choudhary
Hello Max, On 06/05/25 22:14, Max Krummenacher wrote: On Thu, May 01, 2025 at 08:38:15PM -0700, Doug Anderson wrote: Hi, On Thu, May 1, 2025 at 12:48 AM wrote: From: Max Krummenacher The bridge driver currently disables handling the hot plug input and relies on a always connected eDP pane

[RFC PATCH v2 1/3] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge

2025-05-21 Thread Jayesh Choudhary
. Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 186 +++--- 1 file changed, 25 insertions(+), 161 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c b/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c index b431e7efd1f0

[RFC PATCH v2 3/3] drm/bridge: cadence: cdns-mhdp8546-core: Reduce log level for DPCD read/write

2025-05-21 Thread Jayesh Choudhary
, the caller functions for the cdns_mhdp_transfer in drm_dp_helper.c (which calls it 32 times), has debug log level in case transfer fails. So having a superseding log level in cdns_mhdp_transfer seems bad. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 4

[RFC PATCH v2 2/3] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from pointer to structure

2025-05-21 Thread Jayesh Choudhary
ore we can retry the asyncronous work in case of any failure. Fixes: fb43aa0acdfd ("drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 28 +-- .../drm/bridge/cadence/cdns-mhdp85

[RFC PATCH v2 0/3] CDNS-MHDP8546 minor cleanups

2025-05-21 Thread Jayesh Choudhary
mic_state - Reduce log level in cdns_mhdp_transfer call [0]: https://lore.kernel.org/all/20240530091757.433106-1-j-choudh...@ti.com/ Jayesh Choudhary (3): drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge drm/bridge: cadence: cdns-mhdp8546

Re: [RFC PATCH] drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

2025-05-21 Thread Jayesh Choudhary
Hello Tomi, On 28/01/25 11:27, Jayesh Choudhary wrote: Hello Tomi, Alexander, On 24/01/25 13:38, Alexander Stein wrote: Hi, Am Donnerstag, 23. Januar 2025, 17:20:34 CET schrieb Tomi Valkeinen: Hi, On 16/01/2025 13:16, Jayesh Choudhary wrote: For the cases we have

Re: [PATCH v2] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-05-26 Thread Jayesh Choudhary
Hello Dmitry, Doug, Thanks a lot for the review. On 22/05/25 18:44, Dmitry Baryshkov wrote: On Wed, May 21, 2025 at 06:10:59PM -0700, Doug Anderson wrote: Hi, On Thu, May 8, 2025 at 4:54 AM Jayesh Choudhary wrote: By default, HPD was disabled on SN65DSI86 bridge. When the driver was added

Re: [RFC PATCH v2 2/3] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from pointer to structure

2025-05-27 Thread Jayesh Choudhary
Hello Tomi, On 27/05/25 13:28, Tomi Valkeinen wrote: Hi, On 21/05/2025 10:32, Jayesh Choudhary wrote: After adding DBANC framework, mhdp->connector is not initialised during bridge calls. But the asyncronous work scheduled depends on the connector. We cannot get to drm_atomic_state in th

Re: [RFC PATCH v2 2/3] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from pointer to structure

2025-05-27 Thread Jayesh Choudhary
On 27/05/25 14:59, Jayesh Choudhary wrote: Hello Tomi, On 27/05/25 13:28, Tomi Valkeinen wrote: Hi, On 21/05/2025 10:32, Jayesh Choudhary wrote: After adding DBANC framework, mhdp->connector is not initialised during bridge calls. But the asyncronous work scheduled depends on

Re: [RFC PATCH v2 1/3] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge

2025-05-27 Thread Jayesh Choudhary
On 27/05/25 14:47, Tomi Valkeinen wrote: Hi, On 27/05/2025 11:41, Jayesh Choudhary wrote: Hello Tomi, On 27/05/25 13:08, Tomi Valkeinen wrote: Hi, On 21/05/2025 10:32, Jayesh Choudhary wrote: Now that we have DBANC framework, remove the connector initialisation code as that piece of

Re: [RFC PATCH v2 1/3] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge

2025-05-27 Thread Jayesh Choudhary
Hello Tomi, On 27/05/25 13:08, Tomi Valkeinen wrote: Hi, On 21/05/2025 10:32, Jayesh Choudhary wrote: Now that we have DBANC framework, remove the connector initialisation code as that piece of code is not called if DRM_BRIDGE_ATTACH_NO_CONNECTOR flag is used. Only TI K3 platforms consume

Re: [RFC PATCH v2 2/3] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from pointer to structure

2025-05-28 Thread Jayesh Choudhary
Hi, On 27/05/25 17:07, Tomi Valkeinen wrote: Hi, On 27/05/2025 13:39, Jayesh Choudhary wrote: On 27/05/25 14:59, Jayesh Choudhary wrote: Hello Tomi, On 27/05/25 13:28, Tomi Valkeinen wrote: Hi, On 21/05/2025 10:32, Jayesh Choudhary wrote: After adding DBANC framework, mhdp->connec

Re: [PATCH v2] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-05-28 Thread Jayesh Choudhary
eDP now. On Thu, May 08, 2025 at 05:24:33PM +0530, Jayesh Choudhary wrote: + if (pdata->bridge.type == DRM_MODE_CONNECTOR_eDP) + regmap_update_bits(pdata->regmap, SN_HPD_DISABLE_REG, HPD_DISABLE, +HPD_DISABLE); On my setup it seems that

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-02 Thread Jayesh Choudhary
Hello Geert, Krzysztof, (continuing discussion from both patches on this thread...) On 30/05/25 13:25, Geert Uytterhoeven wrote: Hi Jayesh, CC devicetree On Fri, 30 May 2025 at 04:54, Jayesh Choudhary wrote: On 29/05/25 16:34, Jayesh Choudhary wrote: By default, HPD was disabled on

[PATCH v3 4/5] drm/bridge: cadence: cdns-mhdp8546-core: Add mode_valid hook to drm_bridge_funcs

2025-05-29 Thread Jayesh Choudhary
tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 20 +++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c b/drivers/gpu/drm/bridge/cadence/cdn

[PATCH v3 5/5] drm/bridge: cadence: cdns-mhdp8546-core: Reduce log level for DPCD read/write

2025-05-29 Thread Jayesh Choudhary
, the caller functions for the cdns_mhdp_transfer in drm_dp_helper.c (which calls it 32 times), has debug log level in case transfer fails. So having a superseding log level in cdns_mhdp_transfer seems bad. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 4

[PATCH v3 0/5] MHDP8546 fixes related to DBANC usecase

2025-05-29 Thread Jayesh Choudhary
r_for_encoder() to a separate patch - Drop "R-by" considering the changes in v2[1/3] - Add Fixes tag to first 4 patches: commit c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") This added DBANC flag in tidss while attaching bridge to the encoder - Dr

[PATCH v3 3/5] drm/bridge: cadence: cdns-mhdp8546-core: Set the mhdp connector earlier in atomic_enable()

2025-05-29 Thread Jayesh Choudhary
initialised in bridge_attach(). So set the mhdp->connector in atomic_enable() earlier to avoid possible NULL pointer. Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-

[PATCH v3 2/5] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from structure to pointer

2025-05-29 Thread Jayesh Choudhary
in bridge_disable(), and make appropriate changes. Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 12 ++-- drivers/gpu/drm/bridge/cadence/cdns-mhdp854

[PATCH v3 1/5] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge

2025-05-29 Thread Jayesh Choudhary
. Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 184 +- 1 file changed, 9 insertions(+), 175 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8

[PATCH v3] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-05-29 Thread Jayesh Choudhary
Fixes: c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridge connector operations for DP") Cc: Max Krummenacher Signed-off-by: Jayesh Choudhary --- Changelog v2->v3: - Change conditional based on no-hpd property to address [1] - Remove runtime calls in detect() with appropriate

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-05-29 Thread Jayesh Choudhary
On 29/05/25 16:34, Jayesh Choudhary wrote: By default, HPD was disabled on SN65DSI86 bridge. When the driver was added (commit "a095f15c00e27"), the HPD_DISABLE bit was set in pre-enable call which was moved to other function calls subsequently. Later on, commit "c312b0df3b1

Re: [PATCH] drm/tidss: Decouple max_pclk from tidss feats to remove clock dependency

2025-06-18 Thread Jayesh Choudhary
On 18/06/25 13:28, Jayesh Choudhary wrote: TIDSS hardware by itself does not have variable max_pclk for each VP. Each VP supports a fixed maximum pixel clock. K2 devices and AM62* devices uses "ultra-light" version where each VP supports a max of 300MHz whereas J7* devices uses T

[PATCH] drm/tidss: Decouple max_pclk from tidss feats to remove clock dependency

2025-06-18 Thread Jayesh Choudhary
lly the max resolution, driver ends up checking the maximum clock the first time itself which is used in subsequent checks) Since TIDSS display controller provides clock tolerance of 5%, we use this while checking the max_pclk. Also, move up "dispc_pclk_diff()" before it is called

Re: [PATCH] drm/tidss: Decouple max_pclk from tidss feats to remove clock dependency

2025-06-18 Thread Jayesh Choudhary
Hello Maxime, On 18/06/25 14:02, Maxime Ripard wrote: Hi, On Wed, Jun 18, 2025 at 01:28:04PM +0530, Jayesh Choudhary wrote: TIDSS hardware by itself does not have variable max_pclk for each VP. Each VP supports a fixed maximum pixel clock. K2 devices and AM62* devices uses "ultra-

[PATCH v2] drm/tidss: Decouple max_pclk from tidss feats to remove clock dependency

2025-06-18 Thread Jayesh Choudhary
lly the max resolution, driver ends up checking the maximum clock the first time itself which is used in subsequent checks) Since TIDSS display controller provides clock tolerance of 5%, we use this while checking the max_pclk. Also, move up "dispc_pclk_diff()" before it is called

[PATCH v5] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-16 Thread Jayesh Choudhary
32) Fixes: c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridge connector operations for DP") Cc: Max Krummenacher Signed-off-by: Jayesh Choudhary --- Changelog v4->v5: - Make suspend asynchronous in hpd_disable() - Update HPD_DISABLE in probe function to address the case fo

Re: [PATCH v4 00/17] drm/bridge: cdns-dsi: Make it work a bit better

2025-06-24 Thread Jayesh Choudhary
(along with the DSI support as posted in https://lore.kernel.org/all/20250624082619.324851-1-j-choudh...@ti.com/) I can see that display comes up for 800x600 and 1280x1024 resolution. Tested-by: Jayesh Choudhary I observed that we still need something like drm_mode_set_crtcinfo() to propagate c

[PATCH v4 1/5] drm/bridge: cadence: cdns-mhdp8546-core: Remove legacy support for connector initialisation in bridge

2025-06-24 Thread Jayesh Choudhary
. Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 187 +- 1 file changed, 10 insertions(+), 177 deletions(-) diff --git a/drivers/gpu/drm/bridge/cadence/cdn

[PATCH v4 0/5] MHDP8546 fixes related to DBANC usecase

2025-06-24 Thread Jayesh Choudhary
250116111636.157641-1-j-choudh...@ti.com/> Changelog v1->v2: - Remove !DRM_BRIDGE_ATTACH_NO_CONNECTOR entirely - Add mode_valid in drm_bridge_funcs[0] - Fix NULL POINTER differently since we cannot access atomic_state - Reduce log level in cdns_mhdp_transfer call [0]: https://lore.kernel.org/al

[PATCH v4 5/5] drm/bridge: cadence: cdns-mhdp8546-core: Reduce log level for DPCD read/write

2025-06-25 Thread Jayesh Choudhary
, the caller functions for the cdns_mhdp_transfer in drm_dp_helper.c (which calls it 32 times), has debug log level in case transfer fails. So having a superseding log level in cdns_mhdp_transfer seems bad. Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 4

Re: [PATCH v2] drm/tidss: Decouple max_pclk from tidss feats to remove clock dependency

2025-06-25 Thread Jayesh Choudhary
Hello Tomi, On 24/06/25 17:29, Tomi Valkeinen wrote: Hi, On 18/06/2025 13:05, Jayesh Choudhary wrote: TIDSS hardware by itself does not have variable max_pclk for each VP. Each VP supports a fixed maximum pixel clock. K2 devices and AM62* devices uses "ultra-light" version whe

Re: [PATCH v3] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-10 Thread Jayesh Choudhary
Hello Doug, On 10/06/25 03:39, Doug Anderson wrote: Hi, On Mon, Jun 2, 2025 at 4:05 AM Jayesh Choudhary wrote: Hello Geert, Krzysztof, (continuing discussion from both patches on this thread...) On 30/05/25 13:25, Geert Uytterhoeven wrote: Hi Jayesh, CC devicetree On Fri, 30 May 2025

Re: [PATCH] drm/bridge: ti-sn65dsi86: fix REFCLK setting

2025-06-10 Thread Jayesh Choudhary
Hello Michael, Doug, On 10/06/25 03:59, Doug Anderson wrote: Hi, On Wed, May 28, 2025 at 6:21 AM Michael Walle wrote: The bridge has three bootstrap pins which are sampled to determine the frequency of the external reference clock. The driver will also (over)write that setting. But it seems

[PATCH v4 3/5] drm/bridge: cadence: cdns-mhdp8546-core: Set the mhdp connector earlier in atomic_enable()

2025-06-23 Thread Jayesh Choudhary
initialised in bridge_attach(). So set the mhdp->connector in atomic_enable() earlier to avoid possible NULL pointer. Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-

[PATCH v4 2/5] drm/bridge: cadence: cdns-mhdp8546*: Change drm_connector from structure to pointer

2025-06-23 Thread Jayesh Choudhary
in bridge_disable(), and make appropriate changes. Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 12 ++-- drivers/gpu/drm/bridge/cadence/cdns-mhdp854

[PATCH v4 4/5] drm/bridge: cadence: cdns-mhdp8546-core: Add mode_valid hook to drm_bridge_funcs

2025-06-23 Thread Jayesh Choudhary
tidss: Update encoder/bridge chain connect model") Signed-off-by: Jayesh Choudhary --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 20 +++ 1 file changed, 20 insertions(+) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c b/drivers/gpu/drm/bridge/cadence/cdn

[PATCH v6] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-23 Thread Jayesh Choudhary
32) Fixes: c312b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridge connector operations for DP") Cc: Max Krummenacher Reviewed-by: Douglas Anderson Tested-by: Ernest Van Hoecke Signed-off-by: Jayesh Choudhary --- Changelog v5->v6: - Drop pm_runtime_mark_last_busy() - Pick up t

Re: [PATCH v5] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-23 Thread Jayesh Choudhary
Hello Doug, On 23/06/25 21:00, Doug Anderson wrote: Hi, On Mon, Jun 16, 2025 at 9:24 AM Doug Anderson wrote: Hi, On Mon, Jun 16, 2025 at 2:32 AM Jayesh Choudhary wrote: @@ -1220,6 +1231,27 @@ static void ti_sn65dsi86_debugfs_init(struct drm_bridge *bridge, struct dentry

Re: [PATCH v4 15/17] drm/bridge: cdns-dsi: Fix event mode

2025-06-24 Thread Jayesh Choudhary
Hello Tomi, On 18/06/25 15:29, Tomi Valkeinen wrote: The timings calculation gets it wrong for DSI event mode, resulting in too large hbp value. Fix the issue by taking into account the pulse/event mode difference. Tested-by: Parth Pancholi Signed-off-by: Tomi Valkeinen Reviewed-by: Jayesh

Re: [PATCH v4] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-13 Thread Jayesh Choudhary
Hello Tomi, On 12/06/25 11:55, Tomi Valkeinen wrote: Hi, On 11/06/2025 08:29, Jayesh Choudhary wrote: By default, HPD was disabled on SN65DSI86 bridge. When the driver was added (commit "a095f15c00e27"), the HPD_DISABLE bit was set in pre-enable call which was moved to other func

Re: [PATCH v4] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-13 Thread Jayesh Choudhary
Hello Doug, On 12/06/25 20:21, Doug Anderson wrote: Hi, On Wed, Jun 11, 2025 at 9:39 PM Jayesh Choudhary wrote: Hello Doug, On 12/06/25 03:08, Doug Anderson wrote: Hi, On Tue, Jun 10, 2025 at 10:29 PM Jayesh Choudhary wrote: @@ -1195,9 +1203,17 @@ static enum drm_connector_status

[PATCH v4] drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type

2025-06-10 Thread Jayesh Choudhary
2b0df3b13 ("drm/bridge: ti-sn65dsi86: Implement bridge connector operations for DP") Cc: Max Krummenacher Signed-off-by: Jayesh Choudhary --- Changelog v3->v4: - Remove "no-hpd" support due to backward compatibility issues - Change the conditional from "no-hpd" ba

  1   2   >