Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752121AbdF1RsR (ORCPT ); Wed, 28 Jun 2017 13:48:17 -0400 Received: from mail-bn3nam01on0086.outbound.protection.outlook.com ([104.47.33.86]:63456 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751532AbdF1RsI (ORCPT ); Wed, 28 Jun 2017 13:48:08 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=cavium.com; Date: Wed, 28 Jun 2017 19:47:50 +0200 From: Robert Richter To: Lorenzo Pieralisi Cc: Ganapatrao Kulkarni , lv.zheng@intel.com, rjw@rjwysocki.net, 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, hanjun.guo@linaro.org, sudeep.holla@arm.com, robin.murphy@arm.com, joro@8bytes.org, lenb@kernel.org, jnair@caviumnetworks.com, gpkulkarni@gmail.com Subject: Re: [PATCH v3 2/2] acpi/iort: numa: Add numa node mapping for smmuv3 devices Message-ID: <20170628174750.GY658@rric.localdomain> References: <1496897059-8272-1-git-send-email-ganapatrao.kulkarni@cavium.com> <1496897059-8272-3-git-send-email-ganapatrao.kulkarni@cavium.com> <20170615134603.GA16292@red-moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170615134603.GA16292@red-moon> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [77.180.54.156] X-ClientProxiedBy: HE1PR0901CA0053.eurprd09.prod.outlook.com (2603:10a6:3:45::21) To BL2PR07MB2337.namprd07.prod.outlook.com (2a01:111:e400:c753::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e15a908-a30c-469b-78db-08d4be4dd405 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:BL2PR07MB2337; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2337;3:aJ7f3DsvlVlsXfISewRPPhrOqFj/ssOQZDCeot66xYhSWW0FnP+W47nWzM4XG8+7W0nLf7/ttwszKRLLkSaKbZLCJbmgzxoKwDqHIOeUL9cnVCoAD6PR8MI25lAlYiUaAQWN8joE9s47/kV5NYP1t4/wx5sRBXNi7il9eUFxVTI+IZ1goUyhoEIT8v5MacVP3W7qYvVJFg78i+SoHfOe1ebotY2avQzF0tlnYKmBKQk69IniqZF7y5PQfu+5h2ARPwXI8G7K9HMpd0HC+qtZc25AGTj9T8xHBQfyK/oZkf7TK3OJQz3NWEQxH2gHOXHTPvUWHxwKobx3eMXgYGeonvNs6S9XuSm6IVGsIy5i5hJwwagmpSWgxEjMOfm9zAV2UD6MJmcZyu/RODrbGZqVwnSvtXuo0lC1M/bcg+QHfJ4veXlMWZLUptqhPuLAsVKkU4cB1IMhmuVfrwICteY86LjCY8fW/YdcyNdsBgcoS/TzH0ev9gjZjEeyIjhJqSylQXPleuzvc+MMRBW1Wx8LalvzANBarJcpFhk3n7o7/CXP4CKfkF7tZ2nliJsuAzuoXodbiw1oZmD7//aRWuJpBPrjlPfOVxrTH2pIw07jBJsmneunTjnCQC1MTeAeLItZtamiscf/0/tcC/Mmr99nioWH4AZMbHfDlkgeuRiudaPuP0QQbIrRCt3n6Kf0H/h8MNCvT2ZqqFqsdY6byGPzLb81hVGd6+ImX0vD0uufC3o= X-MS-TrafficTypeDiagnostic: BL2PR07MB2337: X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2337;25:g/qU3qBFvdgdi/i7UujiV8yeihBd1Y9NVcjVtr7YmX4kaSI62ZDZQbgO7a+VQoGkfow78l3cis2YaBgvxqM3GLSV5UChH6uLzdu05eM4vydwLKrJj0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ee0kzo7ql/GKEO2xPFqjYELuZc3Sq4hGiNGOTV0ft4hiShF5tlInTpC55U3ltvrJcxvncuPuCeGyHAhqgIE0M9l2NsQBHbfDm1yMaYp0nIr4qnKV1pyp/qrYuLlWpk3NLifEL0G1YrFlD4WUlk6/967AdR69dM52QOQhOy++cuiPE2ulS/mlqCSOmukwWRWjvKQ4q1DBep6LlWcvsHWOXBVSsAn/VLKzuNLpHSDTwHfTc/cmeE9idmVaZRkq1I0f8FzyZT9sOe8ux64wuOzk1hFfldNKzmPpUIj0236QNeN8j319EsHg1NIolDaRrMtBAehIbsaYvbPekLxHMfYqx82sC72USVBhK+qaC+iQZlct5ACXzimwUvc+qGOyI94uXP0817vWcTqTfeF+Q/jx6SQyae2Kg3HRGLMQeb7fHdOClJr746TLibZusGe3Ln6rnQAttiJv2+OCD6oz522iilM= X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2337;20:glltw8GAjmCnp1lv3LKQHotiz85ixUT5ar7LbrvZ/eVqK5o6/jJfpzh1nqPqvzvOE/iZhfgh/He3+OzYO7lyqELzmLMYNe/uigdcVZuk3cWkEMr+wyVWNXgKE1LOo62ItubvKYXuLysMeuzFVIL4hcDINIYu9+EyNMc1XbVeBSLJuQeL5PavkvnOWl/ulNuefte7Zd8qS/+LfEHcAZ1V+05N3JcwM7/ZIZCMtUgARjRMkpH4mX/ZU2oyNdz0RapYATwDlUvglxTKjoP2G+dcLVz4JNluC3uFjMI4ODmp2vfsqYIZIzog96hZa3bWTJqYX1+7b233Sk3YIBWSZCrNBsw7NtAqPbmj7jZnCmbfQO7mC7ppAt4UuCuZwdO9L3BTBUS2M3pWT4p7kU7aym7WY5NmCla+BiQOKYMJ8hJmVPvUfTqwyvknT+APg2Y4pqdmDUQXPX/eQ67xBUaaeAP7/dM4DOK+8T3s3RnYsLZbcQz/H0duxphXzdPhygaALk3a X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820)(236129657087228)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BL2PR07MB2337;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BL2PR07MB2337; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2337;4:omASVmbma7QcAVN2QY5nQq5HCgUIgLc0IIFfR+fr3S?= =?us-ascii?Q?HtV4VoyjZcwmM02GcIdmd8PU2UT+dWkPvRg5737JlOPW9wwYbd091xYJ66hk?= =?us-ascii?Q?feS28x0bYNAyJFtuMof+zBQosDXS3LBUJAc/g26RafWUkJ2F+4ivbSTK29OF?= =?us-ascii?Q?9dAGN7cNXHdzAF5LVSwZRrphNHUgyW4Dp+AnncZTv4GMLDaIkq26n0nDPo7W?= =?us-ascii?Q?aLk8BByZWvpj6ynmcrOyuxnAlGnH+T02OkYFoJ+Qw9oJeWyV+Z8G6A2ZRxSM?= =?us-ascii?Q?eCd4xYcTUhZgk+HzoKJQTraEBJmNnk497EBFaTjL68egtruYkeFyDKE5yOhe?= =?us-ascii?Q?EUkRw6Ksg9kRfsWGRadZRplYh4oXOrMduPwKEZw5V00ln0yo+5pbQIWfmrW0?= =?us-ascii?Q?/cjDMsmVgqi/lDbr7Fy2WsyRndbP61VnDuDeb3hFleJx+oIX5qIgvgUa16Nm?= =?us-ascii?Q?lY3zGgKWFhQL3vhVn8g+vLKvi/qrgv+8CEfysT6PhleacPhV/mYAIffOVogG?= =?us-ascii?Q?kroRapyDW/TEOgvCN1t7sLspgK5DKPm7CJgnXIZNfqX/VHJ8Tu+SlLmkdF0C?= =?us-ascii?Q?22W/gWI2CTL8K1f4H5EFWD3r7gKHfNY9+FxL16vXhSVx5xRrfnOUqseutFd3?= =?us-ascii?Q?Vlwl9ahweak3XMmKsgrU7IFQ5DQdYmInz1mtsT3LUgVKjgSYu8x3kOyLV1GN?= =?us-ascii?Q?CXoIKGxK5pi1Om2btdcetAQSTuzoHRb1RYoOgbi2ZIfmqNTBdnNEXPz2Jz45?= =?us-ascii?Q?wBb/0urws53LYPA3cksOPB9h985GjZnSb9prbtYCAFopy/c1Ml0weSuLGTWF?= =?us-ascii?Q?9LYEQ/0ldCvOgK57rXdrNLJJsQ//1qd5ZQbgMuYECbjz9ekC+NBEjvOFqcrw?= =?us-ascii?Q?zQOA4ad9oegYJO9zPJFOuWpDmKnXo7Z8ua1sbPbnOlgRK4FlqR5crElgEr4b?= =?us-ascii?Q?gaPPEbAbIQ5QaVOpznmWklLkM8SeKFsdqQ6KXh1XuB1cQHI2TENRBRBK1U+j?= =?us-ascii?Q?vMf8XOkI/7JLzo5JocXgyF8Ilkd90y+lNzsW2YWrAzdJLlosks+H2wZEI7f6?= =?us-ascii?Q?9Zn5hypI/a9qcM7fZ/CFOOeaDxiJvfwTuoBG2neSOl9Z+kmhmFnFQeLvLnmW?= =?us-ascii?Q?JxugM2UX6Oh36jZLEcBPQ5E8MD+m/nEl1wrfnyRGZSbIuz9HTiy3OajNQ1nN?= =?us-ascii?Q?k66FMONgPYi94pQOTFR7l761u0+Q3T/47Cexfd0eclaWipd1VPF69spXNfnG?= =?us-ascii?Q?DnxlpwJEb1VEbB2+Y=3D?= X-Forefront-PRVS: 03524FBD26 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39450400003)(39850400002)(39410400002)(39400400002)(24454002)(6306002)(6116002)(6666003)(66066001)(50986999)(47776003)(189998001)(42186005)(53546010)(9686003)(110136004)(3846002)(86362001)(1076002)(55016002)(33656002)(76176999)(6246003)(575784001)(53936002)(23726003)(54356999)(4001350100001)(50466002)(38730400002)(305945005)(4326008)(72206003)(81166006)(5660300001)(478600001)(8676002)(966005)(25786009)(7416002)(2950100002)(2906002)(229853002)(83506001)(6506006)(6916009)(7736002)(18370500001)(422495003);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR07MB2337;H:rric.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2337;23:K4mdGxcIpNyuGC5uFrt17zatyflM+cZYOW3Vnclwn?= =?us-ascii?Q?mC9xBr+r5wkvq7d4O8j6XU06iE7e8S53l1lmREYXIvZEwH0TNXaqq8zWgzms?= =?us-ascii?Q?IMS0/q2J+SjZyeu5lH7I1gWfjmeURTkmSi5AHZz+qKMaqTFKwE2kaNspPmBJ?= =?us-ascii?Q?YYyXrSWGhWUORJinbHtjnBdkysrTDvhmV7pB+juvYQ0kWpIXiDkWUVD3vXn1?= =?us-ascii?Q?D6jZjXtKx9qkswAgL6ruAG56VDBkSWw3Ak8Yy+dLHvOwIm2C+e3YziDG8I5k?= =?us-ascii?Q?+hflaiZRJmHai9TDgS8QVbwuWVUxdDzaXqEWgde7IK9bNMlfNOZmPhZri30l?= =?us-ascii?Q?woJ7ks2EATnk1NWpA8ye7b1RYZ/AF/bXvIoqmJdKsGCoD1wM+KWmXt0IO9p8?= =?us-ascii?Q?luNKa2LN/r8SJDrwK+Zrs4gu6IuJnBIm/JT2JfNIQ4UjIhhDGZPHW/M+XzNz?= =?us-ascii?Q?ofCvuOJssIBIxJsbnlPKZtloIAikKLmLOWwCVEfIQgoh2X5gyVmOk65xSEbk?= =?us-ascii?Q?INGwuB3GEH182IG8F9bWOm1i+jqg3YjI8yuFO5pRBdgdY/L/acQmFoOTMStp?= =?us-ascii?Q?m2rKhs6luBwqLzTvyfA7alw8VJ7OYB5CJgUi5Ito5X18bXIwxLvxZGUbzwcj?= =?us-ascii?Q?xaGNB+YKWAytqZrM2Y4IoFOSHg9CxwVw8lAx1j0Io0HvhjGXXBvT+v5Y7ceo?= =?us-ascii?Q?7uuGU9aSH8Ieir+upfHrDKEVhHHW2kdAEQEmRUU67j37cGOZocCwLeRVsgXA?= =?us-ascii?Q?3AZ5a66FQNmd/hBGK7txqLlsOSKDirfL+m9JD80B07LgSlAEO1eL4b39ZtSU?= =?us-ascii?Q?AzlHqarjas77tKr7aoSb+utn3GyDT5KhivHD1Pgb2RrxR/XSz3MMSukdWnHZ?= =?us-ascii?Q?j7cg8vNwccsvK1Iy/G4rPqZ4ccEh+ywrXTBtl4cd+RbmO5KZbqrSumm8ACkp?= =?us-ascii?Q?+UOwFezj74HrKhY+HWmD1mZFRcu3xeJnD3nLIGqBY2p4S56kNtmP4qv9jZle?= =?us-ascii?Q?547Iwe1DDAp7+PEdI5+R8Hy7WmaEOkM5FCLfp6tA1AlVuJzTEe4zwMEXlTWA?= =?us-ascii?Q?EW4ETmUvvcN85dK+01DTHZjVEGfjdK75z9w/AfymavB6j9rUX6BNzuilfSND?= =?us-ascii?Q?LLr4D38eIralGO218OCjWYqm9IxaQO9HoAoExQkqERUQzShKv4pvGgowAPCO?= =?us-ascii?Q?+EXDhfKNiuRjuvCDWRb1DS5qomCptga9smEKoaXhvZh1HdphddYSkzrL/TMT?= =?us-ascii?Q?5LZ7ouB2XccTXCdWmg=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2337;6:6+a2CsKHm76uQ8UlSMPn9AGSo5L5IK72jV19sr4UHC?= =?us-ascii?Q?4jvvHlBn6ri+C04wke6F261ZP6uEvqUEUftdwnt8uzwgQNneOhvDV9EvFXOO?= =?us-ascii?Q?Y9ETnchyRkiVtRYzljuvJ2U3F9rdO3mEXe0Yc4aOk9SywCPo32YlK6gsP+1y?= =?us-ascii?Q?sx2F7vJGAvfWMfThAWh4ct/Vzn8+v2mcbDUwKmQJ4zvHZCygdLSOYnvAmEi0?= =?us-ascii?Q?HB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WX3OFcESXdvxpIr6z+TBnvp2pJaM+t9iOcNRwJ1G7l8FWtdxtxFtana7CcNHoIA6ngeMTgdAML9SHWhhOQoD4kIMad1ZV8C/RhwnMBx758S/Hb0lWIXp5ovo4irnXHWsYB60kuuwZW51scPkfZEIQfhvY7/+RXvbKxoAay1LhrHy59+jVxVPpxtXy+kmVuzocgoO2iXLjjwUK2hIgc2PF1fSQPicDpT1BZW91yWg1SHuZgEsBDMCl/ZTCjNGUR2Y/H7uOKuEEUmp6rtQ1++ByjerhcJMWAgpv19ZUs5Hw9a+A4Q3K8tAgkovYf1CuoYNLeDRYcaRnxeasN0asS3/0OIORqFCq0iBZAKlM34l0HY= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2017 17:48:01.2625 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR07MB2337 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3553 Lines: 105 On 15.06.17 14:46:03, Lorenzo Pieralisi wrote: > On Thu, Jun 08, 2017 at 10:14:19AM +0530, Ganapatrao Kulkarni wrote: > > Add code to parse proximity domain in SMMUv3 IORT table to > > set numa node mapping for smmuv3 devices. > > > > Signed-off-by: Ganapatrao Kulkarni > > --- > > drivers/acpi/arm64/iort.c | 28 ++++++++++++++++++++++++++-- > > 1 file changed, 26 insertions(+), 2 deletions(-) > > I am happy to take this but I want to know what we shall do with > patch 1 and related ACPICA changes first. The change is now in acpica: https://github.com/acpica/acpica/commit/8cadc4fb500e2aa52241e367c87a0f95d9760c58 So we could guard the code with an #ifdef until that patch is pulled in via acpica tree: > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > > index bba2b59..e804386 100644 > > --- a/drivers/acpi/arm64/iort.c > > +++ b/drivers/acpi/arm64/iort.c > > @@ -882,6 +882,23 @@ static bool __init arm_smmu_v3_is_coherent(struct acpi_iort_node *node) > > return smmu->flags & ACPI_IORT_SMMU_V3_COHACC_OVERRIDE; > > } > > > > +/* > > + * set numa proximity domain for smmuv3 device > > + */ > > +static void __init arm_smmu_v3_set_proximity(struct acpi_iort_node *node, > > + struct device *dev) > > +{ #ifdef ACPI_IORT_SMMU_V3_PXM_VALID > > + 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", > > + smmu->base_address, > > + smmu->pxm); > > + } #endif > > +} > > + Could the patch be applied with this change? Thanks, -Robert > > static int __init arm_smmu_count_resources(struct acpi_iort_node *node) > > { > > struct acpi_iort_smmu *smmu; > > @@ -951,20 +968,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); > > }; > > > > 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 > > }; > > > > 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 > > }; > > > > static __init > > @@ -1002,6 +1023,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); > > -- > > 1.8.1.4 > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html