Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbdFFM5Y (ORCPT ); Tue, 6 Jun 2017 08:57:24 -0400 Received: from mail-bl2nam02on0083.outbound.protection.outlook.com ([104.47.38.83]:26971 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751305AbdFFM5T (ORCPT ); Tue, 6 Jun 2017 08:57:19 -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, catalin.marinas@arm.com, will.deacon@arm.com, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, jnair@caviumnetworks.com, gpkulkarni@gmail.com Subject: [PATCH 1/2] ACPICA: ACPI 6.2: Add support for new SRAT subtable Date: Tue, 6 Jun 2017 18:26:26 +0530 Message-Id: <1496753787-27735-2-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1496753787-27735-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1496753787-27735-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: MA1PR01CA0092.INDPRD01.PROD.OUTLOOK.COM (10.174.56.32) To CY1PR07MB2572.namprd07.prod.outlook.com (10.167.16.134) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR07MB2572: X-MS-Office365-Filtering-Correlation-Id: 55170fa0-d0c4-4671-8140-08d4acdb8ea7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CY1PR07MB2572; X-Microsoft-Exchange-Diagnostics: 1;CY1P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2qjBZkHc8YdjSziKPs5g+UG5Q6s6iHHmaNp3lHdpY=;20:4Nq98sqhCJWjczUXXx9SfKFCMSe3AlBUpu5o3OnSh2Y6yZYENcLLD8Pt48Qy4crT57Mfj7UMPBHYLk8FxfpMGKdgVGePDr3sD+CRcHwPR9MU7/Ef44Tl7QkBUtBCsJOQsFRV6SAQFULJfq4+Eerm8Mw36GGtL0tuGM4xMLYBZflNS+I3UDy+5pRVIRMswcd/PwgssSw9kNBdoUUSmOxOjro9pTZosTVk9Dn+HI5n2C3PkeBoT7PP48KIzw+r0OwkAPXZmLjKsxbR8CnsVbf27W19aCX3OsHDzTSYr2F8PLmDiLXbdZ8B8ZfnKiJgpRlIunrgOmE3DwxuQBhHR3GWm1Sq2IFATvFw6k2lVHasc5ACgHLw+FXXhC3sCjHX2Zj5V3Hv6OvozEJ/S25sHL9POfYXjI5ZPswgEfv/atl+vcQRt9u17nekxBw/riUhvknuokRPkZT4kdzD3VmlwTWa/hTQepg418+aWraA1Zdl0vaPFo/iOwESRvoipP2a1AKz 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)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2572;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2572; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2572;4:CwdQSJa1/pweP9VOf3Cn76GX5+JyMkHlWTiY/MqGpF?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zWHfv52Wy3+TyokjJ6yRCYMLRJvvUfIgf?= =?us-ascii?Q?BpOUftdBGzlaeaLTb9fi8Y+e+tXdgr0kHwbodQPrBY9RpM++Zu11kaFGpy4Q?= =?us-ascii?Q?qQc1Q9lMuUhberT9O0jswheI1yZPeezvHPtr2Al2/NH2BX/yHDAk4DHU3eRu?= =?us-ascii?Q?uO8X52tBPcw8jyLcULtzMQveXDPGqE9Zb/+H+HR3S+0unrVmANNuVpyZoPAW?= =?us-ascii?Q?oXiYfqHic2UK4VQ+S6U0xu2qaJVSGrndhAmyH8fTiV/S7fgsZvw7fimRJBHh?= =?us-ascii?Q?NVtsEOKdz1M9Y=3D?= X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39410400002)(39850400002)(39400400002)(39840400002)(39450400003)(25786009)(72206003)(5003940100001)(50466002)(48376002)(4720700003)(478600001)(6666003)(53936002)(4326008)(2950100002)(86362001)(6506006)(36756003)(6116002)(6486002)(6306002)(6512007)(5009440100003)(42186005)(3846002)(189998001)(76176999)(50986999)(5660300001)(7416002)(305945005)(2906002)(50226002)(38730400002)(33646002)(110136004)(7736002)(66066001)(47776003)(81166006)(8676002)(966005);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2572;H:mypc.cavium.com.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2572;23:rV3Zk2jgZGN2WxMFZd5YRFzN0rhXzMKAf6P028o/h?= =?us-ascii?Q?Bql+qH6SYFMHhdhEvTDfLkXe7MPd34Xt02vhv5nGUOcWrzaVOPACiFTAKYnA?= =?us-ascii?Q?zRm/YbU1srb8Sm8xWhOh3F/NqZ4bTCmmMdiO+JVXTGZSKR2s5txcZ4qsqsC5?= =?us-ascii?Q?bJK8CufbFIfXMnnkSar8WOvensW/bFI7is4irtAY95eTNQiguVfBvMnRY9cU?= =?us-ascii?Q?jQuj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/DLfmJNUMutlaufN2QW4Rhtfvupg9DtufUtsTupdEXjvThQc/Zxw4zawMLLVK23br4CE9U6VVJrBvUzx7zshBLl8rHWjdFeRTXxRjgC79GeBLk96DQuiMTGsdbMavF5;24:K1eZJ3pxiDh4WGn0fsXZ+eWL/WfXTv47/WjV6uIXj4wijfXgBSK6t3zA7VXiabvF9ItIwpjX0HPFvK/JMFhcw3NOdVYR2eP0rZVEohwK3rc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2572;7:l2mCSimpfjqFjxr9KToN9/ADrrnMtkNeg2Vr8zobpDATlF/zA3XLlqJq10M55Vw4PhdBkmtWt/b47wiBGCxnRtZ1irbwsWNXZbbW0MNxAyMR+lw3sUWXTJ30NPOrKcekWS3h9uk12Ck5BuhPjLulxAUwHARC/P6AuPrYLGMvuNcmm9y1AEWtQcyFQI6YoERnP1NAgoujElNYGkCdVRCvA11kmF3ZQYgBJ1q1v3yKR/oMBUvK7mKTFKKRvhHfpG9QISbIq/hFVVbg+uHg7zeQkgrgnb5n/RRo6RicKhesuf7fNeFNjJtY6N0SuvQCbl0dOsTtOKnQfKR/W7sbfzTPug== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 12:57:12.0521 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2572 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