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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 1D44CC43461 for ; Mon, 7 Sep 2020 19:35:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D0CF2145D for ; Mon, 7 Sep 2020 19:35:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=danielabrecht.ch header.i=@danielabrecht.ch header.b="LfEe//fF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D0CF2145D Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=danielabrecht.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC6B36E544; Mon, 7 Sep 2020 19:35:35 +0000 (UTC) X-Greylist: delayed 582 seconds by postgrey-1.36 at gabe; Mon, 07 Sep 2020 19:35:34 UTC Received: from abrecht.li (75-128-16-94.static.cable.fcom.ch [94.16.128.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8459F6E544 for ; Mon, 7 Sep 2020 19:35:34 +0000 (UTC) Received: from mail.abrecht.li (unknown [10.60.1.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by abrecht.li (Postfix) with ESMTPSA id 1EF6B2D972E6 for ; Mon, 7 Sep 2020 19:25:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 abrecht.li 1EF6B2D972E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielabrecht.ch; s=mail; t=1599506750; bh=ihbRRJ+fy8MjMT6ZBXsNCndxLBIJRdbV9FnAl7YJqNY=; h=From:To:From; b=LfEe//fFV/byu3mJkAUlHYVTVX8mqEqd7DMQXFNBuLwoGd9u/s6YYzjdoQ49k9VHU X4ryVxr9glo//GNrT3sK1P+Rv7GTKYxa0sPwWTI0vM60clk06KgLXdIRGtZTKINySm MHBNyEOnK4a89TLy0y6DdsscSHyhxGVqyY5jtEQ8= MIME-Version: 1.0 Date: Mon, 07 Sep 2020 19:25:50 +0000 From: Daniel Abrecht To: dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm: mxsfb: check framebuffer pitch In-Reply-To: <20200907160343.124405-1-stefan@agner.ch> References: <20200907160343.124405-1-stefan@agner.ch> Message-ID: <1053506ddfbb352ba0fe96c6576f78fd@abrecht.li> X-Sender: freedesktop-linux-dri-devel@danielabrecht.ch User-Agent: Roundcube Webmail/1.3.15 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Am 2020-09-07 16:03, schrieb Stefan Agner: > The lcdif IP does not support a framebuffer pitch (stride) other than > the CRTC width. This may be true for some SOCs, but not for all of them. I used to have this working flawlessly on the imx8mq like so: http://projects.dpa.li/git/?p=linux.git;a=commitdiff;h=5a7baa8ba7f1f30139cfcd0f9e13b3773f3605ff That in turn was based on some patches which weren't fully upstreamed yet at the time, and was inspired by another patch I had seen here: https://lore.kernel.org/linux-arm-kernel/20190722174853.GA31795@bogus/t/#m7ac218480eb1d827ff65f82f2e03a5a84c94a5e0 I had almost forgotten about this already, since I currently don't need it anymore, and I was waiting for the patches it was based on to get taken up. But if anyone else needs this, feel free to do whatever you want with it. I could also take another look at this and submit some patches if this is preferred, but I'm quiet busy right now, so that could take a while. In the meantime and for other SOCs, I think checking for an unsupported pitch is still needed regardless. I'm not against this patch, this is just a note to make sure it's known that and how this can be done on the imx8mq. Regards, Daniel Abrecht _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel