Re: [PATCH v4 4/7] drm/bridge: mhdp8546: Set input_bus_flags from atomic_check

2020-12-07 Thread Nikhil Devshatwar
On 11:42-20201204, Boris Brezillon wrote: > On Tue, 1 Dec 2020 17:48:27 +0530 > Nikhil Devshatwar wrote: > > > input_bus_flags are specified in drm_bridge_timings (legacy) as well > > as drm_bridge_state->input_bus_cfg.flags > > > > The flags from the

Re: [PATCH v4 4/7] drm/bridge: mhdp8546: Set input_bus_flags from atomic_check

2020-12-07 Thread Nikhil Devshatwar
On 11:32-20201204, Boris Brezillon wrote: > On Tue, 1 Dec 2020 17:48:27 +0530 > Nikhil Devshatwar wrote: > > > input_bus_flags are specified in drm_bridge_timings (legacy) as well > > as drm_bridge_state->input_bus_cfg.flags > > > > The flags from the

[PATCH v5] drm/bridge: tfp410: Set input_bus_flags in atomic_check

2020-12-03 Thread Nikhil Devshatwar
off-by: Nikhil Devshatwar --- Notes: changes from v4: * fix a warning Reported-by: kernel test robot drivers/gpu/drm/bridge/ti-tfp410.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c in

[PATCH v4 6/7] drm/tidss: Move to newer connector model

2020-12-01 Thread Nikhil Devshatwar
DRM_BRIDGE_ATTACH_NO_CONNECTOR Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- Notes: changes from v1: * Add error handling drivers/gpu/drm/tidss/tidss_drv.h | 3 +++ drivers/gpu/drm/tidss/tidss_kms.c | 19 ++- 2 files changed, 21 insertions(+), 1

[PATCH v4 4/7] drm/bridge: mhdp8546: Set input_bus_flags from atomic_check

2020-12-01 Thread Nikhil Devshatwar
input_bus_flags are specified in drm_bridge_timings (legacy) as well as drm_bridge_state->input_bus_cfg.flags The flags from the timings will be deprecated. Bridges are supposed to validate and set the bridge state flags from atomic_check. Signed-off-by: Nikhil Devshatwar --- drivers/gpu/

[PATCH v4 3/7] drm/bridge: mhdp8546: Add minimal format negotiation

2020-12-01 Thread Nikhil Devshatwar
the minimal required support to avoid failure after moving to new connector model. Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen --- Notes: changes from v1: * cosmetic fixes, commit message update .../drm/bridge/cadence/cdns-mhdp8546-core.c | 25 +++ 1 file

[PATCH v4 5/7] drm/tidss: Set bus_format correctly from bridge/connector

2020-12-01 Thread Nikhil Devshatwar
Remove the old code to iterate over the bridge chain, as this is already done by the framework. The bridge state should have the negotiated bus format and flags. Use these from the bridge's state. If the bridge does not support format negotiation, error out and fail. Signed-off-by: Nikhil

[PATCH v4 7/7] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-12-01 Thread Nikhil Devshatwar
es the MBOX interrupts, which are not handled by the driver. Fix this with a read-modify-write to update only required bits. Use the enable / disable function as required in other places. Signed-off-by: Nikhil Devshatwar Reviewed-by: Swapnil Jakhade Reviewed-by: Tomi Valkeinen --- Notes: chan

[PATCH v4 1/7] drm/bridge: tfp410: Support format negotiation hooks

2020-12-01 Thread Nikhil Devshatwar
Input format is the one selected by the bridge from DT properties. Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- Notes: changes from v1: * Use only MEDIA_BUS_FMT_FIXED for output drivers/gpu/drm/bridge/ti-tfp410.c | 33

[PATCH v4 2/7] drm/bridge: tfp410: Set input_bus_flags in atomic_check

2020-12-01 Thread Nikhil Devshatwar
off-by: Nikhil Devshatwar --- drivers/gpu/drm/bridge/ti-tfp410.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index 3def9acba86b..4c536df003c8 100644 --- a/drivers/gpu/drm/bridge/ti-tfp410.c +++ b/driv

[PATCH v4 0/7] drm/tidss: Use new connector model for tidss

2020-12-01 Thread Nikhil Devshatwar
format negotiations in the tfp410 and mhdp bridge drivers as a first step before moving the connector model. Nikhil Devshatwar (7): drm/bridge: tfp410: Support format negotiation hooks drm/bridge: tfp410: Set input_bus_flags in atomic_check drm/bridge: mhdp8546: Add minimal format negotiation

