Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1195626pxb; Wed, 3 Nov 2021 20:29:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR4HTpyB3b87sHEwxW8DsljgI5pOI6dHefhWhbaOUuLu8UztIvPeVsf+1FTtCIk3u34dtB X-Received: by 2002:a5d:9145:: with SMTP id y5mr33799260ioq.200.1635996595835; Wed, 03 Nov 2021 20:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635996595; cv=none; d=google.com; s=arc-20160816; b=RgNDEJmkfjaHABh0kTSbHLC/k251s037BuxH7wydyZ7+Mzef1wce7MINbFI8UCLeKE hxcKS5ZFAbrTZl9NN6nZ0FJWDRxrxbVNED5lh8gf46kBtZP2gcMOzx26E8VrxcleowZ2 Uwmuyp5PbnbNUoPIiRzCAwmMnVFvtgbTDAmoG1USzu6OEZrsOwFFmo1dF7BGcPuhpVML fRBJlpfEnsj6aQBuNb4GY/j8lJWh/UCKSL816Ycoe8msE7UzJc7/LEKn2WcirZpBderJ feIJoAWXztWOt9yyawwZKNUT5iCxL0t16G83+8soszXYQt2m66XMcX9dIv216FsMrXvI Qhiw== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=obhkLKakLCXFFdtMrvJQpCX8waFJ6arRjOpKnMlEJDY=; b=PLSKuPVPgbzQsayWpVsgmrP22cSlIUkFsNXQq2FkGRoKnmZZCplGL4EvHjIwxgT/9p G2wTA+mqU0lH2AX81zKinidz+wxRwferIA9EpglAh8RSaLm+JzZkgyJM3mqpBQcRSDbD us4GqotrAg8SebitulF4U7BwdNSR9YevcCXZ4cVafhopqljGPIKoILTveylJt3k1IIwp gk0VNiqzEUIXXP2OVmL/yw1Dze7QcKSvOadj+hwDa4Ehmc4rTMaxNPmblRyOpVRiXvt8 HerkYer8ux6HSWWy5vR7VuwtOvnKVDKkAMgooYbBY4T0hA7qXXSiN+lHLf4B/MO+M2g5 RbGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=U6zaoP1m; 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 t8si5052407ilo.29.2021.11.03.20.29.41; Wed, 03 Nov 2021 20:29:55 -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=U6zaoP1m; 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 S229928AbhKDDbV (ORCPT + 99 others); Wed, 3 Nov 2021 23:31:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:50170 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229893AbhKDDbU (ORCPT ); Wed, 3 Nov 2021 23:31:20 -0400 X-UUID: c97709e09f3e451281f0b753048bd9b8-20211104 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=obhkLKakLCXFFdtMrvJQpCX8waFJ6arRjOpKnMlEJDY=; b=U6zaoP1mGU96Nokuy8oq1aI2tau0zHNR3Yxt4Y7okHdW2UZR7EqlN9PsDuksG1w2D6vRJw3bVpp4P962Juelz95P5eTZgZnomeBRu5D3Jttd11X3Y0bnZotvFGpy+JauBYOg+BzddzK4f0h6+kMjnk7YTxN0EwBqfSN37+jfPFw=; X-UUID: c97709e09f3e451281f0b753048bd9b8-20211104 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 564425789; Thu, 04 Nov 2021 11:28:41 +0800 Received: from mtkmbs10n1.mediatek.inc (172.21.101.34) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 4 Nov 2021 11:28:39 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkmbs10n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 4 Nov 2021 11:28:38 +0800 Message-ID: Subject: Re: [PATCH v3 13/33] iommu/mediatek: Remove the power status checking in tlb flush all From: Yong Wu To: Dafna Hirschfeld CC: Krzysztof Kozlowski , Tomasz Figa , , , , , , , Hsin-Yi Wang , , , , , Collabora Kernel ML , Joerg Roedel , Rob Herring , "Matthias Brugger" , Will Deacon , "Robin Murphy" Date: Thu, 4 Nov 2021 11:28:38 +0800 In-Reply-To: References: <20210923115840.17813-1-yong.wu@mediatek.com> <20210923115840.17813-14-yong.wu@mediatek.com> <6cff0b97-b861-e02d-e76f-2510c962c452@collabora.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDIxLTEwLTI1IGF0IDEyOjAzICswODAwLCBZb25nIFd1IHdyb3RlOg0KPiBPbiBG cmksIDIwMjEtMTAtMjIgYXQgM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