Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467AbdIEQwm (ORCPT ); Tue, 5 Sep 2017 12:52:42 -0400 Received: from mail-he1eur01on0051.outbound.protection.outlook.com ([104.47.0.51]:26376 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752265AbdIEQwi (ORCPT ); Tue, 5 Sep 2017 12:52:38 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Oleksandr_Tyshchenko@epam.com; Subject: Re: [v4,0/3] iommu/ipmmu-vmsa: r8a7796 support V4 To: Magnus Damm Cc: joro@8bytes.org, laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, iommu@lists.linux-foundation.org, horms+renesas@verge.net.au, robin.murphy@arm.com, m.szyprowski@samsung.com, olekstysh@gmail.com References: <149787025647.32495.1584960416060100962.sendpatchset@little-apple> From: Oleksandr Message-ID: <934fcc8c-4716-e027-12aa-297ad0e55535@epam.com> Date: Tue, 5 Sep 2017 19:52:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <149787025647.32495.1584960416060100962.sendpatchset@little-apple> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [85.223.209.57] X-ClientProxiedBy: AM4PR05CA0016.eurprd05.prod.outlook.com (2603:10a6:205::29) To DB6PR03MB2886.eurprd03.prod.outlook.com (2603:10a6:6:34::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5ffcbeff-b531-4756-7a45-08d4f47e8194 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DB6PR03MB2886; X-Microsoft-Exchange-Diagnostics: 1;DB6PR03MB2886;3:9VHArQybCvhtWO70syhR3jD3EDtJbEqBRcS8p76+y2+nnk7eA9VwfN5nHOoeAkhIUqQyDJKJE7LTmFynYMjW2/Z0agwoMYNUpNxs36s2pzh8TAd0Osbn+8L5wKO4196jf9yfds211faPsBJYFDmSrgT7h/uGZr2FcObpGFDmMMWj7DPP0oKAgACBLmNRODnPHUv3tHXimK0cT079zeEb/tUehPD4yaMv0oPYmc8iLSECAdfh24IOsX9l1RE3z0IF;25:op3RNtn2JWuHdnxrCC1BFjsRKn5iasH+a/NhGkZdWvaLDBN5qsFffvvWiHgH8voSUrUAnn5KCuRVwq9uMptP4atf+isyWQmblStd0NJRkZprXqXDUs8MjtEH2EROxcUQgEK1DgId+2rg8+D7xaW2eLmEjZ2b+Ppy0yhkpndhn3s77LJqRNDmVaCQFfnEtWYwGo5p/Am1vLiiSYG3gWfrPyJtRNOuFasmt3bQmUhhpjcdfUZWWRP8xBp5g9F5kC5I4b8+dhhihaWZXULdn7OpX80tMCZe9mbQxH/7uJkHGcTlAxhZIKbjPUH5VmHEXkODyYyPSRJMpeCKHWRoD9T0Xw==;31:1WPjguWuPyZn+h8Jddgzpj7F4ulN2+zXbHTYPAdza6CXkz4/6qdJ9bxxXhSoRPLanlBJD69hTYo/R5aS0zxlygE4XY+cZmzRj0n8la+lyk+qRMk2rvXzNzjaQ0JOSwiF8nw4rnpkqX7sFQdZJQ962pkUQWfQanKjcLsaIhGMirLWVNb3TkvYr2IaHnt7c5rPEKLx9cAuxWi3yu0kn3znSFImUhzDRQ3cIWfS5gWiDB0= X-MS-TrafficTypeDiagnostic: DB6PR03MB2886: X-Microsoft-Exchange-Diagnostics: 1;DB6PR03MB2886;20:R6h2aelFhKx+jdCmiqzxECwP0tRqZuaaRdszB0X7sU4fqjd3PYSONRRpB3+1w3j7l8Lho1dbs4OJ9J0y8uMnUDOAaW0zr+naIB4wIOJeTnY/x3HfR8tSZi1Op9oc68O3RKR+ld8RpzhIzHv+s6EbJq4IUcderkBBsVIFyxhMI8NZ4ysWKy5AocNQ7jevAC+Nr3DktpZiQhCFh9a7JYqmQfEn9DywQP5JLgCLPJ3L0YbKLmyb9K5rbB30y38+Jcshr+1EjZCZbtilSIUJAf8ivuZk4tpDfP88ZHBx8ZEZ1QW311vvleUW8PhsPcqJeTE2Nsvw3Ml22kjM/wKf4sGyHKx5nblb32YqBhyOsoGrshm+SJKgjGb9f5EapEUb6QNC3EDguNGgGAvCwrBes5z5hNgZ0Lzqa6SEO4Pv92eUm+DECWbs0mo2XXEw1Jij1V+2kZJTd2SDCJFpLqwf2Xn3QXmztCNypr1659bScDB9CbQjeyrS3tI2nXuURQ+SEGS5 X-Exchange-Antispam-Report-Test: UriScan:(58145275503218)(84791874153150)(114974198459425)(278021516957215)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DB6PR03MB2886;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB6PR03MB2886; X-Microsoft-Exchange-Diagnostics: 1;DB6PR03MB2886;4:EbsgVAEwCpfRL8udRGcQe5xIdcroKz32T8v5YaIAX8YVcu7t2vjs3zCKbbqCmBUcM3mUy+lyqPZl1ZSH+H4/a+KUH1cnfG7smcCtQPT7AqV8di5p+ZXjw+7lRSLY+pv6Ul+CIRxVqX0wcQESLZSytENyNZGWezZKxAPQUEI2LCjLrwFUY757qUKguwPKT/Pb6Mp2UjgpeCH/lo1r13PrCICz7PZVtuw5cKtnsHYLkfH0TRg9jqxvJA7skGVqbDuoxMsYO8q6MMIP2UzvOdJwMDZrJsJWXo2uwgocu5nDS8pgMr8E1O9a8jjYDsCdPFOHMdhlDhedHkMVGW/+CRPwLpEDeQ/E5WDOJIY4Ljp4o0NDor4HmjDnL5lWHu/yKR/WyCX2nGchW8Q94jnGaUOsS6pAiPKoT64ej6Xtf7PKhbbw9U6hrLrkywNaI+ZnkDot X-Forefront-PRVS: 0421BF7135 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(7370300001)(4630300001)(6049001)(6009001)(199003)(189002)(504964003)(24454002)(6246003)(86362001)(4326008)(33646002)(54356999)(478600001)(31696002)(105586002)(65826007)(6116002)(101416001)(50986999)(76176999)(53936002)(3846002)(106356001)(6916009)(66066001)(65956001)(53546010)(6666003)(229853002)(42186005)(7350300001)(23676002)(47776003)(65806001)(25786009)(5660300001)(2950100002)(8676002)(189998001)(6306002)(6486002)(77096006)(31686004)(83506001)(68736007)(110136004)(81156014)(7736002)(64126003)(4001350100001)(7416002)(2906002)(230700001)(36756003)(97736004)(80792005)(305945005)(966005)(50466002)(72206003)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR03MB2886;H:[10.17.182.87];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAzTUIyODg2OzIzOlBPMVB3WldleGl6QUNBZjNiMWFBTE9KY1dS?= =?utf-8?B?MEwzalhleVVLRE1GQ3Noc1ZKT3R6aXhhR2crTWZ1ZWYvTU1kczZBN1FYcWtX?= =?utf-8?B?VmFXcnpxRTY4UkJDL09xRHBQa2pnd3k0Q2MrbThZS2pEUVUvNzJySEdIV0Y0?= =?utf-8?B?SWFrbE45ZE1Qd2hvckx0eDNuMEN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?Q?X1qb3g?= X-Microsoft-Exchange-Diagnostics: 1;DB6PR03MB2886;6:Pjmuk4CQYeUl2GXYq969cFRGvwrVhaEHJ+C8NnkXlS9lQP/GK8ZKl4N11OFfDdJWN6IrNqFWd8lzGZVsiR00Jg/35aqjwfpWTwGQ28xX7pLdUtaqqSEwEC6q0lz4CsmIr6h7f9u2HhKjkGr4DsR/QGxJql3/u3NH4Dq7QtOpfM3TsHPddCwFHGaKh5a5zpFKaek0dZvoqYo4fNb7VWy35E+vjxbdnW2olwaUOY2/RU+rOVJ3ildUcKcgSQ3k3R4dCfR+/miXaty1cyCqo4x24Uom3qWZNHghzKI/Jal/pEcNkRyBVBB6WzaP+9ILBiokQiO0NZGHf3ILexKk/s07yQ==;5:nUa8QniTLcQnLIcdjWNzeRYMAjvzTcNlIhE2x+E7N3nGwz8or2hgQCjVlbUP+bzJ+wpbuGjgK5Zt7x6EoRT/pKkeSvTPxrbKS6Z5zkqfvTrf8lS9CfAHiM/ch+7mQt02i4Xh7Ju/vEGeizO2Rdwqdg==;24:kBjo7vXAdGoxfolTkZqiyCkHU/Jt5VANAkInrF3oukdcBTpEstaddTgY1FGXESOMaECGC/ICvTY/Nox73QKhsPgNSstzBxhWM5NQyHyOuTE=;7:o8MCazSuB8+8Vt6UWriiJ/KBFtVhSSFcsSmnvLflgZMLwg0av9VYHZZ6Mkh6pMLG0Qk8iJySqNd4o+Apclyx+cWoUYIqkqVtIsE7Wdg1A1NEIFirnBNsaFR+Zy3I2eNgAONex60+/cZxS7DDPwCSbo4nUWHqPTHOOe8+8M+jHFrtFe/FGhXZiG6GJQGcVx4dsvtrq3jrT+7Fvzfszf5YmtaW1hwEFRO1rLoBw05ZWTI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2017 16:52:33.4693 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR03MB2886 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4204 Lines: 97 Hi, Magnus, maintainers, all. On 19.06.17 14:04, Magnus Damm wrote: > iommu/ipmmu-vmsa: r8a7796 support V4 > > [PATCH v4 1/3] iommu/ipmmu-vmsa: Add r8a7796 DT binding > [PATCH v4 2/3] iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48 > [PATCH v4 3/3] iommu/ipmmu-vmsa: Hook up r8a7796 DT matching code > > This series adds r8a7796 support to the IPMMU driver. The DT binding > gets updated, maximum number of micro-TLBs are increased and the > driver is adjusted to match on the new DT binding. I am interested in adding IPMMU-VMSA support to Xen hypervisor. I did some preparations for making IPMMU-VMSA to feel comfortable [1] inside Xen followed by direct porting Linux IPMMU-VMSA driver and ARM LPAE page-table allocator [2] to it. I decided to base on the "BSP" driver [3] because it had more complete support than the "mainline" one [4]. During review I got a feedback that "BSP" driver wasn't the best choice to be ported. Xen ARM maintainers worry about "BSP" driver which haven't had a thorough review by the Linux community and as the result might have bugs which will never be fixed, etc. So, for the IPMMU-VMSA support to be accepted by Xen community I should either write our own driver based on BSP/mainline/whatever which contains only relevant to Xen things or direct port from "mainline" driver. As the second option relies on the required support [5] which isn't in mainline yet, it is not clear when this support gets merged and how it will be modified/reworked before, we preliminarily decided to follow the first option. But, I would like to consider second option again. Despite the complexity of second option, it has one significant benefit. I see that Linux driver is being developed quite actively and looking over all related patch series I got a feeling that required support was about to reach upstream. Could you, please, clarify some questions which, I hope, help us to make a decision: 1. Do you have approximate time-frame for getting this support in? 2. Are fundamental/significant changes planned for this support? Also, may I ask for a link to github branch which contains current (and likely r8a7795 and 32-bit ARM update) patch series? Thank you in advance! And sorry for the most likely incorrect format of this email. [1] https://www.mail-archive.com/xen-devel@lists.xen.org/msg115901.html [2] https://lists.xen.org/archives/html/xen-devel/2017-07/msg02679.html [3] https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-bsp.git/tree/drivers/iommu/ipmmu-vmsa.c?h=v4.9/rcar-3.5.3 [4] http://elixir.free-electrons.com/linux/latest/source/drivers/iommu/ipmmu-vmsa.c [5] https://lists.linuxfoundation.org/pipermail/iommu/2017-June/022567.html https://lists.linuxfoundation.org/pipermail/iommu/2017-June/022577.html https://lkml.org/lkml/2017/7/17/393 > > Changes since V3: > - Rebased on top of [PATCH v4 00/09] iommu/ipmmu-vmsa: r8a7795 support V4 > - Patch 3/3 updated with Reviewed-by - thanks Geert! > > Changes since V2: > - Patch 2/3 updated with an outer set of () - thanks Ramesh! > - Patch 2/3 updated with Reviewed-by - thanks Geert! > - Patch 3/3 updated to include white list support > > Changes since V1: > - Patch 1/3 updated with more Acked-by tags > - Patch 2/3 updated with high I/O register range support > > Patch 1/3 is ready for upstream merge and includes the following tags: > Signed-off-by: Magnus Damm > Acked-by: Laurent Pinchart > Acked-by: Rob Herring > Acked-by: Simon Horman > Acked-by: Geert Uytterhoeven > > Patch 2/3 and 3/3 are quite trivial but have no acked-by so far. > > Signed-off-by: Magnus Damm > --- > > Developed on top of next-20170614 with the following series applied > [PATCH 00/04] iommu/ipmmu-vmsa: 32-bit ARM update > [PATCH v4 00/09] iommu/ipmmu-vmsa: r8a7795 support V4 > > Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt | 1 > drivers/iommu/ipmmu-vmsa.c | 24 +++++++--- > 2 files changed, 18 insertions(+), 7 deletions(-)