Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1382904pxf; Fri, 19 Mar 2021 06:12:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznLEpNtsSquk+ANI38yFc0l+tLNZCq7cKteGQJbnk3D2/C4obuZruab/YVYlsPBBt+kL9s X-Received: by 2002:aa7:d445:: with SMTP id q5mr9309138edr.382.1616159531518; Fri, 19 Mar 2021 06:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616159531; cv=none; d=google.com; s=arc-20160816; b=Em2PYwyxlwEcY1pjZGhKmdxRRjJrWx+i88RyYFXa/c1xkBaari563YS4NjGg6tJqSQ NwVKNqR5gIxrqyrQIe4Ac+8U6siJzlaTxwvjXsLXwvKeVjh32vqd9QCF4wPmu4WSm3T0 zKY7F20KYoYgNgvd1GMbMBEkR6YAzhl54JnTJnNORWUXcah57BE8+ACMm6+zAd09MNUQ fqEuIisGk0ZEPCNg/dpnBYifzcMuFOY0TW3tRtMxdyHwyVNaIFuKETjOrQheEnIC/ib3 3ZdXxh7jrsRBsgihLZjy9PbEguCuDkK1nCCRRRGzfO+exhONwl3+NyhvPUHSTUqRZuGZ l5CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vN+6ZZbUDY/MgRy4uJY7I9AN3GwOfse3JgEB5J3TpJ4=; b=BVtOmpFd9hRYX9UgiLjt26knQvP6KwL6dAcsWRt7lSNH/6CM/Tr5ah7gdVymPBWd3n tlXGU618PLLx0XF25FwbJTd3R4PJBeUoN77YWtDkywl4kvAVpCuLECrQP3hbVY9zV/aK /Xe6Eo6jVp8Mk08DGKOVVoUQ6c6tn+8oUu0dLM3njjV25JQXfF7a8JVpe16A9OOjLMfC OA29GCUaz7di1HtiignGtaltCVXkJqaby8teHG8bMYUo7KasgE6gQq575ahz4DFRivul nEPyoV9pjmOy76YLW6GUbZdsHK731CuNzvFSQ0xEBS1VOSzuHS8K1MVf/b2YEh+BRz2m phjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kLwx5x3+; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de11si4082869edb.15.2021.03.19.06.11.49; Fri, 19 Mar 2021 06:12:11 -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=@linaro.org header.s=google header.b=kLwx5x3+; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229996AbhCSNKv (ORCPT + 99 others); Fri, 19 Mar 2021 09:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbhCSNKX (ORCPT ); Fri, 19 Mar 2021 09:10:23 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C72D7C06174A for ; Fri, 19 Mar 2021 06:10:22 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id e7so3438028vsq.3 for ; Fri, 19 Mar 2021 06:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vN+6ZZbUDY/MgRy4uJY7I9AN3GwOfse3JgEB5J3TpJ4=; b=kLwx5x3+nJXRDDLtWxnZKra9ZWYq3G51xUBlJaIFOR98DaZGCzTuotMuOpxLg2HIGI eXrCmUUWvnwNILnJa7RgonPy2PHSIr6DXWX74/hB1JrvLOqO2Z1BgQ8ML0ypgrg0+4FU QHIloqf1j5R6K78BJ7vVhNLgLC5WaatP5BBVYGUbi4DmJadM/MYguA0cN7tABPOr7+OG ieHCur1UTi2XdY2DDN2TwR6QULmScs7W0bH8V7TEzd9HhhtOTtC3JABR0T7oICtm0FGP lk2p2284sTbnC8a2gGgVx5D3GzoreiQMiFXpd+IbfLGOlmAHlVgfQPlpqfsakyuO5NtR jzFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vN+6ZZbUDY/MgRy4uJY7I9AN3GwOfse3JgEB5J3TpJ4=; b=VFap1JOSCw/WodoNN3ANxxxsX2Pkssb1NP2gQa2XhEAk+P3dMUYNsaZA3gYeujsI0i hj8E0bziSl/GOxSybY8S8Hdst56TiWXtZ5gQQk/yEkuwD4MvY4TS6EKeblU5v/Nc3yf0 9eCc/yfytmcJuJ3ozmicOmVZYWBU674p9dC5QeNgqyXDHf1swxsYh8QQEZk+RFuNgsK+ LnksSUx80l2JEx+4hDThH4kMnp/vDLaKyM7viiLSBGWyYTx8bRV3DYOaun2+QAOyA3CO 2UzPA6oG9Izg7/QIRnugKwaSF+Cqx967Xgd5FBVFPhJLMVkZtIrqZ5bh58lb0JRlYqKo xZdQ== X-Gm-Message-State: AOAM530YV9G5e5WWQIHitHrCDozRXR3RZGihtn7ejttZvnKXWP5Fg7ht Qj4s1PHZqe0TvgdPf+Q5cxij+Nm1X8omq+8tqh4NOrHEniLtGQ== X-Received: by 2002:a67:77c1:: with SMTP id s184mr2482548vsc.55.1616159422004; Fri, 19 Mar 2021 06:10:22 -0700 (PDT) MIME-Version: 1.0 References: <20210317093117.16091-1-ulf.hansson@linaro.org> In-Reply-To: From: Ulf Hansson Date: Fri, 19 Mar 2021 14:09:43 +0100 Message-ID: Subject: Re: [PATCH] firmware: imx: scu-pd: Update comments for single global power domain To: Aisheng Dong Cc: Shawn Guo , Sascha Hauer , Ying Liu , Peng Fan , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Mar 2021 at 04:31, Aisheng Dong wrote: > > Hi Ulf, > > > From: Ulf Hansson > > Sent: Wednesday, March 17, 2021 5:31 PM > > > > Since the introduction of the PM domain support for the scu-pd, the genpd > > framework has been continuously improved. More preciously, using a single > > global power domain can quite easily be deployed for imx platforms. > > > > To avoid confusions, let's therefore make an update to the comments about > > the missing pieces. > > > > Signed-off-by: Ulf Hansson > > Thanks for the update. > Reviewed-by: Dong Aisheng > > BTW, I'm still uncertain if the new approach can finally work well for i.MX as SCU PD > also supports multiple low power state. > I could investigate it more when I adding multi low power states support. The multiple low power states are currently only supported per genpd and not per device. So, yes, in principle you could have one genpd per device as you currently model it, to support this. Although, thinking long term wise, we probably want something else that doesn't rely on the device to be attached to a genpd to support this use case. In the past, I have been talking to different people from various SoC vendors and it looks like the use case is there, but it's kind of messy to support it. I would certainly be very interested to hear about your use case, would you mind sharing some more about this? Moreover, note that, there is a limitation in the genpd infrastructure when you build a hierarchy with parent/childs genpds, when each genpd has multiple idle states. That is, a parent-genpd may be allowed to enter any of its idle states, no matter what idle state that has been selected for the child-genpd. As a matter of fact, I am about to fix this problem quite soon. Is perhaps this something that could be valuable for your platforms too? [...] Kind regards Uffe