Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753026AbdFVGLH (ORCPT ); Thu, 22 Jun 2017 02:11:07 -0400 Received: from mail-by2nam01on0089.outbound.protection.outlook.com ([104.47.34.89]:37310 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752885AbdFVGKr (ORCPT ); Thu, 22 Jun 2017 02:10:47 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=cavium.com; From: Ganapatrao Kulkarni To: linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: lv.zheng@intel.com, robert.moore@intel.com, marc.zyngier@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, tglx@linutronix.de, jason@lakedaemon.net, jnair@caviumnetworks.com, gpkulkarni@gmail.com Subject: [PATCH v4 2/2] acpi, gicv3-its, numa: Adding numa node mapping for gic-its units Date: Thu, 22 Jun 2017 11:40:12 +0530 Message-Id: <1498111812-17053-3-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1498111812-17053-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1498111812-17053-1-git-send-email-ganapatrao.kulkarni@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0085.INDPRD01.PROD.OUTLOOK.COM (10.174.144.153) To SN2PR07MB2575.namprd07.prod.outlook.com (10.167.15.17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8d4b7656-bf05-4723-aecf-08d4b9356ba3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN2PR07MB2575; X-Microsoft-Exchange-Diagnostics: 1;S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VZen6KHyj340D4WGEqFnd4y/5syHb3vtSzb/5qeJfVgUMrcvVFUCP6NYkjpnENHonSNRF+rZTZGjlMBY9KgPC88VvK9k=;20:utkJm4+pI4MX75ogc9zhiHKRLvZeb06BIRt67QjbOL6VyPsC4uf6k4NUGVXdPOPdpso7WEDAvL1zHKWy8O/I2ZOrTeAEzpWBc33IH49djPTcgg6LsUlMnIwDfktbm5DGYxhWt4zD/MM9pipftDRMDZHvHhfwFe1OnHwfBo0uzk+6DWCkwTV3hlSwySzFkZ1nGnzyOsx9EA4BIuq0CRKBvYJpKrjd7bQ2kRuVueO9PT1BhiWTdP4blhymRDrbUZLFg2Zh37FNxcxHaNewftxptxq6UpeQngwySoborZU4Sv5U0NpZSHWoRtBZTuuZZoFnr+75+cMDij5B2seXRSf5V9nVDtrwdOFl4HNJmngYUguy22+/ObAi7ycEByEucprPTKrOKsqtwuNiZ75Gu6zLAyRNuA46Vo8+/gLbIkV4quEwXb6qwJyWTHNzjIsn6iM5Fj+WY2eS/89UX6BO1qhj5ZzYZhNHYPbRZ2lKkl0q6P1erEaiET4ZdKVnLOhfZs9e 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)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN2PR07MB2575;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN2PR07MB2575; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR07MB2575;4:St6233mxke2wy9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?0FDz91S1CxJw2hwzTmpcUy/SWWQ7kYssoHIoMaiBC03S/QVc3PMpUjc/rwGP?= =?us-ascii?Q?oi+hdrop5qilLv0AWqG4HCPGF6E8omX+4rEjYdr2p92qxZnouvAJ+UoKilTz?= =?us-ascii?Q?OV50BhUxrkpyOpGJf7IiU3JjdleIKgBGysKPtZjK3WXr5rBlQh4d2MljsXH4?= =?us-ascii?Q?TnbOegzo5CYyhBdcqQRaGowWFhGBRpxwMyyriFGscuWYm7d12VcLLzAymC68?= =?us-ascii?Q?E+ZbFXR6sWjSrf2pkMk7WWUT5stUph?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39410400002)(39830400002)(39450400003)(39400400002)(53416004)(6486002)(38730400002)(53936002)(6512007)(478600001)(7416002)(5003940100001)(72206003)(189998001)(5660300001)(48376002)(50466002)(110136004)(6506006)(86362001)(2906002)(305945005)(33646002)(25786009)(6666003)(47776003)(2950100002)(4720700003)(6116002)(76176999)(3846002)(50986999)(42186005)(50226002)(81166006)(8676002)(66066001)(7736002)(5009440100003)(4326008)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR07MB2575;H:mypc.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN2PR07MB2575;23:JVj/3zrLAyu4NN5SEpvLGkF1Yv8/ba20NIT9jup4U?= =?us-ascii?Q?UHnP9DwtMgv7uglFe1YGgGe35S8vyRF+o3tooxVvEufV0RjtM4rfWiV0Y9iH?= =?us-ascii?Q?DgbauiKWG/3/KZF1CiOsVCkhrofC0pvmOaHYhnnC+dxdK0fgois8c6L8TxKP?= =?us-ascii?Q?eyTQGtHBN0rHH4O2eglHCEN9HOc9d8fnVdAAIRuj37EediRwEIo/zGsmqFa7?= =?us-ascii?Q?wJToQrVpq6QffxZJrGPmjBbor5nKejR8LphJM8SdAqP3ECf40alqiPEvUuzO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A9BfkHnYBx9Q?= =?us-ascii?Q?ZbrxKH7SZjhH+W4sjmP5HWwR4teC/T2qS148qho0S/tLPqSRB+EWgCct8w4V?= =?us-ascii?Q?ctasV2XfRSQ1CWVSjQ8gvvMVr2K8qtsT2r9T7kPSoUvH0Su0No2Dfb+MldTn?= =?us-ascii?Q?E=3D?= X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2575;5:VNVPGJ7aym6crmJuywwPfJp1Lr0wNsAoYnNUmMVBR1Fl9WCI0TIfTx3R6L6QeW/S9oigs5t60GOnpQHT1r1afW9fxqQ9I98dDd+i4ao96VwP0Re/obhl9XMGq+ZHucPmFlBIRdkkNJ5aB+c43Onzp033VhWcuoN4ZJjbAwZ6+skdNEU4rLV+02djqCZft+vJEwP8wAmCKuXgM3xlVmczhT0by83QhEks8bmEn/aMCnhPb6Nea3j5KZnD244/N437aFGanvdvgvp8hrPXfBtjPO2lLfkQ6X+3conLoNK5Wm6aNccoRb6K1QPC36a9NXVvrcbtg/8nJZdhMm6JeDYlyjuc93FC9pUlOsp7fXwUkMuzobmLDIG8cqz6frWL4muh3dySsksNtWXHNAeKCz4Pea+2NpHbf4CYNDPUC5mVTtcZ4cyRQAY9DLXqJ9Qrt7SO7N1QGs02QkS29isZE8M86ppuwV3Mn21h1Z6JtaPXU3doBrOxhKDfXmHsXXklbZxI;24:fAdkfUnJqLdsHwSvNcgRS+0lHFiZXvjXFGG0P9iAFBMi2Qvw46ODmVR9eSA/C7H+33HIIO+Lm/D5PWSpYFLPhOsiECra31nSig73Agms9kQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2575;7:nOoekkTHwoKwsRA2eXabihLOL3yYsvLAXNgyPOEc0CcT1+mywfIDM3DffH7+M395UjxpryzKjAsJ1GLClSMg+W7cpnZy7wLUryEpkNsMiwOwfHioTubNZvUH7PwLMyxEt/1Ie9p6mMmPvqwIF6QcjAydJvPIx55nDDWNzoi3CToO4k015x6AiV/w2HHCnBVqtYLaI9HK0E2fzKvo89ppDFlotV50tThQJILy8zKvvyvigc7T/fwv/Lcu7vD10Ph0T9sfv4vTNU12q5udzb81JrWGew4vhxoxr6eTZt8pdqGHXdvEq3Iu4m/pl+Mpto70YAJZhAVlJBJsiHY47bNIjiTMTEV2HO7hD130X39qCN1GBhisbGM3WPuTOU48h0PWfQkJBvEtIoYZaSVTV1+T3jcjDHui0JrTqgnWKJhEmYnZc/VM/N2hQGrQAUPpcYXIhyXpiaVhUxeh2qPYxLNm1fJNO7GZJMDmGDBjoI0U2psL+clUs1fxSXFs9bLtEqrbkfu/qUP7CJi/5wTzo+vU0Ur8rteOJFj4CsPKiuLXVXZymWw3fROAdZNcdZV+zkCoU3Y7hTDoC+hrpdg1+C1Utgo5zpclwDuPQmOR0vW8JtmJQxj6fMfVTFXsSBhoQNg/mAcF9aAULoCZZ9Y2Wk0uQZMVaDhFDgcHDFLLGKIL3XovMdUSpg2kzkWr0ZXIN13MMmOLEN57Q//nkYp+KwtTAfP+zQTgJq6JzHNTuZdsPznJGvvC+paHJ7x7oyAcLMMn2FtPAr/3orcNUCyKkoTjDj8HQ+Vem8/eaYKtRqiaCds= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:10:41.0248 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2575 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3256 Lines: 111 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 | 75 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 45ea1933..1c21e01 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1833,6 +1833,77 @@ 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; +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(*its_affinity)) { + pr_err("SRAT: Invalid header length %d in ITS affinity\n", + its_affinity->header.length); + return -EINVAL; + } + + if (its_in_srat >= MAX_NUMNODES) { + pr_err("SRAT: ITS affinity exceeding max count[%d]\n", + MAX_NUMNODES); + return -EINVAL; + } + + pxm = its_affinity->proximity_domain; + node = acpi_map_pxm_to_node(pxm); + + if (node == NUMA_NO_NODE || node >= MAX_NUMNODES) { + pr_err("SRAT: Invalid NUMA node %d in ITS affinity\n", node); + return 0; + } + + its_srat_maps[its_in_srat].numa_node = node; + its_srat_maps[its_in_srat].its_id = its_affinity->its_id; + its_in_srat++; + pr_info("SRAT: PXM %d -> ITS %d -> Node %d\n", + pxm, its_affinity->its_id, node); + + return 0; +} + +static void __init acpi_table_parse_srat_its(void) +{ + acpi_table_parse_entries(ACPI_SIG_SRAT, + sizeof(struct acpi_table_srat), + ACPI_SRAT_TYPE_GIC_ITS_AFFINITY, + gic_acpi_parse_srat_its, 0); +} +#else +static void __init acpi_table_parse_srat_its(void) { } +static int __init acpi_get_its_numa_node(u32 its_id) { return NUMA_NO_NODE; } +#endif + static int __init gic_acpi_parse_madt_its(struct acpi_subtable_header *header, const unsigned long end) { @@ -1861,7 +1932,8 @@ static int __init gic_acpi_parse_madt_its(struct acpi_subtable_header *header, goto dom_err; } - err = its_probe_one(&res, dom_handle, NUMA_NO_NODE); + err = its_probe_one(&res, dom_handle, + acpi_get_its_numa_node(its_entry->translation_id)); if (!err) return 0; @@ -1873,6 +1945,7 @@ static int __init gic_acpi_parse_madt_its(struct acpi_subtable_header *header, static void __init its_acpi_probe(void) { + acpi_table_parse_srat_its(); acpi_table_parse_madt(ACPI_MADT_TYPE_GENERIC_TRANSLATOR, gic_acpi_parse_madt_its, 0); } -- 1.8.1.4