[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-29 Thread Archit Taneja
; if (bridge->dev) > return -EBUSY; > > - bridge->dev = dev; > + bridge->dev = encoder->dev; > + bridge->encoder = encoder; > + > + if (bridge->funcs->attach) { > + ret = bridge->funcs->attach(bridge); > + if (ret < 0) { > + bridge->dev = NULL; > + bridge->encoder = NULL; > + return ret; > + } > + } > > - if (bridge->funcs->attach) > - return bridge->funcs->attach(bridge); > + if (previous) > + previous->next = bridge; > + else > + encoder->bridge = bridge; > > return 0; > } Archit -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

[PATCH v3 04/13] drm: bridge: Detach bridge from encoder at encoder cleanup time

2016-11-29 Thread Archit Taneja
remaining n - 1 bridges in a possible chain. We could probably detach all of them here, or maybe leave detaching of all to the kms driver, and just report a warning here. Archit > + > drm_modeset_lock_all(dev); > drm_mode_object_unregister(dev, &encoder->base); >

[RFC][PATCH 5/5 v2] drm/bridge: adv7511: Reuse __adv7511_power_on/off() when probing EDID

2016-11-30 Thread Archit Taneja
getting lost. Using the logic > in __adv7511_power_on/off() which syncs and dirtys the cache > avoids this issue. > > Thus this patch changes the EDID probing logic so that we > re-use the __adv7511_power_on/off() calls. > > Cc: David Airlie > Cc: Archit Taneja > Cc: Wol

[PATCH v3 03/13] drm: bridge: Link encoder and bridge in core code

