Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3620946pxu; Mon, 19 Oct 2020 17:30:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqT6y7TJ1BFB/IKMsFOhqlI15ZG6Wa+d2KcOvll3+L8mpbug33+X8TsWNz1XrnM1+RuQmp X-Received: by 2002:a17:906:34d1:: with SMTP id h17mr450779ejb.87.1603153858590; Mon, 19 Oct 2020 17:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603153858; cv=none; d=google.com; s=arc-20160816; b=feiQug5qTYnGcgT7/Kloavsq5DuU14rGGQfrq4R1clVa9aSyMRKve+Xf68ADhgWVs6 tk8YfdMcUdoZvnejtkC4YzNHD6s39vV/CnfG+KjBXRu6kBJooP/DJu3XX6uVp6iZqS2K wiv/g6d/ryOyIERoAiwRx0JnfnyeNXJjQmy0VjU0pajsZSGGiV5qJjUk67JNiMVUCMcc qjnDiiLSVRfTealdPDf87G7tEFAiN/70nhnRBPr27Jc29jwyWw7yzkcq1fUTR9UgCI05 Oj1N4AHEtv86ex76hrABsdILiejy0SPmA9Jsy6vC64iKD1cGupEK38bGNhyzmcaTZeHl +eNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PgytRVtoOdd6B5kIyJtkERoueoWC2+wKUHTBlw26xos=; b=p3XzpEe7fEhn7USI9VLWcFmCmGK/aMj5g0Dy9XY53w1VJ5fc1ZvuyXckaN7gk641Hm IBvaI7MGQ9NGt14WNTzND5hWexaiD8udRgwsImjVff+dLR9H4911RAGQU6iO6kEIMgFz I39mXZ2mkgacP3sIiOQ3d8QJRaeuyI1UXaqion8W0MpE/0nnvd5z3clSJav5EWMsAPlp JTwNcBA2T7gnMXq1v+EYBm2XRt6MTXuf6hK6LXcVtb/m38TNHBwcv55nxokDuBtFlrt7 lc3uJaUh9AbOZ3lJNghiN28/JcJxw+Pi0dPlCniIyay1DkHFEABZhafY5R1RP7+Tpqjl aF9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HXZ8cWTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si121659ejr.382.2020.10.19.17.30.04; Mon, 19 Oct 2020 17:30:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HXZ8cWTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbgJSLhl (ORCPT + 99 others); Mon, 19 Oct 2020 07:37:41 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:48576 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727881AbgJSLhj (ORCPT ); Mon, 19 Oct 2020 07:37:39 -0400 X-UUID: b3b3baa3f08f48268656f28fb3156f1b-20201019 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=PgytRVtoOdd6B5kIyJtkERoueoWC2+wKUHTBlw26xos=; b=HXZ8cWTSqGFlS/i1RulNlId+JvaBEyIU0zdnd3yEQCYJEZfYZkKg0QLgg1U0e3d40vYzW+j4o2psu/8wIrS9KXAy54s6rB1B/WRXqZT8EhLqDbFUB4hefGNPQ+l3lQ/0VnApK4hKa/0Bc5V/CFpjyW2B50ATfZDSZEjeTnOhQD4=; X-UUID: b3b3baa3f08f48268656f28fb3156f1b-20201019 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 145608279; Mon, 19 Oct 2020 19:37:36 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Oct 2020 19:37:35 +0800 Received: from localhost.localdomain (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 19 Oct 2020 19:37:34 +0800 From: Chao Hao To: Joerg Roedel , Matthias Brugger CC: , , , , , Yong Wu , FY Yang , Jun Wen , Mingyuan Ma , Chao Hao Subject: [PATCH 3/4] iommu/mediatek: Remove unnecessary tlb sync Date: Mon, 19 Oct 2020 19:30:59 +0800 Message-ID: <20201019113100.23661-4-chao.hao@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201019113100.23661-1-chao.hao@mediatek.com> References: <20201019113100.23661-1-chao.hao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QXMgaXMgIltQQVRDSCAyLzRdIiBkZXNjcmliZWQsIHdlIHdpbGwgdXNlIGlvdGxiX3N5bmNfcmFu Z2UoKSB0byByZXBsYWNlDQppb3RsYl9zeW5jKCksIHRsYl9hZGRfcmFuZ2UoKSBhbmQgdGxiX2Zs dXNoX3dhbGsvbGVhZigpIHRvIGVuaGFuY2UNCnB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