Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp921767ybp; Wed, 9 Oct 2019 06:21:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuPH7BumVbaR4hlBkb7a1mcp0nLtxIFp9npGpRQNcsndtjiPDT18ndUUXBLCt2KrmVCWsG X-Received: by 2002:a17:906:181b:: with SMTP id v27mr2882548eje.117.1570627266637; Wed, 09 Oct 2019 06:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570627266; cv=none; d=google.com; s=arc-20160816; b=BMcEqOyyu0buc5L3owYoTNyuN+mkiXssMSaT/847WvuZuZ0L88H0tHrzBe9R6S11Dd DsS1W5T+wprXWQEDaoiAkVTUO+ykzWvT/tsODmwwlUiZvu9mS4vypqgE2ksLoVFPQn9q j7xm1AExyRztdhebRqi/iJq4hQ+cYt8IV5+a8C2uXwR0S9bfWzW13RAQmslfKaN0sMD3 5ShjkExyT2yS+cpqHxVgpfaYc8w1YTQK15+W/sCVHrX80eXzI046zj66Ce1zCc+ZLIpe BFEmGCLr9Y6QQEUQtWYK8osJ+NnOCm4dKZC57sSGGL9jibXcWGhrzUMqI6936NbFaLaA wG1g== 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=W3qhHw3GUeaLHti3fKdMQog0LaEPphza7SRXNGF28eI=; b=fd/fW0IFtyR6SuTqqpKuHD1XyZIknf/0dIjygT/PIaKydPbAqZkBgufRflTfXGuhQx mEfZybQFqoG+6omerf1xdBY7kXEsL3wKsZArcQHGx62RwPB5He25N/0GxMSinNrjMlox IHptNo2LsqBN5jXh+nuYa8/mqKkSKTTQoE5EAMgTQ2WcXmNV/f8nswqT/sAO4Jy79g1L wKlO0U+1/QhzyufDF9Hf8uF2NwVO7JTecOnEHKPSs0q0Us3L/hZLWUgCJ4fG1Kug51Z9 WtasipEvqR8xOEE8faDKEHsO23mH1yZh3UPy9CyDG98ZvWXUYqOOwd1e+n5d268/mJUi e3ag== 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 ca7si1145042ejb.319.2019.10.09.06.20.42; Wed, 09 Oct 2019 06:21:06 -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 S1731406AbfJINTd (ORCPT + 99 others); Wed, 9 Oct 2019 09:19:33 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:28756 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729883AbfJINTd (ORCPT ); Wed, 9 Oct 2019 09:19:33 -0400 X-UUID: ac9d234a2a2a49a38a7ead9adfdb39cc-20191009 X-UUID: ac9d234a2a2a49a38a7ead9adfdb39cc-20191009 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 127445755; Wed, 09 Oct 2019 21:19:28 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 9 Oct 2019 21:19:24 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 9 Oct 2019 21:19:23 +0800 From: Yong Wu To: Matthias Brugger , Joerg Roedel , Will Deacon CC: Evan Green , Robin Murphy , Tomasz Figa , , , , , , , , Nicolas Boichat , , , Subject: [PATCH v2 4/4] iommu/mediatek: Reduce the tlb flush timeout value Date: Wed, 9 Oct 2019 21:19:03 +0800 Message-ID: <1570627143-29441-4-git-send-email-yong.wu@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1570627143-29441-1-git-send-email-yong.wu@mediatek.com> References: <1570627143-29441-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 607f92c..1e9ff25 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -195,7 +195,7 @@ static void mtk_iommu_tlb_add_flush(unsigned long iova, size_t size, * follows tlb_flush to avoid break the sequence. */ 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