Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933155AbbLVX3D (ORCPT ); Tue, 22 Dec 2015 18:29:03 -0500 Received: from mail-by2on0088.outbound.protection.outlook.com ([207.46.100.88]:30387 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932205AbbLVX27 (ORCPT ); Tue, 22 Dec 2015 18:28:59 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=David.Daney@caviumnetworks.com; Message-ID: <5679DCB0.4040700@caviumnetworks.com> Date: Tue, 22 Dec 2015 15:28:48 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Will Deacon CC: David Daney , , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , , , Marc Zyngier , Bjorn Helgaas , , Arnd Bergmann , David Daney Subject: Re: [PATCH 2/2] pci, pcie-thunder-pem: Add PCIe host driver for ThunderX processors. References: <1450749222-15966-1-git-send-email-ddaney.cavm@gmail.com> <1450749222-15966-3-git-send-email-ddaney.cavm@gmail.com> <20151222100352.GC32623@arm.com> <5679A1E9.3050902@caviumnetworks.com> In-Reply-To: <5679A1E9.3050902@caviumnetworks.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [64.2.3.194] X-ClientProxiedBy: BLUPR07CA077.namprd07.prod.outlook.com (25.160.24.32) To DM3PR07MB2140.namprd07.prod.outlook.com (25.164.4.146) X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2140;2:oPUcw4RJ+EJAlVbTPG+xuROTJ3TP64gLFm6cHK+5Uo51vS97gYCXv4GelbD4yOR4bRD0f+brmAX0yTHzFw6VwPBZND2H3Mo+IwF+cw26KYiGndzQMYr0ALZYQHQWgN8Y2Lbewg05fmDR0w5zzncTEA==;3:vQh7JkNQ0BGD9Azr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PYDBAacsVTLRf/+dGb3rq82o= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM3PR07MB2140;BCL:0;PCL:0;RULEID:;SRVR:DM3PR07MB2140; X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2140;4:1HSZWlDmLRc7KL6U/+rm+vupGd1v/rp5WKreF6pNKiLX10HMiL4mbm3lXwCKTe0JLIqbJco12foIRMzDTtKOWuhaHPVinZd9YcVqC1V6Q2xGQJHXsv5+7Dt7lwFZgVUqVAjwEW4+eks6jlEhtIRtH03X+ZVXqpmhgowDRU7fD92SUjpgAgoTIh3V3XeUxJbLYQk9EI8cFE+8QWoztedLkfnd0U+UMqfULLiqMFTyJ7aSaC10vZJhgfDkIMKKIZ+MXrwzwwk3QhFQ8N110boWlBHzc4Myl8FdXziFBlbrYrfA/rT/00vcpf50ukqF4Xv0OsPg+BQuhcHhu7Uud2V0csuASoukiCq6i5VgCHHaWfWA6RUc1pwEU/S15/lD35IK X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(479174004)(199003)(189002)(24454002)(377454003)(80316001)(33656002)(2950100001)(92566002)(19580405001)(5008740100001)(87976001)(101416001)(19580395003)(69596002)(110136002)(65816999)(23756003)(5001960100002)(189998001)(77096005)(64126003)(81156007)(97736004)(4001350100001)(122386002)(230700001)(105586002)(47776003)(1096002)(230783001)(59896002)(36756003)(106356001)(586003)(42186005)(40100003)(93886004)(53416004)(3846002)(83506001)(6116002)(50986999)(5004730100002)(65806001)(65956001)(54356999)(87266999)(76176999)(66066001)(50466002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM3PR07MB2140;H:dl.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?iso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jRK2E0UJqRUWZOUDb6Fi47Z?= =?iso-8859-1?Q?5LChCUYRBLLYWe1k1J94rKrPTSnk+16sE7IDBdVSboBhWs6F9CO9Qt3Jes?= =?iso-8859-1?Q?HWrVhCQopV7wExvAlRUzXUZWsCB3SfXuQYCbkKhXg7REWIhmX/BZNvd+73?= =?iso-8859-1?Q?yGzSSsUC/MRBeMetPIKWYXSSMtryk6NWX24s8xybLJDycTGIeOuZKduoQ1?= =?iso-8859-1?Q?yaKlEN9unWvZJmDEuZ3K+pflO8XqcJzI9OxqWs3wA9vCC/bZs+a5QGh0lz?= =?iso-8859-1?Q?Vtcg7fxmeRx59SnMkcR/0wPRk9342fZdcqQ/MBGcxWSxbywsMsEbhZIaxE?= =?iso-8859-1?Q?XAsaiHXJSnDgnTbwq91iRNcRekDXm1Nj1g3V+t6+sdC+H3yaUWcgZk42P2?= =?iso-8859-1?Q?GphyUN6XKDMOi9wNA/t+WMuYDe0Fg8SksZaiwr86ymE29pZbrpjyKrA7GA?= =?iso-8859-1?Q?lL92F210iw0UyhaF2lDZKna+0vQdDcGh/bYBhyO7totvgRQ39ztvzM+Nao?= =?iso-8859-1?Q?pCcjhV8xZwkQibISqiQRzIQu0s8hT?= X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2140;5:F9CcBSXBPCyRb6MiKdnZcqwqwvwcpjGRHDTwvH7A0NLtzXhEkAEw5yq/+CFWV5Lm1N2vS6o2K7Ke99APcfoymEe+yst3nYiy2ClEoGWHflFnqetkKIUBiQ0qYdQ3q73F2cDYZV3GvyHx4DwcBd0oSg==;24:oFw+hSXeXB31/bmsmCAGB8MCGuG1zXV7BzHr2OuOGoDc5shX5TFYDUqj7qMuhKvJnUWqpbWbQbrtDy+dd0TV19+jrR0XHCcAbWEKVCuXdlM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2015 23:28:52.5414 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2140 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1357 Lines: 40 On 12/22/2015 11:18 AM, David Daney wrote: > On 12/22/2015 02:03 AM, Will Deacon wrote: >> On Mon, Dec 21, 2015 at 05:53:42PM -0800, David Daney wrote: >>> From: David Daney [...] >>> diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig >>> index f131ba9..16ed9c3 100644 >>> --- a/drivers/pci/host/Kconfig >>> +++ b/drivers/pci/host/Kconfig >>> @@ -172,4 +172,10 @@ config PCI_HISI >>> help >>> Say Y here if you want PCIe controller support on HiSilicon >>> HIP05 SoC >>> >>> +config PCIE_HOST_THUNDER_PEM >>> + bool "Cavium Thunder PCIe controller to off-chip devices" >>> + depends on PCI_HOST_GENERIC && ARM64 >> >> || COMPILE_TEST ? >> >> (or does the use of writeq get you? If so, maybe COMPILE_TEST && 64BIT) > > Yes, we must use writeq in the driver, I will change it to > ||(COMPILE_TEST && 64BIT) > Actually, it turns out that this is not easily done. For x86, it appears difficult to include asm-generic/pci-bridge.h which includes the needed definition of PCI_PROBE_ONLY. So I think it is not worth supporting COMPILE_TEST David Daney -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/