Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751999AbdFTHIR (ORCPT ); Tue, 20 Jun 2017 03:08:17 -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 S1751813AbdFTHID (ORCPT ); Tue, 20 Jun 2017 03:08:03 -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 1/2] ACPICA: ACPI 6.2: Add support for new SRAT subtable Date: Tue, 20 Jun 2017 12:37:16 +0530 Message-Id: <1497942437-1390-2-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: 0418c003-9002-4c9a-b158-08d4b7ab1412 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BN3PR07MB2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BPKOiZeeuIhYaFq6UlKhLC16iCZtkwkrHXL5EIjFqAK173sOamlUnl8onll9I43kS4WXLeqIELFkw4auzTXtkgFP7sqfiNqSxbOHfDSYegPqde0A1N+gevlWA==;20:NqvC8CkYG22rnj3AgCUu0YgqDAdzYB600FaNp7jIdirQapCcX+t8TS1MQGTwRF8S983YE0JEYaoe1b8Ejfpi0n1rFXVItsplz9gZMjxxUIKEUKY8vz03NePEW1ZMpkN/OGXpIu3WOU8B1PX7WrO4Jk+F0Vs39OuNS1DiHkahW9dIW0HORb3nPdyJCDsrLs+9aB9dzdJPdJa6M4SQ0L9OQBtiUU81kX+Bd+UjVzl5AcEwRkl6kFvWbfmePBJ+jTXHjQgraYQ6zAf+FR442l3LaA9trBgwgkwv3zOC1rGUMIORHPPoMu5MIG2vATEFeuHIeUH7PzVT0yPUqdD8RpjNej20A48NYuA0J6xElQMh96CHImoeZkC71hUPld1olXUWQNHCwOpTYSvfrtgT08fgPYxQR2PI1y1QgaAT2+5rMbw9sKA3HJW8LsZwOJVcodsbb5+Yahv948H6jVGdgu3YPkIWut1Sfo4jBZxRiUKI98FAZ/VZrD0WluHUtdUI+ndV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); 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?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UNyB4oL/CG1NLy1/0XSRkZmT26Axde?= =?us-ascii?Q?JT9r/0hrp61WfGtmTuvmP5vNHwiT52R7rItfDv3++rIQ0aJfUt5d1773tn9X?= =?us-ascii?Q?HRdgDe9abCdb9pKCHYcLCHIcdLzM9IojzYlJ+AHXwqXDM/QRScCkU8nNHUCb?= =?us-ascii?Q?egaT94Grl0QPcwm2IAi6mfO/WuiQc+Hh8txWSdzjLjOAqiTlkdDuoxNBIq9j?= =?us-ascii?Q?apCzSfHNHQ4RprxM0ntiIXsOr2H/IkraOl1viL4rAOrNGO4WHGG8jYpqRZHD?= =?us-ascii?Q?wlaI9RDMUNWhdKleA8j0koZwOhGcpuMCUsaq4QGmBKgSo6usZ1e7RQPlUQX+?= =?us-ascii?Q?uU7DA/vm/RPe0=3D?= 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)(6306002)(72206003)(478600001)(966005)(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:R4uiU0iW/Wu/1DXHH8KaLU8Z8So14M56VYhi+O8oK?= =?us-ascii?Q?WDTuqVOFMOV8Y1D4zL6+FttD0v7Ae5SvpgKnh+2vXaT1BMe6WBMjrt3W111O?= =?us-ascii?Q?R7Y67PGw1/HF+c+mxj/3m8J2sy8YzoJbSQFUbuzA/FIQxh5ARRpHil9kK1T2?= =?us-ascii?Q?UVJk1vVx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TRjcsjLJqkYb?= =?us-ascii?Q?DlhDBb34r9vpU7rYWM8YQzltcQH8MSOBv9g1/3CVkduGSvw5zteRf448Lapk?= =?us-ascii?Q?aFcQYPy3G2YgAzYnFSK43t9+WipwteR1RzYqueACd4Gxnd90bqv/O2V2XrsG?= =?us-ascii?Q?DyMWAo2X+LWDVkZ7aQl3JcLSsghSsnL/MfI/AX13KfeioPPSNjHMYez5JnLY?= =?us-ascii?Q?WnbPNQ9ZHricQSEZnFzYDFKgLRvPKRKEtOZ/qg7v6zzZunWaMoGMrzzJnhR1?= =?us-ascii?Q?o=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR07MB2564;5:7gi5J+rDoHWnj2CWewMcljWlt3Z6hEuI4pspFtXg1Cj2YE3qB6ehnJc2yb6nCGwVP7qv0whezaoN6V6hv+j3KrS5NEMv8X8eK+mpMLFIiHYe4p5PB4TZG0QmpVIsAFY7olCCMXoO9BQLdkdsIg+HxM9UgQPg3Jiay/14uWVT9+SeA1CJQGL4X+Ua9KDwtJMO9lDBikJjJrdR+O34IE46AHV7O+1qJ+du/ahJYSHp9nSBxrJxtI2gtrthcKRCgSKTPYJ8ZM526rz/rqrQQi5IDij6f26UfMSWBA9WIZEz8stxCz1mLLHGtu5iMSO/kbghOCL5gDPuWQ2WQ3h3UQMzmTB/7CLzczyf+ykCflV0CJUFqHZS+Ejj9XKjvT3+Sbv1ByRCaYMQs1YgFxcJ7qW8F0I0lJ66mb8HXTevL335eM5W+GAdoglpOEwgu3h8t45VlcIzm8WtNOTKPIkiS98TuCIVkBCIovh/kx9yfz77B1Bo6mWEuU2zHwHxHb27uvqB;24:AXlRgkW/estAMnIhedA+ulV4TlLPFbaDyxNJJiUagqV+U9Wrpab0NZrgrjh+hz3cy2cToQZhv7SDzfQw6pzJq07wKqNDzNhaLe7KcL+Cvik= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN3PR07MB2564;7:425L1ScMvEmJC0M9kI5fk1iFkdtXeZ2f+9n5PsNxQeG+cuDE7XhjVntEHf+0gXI7fdN2lBWoI+8BEf+38cdGzkV1nfYlhTSEt1FHLQaXhZvdEir63ZyvV+palhXpRvIYnNmduF1bJ3RNy/UEAfXSERjr8zCwe21TRNEMr6/KspsM7s14GKe/F1bwa2ne5uAZVaMkYN8Ici7rmVY0pRzgVOgG7IVsGXdP0Cy7Hw/NIV4jywwm5yay72tjvvDYDA4ArQKjzK9ZNZ5Ug+X47/GMSjrhEhZ83QHWIOhDpNLou02LVhBZJRSRUMdqXckPxEgJ/LAlP9sG9qL3k0lYUAUovggxbWpvQm/Re6uAaxVeSgIsg4L6p4EeKXyfolVQY1a79ETZbqrQLMoiCBA7sCRz9EeqBRd3hBybebYFVw+tnRtORtsXC6r1lGECwZ6DdNjvDWnvsDQ6C1wyZDRmFaSF4Btz41MOUq/46YHKY1P6M5R2f5qptdpd4j85ZK/uND6T057Hs1Y3oWGserTMcdtY/PYqzSZiaJEsIcdIq/cpBUTZBh8h/4EhBH3OL9lh/0gu566xh9f2TfxePE+TGNxO5Z3nIwz8D/SG7+vfAWlXWNDpjQ9DPQ8Gj0HS2hGM7O5nAQUUPBgoVjzhRwgTXcM/4wAuTj9ZDTJGkIJiDwJiOJTh9uddO2rjRjKxtl9vy0JWEjWFcb0DIM3QXBKc792HMnGAEHmRq+nj6PYF5ZVzAvwQWs1gdqtoeDxrtBm0rzVHuO0nLnG9rJRUv7fLMS9fBKndBzRxurGf+g/CLz+ShCw= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 07:07:53.0289 (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: 1213 Lines: 42 Add GIC ITS Affinity (ACPI 6.2) subtable to SRAT table. ACPICA commit 5bc67f63918da249bfe279ee461d152bb3e6f55b Link: https://github.com/acpica/acpica/commit/5bc67f6 Signed-off-by: Ganapatrao Kulkarni --- include/acpi/actbl1.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h index b4ce55c..253c9db 100644 --- a/include/acpi/actbl1.h +++ b/include/acpi/actbl1.h @@ -1192,7 +1192,8 @@ enum acpi_srat_type { ACPI_SRAT_TYPE_MEMORY_AFFINITY = 1, ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY = 2, ACPI_SRAT_TYPE_GICC_AFFINITY = 3, - ACPI_SRAT_TYPE_RESERVED = 4 /* 4 and greater are reserved */ + ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */ + ACPI_SRAT_TYPE_RESERVED = 5 /* 5 and greater are reserved */ }; /* @@ -1260,6 +1261,15 @@ struct acpi_srat_gicc_affinity { u32 clock_domain; }; +/* 4: GIC ITS Affinity (ACPI 6.2) */ + +struct acpi_srat_its_affinity { + struct acpi_subtable_header header; + u32 proximity_domain; + u16 reserved; + u32 its_id; +}; + /* Flags for struct acpi_srat_gicc_affinity */ #define ACPI_SRAT_GICC_ENABLED (1) /* 00: Use affinity structure */ -- 1.8.1.4