Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbdFTHIU (ORCPT ); Tue, 20 Jun 2017 03:08:20 -0400 Received: from mail-bn3nam01on0068.outbound.protection.outlook.com ([104.47.33.68]:29463 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751135AbdFTHIP (ORCPT ); Tue, 20 Jun 2017 03:08:15 -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 v2 2/2] acpi, gicv3-its, numa: Adding numa node mapping for gic-its units Date: Tue, 20 Jun 2017 12:37:17 +0530 Message-Id: <1497942437-1390-3-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1497942437-1390-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1497942437-1390-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: BMXPR01CA0022.INDPRD01.PROD.OUTLOOK.COM (10.174.214.160) To BN3PR07MB2564.namprd07.prod.outlook.com (10.167.4.153) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR07MB2564: X-MS-Office365-Filtering-Correlation-Id: e0ffd667-0dbd-4014-48fb-08d4b7ab16ed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BN3P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kd0OkK6cZCTfE1hwbUBG8QOkC0ecfKBspHrO6GKtmFty1z58Q3uwDsx80J5GquNzb+1JUPSHTMs=;20:f9UYf/AHIE+hQNjSU0eivnItauPcNqFNFVuG4UJLEiq2Qkmmdw4foiHVCdCrx99ju1ICYYe5eS9na3NSZckRqpRe6BYFIUz84ketu5Bb3YXLBcK29dURVX01xQDpvanzlTkQV3G0FBR1NJJ7ONHd9vVTD6EsA5+3Hf0dkaNGmXxV1DtFDXfdbzy+rWIySIytQeCt8T8EkdCWA+nzZZX5MFe/s9fsEqcAmMnrc6BO7uGQ/SfOKdyzP7tJ7dHf0BVa6W8KfYZhnA8Eyeq7OniGS9EaCW68pHT10yPq98llkPOA0jvGo1D6h49wfcerCuud10o2Rgpxd5LP3Dphw6zLuyv7//ZRHsSRRQYRlLvCsCvUWfuIRcGCR97fFflOY7XY2N1CAK0LGyIFjraOU0Ax0/N9pIAIMg4Tu8mBUGq4WWC2AhQPK7FRguZ9dK67MHkCcoXxeREV3u7/OPNI4bkIAdHX8Uzlnj9wSTOtbJ3L2KDnwgxP+hJX5aboP6PsZuwT 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)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN3PR07MB2564;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN3PR07MB2564; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR07MB2564;4:clddqqcG35XSMsmmIDI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VFmXG8dZoh6+oRGEpagARomL6SRbl7Fx8JM4qpZwgUwqeWYTp05?= =?us-ascii?Q?j224YN9n+3RCJ96WlByljrttueyvebB97CvMgQgXke29xUHOaa1b7pmhe5/M?= =?us-ascii?Q?MjQ78y6bruCxnpr8+jSFD3TaAm7rp+t4dzjnaQCfzEjoQMgdgGQSfF4+iAZ4?= =?us-ascii?Q?CrX75unxlQcn0NY/jQFKhF45b8z0Cxa2uw/r1dEdTGj+SOvBzg561avwzEOs?= =?us-ascii?Q?2NPNMdgjVxNtAHzv4Xg3CvET6TeLKn?= X-Forefront-PRVS: 03449D5DD1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39840400002)(39400400002)(39450400003)(39410400002)(39850400002)(7416002)(8676002)(189998001)(48376002)(81166006)(5660300001)(5003940100001)(6512007)(50466002)(66066001)(4326008)(42186005)(33646002)(25786009)(2906002)(53936002)(72206003)(478600001)(6506006)(110136004)(38730400002)(4720700003)(5009440100003)(6666003)(50986999)(7736002)(305945005)(76176999)(86362001)(6486002)(2950100002)(3846002)(36756003)(50226002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR07MB2564;H:mypc.cavium.com.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR07MB2564;23:0zaezkUJvLoQ2tOlNHwepM2S4XWVOLgE+GpA9Sdj2?= =?us-ascii?Q?NqLa/WahCBBCMc8g73e82Zy1H4VZPNcH9pdCM8OUhYhZ+T5m8rxGpntEWQIk?= =?us-ascii?Q?pSIdcJtlWtcLN0xmrtdtJnQQzbDCApeuMV0KMmkTQ3JpnnhwsTvJMQumqsgq?= =?us-ascii?Q?jbmBZun+pauIIB7I1nAFs0RV9aZ9bmPaBGh2TDiG5PPDZTn+5wNYxKlHPy9G?= =?us-ascii?Q?OMnml15aSWPr5GBId2INj4rMtEGLCYxMVSPCkqNy9hyBG2BuGN1wL4gcmZxh?= =?us-ascii?Q?ctlIOApJrZdSnEYrhqkIKnN8phvZE2ixA3PtMbQKE5547XeWRb2xTr1l/Xki?= =?us-ascii?Q?qzb6P67vbWFP/+qi2R1VzFrbgsSRC3hzsCNm8tvnyqmVB05+njhbbPvQurHi?= =?us-ascii?Q?YXXAn6JvHtS4ZnTA97Tsw1b8EJz+f4zhQdp45WXseFMQXuMfnb60WmRAjxiq?= =?us-ascii?Q?hSpsa4/KYNFTq5shYfmhI6B64zPJQ1yMTZl0QU/RdvLYMAM0bawVT5Ju8YTX?= =?us-ascii?Q?ArrmK7X3WCBPolnJheoDM3b/3Yg3hwNaKqjrlYCSPwkJZMukKeHnkYbKiKtB?= =?us-ascii?Q?fW0gSsNY8xOzVlfqsXSTi7sx659EsrXuo5XU9xDUyXXHE6f/geBfs51nsWbq?= =?us-ascii?Q?HQU5D5Sq/7tot3vxRBvU+MvtVr96Mglst7Nk4JxlxDwkjr5UeYWtekL8JAUm?= =?us-ascii?Q?xPKpcYmqEzz865P2CBr31QVSRYDs5cMahiV6QTE0/zqcgAftY0ysUjiD+rMf?= =?us-ascii?Q?w0Y+Jj+Oyu90GP91xtZkCz5lmTloIduHT5E0tixwMuvL9JF1UVAKsDg4TKjo?= =?us-ascii?Q?mK8pjmqFqSFIYCz1SmgMn8evOiyUt5zPgq1dYelVRb+fW3MZbkq3kO5kkoqC?= =?us-ascii?Q?Vt5w1gEdmotojDFdgDeun86lDQZeat3IcBy0ltCGFR/GjmgjRB+x0TqNuh8q?= =?us-ascii?Q?5BKqhZqeLRQh+HzEASldMC1lVbSg2cfqi/K6qkHJbw/7a91RhAd4nRv5VvSx?= =?us-ascii?Q?9gOBP1Ov/vx76jZoAYbDmjfutRngFQOV7xdrd4aL2zKULv3LsazhLgTbVciW?= =?us-ascii?Q?mE1hzhXV/w1w7BNlRaBrQRF+avx?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR07MB2564;6:PEHJiz7zIdjv6e54I6bfHFo9YLIlHaO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/tMk/gbejJAOmI9jR0+zZN9C4E/RnHhziYiFMQUk+KDQh9hfPDjBq+j5JOaKKcvLFJRL7rEgAIjwhRxUA9ED+gme5m7onKekX8ZNeLNSVu1H+3i+NKZMfFQl/7A/tpvPsUB37zaYQxBzsBdCz0cYpF72vThWoVXi5np4WlWL0cNB50G2LNdb8QQ8+1mOWW4TrjV4LiVGD1y/W9Y4bAGYnFKIxKPTbNkawVxXGf1ZDK0BwvrQ+1avbDmxomxoJ5JthVmOI9MRQugGTU1iilCzgzC+5Y7tPm2UnuWg/khuScP0uv39/k+DC8pltmcByk9vH6MjO5lGEYRbFIxbspMDoyb67KMtI1zFndjnr4yS4xla2vd9tsZZFT05n/c2rh4TcDmnNTLDLKUajJp8eioEgaZeCBINLTTmgRMM/lkASR9nmgz/RRHrkwg3kzYZl6MlSywO1FpUD5YbekXD1i6WungN7zapDXw7t8ySHJZC/E6M0ieCoCh18TotSgjSC3uGd3Kle4w52YyWqPtvmKsxH1z2ppFZ7i6d30tH1Rx5APWDhAjj91qcSs875cQnh4oL1iekLJkYUUV+Fo0ONNqkiAvTLBhPwYH4aU= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 07:07:57.5787 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2564 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3215 Lines: 112 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 | 76 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 45ea1933..5865a75 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -1833,6 +1833,78 @@ 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 */ + struct list_head entry; +}; + +static LIST_HEAD(its_srat_maps); + +static int acpi_get_its_numa_node(u32 its_id) +{ + struct its_srat_map *srat_map; + + list_for_each_entry(srat_map, &its_srat_maps, entry) { + if (its_id == srat_map->its_id) + return srat_map->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 its_srat_map *srat_map; + 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); + 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:ITS Invalid numa node %d\n", node); + return -EINVAL; + } + + srat_map = kzalloc(sizeof(*srat_map), GFP_KERNEL); + if (!srat_map) + return -ENOMEM; + + srat_map->numa_node = node; + srat_map->its_id = its_affinity->its_id; + list_add(&srat_map->entry, &its_srat_maps); + pr_info("ACPI: NUMA: SRAT: ITS: PXM %d -> ITS_ID %d -> NODE %d\n", + srat_map->its_id, pxm, node); + + return 0; +} + +static int __init acpi_table_parse_srat_its(void) +{ + return 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 +#define acpi_table_parse_srat_its(void) { } +#define acpi_get_its_numa_node(its_id) NUMA_NO_NODE +#endif + static int __init gic_acpi_parse_madt_its(struct acpi_subtable_header *header, const unsigned long end) { @@ -1861,7 +1933,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 +1946,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