Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752891AbdFVGKr (ORCPT ); Thu, 22 Jun 2017 02:10:47 -0400 Received: from mail-by2nam01on0062.outbound.protection.outlook.com ([104.47.34.62]:27301 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751263AbdFVGKm (ORCPT ); Thu, 22 Jun 2017 02:10:42 -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 1/2] ACPICA: ACPI 6.2: Add support for new SRAT subtable Date: Thu, 22 Jun 2017 11:40:11 +0530 Message-Id: <1498111812-17053-2-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: 099eed61-f161-40e4-65e0-08d4b9356875 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN2PR07MB2575; X-Microsoft-Exchange-Diagnostics: 1;SN2PR07M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q64FsUwEV/mTVmS4cUlSvaCtZ2rynIxjNoaI5ZghFzv3RTLSrQg3PTZgnXEe9F+l2yVKGBR3g=;20:jW+W+hU26ffifjKQFHcqT7Y/q7ZF+P3FcNUXk7XsOGg/UIOWLd4yKe91sQn7H5gOm9AUWymU3FiCUSpT37EDb7rIholkNhDKjCJs6BsjyxsZveAr5Juz5aebcYhlJoDtNjNksjQ4MUhHb0k5gDS9LsNRTT9qajO8yVXNn1S+j3cM7MwJIs9VOcsjoVOgZQtZoLKJJFCo6Pud/f70WDTpckSUY+KcSWIKpBZ+DQ7yMwpmBBgJGHNfHvLcalgXWAj2i2vD62mSXwJA2/h++7k69Zak3mAZVFoR7L7/OnyuTY+5NYklXtnKEfgLJ4XFC2YrtESqKlIp3GXmiFV9v+hYOcHVI1Z4f2oonLSRcvmfZFEOdnrvXLRdxuaIVJ7G6zt91D5YyZbnw1/T+QuYb+xfHZlYPVpTye8ew9ChU3lWAYoRo957cLyAhSdJ/gen0Oqsq/d+Wn5ZElGYiFIsNUIg6N3LUQun5KEsR4Sbt90b/4/M3bW40+Z0KAuUW5LDCsoG 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)(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:t/5z4F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ascii?Q?SfFWTUj7vEUQdOd5OlPTTUrq639Eox6RMwALJ4qM0YeagZW5Oc+D66d7iuaZ?= =?us-ascii?Q?gvUDTeA8gduubTS4UP71XetYKu9Tv+wZy5JAkaCTrH0D7uRAoQ1I+jLPp4Ao?= =?us-ascii?Q?dRJzVCqwnCf0O7sFtuRs4Nhe20Cs+B9jCP+pnb9rkZAKPUQCcEEHX4maejpr?= =?us-ascii?Q?GMAerUze7eWxmdxFS+IEI+UTP2KovZ/wRDvNRPIymtXBgSJoDoO1v+kEmRR0?= =?us-ascii?Q?ZlgYtW0uY5neWJPAd04pR6tuejg4/brOqXhmCGzF9EnX9XrRlu4p+mIAngcd?= =?us-ascii?Q?JqKcGZm6tGjqg=3D?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39410400002)(39830400002)(39450400003)(39400400002)(53416004)(6486002)(38730400002)(53936002)(966005)(6512007)(6306002)(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:v5+FzFIwVH1c8kJWexfMAdOkBwZ9L7WZpZ/UC+bJw?= =?us-ascii?Q?W/hSk5nwunJlUyH8QzKRWgJhWUy3vZoN6x6iCzJZDz/zDCwLMc3SbGhJCcRb?= =?us-ascii?Q?9FMb42OnZ8/+5mhhd9EpLBAmF9KuedQqg8BYTuhMlu9ugmu/pQZyT5EgsYss?= =?us-ascii?Q?9cvcwEyB2JqGCrjMEQZMAJgQrRXkxlomBg6c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tc?= =?us-ascii?Q?mpvwu90ADKzznfmixxj1csw5rbA9xkUgG6cij8mfBCh0FNjaTcsBfTBGklVe?= =?us-ascii?Q?0FnVA7hg1RruxZQyKGpwztKProGL9yTRMXDmfvnrpVH9PY/FhrOFAkq5USEf?= =?us-ascii?Q?F/PZ4nLATG49UEE99+cDKrjqIVWsi6XSQtQ+gWc07BYeudiKW9VISmvC//vS?= =?us-ascii?Q?rxHdZCIH+82hUHP2ztPv/bFGkCHgjcci3VSJqRbMCNFHc272Ky1PwByVt0kV?= =?us-ascii?Q?I=3D?= X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2575;5:6/4UhgHOHHGD+FVcu4f/0/r0Ql58R/DtefXL3p4UET20FdGESaPIksI+FM/BpXaNSfOvWbV0EOWVI+lfDTk3yA0Knv6Ky7ImpHt9O6w568jHb09QgqMKNY0zYhZX3xG4BdvMFeCZ87AHSs6XRZemopwh4FH44BeT7Js4I1XCRLuyqffAFxexbJmjW5wlt2Gg38Zq094ghCM+XXMKhW4Vi6Me9S7fBRIR/SB1AmpfxaTHtJt5oUR69f90ZZE3QvvE3oYNh34Jrbvh1sW2IqzRc8HZVIzlcNlmWTNQaUTKn6NIoqYfqDlQ29uvUsk+NsPLB0lxCuK/U+yHgvX3gr3Ha2WGEyhO30oCf7IWuOoiawtXbQwrUbOIX38ULXZbtr1yX4Yb7aRcnrW2QHK1e2NPOa9b/WXYq1ZI61Xskf+S4j1ovjlOmdcSJEMu2kUwcbaziYOqTFTjUxLbJz5sKiG2BMDIjeQq3K++0UU7/9V4AfpF1kptP8aKyNqQtsj+zkDt;24:70U2GoA+AYPpjGg9h3uCyplnSuFpeuRiF7+2m+zMq5mXT5hbqjWl+qkWTynjHDQjCX7q0+HdIVSKmtZTu7XHRYBj7gT+xpo3I1L2C9n01/8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN2PR07MB2575;7:QI7o+VJygZk6ZLAvcuBRaw8f9JAchIY+Z2Dr0WJt3d0OzW5qDdYmo7aUzK+y+Po6iGCRFhMgNDAouYA5TJ7H3J3Zq7dkohfpAZ01bLPbjravyPV3+NKi2NlFYB0CEfoTK2AwXKIS0FY7hBo/jGYvkmJE5ALPz7yPIZ/ldaHNDXpZNdYKkKBd5qJP8egH4EtCR8T6HRozEOhHYu7vsFJUuEz2brqRvLaK3X8XpR5BxKPzeO1SN274xd0gCJjPZrVwBymcsylWf/5LVk05GCsNn4/FIsOsGMeboAX3Me2YLzQWcs7nOJzIIei8jGWoV9piDY9M/Wzw+5KzbTz8cS0c0oXZ/YkiYrCULZtm1cgDK0NGzSZAUC5CZXyrksaxaUaIdyc/CK5R+kEYzjSlTXKJSjffjUlSm3tnW+3xAS1pBi8kCBZYwle12Uzj02nMY9NADoa1vIJtQ2FBoCgAg/vC2NGwL8nNNOQcREA78FN2rh9JrFHqzb69d9P0srdm00X3WEqPtZY3slmq0h58QkrJeBXvN0Zy5xFi4dFvGnkOg5GErrLwcssip/NjzO0gxrY/hrYGsAxxJg+P5PWIr1Y5bWLL/BNb6wZQLSbj4646dtEcHWT0kACljsUWv3OrQtt56JzhbmSvXg9yQR6k6GShdphcis4RzbwPkUJH+gf8AyR/D9yh+U91niAsQKpAQ+afk5ksgdBUd+1W7Em1dWR1X3qddfazJH0IULRfrG1jOXGirfy6R1H9gqF/4NDKs33XvWhfPdulfO3NjJkcmVrhcvJYRJKBG604bcyhmw91YyM= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 06:10:35.3980 (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: 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