Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A8C0C64EC4 for ; Wed, 22 Feb 2023 16:17:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232753AbjBVQRG (ORCPT ); Wed, 22 Feb 2023 11:17:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232195AbjBVQRE (ORCPT ); Wed, 22 Feb 2023 11:17:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4E563D92D; Wed, 22 Feb 2023 08:16:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6BC30B815FE; Wed, 22 Feb 2023 16:16:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56F13C4339B; Wed, 22 Feb 2023 16:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677082599; bh=oSY7Y9Zfx4h7Oesy7kW3oqZLMo+eNjfwJ8NKRdJV7P8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rgt10Cg3vw91PKKDI8NVq1IUBtcIwA4nFqncr6kVdagud6EGFgXr8SREpdFYxKwXW QvSy9okHFWIIj4P3TnGT1Kqlm8mE+pXi53LYDimtAIfq1ctqXwDumvS339Dg9MSrFj Gg0CYteekRxFGmVux453qmLav9Ccwpr8dxJbnpRTYijjToVcozliL01mZPOokvlWue VfriYexDmJILzCE0kxwq/Zo9VO3bvRfJgkdP0j5bkNRoGCW3N23FDWUhbwlySznhOx Xlt46N3FreZ4eMBjP9TB13wLJFQ5BARH73eC/+bZOxHWpb54SbGrFSfaMBtKKcW792 K9N/nWVOl+05Q== Date: Wed, 22 Feb 2023 21:46:35 +0530 From: Vinod Koul To: Bjorn Helgaas Cc: Gustavo Pimentel , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Robin Murphy , Jingoo Han , Frank Li , Manivannan Sadhasivam , Serge Semin , Alexey Malahov , Pavel Parkhomenko , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , caihuoqing , Yoshihiro Shimoda , linux-pci@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Serge Semin Subject: Re: [PATCH v9 23/27] dmaengine: dw-edma: Add mem-mapped LL-entries support Message-ID: References: <20230113171409.30470-24-Sergey.Semin@baikalelectronics.ru> <20230221230054.GA3736402@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230221230054.GA3736402@bhelgaas> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-02-23, 17:00, Bjorn Helgaas wrote: > On Fri, Jan 13, 2023 at 08:14:05PM +0300, Serge Semin wrote: > > Currently the DW eDMA driver only supports the linked lists memory > > allocated locally with respect to the remote eDMA engine setup. It means > > the linked lists will be accessible by the CPU via the MMIO space only. If > > eDMA is embedded into the DW PCIe Root Ports or local End-points (which > > support will be added in one of the following up commits) the linked lists > > are supposed to be allocated in the CPU memory. In that case the > > LL-entries can be directly accessed meanwhile the former case implies > > using the MMIO-accessors for that. > > > > In order to have both cases supported by the driver the dw_edma_region > > descriptor should be fixed to contain the MMIO-backed and just > > memory-based virtual addresses. The linked lists initialization procedure > > will use one of them depending on the eDMA device nature. If the eDMA > > engine is embedded into the local DW PCIe RP/EP controllers then the list > > entries will be directly accessed by referencing the corresponding > > structure fields. Otherwise the MMIO accessors usage will be preserved. > > > > Signed-off-by: Serge Semin > > Hi Vinod, I just realized that I didn't solicit your ack for this > patch and the following one (which I ended up splitting into two), and > I hate to ask Linus to pull them without your OK. > > Here are the current versions in the PCI tree: > > https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=b47364a83054 > https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=157ce95927c1 > https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git/commit/?id=536e6529e975 > > If you ack them, I will update them to reflect that. Thanks for letting me know: Acked-by: Vinod Koul -- ~Vinod