Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbcLBQ1u (ORCPT ); Fri, 2 Dec 2016 11:27:50 -0500 Received: from mail.kernel.org ([198.145.29.136]:46568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387AbcLBQ1r (ORCPT ); Fri, 2 Dec 2016 11:27:47 -0500 Date: Fri, 2 Dec 2016 10:27:43 -0600 From: Bjorn Helgaas To: Robert Richter Cc: Tomasz Nowicki , Ard Biesheuvel , Jayachandran C , Gabriele Paoloni , Arnd Bergmann , Rafael Wysocki , linux-pci@vger.kernel.org, Jon Masters , Duc Dang , Will Deacon , David Daney , Jeremy Linton , Linux Kernel Mailing List , Linaro ACPI Mailman List , linux-acpi@vger.kernel.org, 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: <20161202162743.GB9903@bhelgaas-glaptop.roam.corp.google.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161202104500.GE10776@rric.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1669 Lines: 47 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.