Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759604AbcLBKpd (ORCPT ); Fri, 2 Dec 2016 05:45:33 -0500 Received: from mail-sn1nam02on0054.outbound.protection.outlook.com ([104.47.36.54]:22176 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932799AbcLBKp2 (ORCPT ); Fri, 2 Dec 2016 05:45:28 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Date: Fri, 2 Dec 2016 11:45:00 +0100 From: Robert Richter To: Tomasz Nowicki CC: Duc Dang , Jon Masters , Bjorn Helgaas , Jayachandran C , Gabriele Paoloni , Arnd Bergmann , Rafael Wysocki , Catalin Marinas , Ard Biesheuvel , Will Deacon , David Daney , Jeremy Linton , Linux Kernel Mailing List , Linaro ACPI Mailman List , , , Marcin Wojtas , Andrea Gallo , linux-arm , Christopher Covington Subject: Re: [Linaro-acpi] [PATCH V1 1/2] PCI: thunder: Enable ACPI PCI controller for ThunderX pass2.x silicon version Message-ID: <20161202104500.GE10776@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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <30ad6c65-4a4a-6346-00f6-11250133a251@semihalf.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [92.229.95.210] X-ClientProxiedBy: VI1PR0901CA0073.eurprd09.prod.outlook.com (10.167.203.169) To CY1PR07MB2347.namprd07.prod.outlook.com (10.166.194.146) X-MS-Office365-Filtering-Correlation-Id: 3ff763e3-9197-4f7a-049f-08d41aa052fa X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR07MB2347; X-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dxIOEvrntGBm3CnEwDkMG0uLswH5VR6GsD0jGeqIvzJEDq5dy X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2347;31:rDwmdy+DFBnVzkyxREIj41z6J+uis1rIhs7La0FDeqfiIRLE0SjXhMnnhQ0njrmu1rKaD2a2/W2kp8OLC8RIAItOV7Opw5AT6wNnh1IFMmdjRtWBn1UMkOqlxNr0+x+2E9/Q3snoyNp/1163kmid7J8/NlVsf1Wl2zKLNNW7BS5GEwxAwIJsyjlycpEusPEOLvCzDuaPWP/Mewn9BxHNEensib1rGwtHtd7MMMoAovKp/B195M889SM9LyFigPsUyljqH66uBQrrzcNB1wrzmQ==;20:Y1Nv6Xr6C/Yj6N9LjcWP9J+qYGSqDy5XwGFGa0yxZtif5JRaQnRdAthm5hjgNoMfD1d/0Y4ouJ0TT5REjpJRrvHbFMHxwMyhGb/L1eXHigAhjAeF36/Ry2R4KqK6HjG3LVpKB87wVbkdE/ixzwuIXXBO9QETMUk08WWZjCzXyZxYmOK3ykQ3nhO0gxsmT1H8BnCsbBw5rELEFF1ciRO4MGY/mrTjPakivQHUygm2rTXGgPcd2yRxkR4XJPSZ0sHNvUS0L8gAVMwkGXTCccpagxJ8iU/xelmEnRzhmZASy4d4r+h3X0+wAcDg7IZAQhOg6lP/ekItjYzkzS9+5s48DWOIJItukaSomSzvVI6l9YgjoHGqDTbmwNoG39l5hmwKrBRLgEV1hcP57e2I03+WSSkjk2YdigVMMA93sdYexW9Edo8icYxbqWSbCm00ngjfpuLteETzomF/n1wUL1Uwmw82eUvhYxmIW21aG07mXqatIM7ZJoGzLZEcQ+bZH2EG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148);SRVR:CY1PR07MB2347;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2347; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2347;4:034bvVvFsjC1lRC4z2fsXCe4J6q5jFggpsaTSL59fM34OXOLkRyshCZldinynjlkpsdmCgtP3ZNmSl+7udBKN9TLV3XPH2leNYukfk5Y4aGOnrXlOiC20OfEZvvJ9CB1sKZNFPa4LUcLFq8OYKelb+prVYQWZNLDHz+s2R4IlHMR98r8fFsUiOgK1BJio5bF4hF6oLlyIl/4GhXf9Jwz/mnssiM0xMv07SA9pq9ULDlzUxrqPggpxj92iJvTXorYtBdoJzUX6MnKZlYo2N06BR21shOKR+od9zPHcvpntu07EIXFoeE3XkahHezc+IdaU7N3qN/GJkk2VQUVjOJEI3QjRfeNv87A5wSBoYQ7YC8BRr5bhoxtzQEEhpYpmdtm+sBFo5gYpYrntSsa+DvCe4SF42AK6HtpAES7WUysHGWz+jcyujLbICaXTDFNTT+25r/dzDHNJAXS+QRpzIZ8/gMN6AcanGlFH61Hfp/e/17Ozh0I5wxhpg+zjsC5H+Siu5hziacSj0GGuYO2YK5br0Py5rMkBaVfgv+Lv4upOw5n3aT2IGKqKoUYrCCg5KCi X-Forefront-PRVS: 0144B30E41 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(24454002)(39410400001)(7846002)(39450400002)(6506004)(7736002)(50986999)(38730400001)(7416002)(76176999)(229853002)(23726003)(101416001)(1076002)(4326007)(110136003)(54356999)(2950100002)(4001350100001)(93886004)(733004)(5660300001)(6116002)(3846002)(97736004)(6666003)(189998001)(6916009)(92566002)(81166006)(66066001)(8676002)(42186005)(33656002)(81156014)(305945005)(9686002)(105586002)(68736007)(83506001)(47776003)(50466002)(86362001)(46406003)(97756001)(106356001)(2906002)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2347;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagn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XoT7ZbaQbSGmmX5M/G4+4oIIsbonIvRFPGtMfrAT2XHwHOWLbZxzGSlwdFgv3LzF9AgE+pwFl4tKI6ViiRtVzhgyMCLiOpYEZ5NoHJOFL/HZ89OXB4Jjs+uO2IohvUEdzQwVmiZoSTJKhxw==;24:u5azZFx/eYelIacapRWC2oWAJfHBl3AvhpBIPgJOTjMg/IJJRlp6/mnR4LvAHPSY9SAuOH5tOXcGxZ1SOSM1RqI6zDXix/TXIm7S0nZqpOM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2347;7:86Nzg4Qsu+y8MVLyU+gxQ5Yhgz1ob9DQ6XYKEtTYtv6+Bm4ZNQBIsoBgEb7pof0sxWlDnSCTnvY3HF3ZBAovKwGboJdAiKXQHenbchynBPTZ/KEvYK01mthe0abnxEcQhNMZL6xEQOM8WT8qmDCxIOP1U+5KAPIx620cTX86qNAuOwHImSw0hh2uqa04QG8qUdkm9mbjm5BEMNXgWfHszfGbmWikvDj2z/JotRzbiVWkQxseeVhzsIJ4ke6unjQWBU9xaPESLTkIqaassZz88waq8iHnIRt4FQRlxM2yUjTsPEMxEWRH3lJekAp1v+6OD1CfUQm7HEXpfhSWW9mZUzJZCv/fuY3lTu7qvpOdz/576LRPwpG/Ss2CtYgJenUri/yDySiN50/+K05ScnE05nktFr9weiKf7pXykIiQ82w8W2twLRLpul+L2a/8e9FKgY3oB6sbOdNCMQrcv1Ly0A== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2016 10:45:21.2594 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2347 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1358 Lines: 44 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. -Robert