Re: [PATCH v3 4/6] drm/tidss: Set bus_format correctly from bridge/connector

2020-12-01 Thread Nikhil Devshatwar
On 11:46-20201130, Laurent Pinchart wrote: > Hi Nikhil, > > On Mon, Nov 30, 2020 at 12:05:03PM +0530, Nikhil Devshatwar wrote: > > On 14:51-20201125, Tomi Valkeinen wrote: > > > On 19/11/2020 18:01, Nikhil Devshatwar wrote: > > > > Remove the old c

Re: [PATCH v3 4/6] drm/tidss: Set bus_format correctly from bridge/connector

2020-12-01 Thread Nikhil Devshatwar
On 11:45-20201130, Laurent Pinchart wrote: > Hi Nikhil, > > Thank you for the patch. > > On Thu, Nov 19, 2020 at 09:31:32PM +0530, Nikhil Devshatwar wrote: > > Remove the old code to iterate over the bridge chain, as this is > > already done by the framework. >

Re: [PATCH v3 1/6] drm: bridge: Propagate the bus flags from bridge->timings

2020-12-01 Thread Nikhil Devshatwar
>> already start going in that direction ? We don't need to convert all > > >> bridge drivers in one go here, just the ones that are used by tidss. I took this as a future approach to eventually start supporting atomic_funcs. I will respin v4 of this series with updates to

Re: [PATCH v3 4/6] drm/tidss: Set bus_format correctly from bridge/connector

2020-11-30 Thread Nikhil Devshatwar
On 14:51-20201125, Tomi Valkeinen wrote: > Hi Nikhil, > > On 19/11/2020 18:01, Nikhil Devshatwar wrote: > > Remove the old code to iterate over the bridge chain, as this is > > already done by the framework. > > The bridge state should have the negotiated bus format an

[PATCH v3 5/6] drm/tidss: Move to newer connector model

2020-11-19 Thread Nikhil Devshatwar
DRM_BRIDGE_ATTACH_NO_CONNECTOR Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- Notes: changes from v1: * Add error handling drivers/gpu/drm/tidss/tidss_drv.h | 3 +++ drivers/gpu/drm/tidss/tidss_kms.c | 19 ++- 2 files changed, 21 insertions(+), 1

[PATCH v3 1/6] drm: bridge: Propagate the bus flags from bridge->timings

2020-11-19 Thread Nikhil Devshatwar
bus_flags can be specified by a bridge in the timings. If the bridge provides it, Override the bus_flags when propagating from next bridge. Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen --- Notes: changes from v2: * update comment changes from v1: * Check

[PATCH v3 4/6] drm/tidss: Set bus_format correctly from bridge/connector

2020-11-19 Thread Nikhil Devshatwar
Remove the old code to iterate over the bridge chain, as this is already done by the framework. The bridge state should have the negotiated bus format and flags. Use these from the bridge's state. If the bridge does not support format negotiation, error out and fail. Signed-off-by: Nikhil

[PATCH v3 6/6] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-11-19 Thread Nikhil Devshatwar
es the MBOX interrupts, which are not handled by the driver. Fix this with a read-modify-write to update only required bits. Use the enable / disable function as required in other places. Signed-off-by: Nikhil Devshatwar Reviewed-by: Swapnil Jakhade --- Notes: changes from v2: * Fix the

[PATCH v3 2/6] drm/bridge: tfp410: Support format negotiation hooks

2020-11-19 Thread Nikhil Devshatwar
Input format is the one selected by the bridge from DT properties. Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen --- Notes: changes from v1: * Use only MEDIA_BUS_FMT_FIXED for output drivers/gpu/drm/bridge/ti-tfp410.c | 33 ++ 1 file changed, 33

[PATCH v3 3/6] drm/bridge: mhdp8546: Add minimal format negotiation

2020-11-19 Thread Nikhil Devshatwar
the minimal required support to avoid failure after moving to new connector model. Signed-off-by: Nikhil Devshatwar Reviewed-by: Tomi Valkeinen --- Notes: changes from v1: * cosmetic fixes, commit message update .../drm/bridge/cadence/cdns-mhdp8546-core.c | 25 +++ 1 file

[PATCH v3 0/6] drm/tidss: Use new connector model for tidss

2020-11-19 Thread Nikhil Devshatwar
negotiation. Support format negotiations in the tfp410 and mhdp bridge drivers as a first step before moving the connector model. Nikhil Devshatwar (6): drm: bridge: Propagate the bus flags from bridge->timings drm/bridge: tfp410: Support format negotiation hooks drm/bridge: mhdp8546: Add mini

