From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52824C5DF62 for ; Tue, 5 Nov 2019 22:12:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D6F5217F4 for ; Tue, 5 Nov 2019 22:12:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="kxdSiyxH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730273AbfKEWMm (ORCPT ); Tue, 5 Nov 2019 17:12:42 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:46122 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730087AbfKEWMl (ORCPT ); Tue, 5 Nov 2019 17:12:41 -0500 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DDF24559; Tue, 5 Nov 2019 23:12:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1572991959; bh=l6tO4H9CE+rZr6x6HqO9Q+l13cU4DGErjjFmjqJ0BLw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kxdSiyxH9GCuLmW8Fn6JxZ69vA/vPqlAv+IuJndPuUHnDfPgU6Pd6guisvGqUiomx pnPIvCyFHHrIhezrgXcwhC7x71S6mTm4LSw8O8ddpXHubUb581OINI1n72G0s/deRE pVuGWIUeqQAeYQKHFlL/dLo+t+0gQYosjCvjj4Iw= Date: Wed, 6 Nov 2019 00:12:30 +0200 From: Laurent Pinchart To: Stefan Agner Cc: Robert Chiras , Marek Vasut , Mark Rutland , Pengutronix Kernel Team , devicetree@vger.kernel.org, David Airlie , Guido =?utf-8?Q?G=C3=BCnther?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rob Herring , NXP Linux Team , Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 13/14] drm/mxsfb: Add support for horizontal stride Message-ID: <20191105221230.GI4869@pendragon.ideasonboard.com> References: <1567078215-31601-1-git-send-email-robert.chiras@nxp.com> <1567078215-31601-14-git-send-email-robert.chiras@nxp.com> <3f346b1f809e77d343117dabc00c0402@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3f346b1f809e77d343117dabc00c0402@agner.ch> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 14, 2019 at 02:40:55PM +0200, Stefan Agner wrote: > 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. The code tests for ipversion >= 4, which should match the i.MX7. > 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? On i.MX7 the EPDC IP core is present as the SoC has an EPDC output. Can the EPDC be used to control LCDIF stride on the i.MX7 too ? > > 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