Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7132045ybp; Wed, 16 Oct 2019 04:22:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHNCSaN7omt1Mm8bTdKovaNIYsczdnEo8hZeTofQVdzLKLXnpDPDmiOjgAC6cE7vpJItHe X-Received: by 2002:aa7:c303:: with SMTP id l3mr38690966edq.234.1571224951749; Wed, 16 Oct 2019 04:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571224951; cv=none; d=google.com; s=arc-20160816; b=s7xgSMSV6M9h6Z0F918rZWOnDhVmgwHUIVTrKxC9njHYcfrp0rFpLCaO4vdSnvD6St tuO6JqsArO8IjXrViicHUF8k8fNva9mkkM4D/7l7iQtJYinePQG7LEZoj1qv1zFVp9Mq 3VlmMpVNr+xFZI8UhAir3S9iSjGWWNsAH3EvhLIX6RDNGg2YcC/LLE4cFI8okSP9a+2L RUtiG4MpSScq+hBAtKs6o5zrelIsHNaJr6DyEdUBogtF12yIP2YKaz9I2GXj4holZ26K 7o2+CasqI9vdpQICpxOzrK02imFfsATLrzjpG8C2gF1cgSdPO55T6Llafaxgk0dWA0hF zyzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=P5XevmH3W5rt99uOH91fSFaVZ95JdvCf1teiRtFiMsE=; b=Pzz4YGngfWTANByoevFsVtK8BU5IDjJ/UD/09kgnRriaCZq6VMNn7bOIkTgTXQiDzH XlBQ91zl7WLuZzrpuaDaXLa2coD4VJrELBG2TGd6wL54+KEobWTXzYiBnZ09ECKo8ewT zpo5ValRL0ABGg8YebTij2SemDKNqTgOiXTiq2/eyFUPdqXm8VqdGRTRv4JSs2fCDbrx YN4ys/3id6vxdmThI2+whroPCRUPwalWQhIgsjksCBA6u+HPQkt2/cg3heXwE+wfUJOZ vvM65IDxm/eZRAGJDcNT9u3fEakaEUBUQgjPog2GCbYfmMoPl1Fd06+r5kVJs0GPgTDg 0uCg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i24si14779014ejh.35.2019.10.16.04.22.09; Wed, 16 Oct 2019 04:22:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403987AbfJPDe0 (ORCPT + 99 others); Tue, 15 Oct 2019 23:34:26 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46018 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2403957AbfJPDe0 (ORCPT ); Tue, 15 Oct 2019 23:34:26 -0400 X-UUID: 6eb8cb93d15e4b618ef15009ac3b4bc1-20191016 X-UUID: 6eb8cb93d15e4b618ef15009ac3b4bc1-20191016 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 249294150; Wed, 16 Oct 2019 11:34:20 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 16 Oct 2019 11:34:17 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 16 Oct 2019 11:34:16 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Will Deacon CC: Evan Green , Robin Murphy , Tomasz Figa , , , , , , , , Nicolas Boichat , , , , Subject: [PATCH v4 7/7] iommu/mediatek: Reduce the tlb flush timeout value Date: Wed, 16 Oct 2019 11:33:12 +0800 Message-ID: <1571196792-12382-8-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1571196792-12382-1-git-send-email-yong.wu@mediatek.com> References: <1571196792-12382-1-git-send-email-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reduce the tlb timeout value from 100000us to 1000us. the original value is so long that affect the multimedia performance. This is only a minor improvement rather than fixing a issue. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index c2b7ed5..8ca2e99 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -192,7 +192,7 @@ static void mtk_iommu_tlb_flush_range_sync(unsigned long iova, size_t size, /* tlb sync */ ret = readl_poll_timeout_atomic(data->base + REG_MMU_CPE_DONE, - tmp, tmp != 0, 10, 100000); + tmp, tmp != 0, 10, 1000); if (ret) { dev_warn(data->dev, "Partial TLB flush timed out, falling back to full flush\n"); -- 1.9.1