Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1170879ybg; Tue, 2 Jun 2020 03:12:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkpiRmkCF65sYL8d5o0bQpI+6d/ds899aV8ue3REucfnPZx5RNVea6ploNvc1ccafKJpRI X-Received: by 2002:a17:907:9d3:: with SMTP id bx19mr10022207ejc.461.1591092764000; Tue, 02 Jun 2020 03:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591092763; cv=none; d=google.com; s=arc-20160816; b=zUuPQ/IPhn7W/RZi/5Ly9YsiSt4AGkM9nRl5fQ1xhKY1POugzUqfg6pYxgQc31jUIP EbxxCsnEI/ydjdCZ6HAtEEg9Lp482e8uSu6k3Tby5ZlKJFONeZKuYsCrG+Rsa8aawiv6 xYUNJXSbd273D8+LnDKsGJmzy4cjzsIoykrLCIUWQknq7Zvv4mYSKOk6K2xMSvn02i4j dU48NFDUtC885BruQAwWUNdw/6KOZ62qUj6mQZVKhIe06wzH8NFE91nJjHV08PHMessY yN7g8xkiSh+oFWnwzyr1IVUNRe6wuuSWRJjwn1PI1fn4mwReuDmbpEYsWDBQmVuF1bWI NPpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:mime-version:message-id :date:subject:cc:to:from; bh=1uGn02QKaOXJYVBhwuDHd/6FbkjwMiXrYVwOxseNzTk=; b=TuMHCNksXXGMCr4+9EtobubAr/isz36N2TjCwPywe5aGpBDyAu3GjPjlx58G3ogLd0 Ds0xkmZq7tzNCxInCfRCLDkHjbLBpohJU/ikYnEsPbJgc4HggQC96l6mXVWGFkuqKrBz 5PiRgaDJ3DRzK53H3POWWKt8gnyCYvli9su43elR7DSmEW6YTY0mHqDrz7Il+78KvO3A RkR3wZlYfbyXayq/AS/QRh8nMJq8T2Sw38ChG2/eMFn9CBobWBZEqvLUWVLWiv/CHgQG tUbfyh7QMhUzcIwB0A2qsvII9+LCrVJshWJfp0DKFoKxdf7DnhJFEwRc7XfHM31eBEQn Fscw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hyNPaTpU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me26si1177806ejb.444.2020.06.02.03.12.21; Tue, 02 Jun 2020 03:12:43 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hyNPaTpU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727782AbgFBKKX (ORCPT + 99 others); Tue, 2 Jun 2020 06:10:23 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:1496 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbgFBKJv (ORCPT ); Tue, 2 Jun 2020 06:09:51 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 02 Jun 2020 03:08:14 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 02 Jun 2020 03:09:50 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 02 Jun 2020 03:09:50 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Jun 2020 10:09:49 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 2 Jun 2020 10:09:49 +0000 Received: from vidyas-desktop.nvidia.com (Not Verified[10.24.37.48]) by rnnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 02 Jun 2020 03:09:48 -0700 From: Vidya Sagar To: , , , , , , , CC: , , , , , Subject: [PATCH 0/2] PCI: dwc: Add support to handle prefetchable memory separately Date: Tue, 2 Jun 2020 15:39:38 +0530 Message-ID: <20200602100940.10575-1-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1591092494; bh=1uGn02QKaOXJYVBhwuDHd/6FbkjwMiXrYVwOxseNzTk=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: X-NVConfidentiality:MIME-Version:Content-Type; b=hyNPaTpUhys+jzxBMTZGgyl2EnY+0o8pMtHpek97IEbLD0mCOohZsQAesYVbw6s6f pbWQ0yhJWElOKDV7Oy6QKZTUP/uZ4i+cTKnqlnCDc/mBQN/i3Uqk6nsBT+63On9Nh3 wIlKJ9sZ7jrhT1tbVkCi8IdsqyDnSY9H4uyvm+vxPDfR3qG2kOGqdBz+ZeGQ6+btRI adGWhKXMc8sGSQ3bfWOgoQhFWjZwfw1PgneB64YH2yESUr49heinCpBlzgb4n5eLU2 VotG6UN3bA5a0zTeGrxSTUataby/aF3+fpsMcWcD0x7+yoYxaHJlq7YagcacW67tSo UA/reLv1yp0fw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Vidya Sagar (2): PCI: dwc: Add support to handle prefetchable memory separately PCI: dwc: Use ATU region to map prefetchable memory region .../pci/controller/dwc/pcie-designware-host.c | 46 ++++++++++++++----- drivers/pci/controller/dwc/pcie-designware.c | 6 ++- drivers/pci/controller/dwc/pcie-designware.h | 8 +++- 3 files changed, 45 insertions(+), 15 deletions(-) -- 2.17.1