Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8286489ybl; Thu, 16 Jan 2020 13:58:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwsOxnYKx1jgaXBlrTiO2JuaY//lZAhdh0tmMfCvzltzfm7Z/tf9t63CqB1lMpL0SZF6Rx8 X-Received: by 2002:aca:4ec5:: with SMTP id c188mr1063682oib.1.1579211917607; Thu, 16 Jan 2020 13:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579211917; cv=none; d=google.com; s=arc-20160816; b=O6oiDRSWZ+xZhPnLBxL5i2RPDbrh7fS3ZsnuOP1xTVMxvLrgRrMBpW8CH8IDi+i8WU NX8Lace/N3B05jIG3beXdUxlh9JdbgIlBuGUeKXmfRA0mUMP1U/K+xaci+dI5c+wXXwI y2KjvHYSlAfLKGeg3aAlzsLvbgJlu0Jld7OKpUF0PaCP2LC36P90eBKESBuCBUYwITQA SLhcMVyW5kPkaPlptxoo0iZN4fJgMjliKTsANau/p0EKMVTqWBKUQkTAgaHrrTK88o7x UmqAFajPSediiOhsTGKfz1FJBQhGIV2n9sxV9TUE4mgo5Dt9gLrUOsnECJuCtK4nCEra KbEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hfxzNASfjnng1sY6kKvhYD/Q1iFNO8maPXvGYEY4Eqo=; b=MG8YPqXTab19r40avJQXPLLlv3NR3K4tNQbPQYLyIO/5cy4EZP0p1zecVv+aWEi/tr dWyAeq7E4gbN4ocwpYtK6I/QElmdnsMurUUWjG+u64zUDU9rzXYcSNs3qzU9+5gEMyQD aTvsMLKMgBaKx88Ci3W2fi3FMf/dfqawEb2uycZc0wSEUam49jxezfHceURV4eZP95CG yUfOblha2718kLqFRspmTav6hOfjpWEjb/2JNY3R6y+iDfFulY5kYYwCaADlyaYVAWHB 2dqbewP3sxTe75LwTj1AXZCRX8dnmcd1afh0kTUBozglpqvFGCginPZfIzJq2/XWvU2Q lFSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=RnFh97nX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i10si13839574otk.195.2020.01.16.13.58.24; Thu, 16 Jan 2020 13:58:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=RnFh97nX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2391467AbgAPRS0 (ORCPT + 99 others); Thu, 16 Jan 2020 12:18:26 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:8812 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391384AbgAPRSR (ORCPT ); Thu, 16 Jan 2020 12:18:17 -0500 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 16 Jan 2020 09:17:19 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Thu, 16 Jan 2020 09:18:15 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Thu, 16 Jan 2020 09:18:15 -0800 Received: from [10.24.37.48] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 16 Jan 2020 17:18:11 +0000 Subject: Re: [PATCH V3 0/2] PCI: Add MCFG quirks for Tegra194 host controllers To: , , , , , , CC: , , , , , , References: <20200106082709.14370-1-vidyas@nvidia.com> <20200110191500.9538-1-vidyas@nvidia.com> X-Nvconfidentiality: public From: Vidya Sagar Message-ID: Date: Thu, 16 Jan 2020 22:48:08 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200110191500.9538-1-vidyas@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1579195039; bh=hfxzNASfjnng1sY6kKvhYD/Q1iFNO8maPXvGYEY4Eqo=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=RnFh97nXGo9YJI9RPveweovTrQ/kf8VhPfkrpPo/P7W/Gig3mlah1NDuwcLh2iENH oxoDM+xo0MBdor2PbuvfgM9pEKkP9KX7JO59RRC5A9Cum7ySTTNpMTrZO1Wg7ZMIhp giRP5G1kuCIihLvVs3TaPqIriL5EJXI96iXShpzddAh20X23RC/vW3rP4fOmKWY32G KGYgMAa7tPWxqXVzBW+YkP1k++Ih+45CBAwJZywtCa64oYRJu6vRd71Pif29yksOXm S8il3C2RX4pLr30B0eKOg/9sXJdSpBzt8zEUmqxZOdeiQYpsdk5ItnPWg6j9+Kh8/z ZbJAsKG5TEvMQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, Could you please review this series? Thanks in advance, Vidya Sagar On 1/11/20 12:44 AM, Vidya Sagar wrote: > The PCIe controller in Tegra194 SoC is not completely ECAM-compliant. > With the current hardware design limitations in place, ECAM can be enabled > only for one controller (C5 controller to be precise) with bus numbers > starting from 160 instead of 0. A different approach is taken to avoid this > abnormal way of enabling ECAM for just one controller but to enable > configuration space access for all the other controllers. In this approach, > ops are added through MCFG quirk mechanism which access the configuration > spaces by dynamically programming iATU (internal AddressTranslation Unit) > to generate respective configuration accesses just like the way it is > done in DesignWare core sub-system. > To increase the size of ECAM, a device-tree change is pushed in this series > to move the IO window from 32-bit PCIe aperture to 64-bit PCIe aperture leaving > the entire 32MB of 32-bit aperture for configuration space access. > > V3: > * Pushed a device-tree change in the series to enable more space for ECAM > > Vidya Sagar (2): > arm64: tegra: Re-order PCIe aperture mappings to support ACPI boot > PCI: Add MCFG quirks for Tegra194 host controllers > > arch/arm64/boot/dts/nvidia/tegra194.dtsi | 36 ++++---- > drivers/acpi/pci_mcfg.c | 7 ++ > drivers/pci/controller/dwc/Kconfig | 3 +- > drivers/pci/controller/dwc/Makefile | 2 +- > drivers/pci/controller/dwc/pcie-tegra194.c | 102 +++++++++++++++++++++ > include/linux/pci-ecam.h | 1 + > 6 files changed, 131 insertions(+), 20 deletions(-) >