Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752632AbdGYPNW (ORCPT ); Tue, 25 Jul 2017 11:13:22 -0400 Received: from mail-dm3nam03on0054.outbound.protection.outlook.com ([104.47.41.54]:14350 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752089AbdGYPNS (ORCPT ); Tue, 25 Jul 2017 11:13:18 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Robert.Richter@cavium.com; Date: Tue, 25 Jul 2017 17:13:05 +0200 From: Robert Richter To: Ganapatrao Kulkarni Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, 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, gklkml16@gmail.com Subject: Re: [PATCH v4] acpi/iort: numa: Add numa node mapping for smmuv3 devices Message-ID: <20170725151305.GU17961@rric.localdomain> References: <20170725050237.11033-1-ganapatrao.kulkarni@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170725050237.11033-1-ganapatrao.kulkarni@cavium.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.52.104.152] X-ClientProxiedBy: AM5PR0701CA0007.eurprd07.prod.outlook.com (2603:10a6:203:51::17) To BL2PR07MB2340.namprd07.prod.outlook.com (2a01:111:e400:c753::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73e1a975-333f-41d2-45bc-08d4d36fac5f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BL2PR07MB2340; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;3:981zZj52BQgmDXuA/V5rlWbLejx6XFk2kiQ1BNEbV7nGyCc9nVzKqv3pVkRsGqb6JL+mVilFSA7M4qYlZsv2nuxLYic8K5ZDOxt7n3LwVnxqkLHUTuzLGFSgZl9KzWxUORYAAv6OpIN7lVFx3JGWrkrEGWYz7EgXuTgDBOd3U7dr66Wj5OISDRNbQPJ5RNhVOObDoA/+Wcy4lWiBIZFZG2ai8MCq5GgrC8fB6HqTxyv/mtDgQAwHme/R5XCJO7M+AMPDWPBpQoHZCB73II8Y1rvh/ytkGft6hi/XV1EtYdxmWzuPJK8iPuLsA0Mgc9j0L+dxqJgh22bwsQ4hXXrlUnL/66qd2/G3FkMkLFZfD+9MlKmTEn594yeb6v78dfNhQCliQ7lkZWaU/yxIK0KfCCOqz9ftushILYRVOx8ipXal8RvM6BY153rypSVJsPiacgYk0qdUMbEMtc8BU3gs8DGVMFyeS3qaOAkoeHxoxmaLP6pkfgZ3t6N9ub+oHVb+TUFEjg36+n1X0to5AcQis5fc5A7eWefZUjrYIBzO4DzhjqwLqlwm2B6iNIUcRN0cvrz9MRLmUzcXKAVVfXcNSvtZ3PleXNqnYCzactpZga6Q3ASYwK1z00Hy+WhSQ4qRfpI39sglmy2EKAd36THmxVwE2HHerNFQ5Z9WrCipxp2MvdQL5yxFiQMQrYYrI7cckIpcKnweGcoBDhSTLYZq+NT/FRXzNrPZXHQxvMr7Ykk= X-MS-TrafficTypeDiagnostic: BL2PR07MB2340: X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;25:JiNSHiUUdKnM0UpWF/6CirLBST10Bh8QfqWGrfxVooBuHrriB8Ojw/x5nmep0yzHmJU0akNinNrXxLhXmUbncZWQXcZ5Esi+C9eHg65pb3xoAywXKxRfaQ7iG/hrflV5UFiRW9knglFmFydvNI+xL/DVhS0fECXywTG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cHR8muovns29dXwDqkx2E/vcY7tqhLQV4/y2jFpIqt5kw3Hi/X2lfR7cWQ3+BMWfMsTIeIHnhBkpFljg1t0WWxCh8nDY645UGLKZ/Gm9BV9pTqOJlsPreyjwybI1ed4p3QHuPOSQbpmmzDQ3UBp/RpBljNPH1EdujSpizNN87ZMloi/rZ/BloTDWytEVdM/kYRrEK/jouGoKG3pY31rVOt7kik6mMSJNrvKIutbrGeWaKTsOw54rYiNJ3Id7f2Z9jOBNQJAKrD2KiUa/8gk/JSHmn4to+GQPVJjEemRqVRZ7Jr1Ut7vPcaXgsl28hDl6VfWfgT4wYonPOEGQeSnw/86QFTJCM6CYcwi2lCel7t2kMoxii7AmuJdLLjrOgrGHL2eTQmUIm1QiL825Z5DiyA8ZO60f4FWbRxiI2iMY= X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;20:SK4dHkHUViEott/Rnk/L5wT5602UiI86mhhUOC4e7H/FkYyDKcRC26aHmRKJczb1zltmhVnXlRAVGAn+vOl5mF0q1Cu48rGbCvoHnTZ7TzGUHi1oLVEwTSkyf8W3Gd1M8tEuwvJHqibB2UyAtvtpRVC4vbcaiUHv6u780ZPGWTtI9hQ+EvFePJHHjHOQglU77kNqKY/RwbgLaspNniMHEHcn2r+ih2n07EBQ+iPSKLsfhDGi3v5nYaeQlPaZ6d/9+X7fuHfkrOOGCf4UoCOzjD7b4iJWdkr/wzbD2cYJIPirZg7EqIj1o4OeLrGCS+t3KlrrtH6fVbtlbIBacHpL8Q5GD6x+u3zXbp31QhrD0QVDX/iBvaN/6aZASi6GSguPcZ91uZVeT1CX4dsBqzFG0tqfxTnxM3pIYT6rbCmgIIa5QNMrZFtm4NblYG4d6L9FYGLQ3muGY5WuB5jZrwBn9j0padadOqMqDpD+VMf9dcoixap3jAZJVSJiQW9QpStq X-Exchange-Antispam-Report-Test: UriScan:(84791874153150); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BL2PR07MB2340;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BL2PR07MB2340; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2340;4:Ying3Y7emxCAv6/zW+ROsqBXkBf5ZZf0oPwf9ha0i9?= =?us-ascii?Q?az2DHWEc7ebPTt5EC69HZO8WMN/3I3X63E0Ntnzfe+C+qh7iF3YG3suHohKD?= =?us-ascii?Q?j7Hk0yUc/qYjr0m23aDH/exl7Q6UNv2LhEYjlMgNb4gHTrIu7OXxsDz0I2NM?= =?us-ascii?Q?88gSwNPBmSewMVUxOmLqaiKwTS4xxBUB9cD8yJu+XY6mlD0kL9NcDsTQo0yu?= =?us-ascii?Q?k5s/SU14BvB5nRORwOQhUZMoZ7RHFck6PxBE9pToWhFef0lCL0XttG9BMYOV?= =?us-ascii?Q?345KUHRHwlaeSxQ+KcCxyTAhOSof/LD3RcYj+mfs+Pq0c8gZFtSWI5ahpecG?= =?us-ascii?Q?/jKghg3J2nJwEHPuuDEo0TGgVly8VAHl2n6jQukmkDqbpsXiU2leH0IRGZmT?= =?us-ascii?Q?oM5MMC8iakcbPX6U4OsUwHDLg7YMGmKK6uXNQRjrVl9xbF0BvUaqjtabQ/gz?= =?us-ascii?Q?Zv7vM5JgsKsDQmzylYscnZhAD7kxFY+0xra1L8yDNX9lgAYcOYF5L8zKyQrj?= =?us-ascii?Q?V2YV2LRBSSJ0flgtEo374PHCn9RkfYWSpCpB15wmMm8Dtt0lMZ+/pRTtWJlN?= =?us-ascii?Q?ovmzpKLy8TH/ibE0SduFtaIvYP8f+VOtMIUgrS4dES04sGJzzmZWm0mhGcX5?= =?us-ascii?Q?41XFTzs3fFhPr9axdmX67TWGUOqjwNuYllKkN2nj1EjatXJmOSZ+uvvwAHol?= =?us-ascii?Q?KbDokfuO3mldeC193nxmn/pKEgfotgvyLACL0y1ZiFDv51AWzVkdrF3ynzs/?= =?us-ascii?Q?DAHMJDWAoVL8zFvqnL0tQzIRGNI+gcL2eCIfvXu+Yi1Wup+ecVwwAf7mqC1C?= =?us-ascii?Q?eOrS/O9B9HCzUamdJ+T0Z2VV5CP7/3d19QFeTOv9JBUntC5GMHZQFn8uCKxz?= =?us-ascii?Q?2O5LHxPgjzIulQ12qd9HSsjjbylahBvUooMLa1tetvCtdVs4ZvOYD352kRSW?= =?us-ascii?Q?sDtglxMaR9sV+9qlc46j/32KrhuexPP/K7ySKBiwzu4hHYM6VLKRQbCPOQvK?= =?us-ascii?Q?FDsOjbm9myMm2JKs63dJ1sy8BP+fAhQJ3RkdBSwVJorOgjAGgat8qm0hr8zD?= =?us-ascii?Q?HDwLyIlSoCV5AzfGxx48bNisGF3TjEUFN0SvycpW1jiBrGQBewOT8sry0QYo?= =?us-ascii?Q?BZ5rso55aiTlddnG97pE0yTz5x5fXPun66k/nhDF6Tif6BY9e3krphmAXTen?= =?us-ascii?Q?AfUGHyCWsb50E=3D?= X-Forefront-PRVS: 03793408BA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6009001)(39860400002)(39450400003)(39850400002)(39840400002)(39400400002)(39410400002)(24454002)(199003)(189002)(8676002)(68736007)(6306002)(55016002)(4001350100001)(66066001)(53936002)(101416001)(7350300001)(7416002)(7736002)(6636002)(305945005)(4326008)(33656002)(6506006)(83506001)(229853002)(2950100002)(81166006)(81156014)(6666003)(25786009)(2906002)(86362001)(97736004)(189998001)(47776003)(54356999)(50986999)(76176999)(53546010)(42186005)(106356001)(966005)(50466002)(72206003)(6246003)(9686003)(6862004)(6116002)(3846002)(1076002)(23726003)(478600001)(5660300001)(110136004)(38730400002)(105586002)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR07MB2340;H:rric.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2340;23:IeacSVxN+tZ6kJMT6zuYmSyTPg/93Yon46wXZKhlM?= =?us-ascii?Q?q5O54rjKb5N/X25oSSpMGiZYnbrPeH0JsQ6VdLGkEtEy6WBqfUpn6t/vEOtn?= =?us-ascii?Q?sQF8Ta7QfDWkrKJ2ypAH+PwkPhujjLv0WYRwLMsnTlZdfBQadL3PjBQBTPcr?= =?us-ascii?Q?t2rigC2sBc9xfvUIYFbf7+KvRIqcgXmYbGrtTFOWaF4laAV+7vT68KQUH76a?= =?us-ascii?Q?sevRW6nsCVBGmpWXhGhPpGWsb9UYKUm+u+gALQivBXL65/S12HNe9JjnBRSN?= =?us-ascii?Q?/1fYZW7vQYJJD+HJslQYhFQRu6STbOthHq/CnF1UvOgTBPrVyNF1ZbkpcH9q?= =?us-ascii?Q?GSpkGfhd3K5JufemzdzhQZhp4xbc1C7IgQSwKEKY2VDI8cy/sBSjt38TblEE?= =?us-ascii?Q?QgOu/RI1HF4DH49S6zvrk2k+cG5GcTOeDswrF6xlYil4lQLrRoL+vOm7sFWu?= =?us-ascii?Q?BSR8VMiRheL0cNMqIXzVnV1tUeUY0qyOS9bxT5UkIVKHXRUvlrBJPn92JmSP?= =?us-ascii?Q?F+HcFOyCkipxVUhNQE/dSmvc7CNRdSl4DOCY1tHvCaKZHANPbZAyxp0iYqU7?= =?us-ascii?Q?mnhl9LMTLQpMldv7aorGqoU4YJHxYAgizMZhDNKnCbxLHFQh/lmMuqn1vZDD?= =?us-ascii?Q?J38lejKHwf59Yhs5y1xefFvbcNxXVbDxMhrqqtn5JrD29ccde6/d+oYMvgtz?=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L6fNJWwl7VyVRgC8S+Qe+yXBAACXn9Dj/qOV28?= =?us-ascii?Q?B/9qR91mmGjLpZY333Uv6M+WaqWqYK/w49R/pKFOj4nIcKYYZAJPpKRwaPt1?= =?us-ascii?Q?g=3D?= X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;5:pH/rJflNSyQaE3C0ZLq7owu1BdcEbi8BTBmB4EN7t6SQesAlAar0+bWJ9iqEP/+s3Wu1ie0+1VkF7CReDjRZkCmvllEpOguC3BDD6xgEBqCNbRB8X6mtaPK9Brt5JXZJXG2ZnAQIiLnmdJ7fw5JTr1Xgbg/pttNxR04RtOBmO1xa97nqPZLoStHSeel6Xde66+e7XWXiwNXV6VcKLuKOHjfIzR9/2XJQ9SVi5QodixAnZNJ75d3ensvPCeE51xdwEMQ4VoYSY75bfHxsIlSFQ8trf+WYsvaWMPK83mwdxhr7aO3Te93OONixt4qs2SWIlJigMyNWXM0em5LQyUnh+621T285Zpk6aqdM5KMZeZeY+sRUetQ4V9lpPJws+NLFyHI+DWyGgWAAPe4sOYwzzJUU+siy8ZkQC82RYc5pxPKYIw/19H9Dwsb5sff2HIc1jV6C6dqFX+dpmoDQUF99FZp5fBOEOts9E8yfkmwzKalgTv9D00lFRcpV1rYFTHuS;24:8RG6A63uFjqOGpjCMgAmnvg/DCEHS06GKUQxDQRENBV7MCejaMP8DSBvZP8hec9Ji1LWtt7tPRx0+SJctMOWkx3B1qyjNj6+lHBytP0ZwN0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;7:IJIj0Vt8x3EZLWx5dhhGjzb4yufWIdk+nkTl6BOxbjzykiOa6JeQ+lydbT0jnzkp1WaeY59hPBgcHPYK7Vqh6c/6ZBErmUVwt3P+V4w0MN9TDiNAyYk/CumIIsmbK2IARcCnmhPIZuG4iBVFqfrRESlMO+V7KVVmr/k1+3NvKfNtPMtrso/wpIhqSvF0gnuk3o50WglblfYanU3lfuBG5S/zLw49GRiltlvDwxODv6plwHc4qD4yFB5m9lz+xH4GRfMgvb1zXz/ZK9/pvczHBo1yZ5uXLG1xkkRHXFRPO95i0nAwBs75ulbHVsWbN1a+vRDc8ufsq6gdRpwRHCcoK1MFNLK0Vzj0hYG11f83S62fgqt1FnHHnsGDD0S5x1ULe2wV8xOinPfzWnrHP/M8+it8iAB1LOwB2pPjZP/LObptnG5axgKa5nVDRWDcGExHsB//XXO9+ltBY9fnqU4d9tOF5IcPaF6YjqDmC5mySTMvyf/GqesOqJcZSqDRz+mJ+9u8PW7wVuyE1rwNX+MgbwP2kA8K4biA/VKrRSDigbgy2fbS1vtUpFWdH+1D2R/JjDTXWqlZIifHgF1MFhOHFW+RvUdn4ZDvWaZP+VlQ9YLdKiKyoh3XLUSCm88yg6Ovv/ymAKd376JUkMD6P7rVjfVz2oOqd0xXQcnZKW+r291QsFnTnnxFMelj5bYUJT1qxIs+bsFZUu+bssj7C1te8nnuzJBqZe2czqE5A6+tfdjZGI7/dskXW/KoF2xDjQD/t4TcO+Ljpzsvtjocuur2VLPTxgrQUatE8m/DsrhT4Ds= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2017 15:13:13.0962 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2340 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4302 Lines: 136 On 25.07.17 10:32:37, Ganapatrao Kulkarni wrote: > ARM IORT specification(rev. C) has added provision to define proximity > domain in SMMUv3 IORT table. Adding required code to parse Proximity > domain and set numa_node of smmv3 platform devices. > > Add code to parse proximity domain in SMMUv3 IORT table to > set numa node mapping for smmuv3 devices. > > Signed-off-by: Ganapatrao Kulkarni > --- > > This patch has dependency on header file patch [1], which is > already merged to linux-pm. > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=c944230064eb65e4fa018d86779b4fd200b1d7e7 > > v4: > - Fix compilation issue in !CONFIG_NUMA > > v3: > - Addressed Lorenzo Pieralisi comment. > > v2: > - Changed as per Lorenzo Pieralisi and Hanjun Guo suggestions. > > v1: > - Initial patch > > drivers/acpi/arm64/iort.c | 33 +++++++++++++++++++++++++++++++-- > 1 file changed, 31 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > index a3215ee..c5c82c3 100644 > --- a/drivers/acpi/arm64/iort.c > +++ b/drivers/acpi/arm64/iort.c > @@ -908,6 +908,28 @@ static bool __init arm_smmu_v3_is_coherent(struct acpi_iort_node *node) > return smmu->flags & ACPI_IORT_SMMU_V3_COHACC_OVERRIDE; > } > > +#if defined(CONFIG_ACPI_NUMA) && (ACPI_CA_VERSION >= 0x20170629) This acpica version check was very unhandy for backports when we did this last time. If we backport just c944230064 and this single patch it wont work as the version check prevents the code from being enabled. Isn't there another way to handle cross tree dependencies of pull requests? E.g. we could base this patch on acpica (ab539eaa50) and remove the check. Alternatively we could do in this case: #if defined(CONFIG_ACPI_NUMA) && defined(ACPI_IORT_SMMU_V3_PXM_VALID) > +/* > + * set numa proximity domain for smmuv3 device > + */ > +static void __init arm_smmu_v3_set_proximity(struct acpi_iort_node *node, > + struct device *dev) > +{ > + struct acpi_iort_smmu_v3 *smmu; > + > + smmu = (struct acpi_iort_smmu_v3 *)node->node_data; > + if (smmu->flags & ACPI_IORT_SMMU_V3_PXM_VALID) { > + set_dev_node(dev, acpi_map_pxm_to_node(smmu->pxm)); > + pr_info("SMMUV3[%llx] Mapped to Proximity domain %d\n", Better use dev_info() here. > + smmu->base_address, > + smmu->pxm); > + } > +} > +#else > +static void __init arm_smmu_v3_set_proximity(struct acpi_iort_node *node, > + struct device *dev) { } Just do: #define arm_smmu_v3_set_proximity NULL > +#endif > + > static int __init arm_smmu_count_resources(struct acpi_iort_node *node) > { > struct acpi_iort_smmu *smmu; > @@ -977,20 +999,24 @@ struct iort_iommu_config { > int (*iommu_count_resources)(struct acpi_iort_node *node); > void (*iommu_init_resources)(struct resource *res, > struct acpi_iort_node *node); > + void (*iommu_set_proximity)(struct acpi_iort_node *node, > + struct device *dev); Wrt pseudo-OO programming this is more a method for struct dev than node, so swap args: iommu_set_proximity(dev, node) > }; > > static const struct iort_iommu_config iort_arm_smmu_v3_cfg __initconst = { > .name = "arm-smmu-v3", > .iommu_is_coherent = arm_smmu_v3_is_coherent, > .iommu_count_resources = arm_smmu_v3_count_resources, > - .iommu_init_resources = arm_smmu_v3_init_resources > + .iommu_init_resources = arm_smmu_v3_init_resources, > + .iommu_set_proximity = arm_smmu_v3_set_proximity Add comma at the end here. > }; > > static const struct iort_iommu_config iort_arm_smmu_cfg __initconst = { > .name = "arm-smmu", > .iommu_is_coherent = arm_smmu_is_coherent, > .iommu_count_resources = arm_smmu_count_resources, > - .iommu_init_resources = arm_smmu_init_resources > + .iommu_init_resources = arm_smmu_init_resources, > + .iommu_set_proximity = NULL No need for null assignment. -Robert > }; > > static __init > @@ -1028,6 +1054,9 @@ static int __init iort_add_smmu_platform_device(struct acpi_iort_node *node) > if (!pdev) > return -ENOMEM; > > + if (ops->iommu_set_proximity) > + ops->iommu_set_proximity(node, &pdev->dev); > + > count = ops->iommu_count_resources(node); > > r = kcalloc(count, sizeof(*r), GFP_KERNEL); > -- > 2.9.4 >