2016-11-30 Thread Archit Taneja
On 11/29/2016 11:27 PM, Laurent Pinchart wrote: > Hi Archit, > > On Tuesday 29 Nov 2016 15:57:06 Archit Taneja wrote: >> On 11/29/2016 02:34 PM, Laurent Pinchart wrote: >>> Instead of linking encoders and bridges in every driver (and getting it >>> wrong half of

Re: [PATCH v3 6/6] drm/stm: Add STM32 DSI host driver

2017-06-08 Thread Archit Taneja
if (pll_out_khz > LANE_MAX_KBPS) { + pll_out_khz = LANE_MAX_KBPS; + DRM_DEBUG_DRIVER("Warning max phy mbps is used\n"); We have a DRM_WARN macro if this is really a warning. Patch looks good to me otherwise. Thanks, Archit + } + if (pll_ou

Re: [PATCH v3 2/6] dt-bindings: display: Add Synopsys DW MIPI DSI DRM bridge driver

2017-06-10 Thread Archit Taneja
On 6/9/2017 6:31 PM, Rob Herring wrote: On Fri, Jun 09, 2017 at 10:43:07AM +0100, Jose Abreu wrote: Hello, On 09-06-2017 05:11, Archit Taneja wrote: Hi Philippe, Rob, On 06/08/2017 09:10 PM, Rob Herring wrote: Seems strange there's not also a pixel or bit clock? Or this gets driven

Re: [PATCH] drm: dw-hdmi: Fix compilation breakage by selecting REGMAP_MMIO

2017-06-10 Thread Archit Taneja
ccess") Reported-by: kbuild test robot Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/synopsys/Kconfig | 1 + 1 file changed, 1 insertion(+) Archit, This is a v4.12 regression fix. While not super critical, it would be nice if it could get merged in v4.12. Sean, Would you be fine wi

Re: [PATCH v2 2/2] dt-bindings: drm/bridge: Document Cadence DSI bridge bindings

2017-06-13 Thread Archit Taneja
e endpoint, you can leave the 'reg' out, as it's considered to be 0 by default. So for the panel, you can have just: port { dsi_panel1_in: endpoint { remote-endpoint = <&dsi_out_vc1>; }; }; Looks good to me too. Thanks, Archit -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 1/2] drm/bridge: Add Cadence DSI driver

2017-06-13 Thread Archit Taneja
On 06/06/2017 03:50 PM, Boris Brezillon wrote: Hi Archit, On Sun, 4 Jun 2017 00:20:06 +0530 Archit Taneja wrote: + +#define DPHY_CFG0 0x1b0 +#define DPHY_C_RSTBBIT(20) +#define DPHY_D_RSTB(x) ((x) << 16) +#

[PATCH 3/3] drm/msm/hdmi: Fix HDMI pink strip issue seen on 8x96

2017-06-15 Thread Archit Taneja
, make sure that hdmi_audio_update is only called when we've detected that the monitor supports HDMI. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 70 -- 1 file changed, 67 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm

[PATCH 0/3] drm/msm/hdmi: Some HDMI fixes for 8x96

2017-06-15 Thread Archit Taneja
The display bindings for 8x96 aren't in yet, so it's okay to have these for 4.13. Archit Taneja (3): drm/msm/hdmi: 8996 PLL: Populate unprepare drm/msm/hdmi: Updated generated headers drm/msm/hdmi: Fix HDMI pink strip issue seen on 8x96 drivers/gpu/drm/msm/hdmi/hdmi.xm

[PATCH 1/3] drm/msm/hdmi: 8996 PLL: Populate unprepare

2017-06-15 Thread Archit Taneja
Without doing anything in unprepare, the HDMI driver isn't able to switch modes successfully. Calling set_rate with a new rate results in an un-locked PLL. If we reset the PLL in unprepare, the PLL is able to lock with the new rate. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm

[PATCH 2/3] drm/msm/hdmi: Updated generated headers

2017-06-15 Thread Archit Taneja
idths > 4095 anyway. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/hdmi/hdmi.xml.h | 59 - 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.xml.h b/drivers/gpu/drm/msm/hdmi/hdmi.xml.h index 0a97

[PATCH 2/2] rnndb: hdmi: Add register HDMI_INFOFRAME_CTRL1

2017-06-15 Thread Archit Taneja
Signed-off-by: Archit Taneja --- rnndb/hdmi/hdmi.xml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/rnndb/hdmi/hdmi.xml b/rnndb/hdmi/hdmi.xml index 2bbae43..76d88a1 100644 --- a/rnndb/hdmi/hdmi.xml +++ b/rnndb/hdmi/hdmi.xml @@ -94,6 +94,12 @@ xsi:schemaLocation="

[PATCH 1/2] rnndb: hdmi: Fix HDMI timing bitfields for 8x96

2017-06-15 Thread Archit Taneja
Signed-off-by: Archit Taneja --- rnndb/hdmi/hdmi.xml | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rnndb/hdmi/hdmi.xml b/rnndb/hdmi/hdmi.xml index 69b4828..2bbae43 100644 --- a/rnndb/hdmi/hdmi.xml +++ b/rnndb/hdmi/hdmi.xml @@ -457,25 +457,25

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-15 Thread Archit Taneja
ed by the KMS driver. Registering a connector in the middle of setting up our driver is prone to race conditions if the userspace decides to use them immediately. Thanks, Archit Signed-off-by: Eric Anholt --- drivers/gpu/drm/bridge/panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

Re: [PATCH] bridge: Fix panel-bridge error return on !panel.

2017-06-15 Thread Archit Taneja
On 06/15/2017 11:24 PM, Eric Anholt wrote: ERR_PTR() needs a negative errno argument. Thanks, I'll queue it to drm-misc-next-fixes once it's opened. Archit Signed-off-by: Eric Anholt --- drivers/gpu/drm/bridge/panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-19 Thread Archit Taneja
On 06/16/2017 08:13 PM, Eric Anholt wrote: Archit Taneja writes: On 06/16/2017 02:11 AM, Eric Anholt wrote: If the panel-bridge is being set up after the drm_mode_config_reset(), then the connector's state would never get initialized, and we'd dereference the NULL in the hotplug

Re: [PATCH v2 2/2] dt-bindings: drm/bridge: Document Cadence DSI bridge bindings

2017-06-19 Thread Archit Taneja
uot;; reg = <0>; }; panel@1 { compatible = "..."; reg = <1>; }; }; Does that mean I should make port1 (AKA DSI ouput port) optional? IMHO, it's cle

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-22 Thread Archit Taneja
On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: 2017-06-20 19:31 GMT+02:00 Eric Anholt : Archit Taneja writes: On 06/16/2017 08:13 PM, Eric Anholt wrote: Archit Taneja writes: On 06/16/2017 02:11 AM, Eric Anholt wrote: If the panel-bridge is being set up after the

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-23 Thread Archit Taneja
Archit Taneja wrote: On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: 2017-06-20 19:31 GMT+02:00 Eric Anholt : Archit Taneja writes: On 06/16/2017 08:13 PM, Eric Anholt wrote: Archit Taneja writes: On 06/16/2017 02:11 AM, Eric Anholt wrote: If the panel-bridge is being set

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-26 Thread Archit Taneja
On 06/24/2017 03:20 AM, Eric Anholt wrote: Boris Brezillon writes: On Thu, 22 Jun 2017 13:47:43 +0530 Archit Taneja wrote: On 06/22/2017 01:20 PM, Benjamin Gaignard wrote: 2017-06-20 19:31 GMT+02:00 Eric Anholt : Archit Taneja writes: On 06/16/2017 08:13 PM, Eric Anholt wrote

Re: [PATCH v4 1/6] drm/stm: ltdc: Add panel-bridge support

2017-06-27 Thread Archit Taneja
On 06/19/2017 09:58 PM, Philippe CORNU wrote: Add the panel-bridge support for both panels & bridges (used by DSI host & HDMI/LVDS bridges). Reviewed-by: Archit Taneja Signed-off-by: Philippe CORNU --- drivers/gpu/drm/stm/Kconfig | 2 +- drivers/gpu/drm/stm/ltdc.

Re: [PATCH v4 3/6] drm/bridge/synopsys: Add MIPI DSI host controller bridge

