Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752020AbdFTIUG (ORCPT ); Tue, 20 Jun 2017 04:20:06 -0400 Received: from mail-sn1nam01on0041.outbound.protection.outlook.com ([104.47.32.41]:55024 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751012AbdFTIT6 (ORCPT ); Tue, 20 Jun 2017 04:19:58 -0400 Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=cavium.com; Date: Tue, 20 Jun 2017 10:19:43 +0200 From: Robert Richter To: Geetha sowjanya Cc: will.deacon@arm.com, robin.murphy@arm.com, lorenzo.pieralisi@arm.com, hanjun.guo@linaro.org, sudeep.holla@arm.com, iommu@lists.linux-foundation.org, robert.moore@intel.com, lv.zheng@intel.com, rjw@rjwysocki.net, jcm@redhat.com, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, sgoutham@cavium.com, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, geethasowjanya.akula@gmail.com, devel@acpica.org, linu.cherian@cavium.com, Charles.Garcia-Tobin@arm.com, robh@kernel.org, Geetha Sowjanya Subject: Re: [PATCH v7 1/3] ACPI/IORT: Fixup SMMUv3 resource size for Cavium ThunderX2 SMMUv3 model Message-ID: <20170620081943.GT658@rric.localdomain> References: <1496145821-3411-1-git-send-email-gakula@caviumnetworks.com> <1496145821-3411-2-git-send-email-gakula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1496145821-3411-2-git-send-email-gakula@caviumnetworks.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [78.48.251.151] X-ClientProxiedBy: DB6PR0402CA0024.eurprd04.prod.outlook.com (2603:10a6:4:91::34) To BL2PR07MB2340.namprd07.prod.outlook.com (2a01:111:e400:c753::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8a9af92-b439-42c9-2fb1-08d4b7b52225 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BL2PR07MB2340; X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;3:PFwC1QgVjMzm7a+0X7RmmKV7sTLFNo2aOTsAkuDdqcFJyU4M7DBHCDN15B0yMWapmmoUP/b8BqzzaYcAbYGyFDiyNlBW23uFUYeHMemi+WkBF6P19Gzj6LUE8VwZEol0BdGpVKngtmQZFi48d8MNpbvkoatsAiMVlmoYR3uhxepcjw0UJEMd3jt2BhUjVYpQoW/Oo04aOY0U4s4k77BoSeegkGJ38GyNBSQLbC7Fcu6EBxtkVOeV46XlUFm7sAoigpzpK5vYUnDYSOPckDNy7a49ljWpZd2MsQWF7WepbUaI0hlJLQtc5jfHRQ/TFKKK+VgSgG3rfAhLxAGdqMPtTw==;25:ktyjM3SszrNCx0rBLQUPtB5MFQVLYi2DgYacUB+6/9GmewKovQKlL1OjREWOTv6bUzbAuCpHkMtrRpCmRpx2YWuUP9TvjUL0xkggGW4VAkHIHxMLqmD9zcn41jKtOTWKkXg11jZEGe6YYUYEex6NI9ktbrJeGNZalSPtmmQzA5tHuNfHuWk2RmeDan/6HabJixAvY1NlF3Pj0z2uWin2PtQuU/4k5MVm9VYqNRuN0AJM6CjDTRr6ES2b9mc3H1Cl8nl5FGPln/O8zaGRttWAuywvuHy697V4oXHQ7ygwF05dMdRmAzN7QFF/nQjZL7K72v0GKzKcpnZZ2s2OpfKxDgl8r0DXDiFmV87Bje4rCWpvii0jwsOzHM6ktjsLWz85A53Z4o3cQfvANTvWLJZZsMSw4pI8vCta/pdjXRd4Y8M7im/4JzOZ9BPZ+fLRzwRCJ8RPpfjw8ubLDaSOVSyGEqlW+lNH+hzgJhPelSJk41U= X-MS-TrafficTypeDiagnostic: BL2PR07MB2340: X-Microsoft-Exchange-Diagnostics: 1;BL2PR07MB2340;31:+5BYP2MaTS11odrFCzosUCuD7ecUi2hjfhaBJcHg6V0OA9Lsv/61bI6ngaQvwB5obJCZf5TK8SMto4EuykXu6QL4Pu3+OOYZgFdvEkHiDxyTzxvcIgbG22lY6T0qL/et4pLo57TimpmwP3QgOk74Vh86wjmN5rfELj8L9g3aDNEpkLlvmOYyPX0uFN6PrQnN577EAsS8GHMgjFfa0CiAvDaNGxq3qE0O+1SxpwLyAGI=;20:Rk7kRAazpX12FkNy9NHato1WvrtvkMUpAUg6qirdeRGaOa9/E0VblcAIo0QRi5DYCTK/Bf14DwZjB3h52xI0TbFT+/8qtn3Hg8rYqlcLxbCGc91HtHkeHsEFrYTKK7j7BoSVTTWmZb3tRQQ/Bz/RbMZvBqCFsuwErmVsUfTsEUihIj6oVT66utJQ1q+YCOR4PgqvjZ8e6NiTEC0WrUZuRV7oeMvnIdVkTOUDLQLnjHB3smMT/jLwqVHTCnupoQDsvI/+nQEdMVX23ty56STO360QCWlTgt4I6DpiJeD7MD7f5jh8aFa5yJB7D6Z7F9I37lu9dn6sgcO7w/LKXxw/Zu8U42qsPoaKfOrrLRxSe9bowCbwjB6XJ7Ga19yNCxpzZ74WJcDIgYFoWBQ6UZ29pezayLrGQwNVJkgM7VZTfi2M2B1kIDvw7oOGSaR9gPa/roIRZArtY4xlRNbeNLJD3aE040Ojz32wZILY+klXAgNiDsQcSTenFJCR/oKtxr7O 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)(5005006)(8121501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(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:8xu3Ai+ZbmlIdFgb21F1nIYN2Xktkupn1O8hs1VZN1?= =?us-ascii?Q?PPu3BOMRWrPvRf+3hlGarl8QBovZYbs806/8e5TwmMIaejTwmL35OAsCU0TM?= =?us-ascii?Q?oLI+uQOyDeirAzBY2CLYkNVQAvZRzSQ8Ii0fvbI8AmN4w7hqMv22TVdQwzNe?= =?us-ascii?Q?IT3yt50Nkz8qToIZ9EMcIOVqp8xeVx77ZRghdvIkGRoG4ih2zp9ZecNXMLDI?= =?us-ascii?Q?43V2OhgVaH2yJbuzOnN++Dj5eEGSuajJWWKBAlE7OKRJoKAQCSQIL1eui2tI?= =?us-ascii?Q?/BOpLSouD0H5D2z9rA62LrReEyoUcj2j7q0c8nIhVdwy7kK4qa7KnmGwz6Px?= =?us-ascii?Q?ppTSxkxZU9XIjFiS5lcWIYD7peqpaS2ucRKFH18Sjlj10xObrmS2QItACYp7?= =?us-ascii?Q?Qj6/SX8VVSPXToDfRz5X+537Sbt/VbLSCONQbh6E866ijm0dif7Axt6blmm6?= =?us-ascii?Q?AZyRa6jJkb/MvE/8g5ScBoz6tP7c1VP0JfbFBEBReVEo4T/8JHr/Pmrb73GN?= =?us-ascii?Q?gz43+zt7FivqqNCruLhEt+OKx+HMPyfM70s2EHNtzJSvz1JHQqgEEzijBZj0?= =?us-ascii?Q?tvOTEROfkOKlnXstTpVyRN2hHcACyOu27ZdQF2ogZ94v1Xp27rrp0yJmEbz9?= =?us-ascii?Q?8pD04BqVkUb+eyJSCFTLZDGR/mYdHNr1nTGcrXKxKGQ9pA7Sq/7lDNw9ugfz?= =?us-ascii?Q?NuPifQbVHoewvY2v9vcS5Z6UjOvXD5ZyORsXdqAdF3NAXNKMKb5BJMyMO6nF?= =?us-ascii?Q?BJltxfU5wL63a5dn/p3bFxPbP5P5zEYMXYL9OnFjWZDx9NP1/lSSe3mFPdyx?= =?us-ascii?Q?XlcaaRvSjSyX4TqjKnBDyG6AaE+DUiIHJ0bJbjkvRtPq0nc/KtdofW1wUlf1?= =?us-ascii?Q?D38isk71T40NhpuBfo1mW/LaTw8lnsBqOUnlLD38b/PbDVi7DG62lbby24DG?= =?us-ascii?Q?qYP9oG9t5CsFEFT4w42YovnE0SwlZ/kemV6SrqGKR5c09PkZX/4/Lpevo1If?= =?us-ascii?Q?yDkoRYhcw1BZhGuIJPydbB55DY6kHD5P/rm1WUAYAOLLXeAw7agE+tp7CQDE?= =?us-ascii?Q?O+Jjgq8wDg1FetRaeiHx9g+gppbY+r0JF9qMpUvfnyqf0nUsLfUR0JtdwV9j?= =?us-ascii?Q?kl+rP12lkM3Xj09LIrct72Ab6vdFs4xwaTZe16sHy9r302tq3tf8lVBrX9xF?= =?us-ascii?Q?ryEJAxaKaTZNE=3D?= X-Forefront-PRVS: 03449D5DD1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39850400002)(39410400002)(39840400002)(39400400002)(39450400003)(24454002)(305945005)(8676002)(478600001)(966005)(4326008)(83506001)(6306002)(55016002)(9686003)(575784001)(86362001)(5660300001)(6506006)(6862004)(53936002)(72206003)(110136004)(38730400002)(81166006)(107886003)(7416002)(6246003)(76176999)(189998001)(6116002)(33656002)(3846002)(50986999)(7736002)(2906002)(6666003)(2950100002)(50466002)(53546009)(25786009)(54356999)(229853002)(42186005)(1076002)(66066001)(23726003)(4001350100001)(18370500001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR07MB2340;H:rric.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR07MB2340;23:OsODiEJ/ydpv3bCKg7HjeGQBcqGN3aUinG1ajze75?= =?us-ascii?Q?jUs43Z5LwKiEG0zCQayjRXP3uZK+OMO6eZ6JsVrgh7/MeI7YHDzPemszLWXe?= =?us-ascii?Q?L1jiIGsyu/bEPf/uB8cyQxFLbSKcHBx+VLm86sjCjo2t3Wegcn+fyVkcHufe?= =?us-ascii?Q?WeUBbxnW+OK3Iw+K+Am8MH1Txg3Jq1zXnukjMI6Yww+Hp843AxTdNFuVsynR?= =?us-ascii?Q?lchr74vEC82aNqX3mfIhHuFCWGa0BSPq4PDqsPE69lqURZ2sLoM6eo+Fo6F9?= =?us-ascii?Q?cm8ZjKgEW4cqE7xGtwin+Es5As/wEGjWHog/Mqk+32v9u8kg/kGJkVijwgpl?= =?us-ascii?Q?rW1E0oXzxLatmyojQvons12GiYV+UBxLV5qVJk1pJsqw9g9YFMjgU7PYS+4J?= =?us-ascii?Q?3b119f51/zq8r+AzQFc+s8Mi0x6uTa+IkDw/Ib8ob+VqsD11bkWfJl5dHJOe?= =?us-ascii?Q?XFNOWkCv1gS5Wgs4sV9vYmHMZxaAHQIfye3flHIlRWkObHXvwWliB8I8z7/j?= =?us-ascii?Q?+e6/i88pSJLoaUYXnvMz9gbSf4zINcs8Vw6moef6bB7NMlHsXKfZdqnPRLI+?= =?us-ascii?Q?BO2q+H61fJqcZUaYpuvYtu4yiKAd/OdSS7imahQAdR5zhESQL5c5YNZUGKU/?= =?us-ascii?Q?/Px9Vix02DamHkjCncmNsXoYYGOg8KpQFJqVYhJlHLGPl2zvA9AgAC94BO3V?= =?us-ascii?Q?3jj586O9QwHqXzsaNuMSkbrdvOrO97OTe436tCOguWtotqwl4UNVdZEQIW9o?= =?us-ascii?Q?PJqpasVfygmULNWNNwyorFZgOJMUf1wI/JdfyC3goTFARHhpnllb42NFJ9fb?= =?us-ascii?Q?1QVdql4EO/FSJtlywZT1tTqKSg8+Poum9HMggDffQcri1vqXJhdcurxuTouE?= =?us-ascii?Q?187GMuMo3zU8zrQLFYCyC51MPfFmwy05nWo73iunlSczQcmDPOYKPE7Tar5e?= =?us-ascii?Q?VGYbOOnQl0HMvT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-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 08:19:52.1376 (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: 1610 Lines: 51 On 30.05.17 17:33:39, Geetha sowjanya wrote: > From: Linu Cherian > > Cavium ThunderX2 implementation doesn't support second page in SMMU > register space. Hence, resource size is set as 64k for this model. > > Signed-off-by: Linu Cherian > Signed-off-by: Geetha Sowjanya > --- > drivers/acpi/arm64/iort.c | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > > diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c > index c5fecf9..bba2b59 100644 > --- a/drivers/acpi/arm64/iort.c > +++ b/drivers/acpi/arm64/iort.c > @@ -833,12 +833,20 @@ static void __init arm_smmu_v3_init_resources(struct resource *res, > { > struct acpi_iort_smmu_v3 *smmu; > int num_res = 0; > + unsigned long size = SZ_128K; > > /* Retrieve SMMUv3 specific data */ > smmu = (struct acpi_iort_smmu_v3 *)node->node_data; > > + /* > + * Override the size, for Cavium ThunderX2 implementation > + * which doesn't support the page 1 SMMU register space. > + */ > + if (smmu->model == ACPI_IORT_SMMU_CAVIUM_CN99XX) Geetha, please resubmit the series since the macro changed to ACPI_IORT_SMMU_V3_CAVIUM_CN99XX: https://github.com/acpica/acpica/commit/d00a4eb86e64bb4fa70f57ab5e5ca0a4ca2ad8ef#diff-a572aac2ccc26fe4a901616d7fdba859R1053 -Robert > + size = SZ_64K; > + > res[num_res].start = smmu->base_address; > - res[num_res].end = smmu->base_address + SZ_128K - 1; > + res[num_res].end = smmu->base_address + size - 1; > res[num_res].flags = IORESOURCE_MEM; > > num_res++; > -- > 1.7.1 >