Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp437824imk; Sat, 2 Jul 2022 23:51:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tFwSnd2bAMMc7klejL97Z7kffyKAff+UAtXXUq+ulvvmYFoY7uwvHE2yBiWwoSRV5LbYI8 X-Received: by 2002:a17:90b:3b84:b0:1ec:e86c:3c34 with SMTP id pc4-20020a17090b3b8400b001ece86c3c34mr26555419pjb.174.1656831071917; Sat, 02 Jul 2022 23:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656831071; cv=none; d=google.com; s=arc-20160816; b=pPnOnvXTlW9DXfPh9xTbqvXfhSZBO3AaOSvpg1q6D2+1omZObDkr/op7ZucLE/9Skd zTpX3lSYGZffiMC7YsP76kCaRq8uXhLFmuTf71tuEjpPiSJwZD+zER7e4rUo2Dp7g2Rf eu9ETIBjjSwMWMd0TIqf83QVfenzRfVNCs5CAbguVERF01gjTSWh4Y4Jagwvt+NPmluK VyMt6ULPHrlJJyaL1eKd9qpExzhOUdNA5ubE/LF+OeZSJAvm8Cv4xraeVyB0bpYdQo8u ObNiLg0twKUGr1bdyTY/6h8dlcUTjLaNyaBkanVD9KxwtHuBgvw2oPtkl3Bp94Vy4/rN Ijdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=vxP0cGw3hHh8TfpWoKjeipnz7SqgYobDoDSTvlK7xfI=; b=G4MsrhsR++HSeKeQZIK45qv2loa3jtLKYL4WtlpMth4E+/2j1GVUFEQjbXT/zb0/ri 63dngf4F7kuG8lh+uaQOp+ah+B9sqfr90qGXWqeB+nf/+Repd2gzKt44mmoSmyc9ILnh wD84N37LFYxVjro43roWhuUKGF0PbnwgHvuX6zGfLCPMOKfsjZltrkssCtp2KNiVyf7j lF6VeXILVzjUd606Eb3LS9oLDWmrXxsDJuKZITSNf87Nn/tFqD/GWFbvzpyKTR/f0LZv HudggQmjMGDp7nivClXnapOwuAE7J0y1IPa4HRDB2xT01jhnYvOBsh+P5Iui3S9hC1xn 3dwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=BdYzAY7A; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b=QJPUfLbp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170902ecce00b00163be809240si45594348plh.302.2022.07.02.23.50.57; Sat, 02 Jul 2022 23:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=BdYzAY7A; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b=QJPUfLbp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231290AbiGCGnq (ORCPT + 99 others); Sun, 3 Jul 2022 02:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiGCGno (ORCPT ); Sun, 3 Jul 2022 02:43:44 -0400 Received: from mailrelay2-1.pub.mailoutpod1-cph3.one.com (mailrelay2-1.pub.mailoutpod1-cph3.one.com [46.30.210.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06034647A for ; Sat, 2 Jul 2022 23:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=vxP0cGw3hHh8TfpWoKjeipnz7SqgYobDoDSTvlK7xfI=; b=BdYzAY7AndzrdqXiZrVmQ+K3Y+sJHfZ71LyfcIm95V83WcdXusc6jj3tVIp+LwGtablMQ3VIE6tMF laGLsSRfgztZj/KABU97clWyFT5lNp5Oy/EbAUPcHNQC14gqrjyeZ+/PRnBsYipc1qalyo+x7mehkd PjIGQ80L6+lMug8l33Jk2SaE/r3MD3eeZRRJaxf4xLgd0hbY2GYHHduvanzjNfvfkPneuI52AFweNj IZELEobn/pWDWqOaOQbTnu/m7Yk2aM3GoxH7Al/A1Vj5YMEfsWFdgpnWXV9pAEYvy4iIlvMWFdGjcl gJhBk2ODXhFdTTS6amjCQl7RihyIDAw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=vxP0cGw3hHh8TfpWoKjeipnz7SqgYobDoDSTvlK7xfI=; b=QJPUfLbpvJmfb1Na9QQPmRMMP/16yIZVld0HfuL7gtHH7x14JBK1p/OoSeWTcK3R1SErQxvhLBSPp xZMyBDXDg== X-HalOne-Cookie: 62bbb06fc9a29970a031891bb17428932ea70f5a X-HalOne-ID: 787f57d8-fa9b-11ec-a917-d0431ea8a290 Received: from mailproxy4.cst.dirpod4-cph3.one.com (2-105-2-98-cable.dk.customer.tdc.net [2.105.2.98]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 787f57d8-fa9b-11ec-a917-d0431ea8a290; Sun, 03 Jul 2022 06:43:39 +0000 (UTC) Date: Sun, 3 Jul 2022 08:43:37 +0200 From: Sam Ravnborg To: Paul Cercueil Cc: David Airlie , Daniel Vetter , linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, list@opendingux.net, Christophe Branchereau , stable@vger.kernel.org Subject: Re: [PATCH] drm/ingenic: Use the highest possible DMA burst size Message-ID: References: <20220702230727.66704-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220702230727.66704-1-paul@crapouillou.net> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, On Sun, Jul 03, 2022 at 12:07:27AM +0100, Paul Cercueil wrote: > Until now, when running at the maximum resolution of 1280x720 at 32bpp > on the JZ4770 SoC the output was garbled, the X/Y position of the > top-left corner of the framebuffer warping to a random position with > the whole image being offset accordingly, every time a new frame was > being submitted. > > This problem can be eliminated by using a bigger burst size for the DMA. Are there any alignment constraints of the framebuffer that depends on the burst size? I am hit by this with some atmel IP - which is why I ask. Patch looks good and is a-b. > > Set in each soc_info structure the maximum burst size supported by the > corresponding SoC, and use it in the driver. > > Set the new value using regmap_update_bits() instead of > regmap_set_bits(), since we do want to override the old value of the > burst size. (Note that regmap_set_bits() wasn't really valid before for > the same reason, but it never seemed to be a problem). > > Cc: > Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") > Signed-off-by: Paul Cercueil Acked-by: Sam Ravnborg