2017-06-27 Thread Archit Taneja
freedom of calling drm_panel ops in whatever order we want. - Put a big TODO/HACK comment here, saying that this needs to be fixed in the drm_bridge framework and the API needs to be updated to manage our own call chains. Also, instead of calling "drm_bridge_post_disable(dsi->panel_br

Re: [PATCH v4 6/6] drm/stm: Add STM32 DSI host driver

2017-06-27 Thread Archit Taneja
On 06/19/2017 09:58 PM, Philippe CORNU wrote: Add the STM32 DSI host driver that uses the Synopsys DesignWare MIPI DSI DRM bridge. Signed-off-by: Philippe CORNU Reviewed-by: Neil Armstrong Reviewed-by: Archit Taneja --- drivers/gpu/drm/stm/Kconfig | 7 + drivers/gpu/drm

Re: [PATCH 6/8] drm: Allow DSI devices to be registered before the host registers.

2017-06-28 Thread Archit Taneja
s to have a new info.host_node field to keep a track of the host DT node. Thanks, Archit Signed-off-by: Eric Anholt --- drivers/gpu/drm/drm_mipi_dsi.c | 49 -- include/drm/drm_mipi_dsi.h | 3 +++ 2 files changed, 41 insertions(+), 11 deletions(-) diff

Re: [PATCH v4 3/6] drm/bridge/synopsys: Add MIPI DSI host controller bridge

2017-07-02 Thread Archit Taneja
On 06/28/2017 02:35 PM, Andrzej Hajda wrote: On 28.06.2017 08:44, Archit Taneja wrote: On 06/19/2017 09:58 PM, Philippe CORNU wrote: Add a Synopsys Designware MIPI DSI host DRM bridge driver, based on the Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. Signed-of

Re: [PATCH v4 3/6] drm/bridge/synopsys: Add MIPI DSI host controller bridge

2017-07-02 Thread Archit Taneja
On 06/29/2017 08:13 PM, Philippe CORNU wrote: On 06/28/2017 08:44 AM, Archit Taneja wrote: On 06/19/2017 09:58 PM, Philippe CORNU wrote: Add a Synopsys Designware MIPI DSI host DRM bridge driver, based on the Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. Si

Re: [PATCH 6/8] drm: Allow DSI devices to be registered before the host registers.

2017-07-03 Thread Archit Taneja
On 06/29/2017 04:09 PM, Andrzej Hajda wrote: On 29.06.2017 07:03, Archit Taneja wrote: On 06/28/2017 01:28 AM, Eric Anholt wrote: When a mipi_dsi_host is registered, the DT is walked to find any child nodes with compatible strings. Those get registered as DSI devices, and most DSI panel

Re: [PATCH 12/14] drm/exynos: mic: clean up drm_bridge_add call

2017-07-05 Thread Archit Taneja
s, we could get both the patches through drm-misc to keep things simple. Archit Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/e

Re: [PATCH 13/14] drm/mediatek: hdmi: clean up drm_bridge_add call

2017-07-05 Thread Archit Taneja
On 07/03/2017 02:12 PM, Inki Dae wrote: This patch removes unnecessary checking of return value. Can I get an ack from the maintainers to get this pulled in via drm-misc? Thanks, Archit Signed-off-by: Inki Dae --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 6 +- 1 file changed, 1

Re: [PATCH 12/14] drm/exynos: mic: clean up drm_bridge_add call

2017-07-05 Thread Archit Taneja
On 07/05/2017 02:35 PM, Inki Dae wrote: 2017년 07월 05일 18:00에 Archit Taneja 이(가) 쓴 글: On 07/03/2017 02:12 PM, Inki Dae wrote: This patch removes unnecessary checking of return value. Ps. this patch depends on below one, http://www.spinics.net/lists/dri-devel/msg145687.html Will

Re: [PATCH 12/14] drm/exynos: mic: clean up drm_bridge_add call

2017-07-06 Thread Archit Taneja
On 07/05/2017 04:42 PM, Emil Velikov wrote: On 5 July 2017 at 10:14, Archit Taneja wrote: On 07/05/2017 02:35 PM, Inki Dae wrote: 2017년 07월 05일 18:00에 Archit Taneja 이(가) 쓴 글: On 07/03/2017 02:12 PM, Inki Dae wrote: This patch removes unnecessary checking of return value. Ps

Re: [PATCH 00/14] clean up drm_bridge_add

2017-07-06 Thread Archit Taneja
driver patches (2/14 to 11/14) to drm-misc-next. We'll push the rest once we figure out which branch we want them to go through.. Archit Inki Dae (14): drm/bridge: change return type of drm_bridge_add function drm/bridge: adv7511: clean up drm_bridge_add call drm/bridge: analogix-an

Re: [PATCH v5 4/7] drm/bridge/synopsys: Add MIPI DSI host controller bridge

2017-07-11 Thread Archit Taneja
he latter. Archit Signed-off-by: Philippe CORNU --- drivers/gpu/drm/bridge/synopsys/Kconfig | 6 + drivers/gpu/drm/bridge/synopsys/Makefile | 2 + drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 979 ++ include/drm/bridge/dw_mipi_dsi.h |

