Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1323439ybx; Tue, 5 Nov 2019 14:14:23 -0800 (PST) X-Google-Smtp-Source: APXvYqx/XHRkCQ1hThj6YQ5gYjtrqSqnf4G1Iv1CaYkmzOo/usXr6u50c9HIcMCDCeFQoHXZrcfb X-Received: by 2002:a17:906:1be9:: with SMTP id t9mr31541243ejg.10.1572992063148; Tue, 05 Nov 2019 14:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572992063; cv=none; d=google.com; s=arc-20160816; b=P1ZKc9FDqSLWHj2moSU7pcxGermyl28mhdojctR7E37aThcYDWgwaQIfuyqAdGCs9z IGePAjCt0B0lHdfqSBf1hzi2Ua3O/kRM5HffIsZ05C4uq76NtQ+cjT6sVPesNpEjJzRZ f/cS5fZk091gGAA7TDO99o4Qt/yAqwF5l904Jn0O/JE4OaXtAguWGywXBYfs+oWstb7P 8kCiHd3brOiUiLDvlYQWAlevSQV0LZsWSw7jKdYM+CuEplYvGLzqXwO1PPKUM50LUIM3 UCoTFqD5L9jGEtYrMcSpe/p/epXeC5iUYreBAZIbq6pkChH1hl+0ucTwuwDJed9mLAe8 inhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DEQITtajz+0i3E3gKmNDT8FzxJq4t4p+/gbsYeE3jfk=; b=z9ybpbNPo1zwRiNWL50Pr7BvKzQHfxwk8X44bLInV1vJhTLhBg1eFEfv4A4DvWMA24 zLiIeR9nXliHLxL8+50f+f8t4fVfxk/OxlLFzYLJoawkYGU+7j7sk2gjILLGyev7tBAh xCs+6Dej8GW2E54MeG92qMqqiV+ipy1jYVtVzFGtIQdeSJWAdKWZfxN0s5v4jqUYZNSl HkGPaGAyDCbjn0dDJVUyglkfchk78vDShrWDq3VF0M/GtNe292DG37j3YfRlYb1Obnaa eblGJthj5PNdFrMeVh/wN3MaioDcKGO734cPrktttxFhIK+e/IOPXNXOP1YeyVbGNTUz 3vkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kxdSiyxH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si9376591ejd.305.2019.11.05.14.13.59; Tue, 05 Nov 2019 14:14:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kxdSiyxH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730251AbfKEWMm (ORCPT + 99 others); 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