Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932674AbcLHQfD (ORCPT ); Thu, 8 Dec 2016 11:35:03 -0500 Received: from mail-dm3nam03on0049.outbound.protection.outlook.com ([104.47.41.49]:59936 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753370AbcLHQfB (ORCPT ); Thu, 8 Dec 2016 11:35:01 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Date: Thu, 8 Dec 2016 17:34:33 +0100 From: Robert Richter To: Bjorn Helgaas CC: Tomasz Nowicki , Ard Biesheuvel , Jayachandran C , Gabriele Paoloni , Arnd Bergmann , Rafael Wysocki , , Jon Masters , Duc Dang , Will Deacon , David Daney , Jeremy Linton , Linux Kernel Mailing List , Linaro ACPI Mailman List , , Christopher Covington , Catalin Marinas , Marcin Wojtas , Andrea Gallo , linux-arm Subject: Re: [Linaro-acpi] [PATCH V1 1/2] PCI: thunder: Enable ACPI PCI controller for ThunderX pass2.x silicon version Message-ID: <20161208163433.GK10776@rric.localdomain> References: <1479201298-25494-1-git-send-email-tn@semihalf.com> <1479201298-25494-2-git-send-email-tn@semihalf.com> <20161201002812.GB9409@bhelgaas-glaptop.roam.corp.google.com> <30ad6c65-4a4a-6346-00f6-11250133a251@semihalf.com> <20161202104500.GE10776@rric.localdomain> <20161202162743.GB9903@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161202162743.GB9903@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [92.229.90.172] X-ClientProxiedBy: AM4PR02CA0002.eurprd02.prod.outlook.com (10.165.239.140) To SN1PR07MB2350.namprd07.prod.outlook.com (10.169.127.16) X-MS-Office365-Filtering-Correlation-Id: 68987553-fa45-4dee-8c16-08d41f88265f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR07MB2350; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2350;3:ES55nUJ3zGa3enkLQptit+W5pT94/A3zb5w8DdFTTRiCbvIjm0ovhgX37kaIJQBKl12pd2lqydiSZI2FK5Tb7KVbtck5F7+qqfe/HZMlJ6Mbr8SOSR3e7en1eGg1OSyq2Z0v6rC7kbnpDsmGtuo3d2WHbEUbFG8OAtUen+LO4by2LTLBOhDMyZiKptaeteoQZTShMuqEMJX98cnZiGT85HnloFIOQvYrQVoYliBJ4HKtUHqOex8H/MHDRRx4y57wJbdvYeFb8oRHe7i4L0g3xw==;25:O6IBaWKCmmod+hf1Vn52cMQLxf57ZUXhs8xvLezDnGpq38+jlzHDxyD7g8cYtlUzQWaqyKmdcScBMFmUuShELcHPcoD2AdAWNBygyl+gDaz9J+Lx2971OgLQ8lVCT7EjxxuTLXvOx/KS+vzmX25DIZ05CdutT+AH89P9At5KNFi89sc8xTx7k44uXeIS708mHhW6iwLxHquV0GUEJLq5eYFT45FPbVS7iiez2+WWPAqR5/K8ggeGTBA3LyRZZiuhRFs+w3BJWEOkIa+DbA2dmDSF735tx0Xd2RIuhs/pCosEENiPO2Rw+OqYsIbcjSmJufqMGSpcLILr+BgonxuE8HtQt/FMhwhjZZJo9BHxYKfFwUX9oDo8jYR4diIMyma9vbaask0Zh41CpVcNbgpMKr5ngaqQFrym68MnAI8THg8eu5AH/A1tPDHw6AaXAsVf4YcELrYcS1iie9APFUPL/w== X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2350;31:f45j2FM8ICeojQASEZ0EpzUNUoOkyNMNVr/9llFWg1QmENbQj60wh6zUzhTCHCE9bNmuZOKjxDPZ1caoSqbSoDuz1EWxk5qpyZaM02l5/LTVLTLjnIcWsMJ73k/2ykl15Ns8G+reL0rvleyt7y6kMW/srQVsC7+7ujfpgdwpW73SI+BOoo1T0U1P/za5eEsGTkKCKrOMvxIqV7Q6jj1a8aCKH8BRBSfZmrIBL5ZSBneCuduw0ljiqMmEg5c+ufHURelc4NHyR44k0FTgAv4HkA==;20:M73cfUxEOLkVLue6e9+hVSU4r8TWZYDpyMIaWiACqgLrJz7PKEdR31BmEkwtO7kHBfm96MoEM0w3g8+OsxZV6zBHvGOnIVCfYIYOO5WaXNMcZai32Cs1kpN/JTAEBrUPgcu1UJe8oXEpRERMm21ib11oDcXvziXtKnhG7lPYIaY4EH8eubJDmfL35WXR1NtXHUmvo3bIIH4+j/i/xmF7Dswfd95PqNzjh6OjVj98wWfqd8qPwRMBKps6Brn3hMopAfLx+gPt+eok+FDgnsvp6x/twoL5LI8s/JKRRxnbR9HXunrcS+9J+Q8yq6tUPvE2/Lr9J0/NJkrgA8T7bpxCnkC/b6mjmdyoVa2tlJkO9g4lAEXrSkuEBPBey7/kUf66/bqTXH+GOnc6tN4gfiEKh/zfxVazJ4/T3QoXp6c7G6b40g4hJT5xwpGEQ2weMKgAtrdkVxo41HdguCr+NKTYp3YvZQohol2QQFFJNYxpZJOuJqlTcd5R6LXNqIxLhteX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(6072148);SRVR:SN1PR07MB2350;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2350; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2350;4:3hLZhz2yJp4hFD4dXkKx/YYSPnaSxe8RkdoxpsHkGPfGk/7c2zilrmlf+WJj2dvZq/PCGegS+yYy6eh5leLdilTpexXJ5HJzpNH+2Bv7QIyHyzCApRlenF/1TgwasWBnFBhGQ0aU0dvmbx3c6N12m1uUdDJ6UyoFGL+oyk26YQ7bNw9OwOclnxkUticguBJykNd8k4xGLultWoRxRWopPI5gnC/eUk5Irrsz4TLNbnDeWfawGaWJMFI9TUbQLZ0tWvJiUAeBuForkR2fTfL05Ya+9omxbYNpWqeTFlZTvP4jQfT0Kll7Mi38ohoByzIOYVkAKqltbAKnpKd8KTqyXB2S3Pdd2xuEOmd/mAqcW4DO4DmEM2qts6/a5pVlhGhg87nUGEczho0L1GDWpfj1veJdhslxBucUe1Y/VBVnQZxZWEOy/s6I6sLTHaNODHFKAGEuVJKOhsVbgZDry08sxIXQk6zEAFZyyL4R26XCzIE6zZlq+rdS5kguaG6rnCphQnUsBAXINS9cS6d/vPC6lmzit2y5I0hVNi7cWbQ7JesIRJRsQp4ZF3q9eVpqQ38iClcupn+Tc69RCn4JreE7pQ== X-Forefront-PRVS: 0150F3F97D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(39410400002)(39840400002)(39850400002)(39450400003)(189002)(24454002)(199003)(38730400001)(101416001)(97756001)(46406003)(305945005)(4326007)(50986999)(54356999)(7416002)(7736002)(76176999)(92566002)(229853002)(7846002)(83506001)(2950100002)(6916009)(6666003)(6116002)(23726003)(3846002)(1076002)(733004)(6506006)(110136003)(5660300001)(86362001)(42186005)(189998001)(47776003)(66066001)(81156014)(8676002)(81166006)(9686002)(93886004)(105586002)(2906002)(50466002)(4001350100001)(106356001)(68736007)(97736004)(33656002)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2350;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2350;23:/ZTfEaXpCZ0DMXiOQ8UheGE0BtUGeWXKMGAar8Clf?= =?us-ascii?Q?ZKjtildogdPTgyE3SVCRuLyvhpL5CP2+clOfVeTH/DJdTA1lMQbljZCswg84?= =?us-ascii?Q?0buva7Yfs5M4SoWx9lBGkZL3tVBCFL9RQwx9ebfXURbIPJMe0vdM+vp43+tV?= =?us-ascii?Q?URNtLKYbKkmBJgQaQqoD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SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2350;7:7JY522TA39RGzijLedrwy3rdajbAorv57H+tI2lddvS2MzLdT2GPc6TsnHjAJooGeEm18ku4ord1zj9TVyfuViehjwDlo+ErSrHSlQ2QRPYlnAKcS+fhbxEi+mktvPjcrNy+bM3EuhUdewaLcrvUcygtFd+SXiOrnABrr0t2ovBiU7jNeO7Xqs+thiJj6hNAwUDvGgpaD6MELUHoGCOoNXEp+FmLZjcyMBZ1LAaQhbc0FWpHYbb8bZWusH6+Lmx5+ILqFZEGHMRujJWYNweC2KC7Q3IRWqgCbsqnNM1mQQN8Y/0uIqsGOYTCXMp3+XMXv/nHPHbIXrL9XKcxXxaWXAskmtLvVzuhXrL9od86QiDmCxlLALoXGEP0PCf9G0Rdg/IqTABFWqnkQ38KhHzRwOqKEfWw6WVCkK0FV3LrfpmBPbFdXsWvUgH5At1z55PR8e9UDQy0ijvoi8T18UUndg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2016 16:34:55.2135 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2350 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1934 Lines: 56 On 02.12.16 10:27:43, Bjorn Helgaas wrote: > On Fri, Dec 02, 2016 at 11:45:00AM +0100, Robert Richter wrote: > > On 02.12.16 11:06:24, Tomasz Nowicki wrote: > > > On 02.12.2016 07:42, Duc Dang wrote: > > > > > >@@ -98,16 +98,16 @@ struct mcfg_fixup { > > > > { "CAVIUM", "THUNDERX", rev, seg, MCFG_BUS_ANY, \ > > > > &pci_thunder_ecam_ops } > > > > /* SoC pass1.x */ > > > >- THUNDER_PEM_QUIRK(2, 0), /* off-chip devices */ > > > >- THUNDER_PEM_QUIRK(2, 1), /* off-chip devices */ > > > >- THUNDER_ECAM_QUIRK(2, 0), > > > >- THUNDER_ECAM_QUIRK(2, 1), > > > >- THUNDER_ECAM_QUIRK(2, 2), > > > >- THUNDER_ECAM_QUIRK(2, 3), > > > >- THUNDER_ECAM_QUIRK(2, 10), > > > >- THUNDER_ECAM_QUIRK(2, 11), > > > >- THUNDER_ECAM_QUIRK(2, 12), > > > >- THUNDER_ECAM_QUIRK(2, 13), > > > >+ THUNDER_PEM_QUIRK(2, 0UL), /* off-chip devices */ > > > >+ THUNDER_PEM_QUIRK(2, 1UL), /* off-chip devices */ > > > >+ THUNDER_ECAM_QUIRK(2, 0UL), > > > >+ THUNDER_ECAM_QUIRK(2, 1UL), > > > >+ THUNDER_ECAM_QUIRK(2, 2UL), > > > >+ THUNDER_ECAM_QUIRK(2, 3UL), > > > >+ THUNDER_ECAM_QUIRK(2, 10UL), > > > >+ THUNDER_ECAM_QUIRK(2, 11UL), > > > >+ THUNDER_ECAM_QUIRK(2, 12UL), > > > >+ THUNDER_ECAM_QUIRK(2, 13UL), > > > > > > > > > > The UL suffix is needed for *THUNDER_PEM_QUIRK* only. THUNDER_ECAM_QUIRK is > > > fine. > > > > We should better make the type cast part of the macro. > > > > + this: > > > > --- > > #define THUNDER_MCFG_RES(addr, node) \ > > DEFINE_RES_MEM(addr + (node << 44), 0x39 * SZ_16M) > > --- > > > > The args in the macro need parentheses. > > Would you mind sending me a little incremental patch doing what you > want? I could try myself, but since I don't have an arm64 cross-build > setup, I'm working in the dark. Your current branch looks good. 5d06f9125ec0 PCI: Explain ARM64 ACPI/MCFG quirk Kconfig and build strategy Thanks, -Robert