Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4410135ybl; Mon, 26 Aug 2019 10:01:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs5zdir1twGUK/PzKM02eXwOjJMtH4gHu2Sqesfad+/hwe9JmmJX8qPjg6C50V5LbZiveY X-Received: by 2002:a17:902:3064:: with SMTP id u91mr19887578plb.244.1566838905535; Mon, 26 Aug 2019 10:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566838905; cv=none; d=google.com; s=arc-20160816; b=QYaCOXr+0GbgCFGt9759nmC2cTxWvxGw0lpNLOAPceDggl63BtIT5uecgAVi6tU40v 0J9SOzYHNAJ8vM0j4J2HpvNrfNd+3e19x1tRpJJF1NVeElZ5ZI3AzHzeKwpyl/3xmm6w ELv08JL+xTiEzhRbuDdZjWYpglWOVbrHCZCr8EeVOm8j42dSHVQSq/pCIieqVCcI7KAy sI7WxnEqYA/0+fpObsOVXZhWUyzlzV9ymgYWEyIgRXLxSBoplRPpww/BufoWvcfrNMqZ YO8jMhMTdy6NSU0CVXtUopbyNk7g1uaPZCLg44noo0LXM/QSU+8PhrOv5g9GtEgrLVXq xtjw== 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; bh=+WWxGcnXAJ491spNf2m1PJp24q63ZcO9a4XMZzUYL0s=; b=f9qhdH6X0PT89o07KibUprr8xjwfD09AnfInaSr27DrOOvGTFSCVPmXC4u25+1SYGL n1TstmngHM//mkR3JboeW0e5TRPKJ5IcaKfMvxqXr+JdcN0Gblx5076ApeWxkjGV+0bK MRlhoK+UjpusmebD8+hhptat8owMc+pt1MndEJnb8qQBXZ4no0d5kjoSB/k/XD98odvy M9Q8iDEsqauQHyXZ3aGBRufEktp1CZp8pbks4YTqZuaT0/CFZbNuqTsAMSnQYp/EHX5G PbgAnxx2VTuoDslRxKQ3d3j8SWAHKDD5W3mB+rbW0dGUg4l8Vbn6kexUIQwnU2D8djDi IIgg== ARC-Authentication-Results: i=1; mx.google.com; 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 j186si1156844pfb.250.2019.08.26.10.01.29; Mon, 26 Aug 2019 10:01:45 -0700 (PDT) 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; 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 S1732413AbfHZQer (ORCPT + 99 others); Mon, 26 Aug 2019 12:34:47 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:43018 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727261AbfHZQeq (ORCPT ); Mon, 26 Aug 2019 12:34:46 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id F22E8FB04; Mon, 26 Aug 2019 18:34:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qBltwtRLUrlk; Mon, 26 Aug 2019 18:34:41 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id A11B349200; Mon, 26 Aug 2019 18:34:40 +0200 (CEST) Date: Mon, 26 Aug 2019 18:34:40 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Stefan Agner Cc: Robert Chiras , 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 v3 00/15] Improvements and fixes for mxsfb DRM driver Message-ID: <20190826163440.GA5539@bogon.m.sigxcpu.org> References: <1566382555-12102-1-git-send-email-robert.chiras@nxp.com> <20190826120548.GA14316@bogon.m.sigxcpu.org> <3bd35686e046048d35cd4987567a13cf@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3bd35686e046048d35cd4987567a13cf@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 Hi, On Mon, Aug 26, 2019 at 04:35:10PM +0200, Stefan Agner wrote: > On 2019-08-26 14:05, Guido G?nther wrote: > > Hi, > > On Wed, Aug 21, 2019 at 01:15:40PM +0300, Robert Chiras wrote: > >> This patch-set improves the use of eLCDIF block on iMX 8 SoCs (like 8MQ, 8MM > >> and 8QXP). Following, are the new features added and fixes from this > >> patch-set: > > > > I've applied this whole series on top of my NWL work and it looks good > > with a DSI panel. Applying the whole series also fixes an issue where > > after unblank the output was sometimes shifted about half a screen width > > to the right (which didn't happen with DCSS). So at least from the parts > > I could test: > > > > Tested-by: Guido G?nther > > > > for the whole thing. > > Thanks for testing! What SoC did you use? I think it would be good to > also give this a try on i.MX 7 or i.MX 6ULL before merging. This was on i.MX8MQ. I don't have hardware to test mxsfb on anything else over here atm. Cheers, -- Guido > > -- > Stefan > > > > Cheers, > > -- Guido > >> > >> 1. Add support for drm_bridge > >> On 8MQ and 8MM, the LCDIF block is not directly connected to a parallel > >> display connector, where an LCD panel can be attached, but instead it is > >> connected to DSI controller. Since this DSI stands between the display > >> controller (eLCDIF) and the physical connector, the DSI can be implemented > >> as a DRM bridge. So, in order to be able to connect the mxsfb driver to > >> the DSI driver, the support for a drm_bridge was needed in mxsfb DRM > >> driver (the actual driver for the eLCDIF block). > >> > >> 2. Add support for additional pixel formats > >> Some of the pixel formats needed by Android were not implemented in this > >> driver, but they were actually supported. So, add support for them. > >> > >> 3. Add support for horizontal stride > >> Having support for horizontal stride allows the use of eLCDIF with a GPU > >> (for example) that can only output resolution sizes multiple of a power of > >> 8. For example, 1080 is not a power of 16, so in order to support 1920x1080 > >> output from GPUs that can produce linear buffers only in sizes multiple to 16, > >> this feature is needed. > >> > >> 3. Few minor features and bug-fixing > >> The addition of max-res DT property was actually needed in order to limit > >> the bandwidth usage of the eLCDIF block. This is need on systems where > >> multiple display controllers are presend and the memory bandwidth is not > >> enough to handle all of them at maximum capacity (like it is the case on > >> 8MQ, where there are two display controllers: DCSS and eLCDIF). > >> The rest of the patches are bug-fixes. > >> > >> v3: > >> - Removed the max-res property patches and added support for > >> max-memory-bandwidth property, as it is also implemented in other drivers > >> - Removed unnecessary drm_vblank_off in probe > >> > >> v2: > >> - Collected Tested-by from Guido > >> - Split the first patch, which added more than one feature into relevant > >> patches, explaining each feature added > >> - Also split the second patch into more patches, to differentiate between > >> the feature itself (additional pixel formats support) and the cleanup > >> of the register definitions for a better representation (guido) > >> - Included a patch submitted by Guido, while he was testing my patch-set > >> > >> Guido G?nther (1): > >> drm/mxsfb: Read bus flags from bridge if present > >> > >> Mirela Rabulea (1): > >> drm/mxsfb: Signal mode changed when bpp changed > >> > >> Robert Chiras (13): > >> drm/mxsfb: Update mxsfb to support a bridge > >> drm/mxsfb: Add defines for the rest of registers > >> drm/mxsfb: Reset vital registers for a proper initialization > >> drm/mxsfb: Update register definitions using bit manipulation defines > >> drm/mxsfb: Update mxsfb with additional pixel formats > >> drm/mxsfb: Fix the vblank events > >> drm/mxsfb: Add max-memory-bandwidth property for MXSFB > >> dt-bindings: display: Add max-memory-bandwidth property for mxsfb > >> drm/mxsfb: Update mxsfb to support LCD reset > >> drm/mxsfb: Improve the axi clock usage > >> drm/mxsfb: Clear OUTSTANDING_REQS bits > >> drm/mxsfb: Add support for horizontal stride > >> drm/mxsfb: Add support for live pixel format change > >> > >> .../devicetree/bindings/display/mxsfb.txt | 5 + > >> drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 287 ++++++++++++++++++--- > >> drivers/gpu/drm/mxsfb/mxsfb_drv.c | 203 +++++++++++++-- > >> drivers/gpu/drm/mxsfb/mxsfb_drv.h | 12 +- > >> drivers/gpu/drm/mxsfb/mxsfb_out.c | 26 +- > >> drivers/gpu/drm/mxsfb/mxsfb_regs.h | 193 +++++++++----- > >> 6 files changed, 589 insertions(+), 137 deletions(-) > >> > >> -- > >> 2.7.4 > >> >