Received: by 10.223.176.46 with SMTP id f43csp527707wra; Wed, 24 Jan 2018 01:53:07 -0800 (PST) X-Google-Smtp-Source: AH8x224vE50eXUOCyiw/oIx6rz84Kyev3XWK69I5ysgtdEj8Gw0RvtARJzj5jEzIA1ElDsYvegT5 X-Received: by 10.101.86.201 with SMTP id w9mr10369526pgs.434.1516787587799; Wed, 24 Jan 2018 01:53:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516787587; cv=none; d=google.com; s=arc-20160816; b=gXIq9tMqAY7TFYJN4AhNqlTSUV5IVFOuCsD3LoSy1SDwnsxlRf4ZNPKPQ5LAlAySS4 bnFzS3qwprAQfYRqj/M7+vFMykMl+0j49HDX3mgiBmGeo/BurR62UQiTYyFsJwPtEYRM tzMMV/k97FnGSfOZxhUMoeOrFDYD47/Nl7fS4hh/sWOZavlswOGS/0+FLAHLMSxZSL7a VqCz1eu69b4vRBCHx8kWYYr/vdqCQAD+c2W8y5G/gMCDg2BSXJilIjWN3U1fecNRforV nbdTO3PXsitJmXS4Qqpx7MMl8cEum8YXPY0o4stjerg/qKUZMiSOqRGHoPRoH6EsMo09 MewA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=vvXHqT2KpkbaZuKTxk2ugsVsVQQPqPSRGiDv1/abYzA=; b=YDRtJjDO1tBFpRq+8qZmAqfNaJ3z1rIKGqkVLTq91+INh2d4z0IiK9rQg1rG0kedK2 tmGCrdJzVY2/nz+lY5ixRClpv8p3AFVdaM2z2o83lHEY6U1kw1MJ07Ov2bdrmhkIyYcE sTLW+hY+5h4jQFSVxiLeWf2d8oUYll3G+vYi5/unk0ilzShx8BIiOjFRsYVFKJYjlQqA e9aaAnchjPLca4J5B7WlVEx6ta+Oe24m85HJazfJ15ep9zYNOOurM+YlmsWAeToPGCak 3QmsOleDUOfr4J2lzyOphFK9GtWzGlfqsfjNg1/d2L7HwrbEEY2rnP/oxgPV5Xcksmbp MPoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C5XIRk6+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si6508894pgp.606.2018.01.24.01.52.54; Wed, 24 Jan 2018 01:53:07 -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; dkim=pass header.i=@chromium.org header.s=google header.b=C5XIRk6+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933053AbeAXJwI (ORCPT + 99 others); Wed, 24 Jan 2018 04:52:08 -0500 Received: from mail-vk0-f48.google.com ([209.85.213.48]:35358 "EHLO mail-vk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933021AbeAXJwD (ORCPT ); Wed, 24 Jan 2018 04:52:03 -0500 Received: by mail-vk0-f48.google.com with SMTP id n132so2159162vke.2 for ; Wed, 24 Jan 2018 01:52:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vvXHqT2KpkbaZuKTxk2ugsVsVQQPqPSRGiDv1/abYzA=; b=C5XIRk6+rNpmeo4VlAihTMBBT3Fp+EmKMy+ddhCAxitY5r4LyG0iR07QNl+H2lh09J fa/IkQmtI91Qftyp1EnKJRtXKX3xd0uER63TX3OQQOtiJhLLNq75CudmwuAz6PCndbub +tl9yiLVd3Jv3EFdhah4qlNqprzND4zLhsS7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vvXHqT2KpkbaZuKTxk2ugsVsVQQPqPSRGiDv1/abYzA=; b=K5zubNWgcJ4SxnT5nJ6T75ufRO2kU762Z4PPIJJPwOaK23r2L76r8wsL4GjOQ1McM6 xwM399OLIzyS4O1KLN2IbN5+v53ZtPal9W32a+5aKOzjWNqXvvYAcY2e0nrhhY6Pwvpc ipXjM2OIpBwrLolUXtHRhkYOYsvQouUc8WHQTND0GNLN4AMZPAGjOliZNLrMGvr6mWAj 3X4Bl0R+HJGkLfgJqP0wQntwyX4MrW3NZ3JIn3uLvUNfZDdrGNomivcW2pytr+PxuZ9V DUlJB63XP0iDsz5ARa/zJT47LXLFsWfF6qH4rln73wjSlINxnVBuCPT3akDAVPOS1qSq zBJg== X-Gm-Message-State: AKwxytfECj7CPSJyWWqvsYO6rvJ/wRWjQZZuXsGEG+Ahz+22yLpBCAIL iUHC5ylC4L9/NilxdN4HxFfgxOAfs7o= X-Received: by 10.31.224.198 with SMTP id x189mr4049687vkg.118.1516787521972; Wed, 24 Jan 2018 01:52:01 -0800 (PST) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com. [209.85.217.176]) by smtp.gmail.com with ESMTPSA id 3sm2918468vkn.47.2018.01.24.01.52.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jan 2018 01:52:01 -0800 (PST) Received: by mail-ua0-f176.google.com with SMTP id d1so2319815uak.1 for ; Wed, 24 Jan 2018 01:52:00 -0800 (PST) X-Received: by 10.176.78.147 with SMTP id l19mr4272651uah.96.1516787520084; Wed, 24 Jan 2018 01:52:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.45.142 with HTTP; Wed, 24 Jan 2018 01:51:39 -0800 (PST) In-Reply-To: <5A6563FA.8080602@rock-chips.com> References: <20180118115251.5542-1-jeffy.chen@rock-chips.com> <20180118115251.5542-9-jeffy.chen@rock-chips.com> <5A60AE41.2050101@rock-chips.com> <1f4b3c0d-1414-0012-a072-f4a11f432c21@rock-chips.com> <5A654925.9020203@rock-chips.com> <5A6563FA.8080602@rock-chips.com> From: Tomasz Figa Date: Wed, 24 Jan 2018 18:51:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 08/13] iommu/rockchip: Control clocks needed to access the IOMMU To: JeffyChen Cc: Randy Li , Robin Murphy , linux-kernel@vger.kernel.org, Mark Rutland , devicetree@vger.kernel.org, simon xue , Joerg Roedel , Ricky Liang , "open list:ARM/Rockchip SoC..." , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Rob Herring , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Heiko Stuebner Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 22, 2018 at 1:09 PM, JeffyChen wrote: > Hi Randy, > > > On 01/22/2018 10:15 AM, JeffyChen wrote: >> >> Hi Randy, >> >> On 01/22/2018 09:18 AM, Randy Li wrote: >>>> >>>> >>> Also the power domain driver could manage the clocks as well, I would >>> suggest to use pm_runtime_*. >> >> >> actually the clocks required by pm domain may not be the same as what we >> want to control here, there might be some clocks only be needed when >> accessing mmu registers. >> >> but i'm not very sure about that, will confirm it with Simon Xue. > > > confirmed with Simon, there might be some iommus don't have a pd, and the > CONFIG_PM could be disabled. > > so it might be better to control clocks in iommu driver itself. > Agreed with Jeffy. I'd give Reviewed-by, but this is my own patch reposted by Jeffy (thanks!), so it wouldn't have any value. :) Best regards, Tomasz