Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3424178rwo; Mon, 24 Jul 2023 10:45:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSP9jQFJ6bJ6aBy/U963nTQxFsFQiGn7B4HXsnOr9EDUjpeS9Ltb/dOAfqpFXZ6McmUzmV X-Received: by 2002:a05:6a00:2354:b0:67c:db:c2f4 with SMTP id j20-20020a056a00235400b0067c00dbc2f4mr11365625pfj.4.1690220746283; Mon, 24 Jul 2023 10:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690220746; cv=none; d=google.com; s=arc-20160816; b=aXDt1SfX4OewrBHAaTF4I79MImtIBB5GpGSAD6zZ3QCpZGqx+Lg2zo066Hc0u2nxMl 7TGAZ6CM9pKBOvmg3Elsf15uWJNEFHvBy44gty6C04b4M/AdbNGTfsAGuTo3autFtiB3 YpieN7pxLdVygwqlSIbsE+XO6ZCSGvjvuSP4NgnYlb1mXEdTJfe3uTNUxsZIGTgphR7/ yq4HTq866yKEi6Lq69hwCknaGbnrd1kSbAO8hACDm1GtUrK9UHHGj5Ba8YYvmJ8oAVzW ooVDmQ2LAt1FzAd8HGjl6KEJ2vuHGQJsACxYkycA4TfycoEYUu3nWiC3D8hiNusWhZM+ Hg7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=/pVNHJoVKQ7+tVATwYMmo5kyYKV3E6zbk8Pva08dET0=; fh=tjaJZw3Yk3Wr20WDSWB/OjOPBo7EcV/z4QcdUMEC7IM=; b=KQN2xleUN7+Mn0UFgpbAvxBz/Vgbt4I1B5DdidAjhvZfAqyCx+2xwDfwmA8n8f3gk/ +4/tKBCLTz3Pa6tE1ESIdseuR9PtTnR8eKNOOonYpahICiSZWnPRZGuACly3rfDrrmdz ao8307TeJ31KdQ0D/ddyZz+JMR+6pomvW/X655dsgfWvMXAq52jrNfSQWWtI556DrzVI Po2YVN3pS0MY37O73DRq2CMABzX21cFjatuuCOTZaiWV4AhjBFIRhYw/Px6dfss8zsB7 QsOawC8EbQxRuDxqVmZjpZs8jGjPdZXMq/MhqEmP0omW5GX3+GFm1OF2Oy/+bol2oTIT BEIA== ARC-Authentication-Results: i=1; mx.google.com; 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 l123-20020a633e81000000b005638355e97fsi8371929pga.412.2023.07.24.10.45.34; Mon, 24 Jul 2023 10:45:46 -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; 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 S231684AbjGXR3v convert rfc822-to-8bit (ORCPT + 99 others); Mon, 24 Jul 2023 13:29:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231653AbjGXR3u (ORCPT ); Mon, 24 Jul 2023 13:29:50 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4886598; Mon, 24 Jul 2023 10:29:49 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qNzNA-003ztw-8Q; Mon, 24 Jul 2023 19:29:28 +0200 Received: from p5b13a085.dip0.t-ipconnect.de ([91.19.160.133] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qNzNA-002BPR-0R; Mon, 24 Jul 2023 19:29:28 +0200 Message-ID: <31ad16fe8f1435805185ba8e889512ec181a867e.camel@physik.fu-berlin.de> Subject: Re: [PATCH v1] sh: boards: fix CEU buffer size passed to dma_declare_coherent_memory() From: John Paul Adrian Glaubitz To: Laurent Pinchart , Petr Tesarik Cc: Yoshinori Sato , Rich Felker , Andy Shevchenko , Arnd Bergmann , Linus Walleij , Jacopo Mondi , Hans Verkuil , Mauro Carvalho Chehab , "open list:SUPERH" , open list , Roberto Sassu , petr@tesarici.cz, Geert Uytterhoeven Date: Mon, 24 Jul 2023 19:29:27 +0200 In-Reply-To: <20230724171229.GC11977@pendragon.ideasonboard.com> References: <20230724120742.2187-1-petrtesarik@huaweicloud.com> <20230724171229.GC11977@pendragon.ideasonboard.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.160.133 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 Laurent! On Mon, 2023-07-24 at 20:12 +0300, Laurent Pinchart wrote: > Thank you for the patch. > > On Mon, Jul 24, 2023 at 02:07:42PM +0200, Petr Tesarik wrote: > > From: Petr Tesarik > > > > In all these cases, the last argument to dma_declare_coherent_memory() is > > the buffer end address, but the expected value should be the size of the > > reserved region. > > > > Fixes: 39fb993038e1 ("media: arch: sh: ap325rxa: Use new renesas-ceu camera driver") > > Fixes: c2f9b05fd5c1 ("media: arch: sh: ecovec: Use new renesas-ceu camera driver") > > Fixes: f3590dc32974 ("media: arch: sh: kfr2r09: Use new renesas-ceu camera driver") > > Fixes: 186c446f4b84 ("media: arch: sh: migor: Use new renesas-ceu camera driver") > > Fixes: 1a3c230b4151 ("media: arch: sh: ms7724se: Use new renesas-ceu camera driver") > > Signed-off-by: Petr Tesarik > > Reviewed-by: Laurent Pinchart > > But given that nobody noticed for 5 years, maybe we should drop > renesas-ceu support from those boards ? Or drop the boards completely ? arch/sh is being maintained again, so it's save to keep these boards. At some point, we're going to convert the architecture to using Device Trees which should reduce the maintenance burden anyways. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913