Re: [PATCH v2 6/6] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-11-10 Thread Nikhil Devshatwar
On 14:32-20201110, Swapnil Jakhade wrote: > > > > -Original Message- > > From: Nikhil Devshatwar > > Sent: Tuesday, November 10, 2020 7:23 PM > > To: Tomi Valkeinen ; Swapnil Kashinath Jakhade > > ; Yuti Suresh Amonkar > > Cc: dri-devel@lists.

Re: [PATCH v2 6/6] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-11-10 Thread Nikhil Devshatwar
On 14:27-20201110, Tomi Valkeinen wrote: > On 10/11/2020 12:27, Nikhil Devshatwar wrote: > > On 11:21-20201110, Tomi Valkeinen wrote: > >> On 09/11/2020 19:06, Nikhil Devshatwar wrote: > >>> When removing the tidss driver, there is a warning reported by > >&g

Re: [PATCH v2 0/6] drm/tidss: Use new connector model for tidss

2020-11-10 Thread Nikhil Devshatwar
On 11:02-20201110, Tomi Valkeinen wrote: > Hi Nikhil, > > On 09/11/2020 19:05, Nikhil Devshatwar wrote: > > This series moves the tidss to using new connectoe model, where the > > SoC driver (tidss) creates the connector and all the bridges are >

Re: [PATCH v2 6/6] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-11-10 Thread Nikhil Devshatwar
On 11:21-20201110, Tomi Valkeinen wrote: > On 09/11/2020 19:06, Nikhil Devshatwar wrote: > > When removing the tidss driver, there is a warning reported by > > kernel about an unhandled interrupt for mhdp driver. > > > > [ 43.238895] irq 31: nobody cared (try bootin

[PATCH v2 6/6] drm/bridge: cdns-mhdp8546: Fix the interrupt enable/disable

2020-11-09 Thread Nikhil Devshatwar
es the MBOX interrupts, which are not handled by the driver. Fix this with a read-modify-write to update only required bits. Do the same for enabling interrupts as well. Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c | 7 +-- 1 file changed, 5 inse

[PATCH v2 1/6] drm: bridge: Propagate the bus flags from bridge->timings

2020-11-09 Thread Nikhil Devshatwar
bus_flags can be specified by a bridge in the timings. If the bridge provides it, Override the bus_flags when propagating from next bridge. Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/drm_bridge.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/drm_bridge.c

[PATCH v2 5/6] drm/tidss: Move to newer connector model

2020-11-09 Thread Nikhil Devshatwar
DRM_BRIDGE_ATTACH_NO_CONNECTOR Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/tidss/tidss_drv.h | 3 +++ drivers/gpu/drm/tidss/tidss_kms.c | 19 ++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tidss/tidss_drv.h b/drivers/gpu/drm/tidss/tidss_drv.h index

[PATCH v2 4/6] drm/tidss: Set bus_format correctly from bridge/connector

2020-11-09 Thread Nikhil Devshatwar
-by: Nikhil Devshatwar --- drivers/gpu/drm/tidss/tidss_encoder.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/tidss/tidss_encoder.c b/drivers/gpu/drm/tidss/tidss_encoder.c index e278a9c89476..ba5b6fccabe7 100644 --- a/drivers/gpu/drm/tidss

[PATCH v2 2/6] drm/bridge: tfp410: Support format negotiation hooks

2020-11-09 Thread Nikhil Devshatwar
Input format is the one selected by the bridge from DT properties. Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/bridge/ti-tfp410.c | 33 ++ 1 file changed, 33 insertions(+) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c

[PATCH v2 3/6] drm/bridge: mhdp8546: Add minimal format negotiation

2020-11-09 Thread Nikhil Devshatwar
the minimal required support to avoid failure after moving to new connector model. Signed-off-by: Nikhil Devshatwar --- .../drm/bridge/cadence/cdns-mhdp8546-core.c | 25 +++ 1 file changed, 25 insertions(+) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c b/drivers/gpu

[PATCH v2 0/6] drm/tidss: Use new connector model for tidss

2020-11-09 Thread Nikhil Devshatwar
negotiation. Support format negotiations in the tfp410 and mhdp bridge drivers as a first step before moving the connector model. Nikhil Devshatwar (6): drm: bridge: Propagate the bus flags from bridge->timings drm/bridge: tfp410: Support format negotiation hooks drm/bridge: mhdp8546: Add mini

Re: [PATCH 2/5] drm/tidss: Set bus_format correctly from bridge/connector

2020-11-09 Thread Nikhil Devshatwar
On 00:57-20201030, Laurent Pinchart wrote: > Hi Nikhil, > > Thank you for the patch. > > On Fri, Oct 16, 2020 at 04:09:14PM +0530, Nikhil Devshatwar wrote: > > When there is a chain of bridges attached to the encoder, > > the bus_format should be ideall

Re: [PATCH v3 00/56] Convert DSI code to use drm_mipi_dsi and drm_panel

2020-11-08 Thread Nikhil Devshatwar
> drm/omap: simplify DSI manual update code > drm/omap: dsi: simplify pin config > ARM: omap2plus_defconfig: Update for moved DSI command mode panel > > Tomi Valkeinen (5): > drm/omap: squash omapdrm sub-modules into one > drm/omap: remove unused display.c > drm/

Re: [PATCH 3/5] drm: bridge: Propagate the bus flags from bridge->timings

2020-10-28 Thread Nikhil Devshatwar
On 14:31-20201021, Tomi Valkeinen wrote: > On 16/10/2020 13:39, Nikhil Devshatwar wrote: > > When the next bridge does not specify any bus flags, use the > > bridge->timings->input_bus_flags as fallback when propagating > > bus flags from next bridge to current

Re: [PATCH 0/5] drm/tidss: Use new connector model for tidss

2020-10-28 Thread Nikhil Devshatwar
On 15:11-20201019, Tomi Valkeinen wrote: > Hi Nikhil, > > On 16/10/2020 13:39, Nikhil Devshatwar wrote: > > This series moves the tidss to using new connectoe model, where the > > SoC driver (tidss) creates the connector and all the bridges are >

[PATCH 2/5] drm/tidss: Set bus_format correctly from bridge/connector

2020-10-16 Thread Nikhil Devshatwar
-by: Nikhil Devshatwar --- drivers/gpu/drm/tidss/tidss_encoder.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/tidss/tidss_encoder.c b/drivers/gpu/drm/tidss/tidss_encoder.c index e278a9c89476..ae7f134754b7 100644 --- a/drivers/gpu/drm/tidss

[PATCH 3/5] drm: bridge: Propagate the bus flags from bridge->timings

2020-10-16 Thread Nikhil Devshatwar
When the next bridge does not specify any bus flags, use the bridge->timings->input_bus_flags as fallback when propagating bus flags from next bridge to current bridge. Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/drm_bridge.c | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH 4/5] drm/bridge: tfp410: Support format negotiation

