Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1169752AbdDXMVA (ORCPT ); Mon, 24 Apr 2017 08:21:00 -0400 Received: from mail-by2nam01on0076.outbound.protection.outlook.com ([104.47.34.76]:57046 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1169735AbdDXMUp (ORCPT ); Mon, 24 Apr 2017 08:20:45 -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: robin.murphy@arm.com, will.deacon@arm.com, iommu@lists.linux-foundation.org Cc: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sunil.Goutham@cavium.com, Geetha Subject: [PATCH] iommu/arm-smmu-v3: Increase SMMU CMD queue poll timeout Date: Mon, 24 Apr 2017 17:29:36 +0530 Message-Id: <1493035176-3633-1-git-send-email-gakula@caviumnetworks.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0050.INDPRD01.PROD.OUTLOOK.COM (10.163.199.22) To CO2PR07MB2504.namprd07.prod.outlook.com (10.166.200.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 20215c09-27f6-48b7-3877-08d48b0c52bf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CO2PR07MB2504; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2504;3:NTJ90qq9b46t8hbkyruwwQna9NJP8W+rt0RNwmHCiS5ORNSXkHrEahLK6JCtXpWm1ze29xnahRw/a/lfbwY7bDxvZF8EjOy64+GSgjA6/VRl3gY4wWFdTMTud9/lbIzgZoDNnie1cNmii/DAwT/YOP9WXv7dBMAcDMqnRcj/KyqmUzMEev1u4aFgRVn9KAw5TAEkK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0tmDQcC1HcbyuYR6MVtDuJBF3Rs13w4wqNkH+lTVY13PXlhwmt/vTIfiqsp+b0ctcGIN4NsP7xZIpN1c1BkssqUbhnqpaXSQKZTjUsZBh5PiS4zjwvOjjbMrTLBs4uEvnUaeq2UVqcgvFwEN39ZQVMeRepojWT16/g6V2oZs474AcZ1PFzuRQiq09a7epqJP9WQMjEt8I8RduOa6zWHKWWRcvraDMsTCiHDHOvO0tSCB8rHJiZM0TOyOduzgZG+SAAoEldT/pss2C4IDIMBIlU8Ce2QyQPsylbmiTWT3QAaScKX7Ub5CtIHSg/1B29Vsv+c4RIZ/99IqKxe3ySBPRSgALzcxpB/6nlwF+z5K42TVVYOT5F6zPFE/agimiQ7beS6m5bsc9cgh1F3Kjui64lfuiF7zTmlOCOxC8UBajvht0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123564025)(6072148);SRVR:CO2PR07MB2504;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB2504; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2504;4:8sOcofB0dke6leptmqRUSqJqWlLv9e5ATSzLg5GisFg8Xm38bYl9ZECTiRdoNs69/oZudSqkh/RPleUlCCF8pYymBhXcgAVTxOQZ1bymWEr7aMEUNzPATcvLL3JTowJ0kqVLP0Agqsp3h0s2Oitc5WBtHHjrJPmJtSoJvWDb4VcB4h1CJ7S8QMjokyqOeFm+uXWfZwI+n0WWvViMzjjLJRH3DKyUzRLMSJ71APhCNxAOI5lWqS+/xj/O+Lp5Hru4yWnYICfHFtGx9IrYz1d7mtqmhvANbT9RCqvVNEra/jXVMAz+Ri5wOu4fdtruGNyAvJEFP1Wr0nSGnorF3QpjV1JVQW2ggfj02eG5yWRdBZO9YKC78ptc0teXAQNc78ZMJmOYK6q6SY8v5sm2w6JnYAHLicV4MQap2MM17IAtZMBrq3qSMdqUsR50XGDKGpdJam+7H9OBY72WuVx+1qdt3CXv8YB/yZHJ6wI7YZLDAzAvOCYwr8LqOc47Pgv7Oj6MDhMk/9DBQ5cmWtUDX8J9Qn2SBw2+GLguOBuFWhqR0n/lEJKSK+HGbmxA6qL3G93uWOxrQ8hRCRCnXxZZkBxbqnerTcgGGLi2Odmhq2F/d2fsd0mYXfbDeAHPC9ct8ndzWZkEXAdI2h10eDN/6+krOWBhoN9EvGR6AlQYH6rNq5FLkegEyrImN68CI9p32KJxBrRmTRpoP677R/ld8h1oeQ== X-Forefront-PRVS: 0287BBA78D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(39410400002)(39450400003)(39850400002)(39840400002)(39400400002)(8676002)(6506006)(6486002)(6116002)(7736002)(33646002)(50226002)(2906002)(50466002)(6512007)(3846002)(48376002)(66066001)(47776003)(230783001)(25786009)(189998001)(4326008)(53936002)(81166006)(42186005)(36756003)(305945005)(5009440100003)(38730400002)(110136004)(107886003)(5003940100001)(50986999)(42882006)(5660300001)(110426004)(42262002)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2504;H:localhost.localdomain;FPR:;SPF:None;MLV:nov;PTR:InfoNoRecords;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2504;23:gehFPkikT6dTpQbQThueAnJTxFnH3ndCm8vlOrH0d?= =?us-ascii?Q?XjGbqkoTZi6t8eaD3eK1ZbHSzFqrjpZX8YRZSYKoRqlGuyQoC4Kvb4E8V540?= =?us-ascii?Q?4yopOGa8tdbllQChdDiBiAPbkLaVxY+hrjesth+CctZZw6+BfEwPZXl5mFjS?= =?us-ascii?Q?C4Gt8u39K1NcpbsmObF/f6Qnu79R09GR10RDnCYaMGp/pXlK/3E6s7eceCB3?= =?us-ascii?Q?YSO/Tvh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+6TKj7DGJnFwCf/4hFFJ+n5lYYe2/CtEgcBHLCCJQysKyTIQQt2PMn61m0eXJbwqsvIR1+s9uO0ya4lfnPiMiqjdIOGBMuFONvy9n9IME+aTANxjGhpACEPSyhfeivlaz6EyG0R3lWo9yUvFxI6Wqt2yyfuxXt7LKtTCrHkGWAQeI5zFebgjcTpg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2017 12:20:38.1440 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2504 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 934 Lines: 29 From: Geetha When large memory is being unmapped, huge no of tlb invalidation cmds are submitted followed by a SYNC command. This sometimes hits CMD queue full and poll on queue drain is being timedout throwing error message 'CMD_SYNC timeout'. Although there is no functional issue, error message confuses user. Hence increased poll timeout to 500us Signed-off-by: Geetha --- drivers/iommu/arm-smmu-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c index 591bb96..1dcd154 100644 --- a/drivers/iommu/arm-smmu-v3.c +++ b/drivers/iommu/arm-smmu-v3.c @@ -407,7 +407,7 @@ #define PRIQ_1_ADDR_MASK 0xfffffffffffffUL /* High-level queue structures */ -#define ARM_SMMU_POLL_TIMEOUT_US 100 +#define ARM_SMMU_POLL_TIMEOUT_US 500 #define MSI_IOVA_BASE 0x8000000 #define MSI_IOVA_LENGTH 0x100000 -- 1.9.1