Received: by 10.223.185.116 with SMTP id b49csp3540033wrg; Tue, 13 Feb 2018 04:04:13 -0800 (PST) X-Google-Smtp-Source: AH8x225cCuyMPEODno6OyepeHK4i2lp/QOAqecq88FrGwHdk318fqc3GT0T9ThJ1ztW9ZOiXRM5P X-Received: by 10.98.88.1 with SMTP id m1mr1046490pfb.178.1518523453704; Tue, 13 Feb 2018 04:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518523453; cv=none; d=google.com; s=arc-20160816; b=fCtc6eLX7N6z32DuBbZt9qgz+Fucs8hwzyGK06ttEE3uqpyGM5kO/GH281oY6A+mTM CYttdvny1I+3kS2HTbac7Aoe9QP9yIH0uEsmM8JW9eAExMRdw308FIxs88yczJ43+hCp 9IOpBBtrwO1dBw9LQ90HlcFHxk6sVbbrnLLJynPQroUZ/PLXAgqGZkkXXAK63v5YkI0U I3bWD0y+NjJZeXL9XsDIHu0598kgeLBZNje0b9MRO6XoRLRZva5HeVtXqsXeXx3bCEHF 821L+3ZNUTR3jYF/x607c9kBzwooHscA4tLZMvS/NnMGKS7q7FsGt0MGSSfP6yQX7qQT HZcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=+shyu4J3O5+EYfg8elsLr+pCwQ3CWTxEckDJ4+oL5y8=; b=G3kcan6x6V+ovLORvQuyFzLNf1lUtCS7uY/oMPUSY/mtN6e+jvksJ/hC2EeMIQQOBY a2pMeOgOrjV0pGiIqGNt/kz/J8mTKXFkZZhpywrcoyjZJG2avd1K0e1vwpO35dGbKHfU i4VTL6qgAT3/n7D/DRK/Vq7cvJlNlNHPHcwAc1z/jQRe6jxJpPejFUBP4cCkvkJ+u2ot WvCJhsJvX2VaHOpC3r8zTPztIYsXxgDMBqIQ7iuio0fw0e4xR00ZUcHMdnre8siQRNhF vNPjU9qtetErEygFJh5TCWUsejQR2VN9kNv0kvm9euxrrvxxqzCJ8ChY0Iz+YYxCVmhW 6/rA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j198si2020727pgc.703.2018.02.13.04.03.58; Tue, 13 Feb 2018 04:04:13 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934992AbeBMMAp (ORCPT + 99 others); Tue, 13 Feb 2018 07:00:45 -0500 Received: from foss.arm.com ([217.140.101.70]:55954 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934231AbeBMMAn (ORCPT ); Tue, 13 Feb 2018 07:00:43 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F00FD1435; Tue, 13 Feb 2018 04:00:42 -0800 (PST) Received: from [10.1.210.88] (e110467-lin.cambridge.arm.com [10.1.210.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6F9403F53D; Tue, 13 Feb 2018 04:00:39 -0800 (PST) Subject: Re: [PATCH v7 1/6] base: power: runtime: Export pm_runtime_get/put_suppliers To: Tomasz Figa , Vivek Gautam Cc: "list@263.net:IOMMU DRIVERS" , Joerg Roedel , joro@8bytes.org, Rob Herring , Mark Rutland , "Rafael J. Wysocki" , Will Deacon , Rob Clark , "list@263.net:IOMMU DRIVERS" , Joerg Roedel , iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel , freedreno@lists.freedesktop.org, David Airlie , Greg KH , sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org References: <1517999482-17317-1-git-send-email-vivek.gautam@codeaurora.org> <1517999482-17317-2-git-send-email-vivek.gautam@codeaurora.org> From: Robin Murphy Message-ID: <65d707c0-76cc-d59e-ff18-1fdd89306900@arm.com> Date: Tue, 13 Feb 2018 12:00:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/02/18 07:44, Tomasz Figa wrote: > Hi Vivek, > > On Wed, Feb 7, 2018 at 7:31 PM, Vivek Gautam > wrote: >> The device link allows the pm framework to tie the supplier and >> consumer. So, whenever the consumer is powered-on the supplier >> is powered-on first. >> >> There are however cases in which the consumer wants to power-on >> the supplier, but not itself. >> E.g., A Graphics or multimedia driver wants to power-on the SMMU >> to unmap a buffer and finish the TLB operations without powering >> on itself. > > This sounds strange to me. If the SMMU is powered down, wouldn't the > TLB lose its contents as well (and so no flushing needed)? Depends on implementation details - if runtime PM is actually implemented via external clock gating (in the absence of fine-grained power domains), then "suspended" TLBs might both retain state and not receive invalidation requests, which is really the worst case. > Other than that, what kind of hardware operations would be needed > besides just updating the page tables from the CPU? Domain attach/detach also require updating SMMU hardware state (and possibly TLB maintenance), but don't logically require the master device itself to be active at the time. Robin.