2020-10-16 Thread Nikhil Devshatwar
bindings. Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/bridge/ti-tfp410.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index ba3fa2a9b8a4..b65e48e080c7 100644 --- a/drivers/gpu

[PATCH 1/5] drm/tidss: Move to newer connector model

2020-10-16 Thread Nikhil Devshatwar
DRM_BRIDGE_ATTACH_NO_CONNECTOR Signed-off-by: Nikhil Devshatwar --- drivers/gpu/drm/tidss/tidss_drv.h | 3 +++ drivers/gpu/drm/tidss/tidss_kms.c | 15 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tidss/tidss_drv.h b/drivers/gpu/drm/tidss/tidss_drv.h index 7de4bba52e6f

[PATCH 0/5] drm/tidss: Use new connector model for tidss

2020-10-16 Thread Nikhil Devshatwar
negotiation. Support format negotiations in the tfp410 and mhdp bridge drivers. Nikhil Devshatwar (5): drm/tidss: Move to newer connector model drm/tidss: Set bus_format correctly from bridge/connector drm: bridge: Propagate the bus flags from bridge->timings drm/bridge: tfp410: Support for

[PATCH 5/5] drm/bridge: mhdp8564: Support format negotiation

2020-10-16 Thread Nikhil Devshatwar
With new connector model, mhdp bridge will not create the connector and SoC driver will rely on format negotiation to setup the encoder format. Support format negotiations hooks in the drm_bridge_funcs. Support a single format for input. Signed-off-by: Nikhil Devshatwar --- .../drm/bridge

drm: Supporting new connector model in tidss

2020-10-05 Thread Nikhil Devshatwar
Hi all, I am trying to convert the upstream tidss drm driver to new connector model. The connector is getting created by the tidss driver and bridges are attached with flag DRM_BRIDGE_ATTACH_NO_CONNECTOR Here are some questions, regarding this: 1) Most of the info regarding bus_format and bus