Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2042412rdb; Tue, 3 Oct 2023 08:34:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFi7a/vC4K7IFOH724RjC2EIWWbux1KGJJu/OgH0sDRa8P7NTJDt07donrMT+Hi7IlR69C4 X-Received: by 2002:a05:6a20:ce9f:b0:161:5718:b785 with SMTP id if31-20020a056a20ce9f00b001615718b785mr12280511pzb.58.1696347281070; Tue, 03 Oct 2023 08:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696347281; cv=none; d=google.com; s=arc-20160816; b=ZEq24iOMx93V/01Ynhl+QzupSgC52YZlYXt5rsPT5gNgck7DSmh/x7OqqQh0iG7y7k /JVDGpxpp4+kOwrU7NEitP4z2LM7gWCcEK5X/lI6Qpj7xu+niFO4rh3HNBoTS13QBIi5 DPK9uYWzIdQfja58e7Tn6SmYdl4dMzar8JnmrDcMtDS5CVV7FcBhxcob9FtqCm44PCSR AeDp4+hfQ9v7dhaPJhPgk7Zx8zz9ULyAO47bSOTdZeHA6EPYRGy0yU7RAm6gzm96Ho2m Ei+2EkNomuUxUP0S6aPeCQ/MnqQhCNdAdRYTGU53+4+0df7zomQ8PUcI6K4cfkiM3px2 CmDg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=kVHRMZOFGQbyhQ84iZ/Y4uKPhQjVQLIbgBxP6GHPHRY=; fh=h9e1PGarGMUhjJmsNa+Y1+tRVjk8NiCJfwe1fCGKRxE=; b=LWqhFTYwgaJ9QOFLaUtjHOtKM+YfM1H7KcujJZdslDq2KlTf3lCzkkRPrlZR6DrJ9+ rlY1gjZMD2wR4kPD/w4He3BcLOmImTsTnifEjg8YLfjcTwBHyhypEQikzoRl0foFhDIw ONG5lK5adH8fJDlnvdsuHAwLCfeCmXxDCgP296hvIBJ6VWwMzdOUGX9iaO6gpPLZr84d p8t025zz3UCnP3I9EQ76uyTMzqqE2cJCdqa9wBV2UC/rOTqeXmcyLDemo4bXVxb+i8Iv lYpH8WiHnb3GauXUIU+wT/JvrRrEgLfMP4ZyAmICCfiUyyRJXRLlVsFnNp9TxDl1A5eB /Mxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=piGjrDRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i185-20020a6387c2000000b00553800fe4dcsi1685697pge.583.2023.10.03.08.34.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 08:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=piGjrDRT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0AE8C8286EB8; Tue, 3 Oct 2023 08:34:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231748AbjJCPej (ORCPT + 99 others); Tue, 3 Oct 2023 11:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbjJCPei (ORCPT ); Tue, 3 Oct 2023 11:34:38 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0EB83; Tue, 3 Oct 2023 08:34:35 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id C36EBC000A; Tue, 3 Oct 2023 15:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696347273; h=from:from: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=kVHRMZOFGQbyhQ84iZ/Y4uKPhQjVQLIbgBxP6GHPHRY=; b=piGjrDRThUkU20YX++x3hInugNyWUvr8hKVcyGw27IDHLwC5psgzkydvNN+q1SfVtDS4Ft Nph0jn85VDs+c4uyvC8vXDZ9z49ujTP7ptwntCcYkOACLoW6sGxCsQDo18KbhOlnFoZvj9 zqEEm5I9sOx7PCiGJAh3wTnb/Q5nwrhCLA6Raf1tq7lkde4PjNpehS2okf8TjchQ4FKOLQ AFM4oAvkqkNBqCUni6Z4aPfrbIL/9tbkr2GZF/qW0a8oNEU2Aasdf5jiKuEBs5MAhZEZA5 Xu4AvsZBQBi4YFwL6gIs2cmcyvii1eV7G1hBsK/4Qi8D3tnY7yAvLIhpVz1nRw== Date: Tue, 3 Oct 2023 17:34:32 +0200 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Serge Semin Cc: Cai Huoqing , Manivannan Sadhasivam , Vinod Koul , Gustavo Pimentel , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Herve Codina Subject: Re: [PATCH v2 4/5] dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup Message-ID: <20231003173432.18480fa1@kmaincent-XPS-13-7390> In-Reply-To: <2yh3lus7qqhvewva6dr4p2g7azbgov4ls57xvzefbrw24h2t7m@cbx26pwj73zn> References: <20231003121542.3139696-1-kory.maincent@bootlin.com> <2yh3lus7qqhvewva6dr4p2g7azbgov4ls57xvzefbrw24h2t7m@cbx26pwj73zn> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com 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_BLOCKED, SPF_HELO_PASS,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 08:34:40 -0700 (PDT) On Tue, 3 Oct 2023 18:20:23 +0300 Serge Semin wrote: > On Tue, Oct 03, 2023 at 02:15:42PM +0200, K=C3=B6ry Maincent wrote: > > From: Kory Maincent > >=20 > > The Linked list element and pointer are not stored in the same memory as > > the HDMA controller register. If the doorbell register is toggled before > > the full write of the linked list a race condition error can appears. > > In remote setup we can only use a readl to the memory to assured the fu= ll > > write has occurred. > >=20 > > Fixes: e74c39573d35 ("dmaengine: dw-edma: Add support for native HDMA") > > Signed-off-by: Kory Maincent > > --- > >=20 > > Changes in v2: > > - Move the sync read in a function. > > - Add commments =20 >=20 > Note you need to resubmit the entire series if any of its part has > changed. So please add these patches to your patchset (in place of the > 4/5 and 5/5 patches I commented) and resend it as v3. Alright. Should I wait for Cai's response for patch 1/5 before sending v3. He seems = to never having woken up in our discussions.