Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752228AbdFHEpP (ORCPT ); Thu, 8 Jun 2017 00:45:15 -0400 Received: from mail-by2nam01on0077.outbound.protection.outlook.com ([104.47.34.77]:26302 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752179AbdFHEpM (ORCPT ); Thu, 8 Jun 2017 00:45:12 -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-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org Cc: Will.Deacon@arm.com, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, sudeep.holla@arm.com, robin.murphy@arm.com, lv.zheng@intel.com, joro@8bytes.org, rjw@rjwysocki.net, lenb@kernel.org, jnair@caviumnetworks.com, gpkulkarni@gmail.com Subject: [PATCH v3 1/2] acpica: iort: Update SMMUv3 header for proximity domain mapping Date: Thu, 8 Jun 2017 10:14:18 +0530 Message-Id: <1496897059-8272-2-git-send-email-ganapatrao.kulkarni@cavium.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1496897059-8272-1-git-send-email-ganapatrao.kulkarni@cavium.com> References: <1496897059-8272-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: BM1PR01CA0093.INDPRD01.PROD.OUTLOOK.COM (10.174.208.161) To CY1PR07MB2571.namprd07.prod.outlook.com (10.167.16.26) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR07MB2571: X-MS-Office365-Filtering-Correlation-Id: 9bc043f0-5c4f-45a0-74af-08d4ae292217 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CY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17vaBqJOnFG5yR5ge9NLr+t7R7A+AH8NcsGMoTG8faoOTPNiXRa7fXJ8/fX4ST18PFDDsh4I=;20:lwiy5FTqXeDaXATm13XYCQbhXxluWRklC502cB9edM4Eb3K0toYLqkK7y4Wy25qxHetyC3owwM07r6eokqWJpbVlDWyhtbeFrKdvjMcoAk69W9VtWurhQfUN0W4RwjdJIk3mGqpijVIgpFeOMMRzSqDNkBa1nlbc8KYH4uu4OWXLrjjQtb2mbZJYqWb7O00WJR+vMzWLjRaWORM/ApTqj/bCrShcYvb8JSS6VYtQRcT0bf2RuiQGXGdnqbhR3G4zr2vDn9WMVcabXQm9CM5ucfrWCw+LbV9vpQrNyS7HoBGQiPWcde0KwEj2p5ObqBkzhk+Tmq7ox+RLcMjhgNA6enJ8XvTay1e0joiz8IZosjUebePxbsc5zlVfDXZ8nsIyFCW81SE3pnhWsSLY1bKE/Wt9JixDg7NXNc26U0am6Pdct5UsP+cQsDj9+Kp6JHhasDunmpkG8QgN7it84mNzjE2btzInN8man0DSfdwtWMH6ZDWxj5mpAZYyv6lOoNgb 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)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR07MB2571;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR07MB2571; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2571;4:oQyh+5xnpVZCeGl+q3xT/xhSiHpnhj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aL71ekamHKEQX4lLlWlZtsA0lSAIgCIixm1RHq?= =?us-ascii?Q?TALw4VRaoxOmBX9PeeFYDWoCq/2E1+HvgYIbrLed8wzfJa2jafE8FPRIT6FU?= =?us-ascii?Q?BiP1gCzwxETom9uwUsIyU2AdatotmR479h7YZCNCxj8gsNFn9IUU7pf5c5yd?= =?us-ascii?Q?WbtIh4DQKJvNqZDtR9Nh9kK69BnH87K6iqx/BFPB3hx7vg9sVXNgYPe2wgLQ?= =?us-ascii?Q?xOgbTOsWv6YO9XWV+XmRWopheE02GH?= X-Forefront-PRVS: 0332AACBC3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39840400002)(72206003)(38730400002)(3846002)(110136004)(50986999)(66066001)(6512007)(6486002)(86362001)(2950100002)(53936002)(76176999)(6666003)(6506006)(4720700003)(81166006)(6116002)(50226002)(8676002)(42186005)(5003940100001)(47776003)(53416004)(189998001)(15650500001)(36756003)(33646002)(48376002)(5660300001)(478600001)(25786009)(4326008)(7416002)(5009440100003)(50466002)(7736002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2571;H:mypc.caveonetworks.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2571;23:M6cg0j9Jy6DLMIPhwWlJH0mQc+/IXrYGfOM3SEvlr?= =?us-ascii?Q?5tJH754ssRyMU9auDIUgiOJCvS7MoFY5Kok5JbooaULsP4GBgioQ4q9PyVMw?= =?us-ascii?Q?MOjTqsowiqbRD08jmUx/6yWp/7CIF7s+43PklfDguvHzLSSIXZxfCFAk6MLU?= =?us-ascii?Q?AuDBBRMX1mmUjJMP3kcYBdWiAi4bwWqKPMrrpCpKuO4YKcA3Yw1HGlv8FpMA?= =?us-ascii?Q?4TD4dN7Q4Rv0mfxzEGOIrZoGTyPk+CY/UxP00FlGlA0rLZq+wKm7CB4h7p0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fRc0ZRN6pNC5rPIur+dXFcQ3V2V8VPIMvfRCEIOaPxN9NGKAMmHba22L;24:togP7z4y5F/Ec2H+8gm9LsrG+kt7Nvyps9rc5Rvzt5IebYtSApdABCKQRS+KYHKDrzh3YLmBhecyCWOZLmZKfYe6aA7fg+v8n66BC6ABnmY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2571;7:s9hyw+zd1LgAKGh1VDGpfZoX7lBKUaQNT7bHwmyRQSs0k1qrfZ1FPwlr0jLNzSMsBbxL5kaNEtOMhdwLjTWksEp8JQqWrPuN5rUjsT1tdU/tkBcJa40++LacLk35rWe06cQIXC9t+qSVx4ATeunM0Mg4qwfJNhJ1C/Q8TehKI15nqnRTuGKds2gZ90oacEUTZqObo7fiIhzCOB/oQCqdkeHPRAkrrmVxdcUbhyJWa7Fj26gY425N7s+rkJDi06oPJupB1HXwiAphd8o/+NagZ1C7JPLlRrEjihn1SdMQaYL69ZxpagyawAt4JhHZRgK94xTHH+u/txeo00CZbFBrsA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 04:45:00.7216 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2571 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 43 ARM IORT specification (rev. C) has added two new fields to define proximity domain for the SMMUv3 node in the IORT table. Proximity Domain Valid: Set to 1 if the value provided in the Proximity Domain field is valid. Set to 0 otherwise. Proximity domain: If the Proximity Domain Valid flag is set to 1, this entry provides the proximity domain to which this SMMU instance belongs. Update header file to reflect this. Signed-off-by: Ganapatrao Kulkarni --- include/acpi/actbl2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index 4b306a6..389e91f 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -805,6 +805,9 @@ struct acpi_iort_smmu_v3 { u32 pri_gsiv; u32 gerr_gsiv; u32 sync_gsiv; + u8 pxm; + u8 reserved1; + u16 reserved2; }; /* Values for Model field above */ @@ -817,6 +820,7 @@ struct acpi_iort_smmu_v3 { #define ACPI_IORT_SMMU_V3_COHACC_OVERRIDE (1) #define ACPI_IORT_SMMU_V3_HTTU_OVERRIDE (1<<1) +#define ACPI_IORT_SMMU_V3_PXM_VALID (1<<3) /******************************************************************************* * -- 1.8.1.4