Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp511510imn; Thu, 28 Jul 2022 07:30:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vBAcmZsWp9BX+OzjbUxWfr4GTp5R0I7axQcIjiyh8ZdVe4rVM4jMrcVamIGTec0lfPc5OW X-Received: by 2002:a17:90b:4f41:b0:1f2:a900:a1ea with SMTP id pj1-20020a17090b4f4100b001f2a900a1eamr10472661pjb.131.1659018630614; Thu, 28 Jul 2022 07:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659018630; cv=none; d=google.com; s=arc-20160816; b=nxB0OcKl3U1rPIZVAWRovfuPLlMGbM1it70T3179FuuFl7leYH9IYZZFPsECVuwdvj xVmKwLagsTI/JsjPoUgFqJPEOToEPQt13ICc+qdnOS57KciKfVHengC3ZdviUZ1DGm8x 1TibTfZZb5NWl5EraC1j1Dqgf52lw+Vugk6gkey1wi8s5xq8uq08Enwz5oOIEp8+VQl6 9Hm2I0fhIydWnaXQLnHLuw1QgOr5xVgdKx0IYPwVIgVn6iPbukOlgp2Wg+ZyPdSsxE0o H58tvEgf2tvMqQKYnpRjyIX0H/JAFhLt0L3lvgo35HjP2/XSjavL9XlEtHYBdKLTb0pi Shbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XrrrW4++UP8Z1/g4RPl+VWHxRE3xR4vShEJqGT7s7ks=; b=Zm2UNN9R3qvD/3Ear3xNH71HOozAjrKa7NmFD83qhFRJDaqaYI3St8+RGJlwQe2+Na l62Z6OlpRB7tYPIcBZYhn7RKvGbcrVLWsMJfDVUvt+WLG3nFbxPRiLaXgoLBBLRhXPI7 GyFJKO156J0di4DokX5yWG+DtvO9RVFRf1dQ3Aj532xN4lQhI4xbfdg6Peg3GfmYxSh3 UIZFaEzbybJDXwKxBG3CZm9+PQisFS0QvTKchLkrr1N+LluIJW61VYSysnXUK0qu3re3 FZ4iq+06seKqcv589j5T9vwSO+fB6zQ9g47EWD5EGqZOW1fuPTdsYARbWRivylBASu13 gszA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="jFPW+/cA"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay4-20020a1709028b8400b0016d2cdca8aasi1094676plb.448.2022.07.28.07.30.13; Thu, 28 Jul 2022 07:30:30 -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=@gmail.com header.s=20210112 header.b="jFPW+/cA"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbiG1OR5 (ORCPT + 99 others); Thu, 28 Jul 2022 10:17:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiG1ORz (ORCPT ); Thu, 28 Jul 2022 10:17:55 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E448751A07; Thu, 28 Jul 2022 07:17:53 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id s14so2123538ljh.0; Thu, 28 Jul 2022 07:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XrrrW4++UP8Z1/g4RPl+VWHxRE3xR4vShEJqGT7s7ks=; b=jFPW+/cAzl1wgsBZ+OnwY61OHhJWd86DKN+6Hj9sDgImdFglHPnhs8rGRYKMopLwh2 PP5m5jW/eyQ0JXNxDROJXZx7bseJaqd3LlrUXK4kJGpdqZO/fkoyYSnMl50GLitzHHGj B5v7Xxvi1oliv6t4WEAeXjfTuyl05VDDBsH5rzIZV5N8JREMhgAoPL2tqoz77xNc9eZK KDTP7GmuURxC+8nJEnbcPpAAoCqTq8Czcy2280q3ecj0jpzMX4hKqTLvMYsUYM1ucobf gt/wk0eEjIAMz0bve1vIIpIeDVso6bhJrYeJjdPWqIfYk7IidBlwbKS/9x7P9DJsh6KY FHAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XrrrW4++UP8Z1/g4RPl+VWHxRE3xR4vShEJqGT7s7ks=; b=eNiuYQEzBLeZDhspLo3ADltqQ/bC1kWVfar/xHdUL31MGh6ZS9hkLhkUYfR0vFswNc /dMayzSxkERYZ4j/IOyqy7bdnH4HJh/H1xE9vhAUFnF5b5u4kZtWptfFaYQketRJFRuk NJNlZZ+lm2JiSKRUmFvp2MfoDe0+yGSgbvrkj2y0iqT5H9HSYOHuhI+GZ0T9WVd4G8zT eZMIH4A31hwiFink4DBzGf4jR+5T9+scCBkSZywcwEd1Vy7xypdxFqmoWaeP8Uh7IaQ/ T6P6yBnbtImPs1Rno4aIc3HuH1hLMzqzAhWkQRjYdkxvw57jT/Tmu/7OPuCEbYVSRNyy ERvA== X-Gm-Message-State: AJIora+3HyBfh6BYw4RU7jy1bY/19GVSqWAoQjy5PCoBBOyqTZfTrNsV GbLxlxai85NKaIQZyYWKB9c= X-Received: by 2002:a2e:6a18:0:b0:25e:2f3f:ba71 with SMTP id f24-20020a2e6a18000000b0025e2f3fba71mr786247ljc.352.1659017871652; Thu, 28 Jul 2022 07:17:51 -0700 (PDT) Received: from mobilestation ([95.79.140.178]) by smtp.gmail.com with ESMTPSA id e14-20020a2e500e000000b0025df04af0f0sm168583ljb.51.2022.07.28.07.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 07:17:51 -0700 (PDT) Date: Thu, 28 Jul 2022 17:17:48 +0300 From: Serge Semin To: Vinod Koul Cc: Serge Semin , Krzysztof Kozlowski , Gustavo Pimentel , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Jingoo Han , Frank Li , Manivannan Sadhasivam , Alexey Malahov , Pavel Parkhomenko , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/24] dmaengine: dw-edma: Add RP/EP local DMA controllers support Message-ID: <20220728141748.karft7dflr5e3vlp@mobilestation> References: <20220610091459.17612-1-Sergey.Semin@baikalelectronics.ru> <20220728113359.hs54apv22bo5bnyr@mobilestation> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On Thu, Jul 28, 2022 at 06:18:30PM +0530, Vinod Koul wrote: > On 28-07-22, 14:33, Serge Semin wrote: > > On Thu, Jul 21, 2022 at 05:46:10PM +0530, Vinod Koul wrote: > > > On 10-06-22, 12:14, Serge Semin wrote: > > > > This is a final patchset in the series created in the framework of > > > > my Baikal-T1 PCIe/eDMA-related work: > > > > > > > > [1: In-progress v4] PCI: dwc: Various fixes and cleanups > > > > Link: https://lore.kernel.org/linux-pci/20220610082535.12802-1-Sergey.Semin@baikalelectronics.ru/ > > > > [2: In-progress v3] PCI: dwc: Add hw version and dma-ranges support > > > > Link: https://lore.kernel.org/linux-pci/20220610084444.14549-1-Sergey.Semin@baikalelectronics.ru/ > > > > [3: In-progress v3] PCI: dwc: Add generic resources and Baikal-T1 support > > > > Link: https://lore.kernel.org/linux-pci/20220610085706.15741-1-Sergey.Semin@baikalelectronics.ru/ > > > > [4: In-progress v3] dmaengine: dw-edma: Add RP/EP local DMA support > > > > Link: ---you are looking at it--- > > > > > > > > Note it is very recommended to merge the patchsets in the same order as > > > > they are listed in the set above in order to have them applied smoothly. > > > > Nothing prevents them from being reviewed synchronously though. > > > > > > > > Please note originally this series was self content, but due to Frank > > > > being a bit faster in his work submission I had to rebase my patchset onto > > > > his one. So now this patchset turns to be dependent on the Frank' work: > > > > > > > > Link: https://lore.kernel.org/linux-pci/20220524152159.2370739-1-Frank.Li@nxp.com/ > > > > > > > > So please merge Frank' series first before applying this one. > > > > > > > > Here is a short summary regarding this patchset. The series starts with > > > > fixes patches. We discovered that the dw-edma-pcie.c driver incorrectly > > > > initializes the LL/DT base addresses for the platforms with not matching > > > > CPU and PCIe memory spaces. It is fixed by using the pci_bus_address() > > > > method to get a correct base address. After that you can find a series of > > > > the interleaved xfers fixes. It turned out the interleaved transfers > > > > implementation didn't work quite correctly from the very beginning for > > > > instance missing src/dst addresses initialization, etc. In the framework > > > > of the next two patches we suggest to add a new platform-specific > > > > callback - pci_address() and use it to convert the CPU address to the PCIe > > > > space address. It is at least required for the DW eDMA remote End-point > > > > setup on the platforms with not-matching CPU/PCIe address spaces. In case > > > > of the DW eDMA local RP/EP setup the conversion will be done automatically > > > > by the outbound iATU (if no DMA-bypass flag is specified for the > > > > corresponding iATU window). Then we introduce a set of the patches to make > > > > the DebugFS part of the code supporting the multi-eDMA controllers > > > > platforms. It starts with several cleanup patches and is closed joining > > > > the Read/Write channels into a single DMA-device as they originally should > > > > have been. After that you can find the patches with adding the non-atomic > > > > io-64 methods usage, dropping DT-region descriptors allocation, replacing > > > > chip IDs with the device name. In addition to that in order to have the > > > > eDMA embedded into the DW PCIe RP/EP supported we need to bypass the > > > > dma-ranges-based memory ranges mapping since in case of the root port DT > > > > node it's applicable for the peripheral PCIe devices only. Finally at the > > > > series closure we introduce a generic DW eDMA controller support being > > > > available in the DW PCIe Root Port/Endpoint driver. > > > > > > > > Acked-By: Vinod Koul > > > > Thanks, Vinod! The series will be merged in after the patchset > > [PATCH vX 00/17] PCI: dwc: Add generic resources and Baikal-T1 support > > Link: https://lore.kernel.org/linux-pci/20220610085706.15741-1-Sergey.Semin@baikalelectronics.ru/ > > is done with Rob' review (I failed to reach him with a few issues > > lately). I'll add your ab-tag to this one on the next patchset re-spin > > (rebase will be likely needed). > > You can cc Krzysztof (cced him0, maybe he can help with review of DT > parts Thanks for the suggestion. I'll Cc him in the next series re-spin. -Sergey > > thanks > -- > ~Vinod