Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753167AbdFUQ3o (ORCPT ); Wed, 21 Jun 2017 12:29:44 -0400 Received: from mail-bn3nam01on0068.outbound.protection.outlook.com ([104.47.33.68]:15743 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753074AbdFUQ3j (ORCPT ); Wed, 21 Jun 2017 12:29:39 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Wed, 21 Jun 2017 15:25:10 +0000 From: Jayachandran C To: Marc Zyngier Cc: Ganapatrao Kulkarni , linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lv.zheng@intel.com, robert.moore@intel.com, catalin.marinas@arm.com, will.deacon@arm.com, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, tglx@linutronix.de, jason@lakedaemon.net, gpkulkarni@gmail.com Subject: Re: [PATCH v3 2/2] acpi, gicv3-its, numa: Adding numa node mapping for gic-its units Message-ID: <20170621152509.GA4485@localhost> References: <1498025743-6340-1-git-send-email-ganapatrao.kulkarni@cavium.com> <1498025743-6340-3-git-send-email-ganapatrao.kulkarni@cavium.com> <20170621070941.GA6124@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CY4PR1201CA0023.namprd12.prod.outlook.com (10.172.75.33) To SN2PR0701MB1072.namprd07.prod.outlook.com (10.160.59.18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: edb3cd27-88a6-43b3-3822-08d4b8b9b97d X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN2PR0701MB1072; X-Microsoft-Exchange-Diagnostics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Lqy9CHyiHhnJ92rGkhx0B6sXVhh5b/ptqkvhNdiOalnCHvlJqnKcRudJq2WZUhaYWwD8egg64O/f1AAPrl45YAb0rawc=;20:4Gz83dfRyZglHKjQ5tz9Mw/AOIIrGRE7O3sa72InYXC/2QRHiahYpXPd2aTfzermc5GuAO3G0ya6aBdd9PGNdPdoLY927KGLOjRsZdVQAqB4oD2XsfCP1aiknmK78oyjkKzJ2ZJYH8a7TfEJv/9fjwzZ5FcoPaJBTx885qRYcUFCDYya7Djpxay5QdrxfhtyZjl1mH8iWQ0FxoDye3W85QPA8yVvlOvekjB7FedgSZ/4xT/zEvuYKSSKV89P2tEpH+He8sWHF3kTOWZ44ovcGyVTNmgothqlC6KKnbPeUZYKcNe1JVAFPCtuR/UBK07H76n+Kml0r6QgufArGbn/p/MamDOEI6dQ54hN7DU7tCE2hDExzjzpNcLZoBN/u0KmO/9t+vTmRj3d5RdbYoxeJh6SLvVa3sMLwxTo+rfBpjDKpFwIPIQHWP1znHv0y5wUnCXwBgnyLwH7vdmL2QowWlL+hdzvT3Cc/Y3P0DSB9tZ043qElsQGVY1JTnjw5V2BjyD3v1VKU/c3al6/Ew79V766N8HBBd3dNyaQE1j2yt9L5+WrCjsTSvLGX63nuBUX9lk3KVmU9dXwHfkPhcwiNHPguES8eqazGM7SYDIwcUs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN2PR0701MB1072;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN2PR0701MB1072; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR0701MB1072;4:Ob0M124Qb4xLe3nheqogGN8EovL+wI87/+GzEEec?= =?us-ascii?Q?TliPXkmx7SVMP4Gqa7OXlJ101T0uGigJ+kVA8xXVCabTca/a99o4NpVnwXao?= =?us-ascii?Q?x5uFJG5wpDhluxDMFLzMF2yGkdXEZIX7VtxzFxTp1czcvLxLZL6CZkMH3prV?= =?us-ascii?Q?PwVGhKONrvbMxLMiIRVeUTPcCydDhWGL61xIxdivKDyweyGdEtGwhiZn+p5F?= =?us-ascii?Q?cCeVj92HLAhPzO41siftKbKN8qUmaoEltjInhced6EB8AQjOwkZJMdima26W?= =?us-ascii?Q?7ajlGPw6wMka6AlRmxT42e3vKyxZp5S3rqy1HblwLcIytmDGlExcqKkLdbQv?= =?us-ascii?Q?R9AqHr+ftLcFcIU3kaIG79ZPXdpwsaPLqIdG/tgskrj1UoevHHqenKmE2IwQ?= =?us-ascii?Q?4qkc+zBiur+rWokd1OtDMGyOQWeBqUpOkOIhXRlgR4AuYDHOeT1AQxIL3TDS?= =?us-ascii?Q?2pik4lcDmHCnhINt9mRsMDkREZDcvo7PMdBuvgmYTyBW4ERn4NQNH7PsErS9?= =?us-ascii?Q?vHsXO5oS7Q7h19SHCmgSbI2Mws0jXkZPemMiSHDPVEeHOPvqjRNeK8BGs1C0?= =?us-ascii?Q?Aotm0RdgwpzS/EFPa60qn8+TibVDrXHNmqyk1Ouhoj4016V+b4Va1/IfKwOv?= =?us-ascii?Q?8dAX34QygMvYUgkSuAZX26BnXhCkHG5YmnULke5uhDc5KuJFPWbUUuy8q889?= =?us-ascii?Q?Slfb5c81rdjjSPnd2gGjdz7KsQ1jvfr3tokBTKTpExwRBVXHURHYJWFgqLOL?= =?us-ascii?Q?UXijjkGW1XtF2WFa7/XFDcc2CoW3pceCPjVELfZ9Kj0Tyqwy0iOtupq+coSx?= =?us-ascii?Q?oRyiJrO9UnWamnmjy6JkDc5FKvZ1Tt2lcsUmEN102IcsMWmqZX77/ENGI3cF?= =?us-ascii?Q?+UVcyBpzDhOCAEzNTDNKj+i/RgV2ZTPnc1g11czeajvQdmObD63TpUBA0CX9?= =?us-ascii?Q?+KsPsrQED/KPhu5ClKagRMODeIU4y/bEJ1u5Dz5v7mHD7wNucqIX1cYarEdC?= =?us-ascii?Q?wgwkiM1iXNIm2coHuYk8eT90JPIvh8tQwBhuDIpvOYChlPIO5FoFGZa088S2?= =?us-ascii?Q?sj4udvUo7/35rs9eH9xD/fDaAifccFIHNKyiGEDfwwlaU6FSrPePT/iz1SKF?= =?us-ascii?Q?BrZ5qmpGK3w=3D?= X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(24454002)(189998001)(6496005)(4001350100001)(55016002)(53936002)(25786009)(38730400002)(50466002)(81166006)(6246003)(9686003)(33656002)(8676002)(110136004)(6916009)(2950100002)(42882006)(6666003)(50986999)(54356999)(76176999)(7736002)(53546010)(229853002)(5660300001)(42186005)(76506005)(93886004)(7416002)(4326008)(6116002)(3846002)(1076002)(23726003)(305945005)(72206003)(478600001)(83506001)(47776003)(2906002)(66066001)(33716001)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR0701MB1072;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR0701MB1072;23:sqAoKmykt0SJESrMC2uy/c3V+LeiteSVr1m/Vtd?= =?us-ascii?Q?pw7aRF6fUSuEWGwpaAFqKJLXnAz488dDRWMTx45UDNtLvGILEcKAR5x9HJMw?= =?us-ascii?Q?wpqZHQXdM1d8nvqPLwYhRvmDAd1v7MktFr+1e7MMEvDSebpk/cjWIn4DKEtj?= =?us-ascii?Q?dys9Y0MA1FvG9yUQx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p+90UPAW6fJMHYGCMLbwc8DA7b1CjIQxncNHrEvhnXmiJVffsWV5SFCWe?= =?us-ascii?Q?yR6G8UxYPVd1iC9NCkurMUTRw3KqC0LPO2/wbMwpi+PZ1GMjzQL4MHHK9wxF?= =?us-ascii?Q?zKUH9Adjh9alWYhvWKo2VwkWjIu/kBSo9aaotEOu/i5HniLEC1LQtGZDfARl?= =?us-ascii?Q?HT8RABXGWSz901QTwn+ZkUN4+Lqqf+V7AYMDsKKXhFKOG8BUrAScxx+9UWCs?= =?us-ascii?Q?mKQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR0701MB1072;6:1ZeyOLfbU3bu/ABQvzqK1iAHgmXQecwvVjR7MfO4?= =?us-ascii?Q?uK3boUGva4YhqBYJZoR4tKpjWlbfVqgChUULaXtIQCIAVxVoy9/R/8BOajmP?= =?us-ascii?Q?0ULrwQzl/BxE754kuG8HL77dQZlyxMkQm6fhoo9AxKX46xj/lz87NE8feFab?= =?us-ascii?Q?klLopqAw9+FaxpF+DaDgGFuKWQcY+xQu8tEAOztTsHtCld1eBeYLiZBUJZ/j?= =?us-ascii?Q?XhqGnNNeecHz3zbhBR0gbjUdm4jyHVzYfls5SrWGsDuTgQlqaoeekR2K5wj5?= =?us-ascii?Q?+jTf+nOjpk4lNLqGTXCel48kbmYtGrSLkIrEt/n0dXOufT7YyL2pjnON4cqL?= =?us-ascii?Q?yRBqjIb+98jlGbmwTsOhWBf2fQ1jtfnGqg7Ssh5mkxcw4GonBRnxhs/8FAWU?= =?us-ascii?Q?MsYD8rilBOuBW37xykkXu+5poaB05N0AutfD8Dfq13fGvN6v8x8op/a69uk5?= =?us-ascii?Q?aL45JN11bOQbdI8qfkBJEcaAghPZk5GU+CuzFKKXXa4El/JWz7XxBHJLtPjf?= =?us-ascii?Q?rZR+51V+QH2hM0+qrqgHgYn6auWY5xPaJt7lO639zZq553u1qy+lG6C9OVJL?= =?us-ascii?Q?Zd+10PYYtYh622Yj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ESzGqWXRJR/5afT8AuQNBvg1asVJ1gncof/SdFNVMKASpTmy0m7vWc2vSFcG3oSx4sZTjJfhMzQiwe5gxS6c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN2PR0701MB1072;7:vCMP78SPG+dRhYjK5feai/8NkqRIlcdRoInLHv6oOe2qkCYo5LGkIh7lDyp9Hx6nskLNntgcnG06QFdGLr3XRGTWWttoQixZZdJ+F12NpQdSpt+jdPiZJyu8KuxghLr6usRxam1KAktcb2cCSeRVtAvEryFcjXa3890bvexa1u49G88tZklBhKUlZWfvglNIAWFMxxV6mIszMLQArezQWyKQiGYObSZWJ4wo9sRVOOCX2OXJfrqWVyQadHe0INHo30WJUwA0J8q3oYitgBR0dm4AAQhnWCj9GraM23Soli4W6J8Y861FL7ls57dUQ/nWrCyEshYcLPh5JPVgbE8SKiQd4tjPzhaXt1pWiVzfYz1Lw5vwrDnrrBaBRGCCCX2TsQjioKz8ky7BybfOBAtvyfC3GKQkXNU6Z6Jg/dlpJfO7HF5onzjxk+/K777dQSy58ED01UREivg721utVxKAgr+xB1OXMzfXvej9ntWLeiHM2XHPksl4X7lqvYHkGQHv5H+OXEZmDhyUQxGh3fhiKNdEEhL5TOq1L47zHqpvQ/3WiQkzrLXOEu7jDLHRGRVBUOFxH/RD/fkbv6onC0eOHsfBQgI3cupTTTGy4b4UEaGAxZNvxwMmW7gDBYPBgNVKT0zzHmfcne35nbSu+OFgEhhtfppeigsIEEcuPRown3h68sE65LQt2OJf3ixHoeF6/t4h5tCans+7rz6JkdG/HHPJiorxIbBjNdmZIWeMJKEJL6qpHgifh9uxRHraJS4EyDvLIh1ftK1k213jn01+1qgTpLx70NQbGmr18qG4OFc= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 15:25:17.7316 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR0701MB1072 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3169 Lines: 85 On Wed, Jun 21, 2017 at 09:44:58AM +0100, Marc Zyngier wrote: > On 21/06/17 08:09, Jayachandran C wrote: > > On Wed, Jun 21, 2017 at 11:45:43AM +0530, Ganapatrao Kulkarni wrote: > >> Add code to parse SRAT ITS Affinity sub table as defined in ACPI 6.2 > >> Later in per device probe, ITS devices are mapped to > >> numa node using ITS id to proximity domain mapping. > >> > >> Signed-off-by: Ganapatrao Kulkarni > >> --- > >> drivers/irqchip/irq-gic-v3-its.c | 80 +++++++++++++++++++++++++++++++++++++++- > >> 1 file changed, 79 insertions(+), 1 deletion(-) > >> > >> diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > >> index 45ea1933..88cfb32 100644 > >> --- a/drivers/irqchip/irq-gic-v3-its.c > >> +++ b/drivers/irqchip/irq-gic-v3-its.c > >> @@ -1833,6 +1833,82 @@ static int __init its_of_probe(struct device_node *node) > >> > >> #define ACPI_GICV3_ITS_MEM_SIZE (SZ_128K) > >> > >> +#ifdef CONFIG_ACPI_NUMA > >> +struct its_srat_map { > >> + u32 numa_node; /* numa node id */ > >> + u32 its_id; /* GIC ITS ID */ > >> +}; > >> + > >> +static struct its_srat_map its_srat_maps[MAX_NUMNODES] __initdata = { > >> + [0 ... MAX_NUMNODES - 1] = {NUMA_NO_NODE, UINT_MAX} }; > >> + > >> +static int its_in_srat __initdata; > >> + > >> +static int __init > >> +acpi_get_its_numa_node(u32 its_id) > >> +{ > >> + int i; > >> + > >> + for (i = 0; i < its_in_srat; i++) { > >> + if (its_id == its_srat_maps[i].its_id) > >> + return its_srat_maps[i].numa_node; > >> + } > >> + return NUMA_NO_NODE; > >> +} > >> + > >> +static int __init > >> +gic_acpi_parse_srat_its(struct acpi_subtable_header *header, > >> + const unsigned long end) > >> +{ > >> + int pxm, node; > >> + struct acpi_srat_its_affinity *its_affinity; > >> + > >> + its_affinity = (struct acpi_srat_its_affinity *)header; > >> + if (!its_affinity) > >> + return -EINVAL; > >> + > >> + if (its_affinity->header.length < > >> + sizeof(struct acpi_srat_its_affinity)) { > >> + pr_err("SRAT:ITS: Invalid SRAT header length: %d\n", > >> + its_affinity->header.length); > > > > The original driver does not use pr_fmt properly, it may be worth > > fixing that up rather than having prefixes, here... > > Irrespective of what the "proper" usage is The prefixes of the prints in this driver are a bit inconsistent. And there are a few error messages like the "Failed to allocate PROPBASE" and "Bad LPI chunk %d\n" without any prefix at all. pr_fmt would be helpful to clean it up. > this kind of cleanup doesn't belong in this series. Right. I think the printed messages in this patch can be improved quite a bit. currently the tags and spacing are inconsistent, something like: | pr_err("SRAT: Invalid header length %d in ITS affinity\n", ... | pr_err("SRAT: Invalid NUMA node %d in ITS affinity\n", node); | pr_info("SRAT: PXM %d -> ITS %d -> Node %d\n", would be better in my opinion. > Feel free to submit a separate patch. The driver also prints 2 lines per CPU on boot which can get to a few hundred lines on our test machines. So there are a few things worth fixing up here... maybe in another kernel dev cycle. JC.