Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp792317imm; Fri, 28 Sep 2018 06:58:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV619jGv2qhPlvEOqN1AJxNTs2+MAZ6RGPlkxcChbTd8NqWc7cmjyH5I+6n/3kJM18QhPOaO1 X-Received: by 2002:a62:64d5:: with SMTP id y204-v6mr8192284pfb.187.1538143080652; Fri, 28 Sep 2018 06:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538143080; cv=none; d=google.com; s=arc-20160816; b=Pc2TK1+7CGorCWlxR5WxKLwFFcxaMRcWWTn+YvVXjUQXbby7Cl+UiDrK6MjWhQZ3gY Vo3fJ4YeABTNDHC09ztJ1E/PVA2E5T7R2WjZaDQCdLtJR6Hs5acZZFDIGcgodzYwMtDZ FauUWU+Pxw2AnIji51AHpO5kNivtO4tShKTK/J1ZdtCT2iUHWICLSeUVHcH7p3eJukrI AmQ17atzcujXKoc4lzu/Y/smDdWgIffOy1HmeV7ea9BRFqdlHEK1HD7zPPRC9tjwecvk I33Cu9UDbnrzZ+mZaSGRRs3W0Dc6iU+qQw4aV0JF8fXHGTe2Sqi9VOLxtR5eznz97Zz6 CMtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rB36oFDyUmYNnG8e1uOrEcTFpL2XoHxe5HbIUV/TEZs=; b=G6+DfKLai+XiPSdOO/DlVA0pD953PawveuJ/KtGCp1rLIblwvvXS5xOrzgjk3M7SDq JF3FiqVjQ0zfawid0homBV/wp6wZ0VMI71m+nWRhycrId8MEr85E5egLn6w1VgHbUPBA Z+re7DTfsQSqHnIZP/nnBN0eIBNOHbO9iR0cBR5osWuq9KmcINsZsUF2q7lDJbP2UtrI ZoVa8VYyFiYdrrdgo14wAVa1wd4wy/d65RCqAgO+h3hvk4Id4YB1SwebQDutda3XHps9 cbbPlotlvEfFbgubzcaCFfsmxaKy2LfPtEVullx61HOWug8SV+G2/R6TPVRJsRwKULwA 5H5w== 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 cd9-v6si5170532plb.222.2018.09.28.06.57.44; Fri, 28 Sep 2018 06:58:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728815AbeI1UVZ (ORCPT + 99 others); Fri, 28 Sep 2018 16:21:25 -0400 Received: from foss.arm.com ([217.140.101.70]:50820 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbeI1UVZ (ORCPT ); Fri, 28 Sep 2018 16:21:25 -0400 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 701A5ED1; Fri, 28 Sep 2018 06:57:30 -0700 (PDT) Received: from brain-police (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D868C3F5B7; Fri, 28 Sep 2018 06:57:24 -0700 (PDT) Date: Fri, 28 Sep 2018 14:57:18 +0100 From: Will Deacon To: Vivek Gautam Cc: joro@8bytes.org, robh+dt@kernel.org, robin.murphy@arm.com, iommu@lists.linux-foundation.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alex.williamson@redhat.com, mark.rutland@arm.com, rjw@rjwysocki.net, robdclark@gmail.com, linux-pm@vger.kernel.org, freedreno@lists.freedesktop.org, sboyd@kernel.org, tfiga@chromium.org, jcrouse@codeaurora.org, sricharan@codeaurora.org, m.szyprowski@samsung.com, architt@codeaurora.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v16 0/5] iommu/arm-smmu: Add runtime pm/sleep support Message-ID: <20180928135718.GA1599@brain-police> References: <20180830144541.17740-1-vivek.gautam@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830144541.17740-1-vivek.gautam@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vivek, On Thu, Aug 30, 2018 at 08:15:36PM +0530, Vivek Gautam wrote: > This series provides the support for turning on the arm-smmu's > clocks/power domains using runtime pm. This is done using > device links between smmu and client devices. The device link > framework keeps the two devices in correct order for power-cycling > across runtime PM or across system-wide PM. > > With addition of a new device link flag DL_FLAG_AUTOREMOVE_SUPPLIER [7], > the device links created between arm-smmu and its clients will be > automatically purged when arm-smmu driver unbinds from its device. > > As not all implementations support clock/power gating, we are checking > for a valid 'smmu->dev's pm_domain' to conditionally enable the runtime > power management for such smmu implementations that can support it. > Otherwise, the clocks are turned to be always on in .probe until .remove. > With conditional runtime pm now, we avoid touching dev->power.lock > in fastpaths for smmu implementations that don't need to do anything > useful with pm_runtime. > This lets us to use the much-argued pm_runtime_get_sync/put_sync() > calls in map/unmap callbacks so that the clients do not have to > worry about handling any of the arm-smmu's power. > > This series also adds support for Qcom's arm-smmu-v2 variant that > has different clocks and power requirements. > > Previous version of this patch series is @ [1]. > > Build tested the series based on 4.19-rc1. I'm going to send my pull request to Joerg early next week (probably Monday), but I'm not keen to include this whilst it has outstanding comments from Ulf. Your errata workaround patch is in a similar situation, with outstanding comments from Robin. Will