Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753201AbdFVMZx (ORCPT ); Thu, 22 Jun 2017 08:25:53 -0400 Received: from mail-co1nam03on0081.outbound.protection.outlook.com ([104.47.40.81]:51328 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750852AbdFVMZu (ORCPT ); Thu, 22 Jun 2017 08:25:50 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; From: Geetha sowjanya To: 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 Cc: robert.moore@intel.com, lv.zheng@intel.com, rjw@rjwysocki.net, jcm@redhat.com, linux-kernel@vger.kernel.org, robert.richter@cavium.com, 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: [PATCH v9 1/3] ACPI/IORT: Fixup SMMUv3 resource size for Cavium ThunderX2 SMMUv3 model Date: Thu, 22 Jun 2017 17:35:36 +0530 Message-Id: <1498133138-20244-2-git-send-email-gakula@caviumnetworks.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1498133138-20244-1-git-send-email-gakula@caviumnetworks.com> References: <1498133138-20244-1-git-send-email-gakula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0116.INDPRD01.PROD.OUTLOOK.COM (10.174.208.32) To CY1PR0701MB2026.namprd07.prod.outlook.com (10.163.142.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa527cc6-0b2c-4dc7-171d-08d4b969cd08 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CY1PR0701MB2026; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB2026;3:JK0eHzTE2X57brXAoV24yDx5sSgCRJu471tS2EyGzMxw/g4NZgEr9e0b3wbxI+o6QXDE3Urz1r/cbaW4tqv4WBkYJmXWRox0ukiTQ08ch5LfX7wWzmI3dF7zyJ67GbWArxfkfQfUCDxUuu+5bYPhyMODS84Q5ravRby+925Teu6ROXK6gY837twiMKKwgaki1Kw2yTotOLJ4TG/UbmYKqKtDJqrDm5ISD89ThJNIIXyKnFrmNTRK4d5cc9yqNbZegCrPuATimaGMj3HNpfAbGEGPaP+9v4HdKz6SZQMsPweuTIeTKN9H9tDatTZsB/o5TpV+2E62/DBE9FHc2Xoxng== X-MS-TrafficTypeDiagnostic: CY1PR0701MB2026: X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB2026;25:wLh83VpQOtNYyQUJJdLMALBf8mNInbbp7bsYvUgHidgJlVk+8Vscg03O7WBQCLV2Jws01PF1YLboTzx64BZrtyzxePnTobmoKV5wZxhDnotwUIxXtSevQNGVuvGxZxqzZj+1k6Wwes3h6HIZve+z8+f+8p8kwP5Vh7kiKQxW8Llv6aVOdaDPGaUERv4G9c4QtaBHplZ/0R7gfDOBJI9jxLPuiHKlRZWJa9E7UGblK05l6DB6fLCtU0G8RRual+umMvCaPkIfOplSiyJeurtZF+mFnPI+HD915SCzd8hCAO0rtZ9gc31c4aJL1H1S1rZ1Ml9l5NS7IwZ2UFwTg+v25FSM77nzFoWVteNwg50LoWZ6peRH28qV1UMkkdvbAqxn0zpD7AYWEFQr9um6Oz4UojFdnGsSwCpq75H5fIBo+tytQloRl5wftbsy2W2zCRQJNFpySN4zf6CFfUOkdTyxCZeo2wBWjxVdL+ll/W8RzqNYyW1kfgUTok55O9FGyanrVUCl11M33yzJPeQa179g1nwjsrI7N124ABaMNcx39XdyX6KSzooWaZASs10MQ9tSrJ/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2lBqg= X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB2026;20:koApoah4v4ebAefHBUATl/LZdzqpqYApf/sBX5ilERgVRBIFS2HRPqHx3PgZ2VFu4n0oqlt+wZmD3bLTsPc4jxVrgp/xmyElu3cER33/Pkj3ToIBl+ILs9h8CkrI64fa57UfZvxchAuKGDUlKHPd4C/HTXE7hugGpM3uP9X3E/gJE5Kc+7MMWbwrjj2dBZV0/a5U3Qxs0lIP8zebQODU7rRoFqPJPEYVWlLHcb9t+2jGl4Q9QvusbMdhoHROLfSZMKGG28SNu+CDlZrL2Suuyy8Wwi1i3/OQTolkusv+2hHX0r2ixrFt861kEJ8nFYPJJFL6dj1+LPnTngFPPDuPtbT0zJQFgbH20v24RHEjYHcAp4PD4tB9Rrt6a/WlyU5ghUpm8YPCEDxihb/WINy3mTRA1ON7umXVKvmiEpF/ZR831txIhUmH7GJd0ok2WggIOciBMJCuFqfwPS0nr0dVYrcrCl0i/dGEJbNeEYwtncYJGwXwtPxtWxjRHKa2Ymhu0Fm/HN5zr8FxoMSABmE6UBrDAAAn9zIiYwvbAnmXYrFPj3aDYA2xvR13Iu7AabY4ZiOLjBzZgcUWr9dsvd+MktYwMa9TBwL9oNH6nVx653I= 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)(5005006)(8121501046)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0701MB2026;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0701MB2026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bXycz9T8IPb38HsJhaonFJyRutgqijELpZQ0EZvqk4p/DgadAVW17S?= =?us-ascii?Q?l61hivR3jT4zqXPeFw05/rEwk+eMBaxAXGaMSu3M31Gil6Ue0vg/XgOshzPU?= =?us-ascii?Q?u+09kJIDm4iho7WI+2QV6e5cR1uNo/i1J6EGlY2df+bnlflRRhsjlMOnh7tk?= =?us-ascii?Q?MTxwWgILEjV4oQJwwalFR/HRUxFP0/UislNhyREuM3Q9oIIPSkh07/bNxOUA?= =?us-ascii?Q?yMaPV3fQM6dKIUfsHtDSf/n1eOqXJazco+mVZmRBpep6grss4rofbv+1pvY/?= =?us-ascii?Q?JUmUt0rMuss=3D?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39410400002)(39850400002)(39400400002)(39450400003)(39840400002)(6506006)(66066001)(36756003)(47776003)(72206003)(110136004)(7736002)(189998001)(6512007)(3846002)(50226002)(81166006)(5009440100003)(8676002)(38730400002)(53936002)(6116002)(6486002)(48376002)(42882006)(76176999)(50986999)(50466002)(33646002)(2950100002)(5003940100001)(2906002)(7416002)(4326008)(305945005)(25786009)(5660300001)(478600001)(42186005)(110426004)(42262002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB2026;H:localhost.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0701MB2026;23:zl997p8oJ2B0MTW6uTyTV5QCk5zJmdsbhoVXLRz?= =?us-ascii?Q?LtZBirQU4bH+F4unJF2VDJP9wjE7LOTND4+wfgJI4sQVqXbnYU5/ZEwyMjva?= =?us-ascii?Q?FOnUPWl1D26X9RFenRaxtAQAW8aq/5zWwW3i1uJDVq/D8wuq7Y6plyIh5C6y?= =?us-ascii?Q?Ah0zqR9K84mAMWaxkvyVayOrgytRwqpLHumB6rgk0KibsY/FiXWcX5frYjC/?= =?us-ascii?Q?i6kyVf8yWQ+Cb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D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0701MB2026;6:nTzb1g1fKV594pNSPFnRDNzAFqyNY2Ii3F3aVzW8?= =?us-ascii?Q?9Oh9Eia98ga1sUQsh2QLly4JmAgM4IQo0dfDZaJf+ml0l7a9Kp0lo1CLL4ut?= =?us-ascii?Q?GOZo/JKN/EdkIcDEShy/W0KgesXiZ8aq6ANWbuZpAWRU4t45mwIWexGCbq3i?= =?us-ascii?Q?p07728blkk/XM3V8DptqR+0uV7KEXmPSmukjPCacGqXjAS6G6ZWWsBOqKXRO?= =?us-ascii?Q?dtyTq6hMmrNsjN9MOnaQsBY+ErzHhZDcHSOPWm0UIyTq/kwRh1rV20JCkOs1?= =?us-ascii?Q?9wzfrH0bjnv75+1btTatD6vMjY6tfC+/lQnR4QUp6f0mq8WbC1jDX0JNFump?= =?us-ascii?Q?M6YeFesXynebkvIBriOaODXzhDI1gOSNxwTsMxKYnwkRJHSZlU1fiWK5xX/l?= =?us-ascii?Q?mFeLLn68mMyEwJ+BsdrTdC3Mn7HdOLpVhi82cI/f9Vg1DHMmXBWAVWrKqNcM?= =?us-ascii?Q?UVUpnFiv64uiDGhoHjxRJngK712s/sPjZy5f6RYWlHPMP9utzRjHQndzlep2?= =?us-ascii?Q?c3UIXlt+8ZQbE1ZSkvzTmlzYxOMJLb+uU0LxDYwZDFL5R7BANp12HeqesHKF?= =?us-ascii?Q?qG3qsf7gqgUU7hTNiahw94s6ZtM1JMFqGKE2JKAO68T9vhaSngWey1g1GgG9?= =?us-ascii?Q?B5SFM+oacM2F/VfKtSQiBGJcZSw3B8O0IZ3F5uhyll6ndhYz+3JHUa9TbwBG?= =?us-ascii?Q?gWtT7mRXDnB1bIBJ+Ptw0veeiKXcw6rbC6R25/tT0h9azXuO+0RpGtBFqF9c?= =?us-ascii?Q?N97NthuS9mdq0WMixikJLG44t8f+we8oTgAovkFAV0USpyBlSf5ncmHUa9HP?= =?us-ascii?Q?zKVeiUx2ocd/8h76qDDFKzp3Bl+TCNuyMvLKL2l36foi13iQdcK1BSYCNEcZ?= =?us-ascii?Q?evo4CbYi037QqhjWXRWGpTiUX6nBaEsU2zeWkRHNEnEKy0vQTCKi2TCXIjDR?= =?us-ascii?Q?ByszaZWYn8ZlV7Rkf9IlJYBIYTktdTa7XUCGXSiZI3QeNtMWNbUw1HQPwF/p?= =?us-ascii?Q?rg0=3D?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB2026;5:XY4tt9brz4f9P1UM3Dx6BA0iLXL13tXd1lb7EQpwMszAw3m4FPxaoLGq9UfO3B7BkCuGjuvh2pBF3RfmfF0G06aHwIodJhbe8c8ngqEWcwgSW/9+5bTj5LrrovA9HKAHG6Bk3sqwLRtQCtKvRPy7EJ+o9y95dNkGBdMB3ddtGlqEDNgystOYLrigaErEJFYV2OFTz2UfA5g83WpzKuaTR7/wKSvN1KV5BdEPOEPgM2HUCL/8/hGbb7MgsHWFUUNgpq+gqutzPhsZkWGrwc5LFeRv7BANcHHBnFj20rB5d435VXUtcYjPq047Df/Y6JP4/jzmYUhmTO604DX0u5Q89uH94dn4PazZLXNrJCpkNgbrQH2YBASqM6PSbBx3QWcOSBMlOKKp6WZDyJJQpBW0LUlvOH7+fPRFVscemXIYJ73XabfGVUsGZlUfx+eejL8mIccWZVScYwZMcDk7enplFC15/EvfkYIX0+yo7e+YQyR1oDybDaSQYOag8ezsSbhG;24:j4g7bl2EkLSOXp9YoE6rIC1zfiGdEBV2wUYCW3/Xm6yiBQJVpIW2aElPV7D3+F817se7mVWF1q2JncG6BX0kGaQJAKL7Hy4VYy8pu4GHeKI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB2026;7:fzAfalZw/9D5/MzMiD18PDc1XN8Wppy+Y+Z06JtURYDwaGOQaV3Vetn0uKm857/entlZJ7wnthUg+mBjGGFro+OEFsnzrrTl87L9d4a0MUwdjV2V3kk8CyONvACcMM60KZTo8B6Zm2gF0yBcMvUicjTB7wEIPD5NfjTYbcht7/Kr/PEURjpgdxXGfzYXKqss3rteAtayRgFXi4U+w//r6azTV1KmNj2yfM/8iGL6ziJOkRgGTrCZ+I/1ULqmGpNyMmE/q+jIjJ4JjS9w0JFqU0YKXS4PwPBDsUnCIDNgWoDn8+Ps9VQ1IXvfDRxomvtDZ8PGUWrmlvBxjCWcw92psNF1iwpdE2K5txi3g5ztLNOC12mfT7UIVDPvhi/8fZMrZYoZTDUoqeGCi60USoD6rRuUZkZbR1DNGXJNBuh8G7Bi5HCKoP4L+2S0mEylbqdVxlI1VZuaD3tjYWNfRuhDhhKvcQMqs4mzPc2dJIL7U7tepkY0rP+MpCOW3aUB9CrLt0hmq8xPshM02V034+5VH0gPOkJW+6zaRRT1i6YA6AuDzwORhGfjSrPAyH+CQiPOe6zjPnFqMg/j9LFWh1p0gVv9NvZtv0ivj9QyjC89YuJI/o7cyxkzm707b010IK1mWW5kbJugIgchLJE4h4PwAEOyOicUciKrXNilDQXA9Q2cj4nMPmpOfaRD2I6q9xRAYBDgY1RQTvE4S9a4kNd2UGH47n4o+qt5RuvobVldjsZq9N74w7tbZG3HdmcEttQcGaGxXrSJMjDCH+qCaNlaM1WgMFOZ2H34OFXPqENXJjI= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 12:25:36.0050 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB2026 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1500 Lines: 46 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 | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index c5fecf9..c166f3e 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -828,6 +828,18 @@ static int __init arm_smmu_v3_count_resources(struct acpi_iort_node *node) return num_res; } +static unsigned long arm_smmu_v3_resource_size(struct acpi_iort_smmu_v3 *smmu) +{ + /* + * Override the size, for Cavium ThunderX2 implementation + * which doesn't support the page 1 SMMU register space. + */ + if (smmu->model == ACPI_IORT_SMMU_V3_CAVIUM_CN99XX) + return SZ_64K; + + return SZ_128K; +} + static void __init arm_smmu_v3_init_resources(struct resource *res, struct acpi_iort_node *node) { @@ -838,7 +850,8 @@ static void __init arm_smmu_v3_init_resources(struct resource *res, smmu = (struct acpi_iort_smmu_v3 *)node->node_data; res[num_res].start = smmu->base_address; - res[num_res].end = smmu->base_address + SZ_128K - 1; + res[num_res].end = smmu->base_address + + arm_smmu_v3_resource_size(smmu) - 1; res[num_res].flags = IORESOURCE_MEM; num_res++; -- 1.7.1