From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Agner Subject: Re: [PATCH v4 13/14] drm/mxsfb: Add support for horizontal stride Date: Mon, 14 Oct 2019 14:40:55 +0200 Message-ID: <3f346b1f809e77d343117dabc00c0402@agner.ch> References: <1567078215-31601-1-git-send-email-robert.chiras@nxp.com> <1567078215-31601-14-git-send-email-robert.chiras@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <1567078215-31601-14-git-send-email-robert.chiras@nxp.com> Sender: linux-kernel-owner@vger.kernel.org To: Robert Chiras Cc: =?UTF-8?Q?Guido_G=C3=BCnther?= , Marek Vasut , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org Hi Robert, Sorry it took me so long to have a closer look at this patchset. I will definitely merge part of it, but this particular patch actually breaks i.MX 7. I have vertical stripes on my display with this patch applied (using Weston with DRM backend). Not sure why this exactly happens, from what I understand this should only affect IP Version 4. Some notes below: On 2019-08-29 13:30, Robert Chiras wrote: > Besides the eLCDIF block, there is another IP block, used in the past > for EPDC panels. Since the iMX.8mq doesn't have an EPDC connector, this > block is not documented, but we can use it to do additional operations > on the frame buffer. Hm, but this block is part of the ELCDIF block, in terms of clock, power domain etc? > In this case, we can use the pigeon registers from this IP block in > order to do horizontal crop on the frame buffer processed by the eLCDIF > block. > > Signed-off-by: Robert Chiras > Tested-by: Guido Günther > --- > drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 79 ++++++++++++++++++++++++++++++++++++-- > drivers/gpu/drm/mxsfb/mxsfb_drv.c | 1 + > drivers/gpu/drm/mxsfb/mxsfb_regs.h | 16 ++++++++ > 3 files changed, 92 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > index a12f53d..317575e 100644 > --- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > +++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c > @@ -15,6 +15,7 @@ > > #include