Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752105AbdFUGQm (ORCPT ); Wed, 21 Jun 2017 02:16:42 -0400 Received: from mail-cys01nam02on0040.outbound.protection.outlook.com ([104.47.37.40]:21952 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751656AbdFUGQ0 (ORCPT ); Wed, 21 Jun 2017 02:16:26 -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 v3 2/2] acpi, gicv3-its, numa: Adding numa node mapping for gic-its units Date: Wed, 21 Jun 2017 11:45:43 +0530 Message-Id: <1498025743-6340-3-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1498025743-6340-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1498025743-6340-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: BMXPR01CA0036.INDPRD01.PROD.OUTLOOK.COM (10.174.214.22) To CY1PR07MB2570.namprd07.prod.outlook.com (10.167.16.25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e97570b-6c20-45ac-4e1a-08d4b86d09e2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500055)(300135000095)(300000501055)(300135300095)(22001)(300000502055)(300135100095)(300000503055)(300135400095)(201703131423075)(201703031133081)(300000504055)(300135200095)(300000505055)(300135600095)(300000506048)(300135500095);SRVR:CY1PR07MB2570; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2570;3:wxu/S6as0HMPCn1nioP9wKo/TE0k11YSyDvsGJTc/acIyPRwBLgsC1bU02nEPoY1iT3R6jOO9CycdNhAfVIutSFyc7H2HRJLUAeQaZl2+bM1AJSkcnC4Wk6w+hmaO4oicCUggf4fdL/T/1iwv/g+VNZGTq3drvne0Y8/f0N36bXk5hCDVGSaTaSfwxHcEp55oPaVEaLxVApfXMN32Lx/KxabbZ0IyC1Nqowf4XVbKkYgeS1iXdn29gCmil982LlNhbsrebljRLeomXHJ3yx7Delj7IovZrwSRqkWG/AwYuVAoO5TOsnxSwIvfhegs/In9o0hW6MOaM9uzxHuUiNm9LsginKsalq84Mg3IU5iEhsOU2nWWnHAoj9YO202gRM1p2pSHLiOVIml9gEuRFtEn8wRqy6MbZiD2YqEg1WwZmc8RKwvSyG1Pnf0bwb/pc3+clemBEA753rDV0zr6zWuS3jUctiM50u4pidBh0smZqq0X/+l9QQVlwfBl+ODNXuyNtkwgwBTNl7uDYgrn4QrYlgj1i3RO85QVzklOrz97/4j0dJmWWSuoOV+bF6G/raqJ33fP85dyAlxVZIEVwnyOtZtclSQUYSq5NUgmLBXY3aD5VWxp0XFEoSnTh8ejdYD5BmV3iPB0sMVeUx+zlMtgaNKSYeDpZv/QFpyx1b503atxB3JBymwGXrJCCV9k5y6Z/m+ilOumG4mAdK/jHbRXD8MlGHJCfESFi+21STwofQ= X-MS-TrafficTypeDiagnostic: CY1PR07MB2570: X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2570;25:RCYftWoxyZHi7TwwPOsv5XW6w74SCkm5eoL3e95QBdOTYf4RSSRT/u+D9EVvc9u16YG7lwA+3kj0eYYyj01vAZqNNAFru1kpr0hj68AizkJEQhyzpojINIdSscaO7qTrrBggUbwOG0fbs6Ze2cybtL/oORfKj1soquN8MveIwYheN0U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B6ak3IIknM3SbWw6FE26JYqnyXkHmWSmryp2MGmzE/x+0YV37FeyyE1x3qF3M2rZgxkEHhihw8KvmNM7PsvWkttnTBJuARC/03Ft3ZYacCBsXEeS4G5NLCo1Z5jKp2XN46MMg01fXmyqhHpykiw4fK1PMAMh+R6UlTKhYDW+/fKH1UaAl3Ge5JbIgCr39F+Ionmy54TFVxise89fpDTwU2EEzdD009vIkyI7KnJ9LXgv4to2MM/FludbkfpGQQClyDuU7KiFgYuSZifmVEHk2j6kCEvfm8pUla+HAGoXrTXLmm7KTuWYsmjIuHE6V7R2MgaRUvVSAkzI0kDss6M9fqwDAFD2SeHxufDXLnfklLELCeIQHnE+7+3ueJfmdrYjrfsohQSejm6iVCOyrE05/4UI= X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2570;20:6GWkvju2lK4z3CCeBT6ob7dBOfwIIxb2y6ZiAmJwnytjOQ+6tbt7lhl/JFVPrh74AU7oSoy9p5Ego2lM0xpTq/2sxk/aaftCDQ4V462HwUqeuBaApai/hGayoWs7/WGfcHBWEhMvZ13aznbwfnC/hdFySBlgoCAjsjryUS0CwJZvzlQj7y4oRKJD+XgJe3X3+lLtCJyQePqXx8Ve10LodM1YHUBWXKc2ofQkaiD578Pjdqnl7VbnAImttFP1/o8wXwoeWdrJzXcVTJUIJPbhRetfjGMWJEmvkDV8srnvF4F2ZEQPnoGlOY2uuHNpHnHE8B/Js7UGxTQsfF1Kc5n/5ongq2ehL18OzvYTwfeSvhdyFr5TbI9rC40VM9hspgqn+vJTYXiNZ0ZUaJQb53AAov79IuuqIRs1eFWvlBHfzNEU6sm85lr+N1snNjl+eTwm6B7Mng+4WiOwzByF1AZjm0iXb9UIdzXML97NXS4DFL22/tUbScXPOMkGMCptap3d 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)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2570;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2570; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2570;4:6/SsL6veZVqg0WnpMUylXW5N+UEl0bEjGyFnTKu6tu?= =?us-ascii?Q?eGpD0a3DKyDaplwfsUpHzUfbd3Ak3WuSoJgPdmfa+aKfMOAxLheH8sLQITtE?= =?us-ascii?Q?AgDcUWfI+yBE+RHE1N3b0gPhD0RmYfoCtIJ+Spf/h1Inoyac5rXSEUv7wWiR?= =?us-ascii?Q?TYjo5GIUWjlGWjKDvDLwzpGtz6XP0gBWJVhdFcsEa/i5Ek+YB2VcChDmQBlM?= =?us-ascii?Q?BXaxGAnX6bi+yYzhUJV8geBZMGoZ6lTMEA0xmbv5CpvkFcUkd8ZACFTowBsg?= =?us-ascii?Q?swocD0DozFRT5GWpr8yIe1nG0E4rIBBZ3Nb0DSmRFUtCESXyH3vtSGFXCoSC?= =?us-ascii?Q?TmEslJIUuML90vGSMlzDrfskhKjJAIvBLiUaIfKvQQkfOV1i7+7mEEIWlCP9?= =?us-ascii?Q?n9Zsn+2rvfev5WGyWaHwjaGqQVyuxYyJSm1X2VESgwJgkow2pVGAHOr0bhgC?= =?us-ascii?Q?Qdj8cR/GLkIHeyL1sTidyZzo7trv453gltv5II6hnPC6MKB89t52cSTlqWVA?= =?us-ascii?Q?v/hZfqDd2wVWU3+KbvKbEa/iriuM+TMSNVv/twbcHak52BSaZ5WoAvHpdTBP?= =?us-ascii?Q?NyA3yE3OhiOtRD5imzey6uRbO3dWZfvVV/zrimVjlhoWw3aCA6zjwV1M7F4F?= =?us-ascii?Q?I9iKUDVNp/TzzzOxeSDBlBxDWhgcRbX4NQCiN0oDcXn7LeofnucTy74kZUlF?= =?us-ascii?Q?hKhIPD8JyxQ9x1hhPwo9p3mkqSJF8CObnJ4rZsFiYamGgvAm5qvk9QwLsFkV?= =?us-ascii?Q?v6py9wBvoy6WxlOtRHACDskwcF0gJC24ZGaIZpFKEcq1KpMwbPYZlz4w4GEv?= =?us-ascii?Q?RktU/6f5/1JtNtUlCDWtO3ubYgJYkEJYbrRJiPh2BfY+emRQQoBWPB3E6Mt0?= =?us-ascii?Q?6ptbh6MeAY9YBmmSmOJCLLa/3P6qFUvipsSPsnVQVWbTOj43QHoJRmVQ3vMY?= =?us-ascii?Q?nkYq0sehLkWl6k6oUXgLpau7E6lPYb6b55x2S0J5ua9DnLa4C5IR89HxKwKh?= =?us-ascii?Q?6tKS28vwq8bZNMtiIZa7cNchTsQfpVGNYvQAyIFL6px6kq5Bcjgs/klL6t2H?= =?us-ascii?Q?oNJ/TvSJVQioPh42CGkTk057LUC7QoX0UaEqEsGeZVI9d6NsHfAgus9YPs2d?= =?us-ascii?Q?N6AVhtfxyFDnxE3TV02w6QWS8VLFn+?= X-Forefront-PRVS: 0345CFD558 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39400400002)(39410400002)(39850400002)(39860400002)(39840400002)(39450400003)(3846002)(6116002)(4326008)(25786009)(72206003)(47776003)(53936002)(478600001)(66066001)(305945005)(6486002)(86362001)(2906002)(7416002)(5660300001)(189998001)(8676002)(4720700003)(6666003)(33646002)(2950100002)(6512007)(50466002)(7736002)(110136004)(6506006)(48376002)(50226002)(36756003)(5003940100001)(50986999)(38730400002)(76176999)(81166006)(42186005)(53416004);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2570;H:mypc.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-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avium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2017 06:16:17.1249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2570 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3334 Lines: 116 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); + return -EINVAL; + } + + if (its_in_srat >= MAX_NUMNODES) { + pr_err("SRAT:ITS: ITS devices 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:ITS: Invalid numa node %d\n", node); + return -EINVAL; + } + + 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("ACPI: NUMA: SRAT: ITS: PXM %d -> ITS_ID %d -> NODE %d\n", + pxm, its_affinity->its_id, 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() do { } while (0) +#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 +1937,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 +1950,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