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=-6.8 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 autolearn=ham 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 20024C4CECE for ; Mon, 14 Oct 2019 12:41:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E28CA207FF for ; Mon, 14 Oct 2019 12:41:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=agner.ch header.i=@agner.ch header.b="Cd9Tp17/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730894AbfJNMlA (ORCPT ); Mon, 14 Oct 2019 08:41:00 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:54522 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730733AbfJNMlA (ORCPT ); Mon, 14 Oct 2019 08:41:00 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id C0FD35C2968; Mon, 14 Oct 2019 14:40:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1571056855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YrWET6MwKgu6ijCwF1dhxci/n4n0Vg1dUxqCWKvLfYI=; b=Cd9Tp17/bN/gVz6dvVu67YBFVDnn7pdCVMWM9b9Nsd3CWRgrZjB4nKYjhCF5rsujmLA9b5 03ItSqHrudgjtO8J+OMeENMsYh/ubOHvYtZovvwmBzpRRy2tLpu3QC+KOXueJvk64QQfZq M80bvjrKzHqCYNhbUajdL3zRtxiUhXg= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Mon, 14 Oct 2019 14:40:55 +0200 From: Stefan Agner 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 Subject: Re: [PATCH v4 13/14] drm/mxsfb: Add support for horizontal stride In-Reply-To: <1567078215-31601-14-git-send-email-robert.chiras@nxp.com> References: <1567078215-31601-1-git-send-email-robert.chiras@nxp.com> <1567078215-31601-14-git-send-email-robert.chiras@nxp.com> Message-ID: <3f346b1f809e77d343117dabc00c0402@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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