Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp667634imk; Sun, 3 Jul 2022 06:05:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1us8Ii4FBiPxhx7HitR2JwuyIV5nR52acVNqFeJJYs4LMBRhdAoOXmorpjKICBx9h1vE5Kz X-Received: by 2002:a17:906:3899:b0:715:9fb4:bd28 with SMTP id q25-20020a170906389900b007159fb4bd28mr23065642ejd.97.1656853554171; Sun, 03 Jul 2022 06:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656853554; cv=none; d=google.com; s=arc-20160816; b=BXXX4utzBvY/Hda1o78LRcF3vuAEJCnnoEj1I78O4w4XG6nilBIk/p7lIlZoRSDN8o hyr/z3r7BQwMAoEUowvTSrs89viJN5XqDUBXXRQ00evHJNeC9k6zQBIFFYMb6xdRzlDT sC7qzPvNzGHduOko3Wb2WKd+Q8mVh9Dq28nHLFvRxG64+wPKhlCxe77DyE94YmYb97nl ZiExLArpBVH8/XVZ7P1pCwrSVicLyu3lg9WwHh6Fa6viWqFJ64HVmIRyFEs5Ieg+tCzw H/dgd5QZTDfi3Wlv7IKDOTFMJsiPIVnEHzUmKXbrxutvIAIwtcXnUe+DmdH6Q6Wzut+Y frEw== 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=sXnapAA8AB7IePhGfDT35N7Hgo2H+tcnMEbnApSgbgc=; b=qgh/PcHCpFmtDjLJNiSXF2QaiLtRyGG9A4YoJAxVoxuAaZWc9jtGHFCxKZp3lLuuJe blPHfNSdGqQtIykXnq0fovHXrdRWyEll30IiLds6AVTIXi25jQSZ0YLC/QxPe3VHwfM5 BRqSmRbjBtX7aQXD6fwwrQ76D0DPUhIb80tnoqRVTCakpzWCr5kXblrDoiliSFF1x2nl opaSjT/ZTMBM0EWVBmUpl9TXNZKCYxK0wi1ZZoGXRUaHVb5d7OgBIWb5vNhGYkRsdYoN QkkOs89QlgB8QFlgoAdgxDy71fraORJR3VIqkzzNHEE9lFXXlqFt8NNoGvQ1JhG2Wyy5 owDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=NrlNvnLQ; 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 n13-20020a05640205cd00b0043a0b68e0b2si4536577edx.432.2022.07.03.06.05.28; Sun, 03 Jul 2022 06:05:54 -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=NrlNvnLQ; 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 S232466AbiGCLpc (ORCPT + 99 others); Sun, 3 Jul 2022 07:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbiGCLpb (ORCPT ); Sun, 3 Jul 2022 07:45:31 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765C963BB; Sun, 3 Jul 2022 04:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1656848728; 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=sXnapAA8AB7IePhGfDT35N7Hgo2H+tcnMEbnApSgbgc=; b=NrlNvnLQqaM9/3j5GyuFg5OW9YqnMc4LaDWtfmSJ+w/+y4rwR/bRs6CscjrRLvprIugR9f HTqN3nj4q/n/eDV5pTR8WQFolR6qQoFSwPuqgGWaLIwrX30n3SJyLgtumddYNmCkxDvSS+ M3ZLmGd665inHTDo0y5E+dfT9rbwBgY= Date: Sun, 03 Jul 2022 12:45:18 +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 would think that the framebuffer needs to be aligned with the burst=20 size, indeed. Here, our buffers are always page-aligned so that's not a=20 problem. > Patch looks good and is a-b. Thanks! Cheers, -Paul >>=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