Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4439611ybl; Mon, 26 Aug 2019 10:26:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNHVPHsAQIVgcRsQKOzJEe8ahzyruuovMxUUrHpYKIXzQKl5dQXJvY3P6QzIKPdg02BdH5 X-Received: by 2002:aa7:83c7:: with SMTP id j7mr8417689pfn.59.1566840382406; Mon, 26 Aug 2019 10:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566840382; cv=none; d=google.com; s=arc-20160816; b=XPMg2ulUGeHxqt3RDUicJS+vy4+O2YfHT7f3Qr4wF9Bz1LaZvkXGjXQnfa/rdH7zHh rnL9PBZPnarCXSCNUUJPTroMfSfCJpL6XyidoNiR9B08hFLxSEibO5a1HV3BLlbkWEl/ /X66L4KhzdAd3+rl+Z2aRTlVmizyuszE63aSjqXvfxQ8BCQzK3IMgFBZoZRWUFYPgWR3 n/Cj4V0oS8C3uBwEq0x2I2yTl6JPDN/iqOi3PCACiaKF873pDyVwkyB0DO4VfytNcNYu Ifkdai4e2MRbegGOODpxNc6maEuxH0pFDbxxnz0eR2wEtau7M1BYbti0k3xd6dILi9kZ cCtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=ry+edmxoGbqJLKXnIz/oWoL2et798Iawn9Q+DWPyA5A=; b=hIHEmMp40Vz8Kj5FYMpyG4bOJ1RR7oEnbB8X76PPMFZIbZmS/0a95Db+VXreSx/4p+ HkKITVjpwkfGKCu/9LTq/7MyzK1q9YhQhA6HIYPkSDP534skwkQyNPd5hiQwaCwMpHiI MWBN08EGDS0c468eEIjy9IZDMI9Ye8WLtg84LLMrdJhrjjh2TzFfLtXFmwg4IhyA8i/f aQM7rdxYK+Vk5veUgYskG3wNqeRjsjexBwZd3QScyUZo5/DsKswzy5bVFE/C4YUObxd5 4FumVBJqSFrAXxv5totpodW1yxlfkJZga8342hSF27yc7qnpcKYjNLQ/G09z1AZOfXDT XfHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=gDfdi8H6; 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 c25si10895901pfi.256.2019.08.26.10.26.06; Mon, 26 Aug 2019 10:26:22 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=gDfdi8H6; 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 S1732515AbfHZOfQ (ORCPT + 99 others); Mon, 26 Aug 2019 10:35:16 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:41886 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbfHZOfP (ORCPT ); Mon, 26 Aug 2019 10:35:15 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 060EA5C19C6; Mon, 26 Aug 2019 16:35:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1566830112; 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=ry+edmxoGbqJLKXnIz/oWoL2et798Iawn9Q+DWPyA5A=; b=gDfdi8H6FBA5NLRxdkw7IzW8gkFhDgxBixLFgr80LDizqSmFoE0VMzmP5Vu5y24gGXAPbA IBC3CKEDv/rb3LfPtZIc4/2yyA08+1J8PHR2iw8w6JRdNZ4w2DugkepBL6sEdnUok02whO EGrocPZch8VAkKkqIEITZdBMxmSz0gU= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Mon, 26 Aug 2019 16:35:10 +0200 From: Stefan Agner To: =?UTF-8?Q?Guido_G=C3=BCnther?= 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 In-Reply-To: <20190826120548.GA14316@bogon.m.sigxcpu.org> References: <1566382555-12102-1-git-send-email-robert.chiras@nxp.com> <20190826120548.GA14316@bogon.m.sigxcpu.org> Message-ID: <3bd35686e046048d35cd4987567a13cf@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 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. -- 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 >>