Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1447017imk; Mon, 4 Jul 2022 03:19:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzvy/7Mz5EIoSa2DafcfP2V6HAx8QKEmsZWD9vI6wFECuuVKxRieTMG85y07rm1ITX2pbl X-Received: by 2002:aa7:c9c9:0:b0:431:962f:f61e with SMTP id i9-20020aa7c9c9000000b00431962ff61emr38088776edt.189.1656929946681; Mon, 04 Jul 2022 03:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656929946; cv=none; d=google.com; s=arc-20160816; b=JpJeR1Mo3idcTaWpVWiVA8VWC2tZeV/scUyAROaNvAL8NBvRRjdJ46t0qyG5GQ/fa9 jmVrXSqrLZTDg9qDOLlhohNvqcPlW7jj/oKSTXny6QGy2ODkBMkASyRoVIAnauB/itOp 5HO9+sk4cIpswT5jLzB5+FOJTPeSAdiVcrP6TBIgwfKfpVlaAbCY993ji95fkXTCBT93 fbyjnS+oluba0OpAauc/gzPZaj1QdSyPuGEmlDExusgL1Ui2iIAbh/myLzhEZFUSfGRO mZUXYNOlVPhsQTy5d82ZRkaoo91H58ut0D6aiaCQUcj2Y7brE5HbXNGfOSFH7lfUkMON LMdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=fdDfaJmsBBFfaFN5qYM4oBebDe0q1isIg/MbLGof6RY=; b=lmveeFsyfbA8dan04dCiw4Oj9bUITsULaLkknCOvQzOOcwZvJAlKIJB2QgAb4XuNdb s2nsop0AnpqBwK2vlT9gNZvtVAKmDBK5zvHpgt7j6CS9Z4DNdVqk7iAAc//xl/FutjlA +7iXPvfCplgf/4M7iCsO0rLHlsd0QfgkXaHjiRshCnSL0LHx1r9SuPzhpC0YIrgOkmG/ v+r+B1kYUJSa1O3XAThJV/KQ3MT5xS7on782FSB+MbCVPubz9Oatx+ykogf7/us8Ryv8 zxJ1YwnDn4f6qkWDuKGh6+CRMRreO9JIY3nPXt29tGs9f2s59hxzuvbBK0t850MLwwip W6hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=tMaJAQYv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp16-20020a170906c15000b00726b4ef9c2csi406430ejc.496.2022.07.04.03.18.40; Mon, 04 Jul 2022 03:19:06 -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=@crapouillou.net header.s=mail header.b=tMaJAQYv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233616AbiGDKLt (ORCPT + 99 others); Mon, 4 Jul 2022 06:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbiGDKLs (ORCPT ); Mon, 4 Jul 2022 06:11:48 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE53CE26; Mon, 4 Jul 2022 03:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1656929503; h=from:from:sender: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=fdDfaJmsBBFfaFN5qYM4oBebDe0q1isIg/MbLGof6RY=; b=tMaJAQYv7wevuKVSWdEwxe7ivU5gM+bbwl++b/klkCY80im+OELuHuxGt9D+1vlPKu4tWU YUvtkWqP7/qdk419/HEs4f3qhOcprXxxBM+flL6wQYeqBG579/OcsbHOckiWsSlRGo/FBc q0AYKUhe90gj0mdJ5eVssHmxmQms8go= Date: Mon, 04 Jul 2022 11:11:34 +0100 From: Paul Cercueil Subject: Re: [PATCH] drm/ingenic: Use the highest possible DMA burst size To: Sam Ravnborg 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 Message-Id: In-Reply-To: References: <20220702230727.66704-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, 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 Sam, Le dim., juil. 3 2022 at 08:43:37 +0200, Sam Ravnborg=20 a =E9crit : > Hi Paul, >=20 > On Sun, Jul 03, 2022 at 12:07:27AM +0100, Paul Cercueil wrote: >> Until now, when running at the maximum resolution of 1280x720 at=20 >> 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. >>=20 >> This problem can be eliminated by using a bigger burst size for the=20 >> DMA. >=20 > 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. I verified this, and everything behaves correctly when the source=20 address is not aligned to the burst size. So I believe in our case the=20 DMA is smart enough to auto-select the best burst size, up to the=20 configured value. Cheers, -Paul >=20 > Patch looks good and is a-b. >=20 >>=20 >> Set in each soc_info structure the maximum burst size supported by=20 >> the >> corresponding SoC, and use it in the driver. >>=20 >> 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=20 >> for >> the same reason, but it never seemed to be a problem). >>=20 >> Cc: >> Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx=20 >> SoCs") >> Signed-off-by: Paul Cercueil > Acked-by: Sam Ravnborg