Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3346271pxk; Mon, 7 Sep 2020 10:11:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8axloGLPYDGbWzQTsgC4+lFedzQPrAHTP/uo+VOARvgbmM9dPVuYXROyKj60M5R5SLve9 X-Received: by 2002:a17:906:6411:: with SMTP id d17mr3792041ejm.93.1599498676771; Mon, 07 Sep 2020 10:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599498676; cv=none; d=google.com; s=arc-20160816; b=wUYnU+JKoK1wQ2LgRioGZleqsNJV4sdt7aYyBDEYKEPgzaAfjxRYOJCh6uznEv81tl LfKCsiNuhRVAgMRN4sqrAtedC7XRhzCC/DNbL512jBTMKX8WTwdqXHgq/wqt3266K+rb ojWRIu7QyiV7mBnQxhl1kZofTtft0mCMRYRiMbgrZWAzBFmDGFwFQxN4vWP/qWQaLUBI wBwUXn5reh3E6mwOBx1Lcui1S6Y/8OozmHJP7TSvMeeBf4wIeaw7SEbzdDjCAgHfA3Nc a1MLT/e5H46aDg9AWAH9I+kCR0eufJLtq70HlV+2bFTBYrXRZMwHAUYq9k0HcD41Gpz0 S5qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TxrkaDPz/0/zHcBwtOHMQQWrnYc/KXkXUxbzxdlVWHU=; b=QHb4GbQwRm1sTMcZ33B9x8wZsvk3Axo/gSOPZii4oqf1HHIKxkWUJX6BhJCGfvvvDG Jd1A1SGGMo8qv6aOKLl/6pntynigPHoTYYmNVJLBzElEmOagXMsQkQyH1LhH2tY1DRTR r29S6r9KgUVFoxU0QmiY5sYTirdpxtk9m5+kpk5puZPS0Wq+FOadea8dXlsKqCCBNIcJ 7//UWkWX+DbFOJUMU/Jyrr+taqrOCk+gcaODDbph14Yxcy6ZzZ2uImN41yMtrMVnwqCi n5BsRXrF1HXixxk3yvlRb4XAy7zq7YiRzRmI6yIl0B5jNCzKKAxAtxy41I8tjM3w7vX5 dhtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j33si9508383edc.537.2020.09.07.10.10.54; Mon, 07 Sep 2020 10:11:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730828AbgIGRKX (ORCPT + 99 others); Mon, 7 Sep 2020 13:10:23 -0400 Received: from foss.arm.com ([217.140.110.172]:41654 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730662AbgIGRKL (ORCPT ); Mon, 7 Sep 2020 13:10:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1B1BB31B; Mon, 7 Sep 2020 10:10:11 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 39C633F66E; Mon, 7 Sep 2020 10:10:09 -0700 (PDT) Date: Mon, 7 Sep 2020 18:10:06 +0100 From: Lorenzo Pieralisi To: Vidya Sagar Cc: Gustavo Pimentel , "jingoohan1@gmail.com" , "bhelgaas@google.com" , "amurray@thegoodpenguin.co.uk" , "robh@kernel.org" , "thierry.reding@gmail.com" , "jonathanh@nvidia.com" , alan.mikhak@sifive.com, kishon@ti.com, "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kthota@nvidia.com" , "mmaddireddy@nvidia.com" , "sagar.tv@gmail.com" Subject: Re: [PATCH 0/2] PCI: dwc: Add support to handle prefetchable memory separately Message-ID: <20200907171006.GD10272@e121166-lin.cambridge.arm.com> References: <20200602100940.10575-1-vidyas@nvidia.com> <389018aa-79c8-4a1e-5379-8b8e42939859@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 06, 2020 at 10:05:06AM +0530, Vidya Sagar wrote: > > > On 18-Jun-20 12:26 AM, Vidya Sagar wrote: > > > > > > On 02-Jun-20 10:37 PM, Gustavo Pimentel wrote: > > > External email: Use caution opening links or attachments > > > > > > > > > On Tue, Jun 2, 2020 at 11:9:38, Vidya Sagar wrote: > > > > > > > In this patch series, > > > > Patch-1 > > > > adds required infrastructure to deal with prefetchable memory region > > > > information coming from 'ranges' property of the respective > > > > device-tree node > > > > separately from non-prefetchable memory region information. > > > > Patch-2 > > > > Adds support to use ATU region-3 for establishing the mapping > > > > between CPU > > > > addresses and PCIe bus addresses. > > > > It also changes the logic to determine whether mapping is > > > > required or not by > > > > checking both CPU address and PCIe bus address for both prefetchable and > > > > non-prefetchable regions. If the addresses are same, then, it is > > > > understood > > > > that 1:1 mapping is in place and there is no need to setup ATU mapping > > > > whereas if the addresses are not the same, then, there is a need > > > > to setup ATU > > > > mapping. This is certainly true for Tegra194 and what I heard > > > > from our HW > > > > engineers is that it should generally be true for any DWC based > > > > implementation > > > > also. > > > > Hence, I request Synopsys folks (Jingoo Han & Gustavo Pimentel > > > > ??) to confirm > > > > the same so that this particular patch won't cause any > > > > regressions for other > > > > DWC based platforms. > > > > > > Hi Vidya, > > > > > > Unfortunately due to the COVID-19 lockdown, I can't access my development > > > prototype setup to test your patch. > > > It might take some while until I get the possibility to get access to it > > > again. > > Hi Gustavo, > > Did you find time to check this? > > Adding Kishon and Alan as well to take a look at this and verify on > > their platforms if possible. > Hi Kishon and Alan, did you find time to verify this on your respective > platforms? Yes please. I would like to merge this code, in preparation for that to happen mind rebasing the series against my pci/dwc branch with Rob's suggested changes implemented ? Thanks a lot, Lorenzo