Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp953863pxb; Wed, 6 Oct 2021 20:01:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4nAhJWFxZPrkA5ISR7R2Kz5KZRmmdRAfmJCCgRACgQCdOBVHfPmIKxGk8azhgdlsQgbgv X-Received: by 2002:a17:90a:cd:: with SMTP id v13mr2568903pjd.81.1633575690540; Wed, 06 Oct 2021 20:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633575690; cv=none; d=google.com; s=arc-20160816; b=ty5ANkiO+6FF2F60LjydPr8vW+XDdzIzjLEH+EqBb7U4kFzrCxcdFt9K605Wkq3eht kH6SXMWEt13ZqhgvIYwhQfW1RQaWv/YN3qCkNjdN6l9A4h+Ci/fOwujEq2mfxXO7mF8M y+XMbqPJ5oxZIeFbxuCRWudnJLIxKYuPjuhpSoyJ9o8+9HbSe7QUABKoBoqmD7CZmXd9 /ZJ00JUcsDn1obP4RHMG5zthAko5XFmPwXL1nrz3RSzMUgXIUpUyP/md5YmCq32zB+Pr yDNWFxSjl4/nkl4C6B+ALPQG7T11kmsKfOsTyNWSwBDCQaTYpniiKm5LjysznaJ6BIpS YbZw== 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=JFzGo/WxNZB+Ws19Df4O4JzpkbbM9zmDRpzU+60snW8=; b=E95jtv+3hfJcYzOtbnE+zCaTELdLyxMf4ARevxQ5Hp0XHuNlBhMD3c3fIog01afhQE qGUFfCfvI/Cymj1Iby+WyJ3kby2vLoENMbxxC4/OnAGMhRkU14kcw4yCnX/YAXyOy1cq +jKeT0AhtTD2KeNZ3lsBS8Ve7ZVnGia94+9M7dA3wN+eYUpWtzUTD02f3VuZlEf70U3t HyM63PiOgP+gVMfpdfB3q3MLblzGVSv1LHAmqtpcDwFm0WQEAnBleXa6TOkNg0+x7hOv 3D8JM/T/61oRpAL+dhjlqJxCBRETGqz3GqUude7n9pwXYLeFMfuChOm+GJAUEuzzkwb7 i8fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=P1WfJPTi; 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 k12si8472515pjg.57.2021.10.06.20.01.17; Wed, 06 Oct 2021 20:01:30 -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=P1WfJPTi; 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 S240014AbhJGDCQ (ORCPT + 99 others); Wed, 6 Oct 2021 23:02:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34072 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229867AbhJGDCP (ORCPT ); Wed, 6 Oct 2021 23:02:15 -0400 X-UUID: b042151d92b5446492c6733a6cb81a1e-20211007 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=JFzGo/WxNZB+Ws19Df4O4JzpkbbM9zmDRpzU+60snW8=; b=P1WfJPTiCRORPrzv8PKqLG5Bb7JH3+uSwGUZed8BBYmRP8W93XyN9WGWHmPo5PaFC5CphRlOsVxCBMOKwQS4fBuXLdwhumhYPeDUT2rBwI/ypfmGzZP77pAi6yEAgtMCeNhkQ3UfgAP2/BkzOY0OGhKo1w8rENFZwBKCXSJx3mc=; X-UUID: b042151d92b5446492c6733a6cb81a1e-20211007 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1664456728; Thu, 07 Oct 2021 11:00:18 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Thu, 7 Oct 2021 11:00:17 +0800 Received: from mhfsdcap04 (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 7 Oct 2021 11:00:15 +0800 Message-ID: <111c6f3905f4349e6e30cde60bdc70672ee036b3.camel@mediatek.com> Subject: Re: [PATCH v2 11/29] iommu/mediatek: Always pm_runtime_get while tlb flush From: Yong Wu To: Dafna Hirschfeld , Joerg Roedel , Rob Herring , Matthias Brugger , Will Deacon , Robin Murphy CC: Krzysztof Kozlowski , Evan Green , Tomasz Figa , Tomasz Figa , , , , , , , , "Nicolas Boichat" , , Date: Thu, 7 Oct 2021 11:00:19 +0800 In-Reply-To: <11fe281d-4873-245b-f506-452900f33d3b@collabora.com> References: <20210813065324.29220-1-yong.wu@mediatek.com> <20210813065324.29220-12-yong.wu@mediatek.com> <11fe281d-4873-245b-f506-452900f33d3b@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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