Re: [PATCH 3/4] drm/bridge: Drivers for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)

2017-02-28 Thread Archit Taneja
On 02/27/2017 07:10 PM, Peter Senna Tschudin wrote: On Wed, Feb 01, 2017 at 04:17:21PM +0530, Archit Taneja wrote: Hi Archit, Hi, Some minor comments: Thank you for the review! On 01/28/2017 07:51 PM, Peter Senna Tschudin wrote: The video processing pipeline on the second output on

Re: [PATCH V2 3/4] drm/bridge: Drivers for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)

2017-03-01 Thread Archit Taneja
c: David Airlie Cc: Thierry Reding Cc: Thierry Reding Cc: Archit Taneja Cc: Enric Balletbo Signed-off-by: Peter Senna Tschudin --- Changes from V1: - Updated copyright year - Fixed blank line issues - Updated ge_b850v3_lvds_remove() to not rely on ge_b850v3_lvds_ptr->edid and added a

Re: [PATCH V2 3/4] drm/bridge: Drivers for megachips-stdpxxxx-ge-b850v3-fw (LVDS-DP++)

2017-03-02 Thread Archit Taneja
Hi Peter, On 3/1/2017 4:08 PM, Peter Senna Tschudin wrote: Hi Archit, Thank you for the review! On Wed, Mar 01, 2017 at 09:38:48AM +0530, Archit Taneja wrote: On 02/28/2017 07:58 PM, Peter Senna Tschudin wrote: The video processing pipeline on the second output on the GE B850v3: Host

Re: [PATCH v4 2/4] drm: bridge: Add LVDS encoder driver

