Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933109AbcDYQrw (ORCPT ); Mon, 25 Apr 2016 12:47:52 -0400 Received: from mail-bl2on0086.outbound.protection.outlook.com ([65.55.169.86]:1567 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754874AbcDYQrr (ORCPT ); Mon, 25 Apr 2016 12:47:47 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Message-ID: <571E4A2A.8070908@caviumnetworks.com> Date: Mon, 25 Apr 2016 09:47:38 -0700 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 , , Mark Rutland , Catalin Marinas , Tony Luck , Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , , "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , Grant Likely , Robert Moore , Lv Zheng , Hanjun Guo , Marc Zyngier , , , , , Robert Richter , David Daney Subject: Re: [PATCH v5 00/14] ACPI NUMA support for ARM64 References: <1461116439-22991-1-git-send-email-ddaney.cavm@gmail.com> <20160425111338.GJ16065@arm.com> In-Reply-To: <20160425111338.GJ16065@arm.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [64.2.3.194] X-ClientProxiedBy: SN2PR07CA007.namprd07.prod.outlook.com (10.255.174.24) To DM3PR07MB2137.namprd07.prod.outlook.com (10.164.4.143) X-MS-Office365-Filtering-Correlation-Id: de7a4cd1-0aac-44a3-e948-08d36d295277 X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2137;2:lJIr+Zy6OGAiFmgEJmzF0aW2JjjvP7iYKqWWyQWkH7rkkObbaVyDzRS2xTcl6ovkLVJGc46VkCTe/F2b5kJmV7hanhukFcgMBT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DLG4zydBjM++wQk54PFMfXReb3QRV0AKoim41LPihNS0xVumsN6E/YwBlZSLjpi2478ypjrZtXMxeeNw/bzP+v798TVrAlna8UJvxKfJ90jGJhAtpas3yATUgolosyUIrbDro64/Thget/bKO6OBDTfR/RAg2YbiR8mnG65nLCndeOx9HWAbBiwZT9AF1vxedNA94Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521067)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM3PR07MB2137;BCL:0;PCL:0;RULEID:;SRVR:DM3PR07MB2137; X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2137;4:dHaJESnf/qSR7ZyOasDafd0UNY5N06ji6TVKG9cshDvkVpurVeknFB/6MDyJE0V/qxo8/639AgdyflS55mh2eBPiiKZ7js3itSj/ENuF6oyvX0NWQd5No71sTcKP7wFMfAqcKXUGO29v/4h+IlHdLO1sUCDPWnlRUE8x/8y6M5no2JE24JlWQN7XjpJ7Ke1ijEbZt9bkpTOtf32ivwNeFclGgNYEnhYxBXBz3UG0tG/BE6r9+EeBF2uMJHSm5rzbtXQRE3n78YSclMjiPVe7AwO4TLoQCN4qdU0Kf7JESUJOJbSWwALJc5EMzXrWheHUXZIWQWN+ifPXQnZHEMJKRVWjQV82l+9ExQXHk3u/QYDt50roVtS+igfG3I99v7mrwYEsjzfncVixnZ029lLWDA== X-Forefront-PRVS: 0923977CCA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(24454002)(377454003)(377424004)(64126003)(2906002)(230700001)(65816999)(76176999)(54356999)(77096005)(4001430100002)(50986999)(15975445007)(586003)(81166005)(2950100001)(5008740100001)(1096002)(42186005)(110136002)(87266999)(107886002)(6116002)(53416004)(23756003)(4326007)(3846002)(47776003)(92566002)(80316001)(19580405001)(19580395003)(5004730100002)(83506001)(36756003)(65806001)(65956001)(66066001)(189998001)(325944007)(33656002)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM3PR07MB2137;H:dl.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?iso-8859-1?Q?1;DM3PR07MB2137;23:Rp1M9Mb3QeoGAAa4lqbsCRkBANsawMpnHkXyhkw?= =?iso-8859-1?Q?i4oUQDjlwxGgWQpt8fZVNp1mq2cvwUSMoCFZzIxSTDhlsIK2V1CRWIwak7?= =?iso-8859-1?Q?AqYMB/Hmn1lSXDIgOlojT13Rt8h0i/jeGtUJFs/00OTzSArb7BysxTGxe7?= =?iso-8859-1?Q?wjLXwa4+/WYpY2fcYbmWt18c+fMwNlCQXB777D1cv5bNFudaA1ZCNtzxuI?= =?iso-8859-1?Q?Jdd1FwnRnPC912Y2uzl2RaVbOSnNMROE3UPcW3fqFi8yDfWdTxVyFD82pY?= =?iso-8859-1?Q?4B1Or7GcqyaKJ+pU9pN4Xt1RwBqyV8+Vb0IUU6t/fU5E9ypvL30okJyoUi?= =?iso-8859-1?Q?KRhc2wmLwa/b8wR2rhZhLSkTUX7ks9n3ucBsII7KElXNbep3wqShTEigR6?= =?iso-8859-1?Q?KyVEPAJpBTn3v2ZShVzMFGWbp5yjQM6iDXG4gJqP2M1lXXz6LxTdV5AEWW?= =?iso-8859-1?Q?ecv+CLEbcSa2ut9x89XJvRn0UimIobNHEidzH/4PqafptksgTJJzRRHG2V?= =?iso-8859-1?Q?fG9der7aGE3wlM0TTazMsMhbe7UC5jExVicBKov5XjK+5t1y5MKI8s8s0Z?= =?iso-8859-1?Q?nN+StrSGrWvKTaNYxNPg7LplmziECGHQo9F4qo6853wlmVpSvbUeggZy2e?= =?iso-8859-1?Q?TDjkCvRJdvGfwSidgwZy62+59BEvcxkZwjB4lDHHV0aodrEzptklKT7WJo?= =?iso-8859-1?Q?+SHc047m7khxNNxlnCflGJTjWqb5VKK0qOLQP7VZvXnr2hhjGM+hkmacDU?= =?iso-8859-1?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/wi/OC37YljhWK6xUByVrNT5P6ROKf+Xmv5Sgz9gOymLomcoh0OdFb8JFw/JKfgkdD+s= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2016 16:47:40.9985 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2137 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5004 Lines: 135 On 04/25/2016 04:13 AM, Will Deacon wrote: > Hi David, > > On Tue, Apr 19, 2016 at 06:40:25PM -0700, David Daney wrote: >> From: David Daney >> >> Based on v16 of device-tree NUMA patch set for arm64 [1],this patch >> set introduce the ACPI based configuration to provide NUMA >> information. >> >> ACPI 5.1 already introduced NUMA support for ARM64, which can get the >> NUMA domain information from SRAT and SLIT table, so parse those two >> tables to get mappings from cpu/mem to numa node configuration and >> system locality. > > Whilst I've queued the main NUMA series for arm64, I'd really like to > see more movement on the generic header file cleanups that you posted > separately: > > http://lkml.kernel.org/r/1456358528-24213-1-git-send-email-ddaney.cavm@gmail.com FWIW: Those patches should still apply. I am carrying them in my development trees, and have not changed them in any way. > > Given that this ACPI series already requires some significant cross-arch > interaction (which is actually good!), perhaps extending the clean-up > patches to encompass some of the ACPI bits might make sense, and we can > get that queued as a pre-requisite. The cleanup patches you mention above are really independent of the ACPI things. I have applied them both before and after the ACPI patches, and both seem to work. With a quick perusal of the ACPI patches nothing jumps out at me as being a candidate for inclusion in the header file cleanup series. If you think it would be a good idea, I can repost the cleanup series. David Daney > > Will > >> v5 updates: >> >> - Fixed ia64 build failure by gating some unused functions with #if >> CONFIG_{X86,ARM64}. >> >> - Fixed section mismatch errors for X86 case. >> >> - Removed unneeded #include from some files. >> >> - Tested to build cleanly on ARM64, X86_64, IA64 >> >> v4 updates: >> >> - Updated from Hanjun Guo's v3 patches. >> >> - Rebased on top of v16 of device-tree NUMA patches. >> >> - Reordered some of the changes so that we don't introduce code and >> then change it several times in the patch set. New code is >> introduced in its final form. Code reused from x86 is first moved >> with no change, and then a separate patch to make any needed >> changes. >> >> - code that is used only by ia64, moved to architecture specific >> files. >> >> v3 updates: >> - Deep investigation about the ACPI_DEBUG_PRINT() and remvoe >> that for acpi/numa.c (patch 2/12) >> >> - Remove the duplicate NULL check for table print (patch 3/12) >> >> - Introduce CONFIG_ACPI_HAS_NUMA_ARCH_FIXUP to remove duplicate >> dummy function for acpi_numa_arch_fixup() >> >> - Solve the problem that the mapping from logical cpu to numa node >> is wrong which spotted out by Lorenzo >> >> - cleanups for x86 and move acpi_numa_slit_init() and some other >> functions to common place, then reduce the duplicate of x86 >> and arm64 (patch 7-12/12). >> >> - rebased on top of 4.4 and Ganapat's v9 patch set. >> >> [1]: https://lkml.org/lkml/2016/4/8/571 >> >> David Daney (1): >> acpi, numa, srat: Improve SRAT error detection and add messages. >> >> Hanjun Guo (11): >> acpi, numa: Use pr_fmt() instead of printk >> acpi, numa: Replace ACPI_DEBUG_PRINT() with pr_debug() >> acpi, numa: remove duplicate NULL check >> acpi, numa: move acpi_numa_slit_init() to drivers/acpi/numa.c >> arm64, numa: rework numa_add_memblk() >> x86, acpi, numa: cleanup acpi_numa_processor_affinity_init() >> acpi, numa: move bad_srat() and srat_disabled() to >> drivers/acpi/numa.c >> acpi, numa: remove unneeded acpi_numa=1 >> acpi, numa: Move acpi_numa_memory_affinity_init() to >> drivers/acpi/numa.c >> arm64, acpi, numa: NUMA support based on SRAT and SLIT >> acpi, numa: Enable ACPI based NUMA on ARM64 >> >> Robert Richter (2): >> acpi, numa: Move acpi_numa_arch_fixup() to ia64 only >> arm64, acpi, numa: Default enable ACPI_NUMA with NUMA >> >> arch/arm64/include/asm/acpi.h | 8 ++ >> arch/arm64/include/asm/numa.h | 2 + >> arch/arm64/kernel/Makefile | 1 + >> arch/arm64/kernel/acpi_numa.c | 149 ++++++++++++++++++++++++++++ >> arch/arm64/kernel/smp.c | 2 + >> arch/arm64/mm/numa.c | 17 ++-- >> arch/ia64/include/asm/acpi.h | 3 + >> arch/ia64/kernel/acpi.c | 2 +- >> arch/ia64/kernel/setup.c | 1 + >> arch/x86/include/asm/acpi.h | 1 - >> arch/x86/mm/numa.c | 2 +- >> arch/x86/mm/srat.c | 116 +--------------------- >> drivers/acpi/Kconfig | 4 +- >> drivers/acpi/numa.c | 224 ++++++++++++++++++++++++++++++++---------- >> drivers/of/of_numa.c | 4 +- >> include/acpi/acpi_numa.h | 4 + >> include/linux/acpi.h | 18 +++- >> 17 files changed, 375 insertions(+), 183 deletions(-) >> create mode 100644 arch/arm64/kernel/acpi_numa.c >> >> -- >> 1.7.11.7 >>