Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4108733pxk; Tue, 8 Sep 2020 10:55:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6qLHHpVsz6aXfetQDKskobNm45Ir4uOn1wqf4KLj74fDwe3n13WDRGwGwxAehIv1+HnRD X-Received: by 2002:a17:906:4c51:: with SMTP id d17mr26755930ejw.28.1599587744310; Tue, 08 Sep 2020 10:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599587744; cv=none; d=google.com; s=arc-20160816; b=o/qZtXpgx5PC42dJIfK05leF82ede7F2scRTbMwINKRfvsZOe6zSwdyNpV7BU68VU4 WFTuG6qELlf7cDvk65v+NcCn3CF2AfocpQ02QGK+FTS0a8/jiXmREa8RcZ45k/k+HnLf Xq9ZfBm2fFLRwP3GTWSfKMPAOLbYcirSam3oRpaq0MhAWSmTI7hJeCObm16PQTHIPujX Ocn3SOFRDuEo3aRtwgFhGUB4PjMr21fR4kAiUeSzDIOnAtnVaI5scPHiEx1ztVwQu4xj UGq7IJmMoJkaL0CDLWAIVLvXRtrttKBDQKeaD0u7JA/eV01jZmIuDSfjoCU+SVe2XVCg 9fSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9ROFMex6SmeQcgvgfjI5Vchgvc+G2tj/iCxGO6nsxuo=; b=wyGrI8jaNIH9sTDwn8mUorahQLN9RroMgesWn/wpaqzCMBOGKJB3ECRv1FxYYyv26C d0uwzgzkn7KP5hqKgOyDNCn/rZPhCRSnmUcRXIAM6G3pvTxuDgCBQRoRp+UC0cu1Dhdc 87O06P5KAqrWg59W7D7XnYzJOaLa9kXzkmW759dHhjBzsTju6eyrqToCizTDeAAj3DUh y4JJJDvjX9KWeL1VxKkwHSJdmFejyx2TVgd4EOrJvLuwO8Jh3PB9IB5qLHQ8JBjO/dce 4gpnmiZhvBt0w8HIP59SADWn19TwkN35hgxP9klVbZis/FvZJv2HQsQpV7f3BDBLj9oJ rMGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gck+FqS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si12041343eja.581.2020.09.08.10.55.21; Tue, 08 Sep 2020 10:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gck+FqS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730976AbgIHRxP (ORCPT + 99 others); Tue, 8 Sep 2020 13:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731600AbgIHQNo (ORCPT ); Tue, 8 Sep 2020 12:13:44 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D1C4C061290 for ; Tue, 8 Sep 2020 06:01:33 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id a15so19988558ljk.2 for ; Tue, 08 Sep 2020 06:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9ROFMex6SmeQcgvgfjI5Vchgvc+G2tj/iCxGO6nsxuo=; b=gck+FqS4TFd5ioreMir7T2hmA8fOv7VmNt+UEdcoNlHpyopB61mqzfwAgUgzpnzI1M awXeDvbGswaVG9tiaeMeWaU39z+IibLEQ+XqA6dnfa0fojUufDKdMMk1Cf3PgB6k6MD8 jr/nL7gXzFGPBVryCkZTzvftcp8o6uyy5VwP3T5/xlmEVZ0ICQT66jYZJ2dm0Qsu+KO4 OZANzsYGJ2FdjcMvOaH17vORAB6hK/dCqCiIA2790Wa7sTbCy6mb16uHiI7SK3HbLHxU gGT61gn0NiPQwyQewP2S+WzKFszo3IFb/LbbilVCN7YK4fhSGXVMm1FM4hBkhd3sDSGz OjZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9ROFMex6SmeQcgvgfjI5Vchgvc+G2tj/iCxGO6nsxuo=; b=Ma6rvF8h2N2mLG9xSRek3Lr/xljgBJR/WyDitv5BZapVKuwK7zvRqA9tI/NXivvmtn uz0d1EbkY88MsETKOAw7Va1XqHXgpHz91SYm0DUl4dHCuovQyaC4nsT/WkYmvuO7H6mq UF2NIlYB/dVP5yBq3O8FvxfgCADJXbMeHCBbp/H5gbAcxs+9O1QrTZazPNrz0fGhenll Jptvyi8qiWIgefP/DSpRwrbNatoQ/9yPrCUoxl48xOpPHwVoE1gxdCW6eeC46XwA2CCL qtZ07B575Clz4G7G1BDGJ/kUsNKkk1VZaBl/sNK1gX81Tei8QwrkHC6VjEpLRsmF0dMS 3+tA== X-Gm-Message-State: AOAM531XHBnCnm8kRWU9MIFwyBJznQi/5QzksCdSYL8IMC3wNer5Szmu 93sMTJa7NzUL7CZp58qXeqnAhratogeW8W/UDGQ= X-Received: by 2002:a2e:9899:: with SMTP id b25mr11694176ljj.178.1599570091951; Tue, 08 Sep 2020 06:01:31 -0700 (PDT) MIME-Version: 1.0 References: <20200908125558.256843-1-stefan@agner.ch> In-Reply-To: <20200908125558.256843-1-stefan@agner.ch> From: Fabio Estevam Date: Tue, 8 Sep 2020 10:01:20 -0300 Message-ID: Subject: Re: [PATCH v2] drm: mxsfb: check framebuffer pitch To: Stefan Agner Cc: Marek Vasut , Laurent Pinchart , David Airlie , Daniel Vetter , Shawn Guo , Sascha Hauer , Sascha Hauer , Tomi Valkeinen , NXP Linux Team , DRI mailing list , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, On Tue, Sep 8, 2020 at 9:56 AM Stefan Agner wrote: > > The lcdif IP does not support a framebuffer pitch (stride) other than > framebuffer width. Check for equality and reject the framebuffer > otherwise. > > This prevents a distorted picture when using 640x800 and running the > Mesa graphics stack. Mesa tires to use a cache aligned stride, which > leads at that particular resolution to width != stride. Currently > Mesa has no fallback behavior, but rejecting this configuration allows > userspace to handle the issue correctly. What about adding a Fixes tag so that it can be backported to old stable kernels? Thanks