2017-03-06 Thread Archit Taneja
lvds_encoder_driver = { I changed this to static to fix a sparse warning. Pushed this and others in this set to drm-misc-next. Thanks, Archit + .probe = lvds_encoder_probe, + .remove = lvds_encoder_remove, + .driver = { + .nam

Re: [PATCH V3 0/4] megachips-stdpxxxx-ge-b850v3-fw

2017-03-06 Thread Archit Taneja
ix a sparse warning. Thanks, Archit Changes from V2: - Added Acked-by: Rob Herring on patch 1/4 - Fixed the driver to allow it to be compiled as a module Changes from V1: - Fix bindings documentation - Fix white space issues on the driver - Improved ge_b850v3_lvds_remove() to not rely on

Re: [PATCH v5 00/10] drm: bridge: dw-hdmi: Refactor PHY support

2017-03-10 Thread Archit Taneja
a new directory per Jose's request. v5 also picked up review tags from the mailing list, and is rebased on top of the latest drm-misc-next branch. The series is otherwise unchanged compared to v4. Archit, how would you like to proceed to get this merged ? Queued to drm-misc-next. Picked up the v

Re: [PATCH v3 5/6] drm: bridge: dw-hdmi: Add Documentation on supported input formats

2017-03-16 Thread Archit Taneja
create a sub-directory for bridges here? Maybe a hierarchy similar to tinydrm's? Looks good otherwise. Archit 2 files changed, 16 insertions(+) create mode 100644 Documentation/gpu/dw-hdmi.rst diff --git a/Documentation/gpu/dw-hdmi.rst b/Documentation/gpu/dw-hdmi.rst new file mode 100644

Re: [PATCH v3 3/6] documentation: media: Add documentation for new RGB and YUV bus formats

2017-03-16 Thread Archit Taneja
++- 1 file changed, 3963 insertions(+), 1029 deletions(-) Do we know if there is a better way to add more columns without adding so many lines? If not, one option could be to create a separate tables for 48 bit RGB formats, 48 bit YUV formats etc. Thanks, Archit -- The Qualcomm

Re: [PATCH v3 2/6] media: uapi: Add RGB and YUV bus formats for Synopsys HDMI TX Controller

2017-03-16 Thread Archit Taneja
: Archit Taneja Signed-off-by: Neil Armstrong --- include/uapi/linux/media-bus-format.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 2168759..7cc820b 100644 --- a/include/uapi

[PATCH] drm/msm/mdp5: Update SSPP_MAX value

2017-03-16 Thread Archit Taneja
'SSPP_MAX + 1' is the max number of hwpipes that can be present on a MDP5 platform. Recently, 2 new cursor hwpipes were added, which caused overflows in arrays that used SSPP_MAX to represent the number of elements. Update the SSPP_MAX value to incorporate the extra hwpipes. Signed-off-

Re: [PATCH v2] drm/bridge: dw_hdmi: support i2c extended read mode

2017-03-21 Thread Archit Taneja
oes not support "I2C Master Interface Extended Read Mode" to read data addressed by non-zero segment pointer, this means that if EDID has more than 1 extension blocks" Queued to drm-misc-next after fixing up commit message. Archit With this patch,dw-hdmi can read EDID data wit

Re: [PATCH] drm: bridge: dw-hdmi: add HDMI vendor specific infoframe config

2017-03-21 Thread Archit Taneja
up patch to fix this (since we don't rebase drm-misc). Thanks, Archit + hdmi_modb(hdmi, 0 << HDMI_FC_DATAUTO0_VSD_OFFSET, + HDMI_FC_DATAUTO0_VSD_MASK, HDMI_FC_DATAUTO0); I see no gain in constructs (0 << HDMI_FC_DATAUTO0_VSD_OFFSET), additionally mask and

[PATCH 06/24] drm/msm/mdp5: Clean up interface assignment

2017-03-23 Thread Archit Taneja
currently done for pipes and layer mixers. Pass around the interface pointers to mdp5_encoder and mdp5_ctl. This simplifies the code, and allows us to decouple encoders from INTFs in the future if needed. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 8 +-- d

[PATCH 09/24] drm/msm/mdp5: Prepare for dynamic assignment of mixers

2017-03-23 Thread Archit Taneja
on't need to compare anything with the old state at the moment. The only LM capability we care about at the moment is whether the mixer instance can be used to display stuff (i.e, connect to an INTF downstream). Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 31 +

[PATCH 03/24] drm/msm/mdp5: Add structs for hw Layer Mixers

2017-03-23 Thread Archit Taneja
Create a struct to represent MDP5 Layer Mixer instances. This will eventually allow us to detach CRTCs from the Layer Mixers, and generally clean things up a bit. This is very similar to how hwpipes were previously abstracted away from drm planes. Signed-off-by: Archit Taneja --- drivers/gpu

[PATCH 00/24] drm/msm/mdp5: Mixer virtualization and 4K plane support

2017-03-23 Thread Archit Taneja
n try out the changes on a DB820c: https://github.com/boddob/linux/tree/mixer_virt_v1_4.11 Archit Taneja (24): drm/msm/mdp5: Bring back pipe_lock to mdp5_plane struct drm/msm/mdp5: describe LM instances in mdp5_cfg drm/msm/mdp5: Add structs for hw Layer Mixers drm/msm/mdp5: Start

[PATCH 01/24] drm/msm/mdp5: Bring back pipe_lock to mdp5_plane struct

2017-03-23 Thread Archit Taneja
than trying to take individual locks per hwpipe when committing a configuration. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.c | 2 -- drivers/gpu/drm/msm/mdp/mdp5/mdp5_pipe.h | 1 - drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 9 +++-- 3 files changed, 7 insertions(

[PATCH 10/24] drm/msm/mdp5: Assign INTF and CTL in encoder's atomic_check()

2017-03-23 Thread Archit Taneja
r example, INTF0 and CTL0 will always be assigned to one drm_encoder. This can change later when we implement writeback and want a CRTC to use a CTL for a while, and then release it for others to use it. Or, when a drm_encoder can switch between using a single INTF vs 2 INTFs. Signed-off-by: Archit T

[PATCH 02/24] drm/msm/mdp5: describe LM instances in mdp5_cfg

2017-03-23 Thread Archit Taneja
sed for display or writeback. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 72 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 8 drivers/gpu/drm/msm/mdp/mdp_kms.h | 4 ++ 3 files changed, 84 insertions(+) diff --git a/driv

[PATCH 05/24] drm/msm/mdp5: Simplify LM <-> PP mapping

2017-03-23 Thread Archit Taneja
PingPong ID for a Layer Mixer is already contained in mdp5_hw_mixer. This avoids the need to retrieve PP ID using macros Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 6 +++--- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 5 ++--- drivers/gpu/drm/msm

[PATCH 07/24] drm/msm/mdp5: Remove the pipeline stuff in mdp5_ctl

2017-03-23 Thread Archit Taneja
ers directly in mdp5_ctl. This will help avoid confusion later when I introduce my own verion of a mdp5 pipeline :) Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 42 + 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/driv

[PATCH 04/24] drm/msm/mdp5: Start using mdp5_hw_mixer

2017-03-23 Thread Archit Taneja
Use the mdp5_hw_mixer struct in the mdp5_crtc and mdp5_ctl instead of using the LM index. Like before, the Layer Mixers are assigned statically to the CRTCs. The hwmixer(s) will later be dynamically assigned to CRTCs. For now, ignore the hwmixers that can only do WB. Signed-off-by: Archit

[PATCH 11/24] drm/msm/mdp5: Add more stuff to CRTC state

2017-03-23 Thread Archit Taneja
to a clean state. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 19 +++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h | 7 +++ 2 files changed, 26 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c b/drivers/gpu/drm/msm/mdp

[PATCH 08/24] drm/msm/mdp5: subclass CRTC state

2017-03-23 Thread Archit Taneja
w, we just introduce mdp5_crtc_state and the crtc funcs needed to manage the subclassed state. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 72 +--- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h | 14 +++ 2 files changed, 80 insertions(+), 6

[PATCH 13/24] drm/msm/mdp5: Remove mixer/intf pointers from mdp5_ctl

2017-03-23 Thread Archit Taneja
, but it doesn't seem to cause much trouble. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 15 +++--- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 32 drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 68 ++--- drive

[PATCH 15/24] drm/msm/mdp5: Add optional 'right' Layer Mixer in CRTC state

2017-03-23 Thread Archit Taneja
simply return an error if they're called when the right mixer is assigned to the CRTC state. With source split is enabled, we're expected to only SSPP cursors. This commit adds code that configures the right mixer, but the r_mixer itself isn't assigned at the moment. Signed-off-by:

[PATCH 12/24] drm/msm/mdp5: Start using parameters from CRTC state

2017-03-23 Thread Archit Taneja
xer to the CRTC, we can also remove the static assignment to it in mdp5_crtc_init, and also drop the code that skipped init-ing WB bound mixers (those will now be rejected by mdp5_mixer_assign()). Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 122

[PATCH 19/24] drm/msm/mdp5: Prepare Layer Mixers for source split

2017-03-23 Thread Archit Taneja
lit mode. - Since we now have 2 places where REG_MDP5_LM_BLEND_COLOR_OUT is configured, do a read-update-store for the register instead of directly writing a value to it. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 39 ++-- 1 file ch

[PATCH 17/24] drm/msm/mdp5: Assign a 'right hwpipe' to plane state

2017-03-23 Thread Archit Taneja
LM. For example, the priority order for VIG pipes in decreasing order of priority is VIG0, VIG1, VIG2, and VIG3. So, VIG0 on left and VIG1 on right is a correct configuration, but VIG1 on left and VIG0 on right isn't. These scenarios are ignored for now for the sake of simplicity. Signed-off-by: Ar

[PATCH 16/24] drm/msm/mdp5: Create mdp5_hwpipe_mode_set

2017-03-23 Thread Archit Taneja
comprised of 2 hwpipes, this func allow us to configure each pipe without adding redundant code. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 227 +- 1 file changed, 130 insertions(+), 97 deletions(-) diff --git a/drivers/gpu/drm/msm

[PATCH 14/24] drm/msm/mdp5: Add a CAP for Source Split

2017-03-23 Thread Archit Taneja
split mode (and generate the 'left' part of the display output). Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 21 +++-- drivers/gpu/drm/msm/mdp/mdp_kms.h | 2 ++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/drive

[PATCH 21/24] drm/msm/mdp5: Stage border out on base stage if CRTC has 2 LMs

2017-03-23 Thread Archit Taneja
gning planes. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 45 +--- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c index cf6d41c

[PATCH 18/24] drm/msm/mdp5: Configure 'right' hwpipe

2017-03-23 Thread Archit Taneja
used by the crtc code to set up LM stages. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h | 1 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 46 ++- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5

[PATCH 20/24] drm/msm/mdp5: Stage right side hwpipes on Right-side Layer Mixer

2017-03-23 Thread Archit Taneja
Now that our mdp5_planes can consist of 2 hwpipes, update the blend_setup() code to stage the right hwpipe to the left and right LMs Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 12 drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 12 2 files

[PATCH 24/24] drm/msm/mdp5: Enable 3D mux in mdp5_ctl

2017-03-23 Thread Archit Taneja
case, each LM feeds to a separae INTF, so the 3D mux isn't needed. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_

[PATCH 22/24] drm/msm/mdp5: Assign 'right' mixer to CRTC state

2017-03-23 Thread Archit Taneja
mplified logic. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 49 +--- drivers/gpu/drm/msm/mdp/mdp5/mdp5_mixer.c | 97 +++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_mixer.h | 5 +- 3 files changed, 129 insertions(+), 22 deletions(-)

[PATCH 23/24] drm/msm/mdp5: Reset CTL blend registers before configuring them

2017-03-23 Thread Archit Taneja
igured are configured later in this func. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c index 15d78b218935..fddde84af

Re: [PATCH 1/2] drm/bridge: ti-tfp410: support hpd via gpio

2017-03-26 Thread Archit Taneja
e platform? Thanks, Archit -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2] drm: dw_hdmi: Don't rely on the status of the bridge for updating HPD

2017-03-26 Thread Archit Taneja
by removing the check for "!hdmi->disabled". As already explained, even if the PHY is partially disabled, information coming from HDMI Transmitter about HPD should be saved for a later use. I pushed this to drm-misc-next after incorporating the directory change and fixing some typos in

Re: [PATCH v2 7/8] drm: Use mode_valid() in atomic modeset

2017-05-10 Thread Archit Taneja
) so that we can make sure that the mode will be accepted in every components. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Cc: Andrzej Hajda Cc: Archit Taneja --- Changes v1->v2: - Removed call to connec

Re: [PATCH v2 1/7] drm/bridge: Refactor out the panel wrapper from the lvds-encoder bridge.

2017-05-12 Thread Archit Taneja
idge_mode_set(struct drm_bridge *bridge, void drm_bridge_pre_enable(struct drm_bridge *bridge); void drm_bridge_enable(struct drm_bridge *bridge); +#ifdef CONFIG_DRM_PANEL +struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, + u3

Re: [PATCH v2 6/8] drm: Introduce drm_bridge_mode_valid()

2017-05-12 Thread Archit Taneja
mode_valid() callback for all bridges in an encoder chain. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Alexey Brodkin Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Dave Airlie Cc: Andrzej Hajda Cc: Archit Taneja --- drivers/gpu/drm/drm_bridge.c | 33 + include/drm

Re: [PATCH v2 6/8] drm: Introduce drm_bridge_mode_valid()

2017-05-14 Thread Archit Taneja
On 05/12/2017 04:31 PM, Laurent Pinchart wrote: Hi Archit, On Friday 12 May 2017 16:20:07 Archit Taneja wrote: On 05/12/2017 03:08 PM, Laurent Pinchart wrote: On Wednesday 10 May 2017 17:14:33 Daniel Vetter wrote: On Wed, May 10, 2017 at 04:41:09PM +0300, Ville Syrjälä wrote: On Tue, May

Re: [PATCH v1 3/3] drm/stm: Add STM32 DSI host driver

2017-05-16 Thread Archit Taneja
and post a bridge driver for this. You don't need to convert the existing rockhip and hisilicon implementations into bridge drivers. We can CC the authors of the rockchip and hisil so that they can adapt to the bridge driver too. Thanks, Archit The Rockchip driver looks nice and is updated r

Re: [RFC v3 5/8] drm/msm: update cursors asynchronously through atomic

2017-05-16 Thread Archit Taneja
APQ8096 SoC). Tested-by: Archit Taneja v3: move size checks back to drivers (Ville Syrjälä) v2: move fb setting to core and use new state (Eric Anholt) Cc: Rob Clark Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 151 +- 1 file

Re: [RFC v3 6/8] drm/msm: remove mdp5_cursor_plane_funcs

2017-05-16 Thread Archit Taneja
On 5/13/2017 12:40 AM, Gustavo Padovan wrote: From: Gustavo Padovan After converting legacy cursor updates to atomic async commits mdp5_cursor_plane_funcs just duplicates mdp5_plane_funcs now. Tested-by: Archit Taneja Thanks, Archit Cc: Rob Clark Signed-off-by: Gustavo Padovan

Re: [RFC v3 5/8] drm/msm: update cursors asynchronously through atomic

2017-05-16 Thread Archit Taneja
Hi, On 05/16/2017 08:14 PM, Archit Taneja wrote: On 5/13/2017 12:40 AM, Gustavo Padovan wrote: From: Gustavo Padovan Add support to async updates of cursors by using the new atomic interface for that. Basically what this commit does is do what mdp5_update_cursor_plane_legacy() did but

[PATCH 3/3] staging: android: ion: Avoid calling free_duped_table() twice

2017-05-17 Thread Archit Taneja
table twice. Don't call free_duped_table() in ion_map_dma_buf() to avoid this. Signed-off-by: Archit Taneja --- drivers/staging/android/ion/ion.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/i

[PATCH 1/3] staging: android: ion: Remove unused members from ion_buffer

2017-05-17 Thread Archit Taneja
A few members in ion_buffer struct are unused after features like page faulting, ion_handle and ion_client were removed. Remove these members and the leftover references to them. Signed-off-by: Archit Taneja --- drivers/staging/android/ion/ion.c | 2 -- drivers/staging/android/ion/ion.h | 14

[PATCH 0/3] staging: android: ion: Minor clean ups and fixes

2017-05-17 Thread Archit Taneja
The recent ION clean ups introduced some leftover code that can be removed, and a bug that comes up if the call to dma_buf_map_attachment() from an importer fails. Fix these. Archit Taneja (3): staging: android: ion: Remove unused members from ion_buffer staging: android: ion: Remove

[PATCH 2/3] staging: android: ion: Remove ION_FLAG_CACHED_NEEDS_SYNC

2017-05-17 Thread Archit Taneja
The flag ION_FLAG_CACHED_NEEDS_SYNC isn't used anymore. Remove it. Signed-off-by: Archit Taneja --- drivers/staging/android/uapi/ion.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h index b76db1b

Re: [PATCH v3 06/16] drm/i2c: remove unneeded -Iinclude/drm compiler flag

2017-05-17 Thread Archit Taneja
On 05/18/2017 09:59 AM, Masahiro Yamada wrote: With the include directives under include/drm/ fixed, this flag is no longer needed. Acked-by: Archit Taneja Signed-off-by: Masahiro Yamada --- Changes in v3: None drivers/gpu/drm/i2c/Makefile | 2 -- 1 file changed, 2 deletions(-) diff

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-18 Thread Archit Taneja
need to have a corresponding node in DT. The ADV7533 and TC358767 drivers are examples of that. The following is what the binding could look like, it's same as what Rob also mentioned previously in the thread. Thanks, Archit dsi1: dsi@7e70 { #address-cells = <1>; #size-ce

Re: [RFC v3 5/8] drm/msm: update cursors asynchronously through atomic

2017-05-18 Thread Archit Taneja
On 05/17/2017 05:05 PM, Daniel Vetter wrote: On Wed, May 17, 2017 at 10:56:25AM +0530, Archit Taneja wrote: Hi, On 05/16/2017 08:14 PM, Archit Taneja wrote: On 5/13/2017 12:40 AM, Gustavo Padovan wrote: From: Gustavo Padovan Add support to async updates of cursors by using the new

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-19 Thread Archit Taneja
On 05/18/2017 08:25 PM, Laurent Pinchart wrote: Hi Archit, On Thursday 18 May 2017 13:56:19 Archit Taneja wrote: On 05/17/2017 12:16 AM, Eric Anholt wrote: [snip] In terms of physical connections: [15-pin "DSI" connector on 2835] | I2C | DSI / \

Re: [PATCH v2 3/5] drm/bridge/synopsys: Add MIPI DSI host controller bridge

2017-05-25 Thread Archit Taneja
ce *res; + int ret; + + dsi = devm_kzalloc(dev, sizeof(*dsi), GFP_KERNEL); + if (!dsi) + return ERR_PTR(-ENOMEM); + + dsi->dev = dev; + dsi->plat_data = plat_data; + dsi->dpms_mode = DRM_MODE_DPMS_OFF; + + if (!plat_data->phy_ops->init |

Re: [PATCH 5/5] drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC

2017-05-25 Thread Archit Taneja
understand what's going on with the graph code this seems to make sense to me. How do we want to go about handling the patch? This is comment to me ? or DRM maintainer ? If to me, any case (pickup by Mark, or by DRM maintainer) is OK for me I'll pick it up for drm-misc-next. Than

Re: [PATCH 5/5] drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC

2017-05-25 Thread Archit Taneja
On 05/26/2017 09:46 AM, Archit Taneja wrote: Hi, On 05/25/2017 05:04 AM, Kuninori Morimoto wrote: Hi Mark Cc: DRM maintainer ALSA SoC needs to know connected DAI ID for probing. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device

Re: [PATCH v5 02/10] drm: Introduce drm_bridge_mode_valid()

2017-05-25 Thread Archit Taneja
On 05/25/2017 07:49 PM, Jose Abreu wrote: Introduce a new helper function which calls mode_valid() callback for all bridges in an encoder chain. Reviewed-by: Archit Taneja Signed-off-by: Jose Abreu Reviewed-by: Daniel Vetter Cc: Carlos Palminha Cc: Ville Syrjälä Cc: Dave Airlie Cc

Re: [PATCH v5 06/10] drm/bridge: analogix-anx78xx: Use bridge->mode_valid() callback

2017-05-25 Thread Archit Taneja
mode_valid() will handle the mode validation. Reviewed-by: Archit Taneja NOTE: Only compile tested. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Daniel Vetter Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: David Airlie --- drivers/gpu/drm/bridge/analogix-anx78xx.c | 13

Re: [PATCH RESEND 4/6] drm/msm: update cursors asynchronously through atomic

2017-05-26 Thread Archit Taneja
On 05/26/2017 01:21 AM, Gustavo Padovan wrote: From: Gustavo Padovan Add support to async updates of cursors by using the new atomic interface for that. Basically what this commit does is do what mdp5_update_cursor_plane_legacy() did but through atomic. Tested-by: Archit Taneja v4: add

Re: [PATCH RESEND 5/6] drm/msm: remove mdp5_cursor_plane_funcs

2017-05-26 Thread Archit Taneja
On 05/26/2017 01:21 AM, Gustavo Padovan wrote: From: Gustavo Padovan After converting legacy cursor updates to atomic async commits mdp5_cursor_plane_funcs just duplicates mdp5_plane_funcs now. Tested-by: Archit Taneja Cc: Rob Clark Cc: Archit Taneja Signed-off-by: Gustavo Padovan

Re: [PATCH RESEND 1/6] drm/atomic: initial support for asynchronous plane update

2017-05-26 Thread Archit Taneja
through all atomic steps in drm_atomic_helper_commit(). We take this path for legacy cursor updates. For now only single plane updates are supported, but we plan to support multiple planes updates and async PageFlips through this interface as well in the near future. Reviewed-by: Archit Taneja

Re: [PATCH v5 07/10] drm/bridge/synopsys: dw-hdmi: Use bridge->mode_valid() callback

2017-05-30 Thread Archit Taneja
been tested on Meson by Neil. Since this also touches rockchip/imx drm driver files, can I get an OK from the maintainers to pull the changes via drm-misc? Thanks, Archit Signed-off-by: Jose Abreu Acked-by: Neil Armstrong Cc: Carlos Palminha Cc: Daniel Vetter Cc: Archit Taneja Cc: Andrzej

Re: [PATCH v5 06/10] drm/bridge: analogix-anx78xx: Use bridge->mode_valid() callback

2017-05-30 Thread Archit Taneja
need to use mode_fixup() callback as mode_valid() will handle the mode validation. NOTE: Only compile tested. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Daniel Vetter Cc: Archit Taneja Cc: Andrzej Hajda Cc: Laurent Pinchart Cc: David Airlie --- drivers/gpu/drm/bridge/analogix

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