Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1200529pxb; Fri, 13 Nov 2020 06:48:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFsByHQZKd6llSySSCBbtujkP+MKAMpuM9SInhKyWosXBr1ehVO2zN8BJ4oVj45pVJLCLJ X-Received: by 2002:a50:9f2b:: with SMTP id b40mr2788602edf.20.1605278932117; Fri, 13 Nov 2020 06:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605278932; cv=none; d=google.com; s=arc-20160816; b=UnzIMjOHcKTrpQM7PpmzFwFF9oCtiptndA7PrMk6xUr37c7Y7edeE8GlJWZAMEKHSb ptzmCrcrQsRqs6BUzcoIy66EKOfLCSU6sS/VMvePxA9Z0uiXo62tPWpsMHQabD4la444 obdy4pwW0DQREoqOfJBfl+7fGhLz65PG788gAkIKrW48GRfvKL1Xgk3Sf9L9WyYnbMXA yKRIVd+3BBl/Kb5n1SJIX1CeDXHUj0s10JOuvOfM326ZtbUlpi/Xgss4UzL9TQXH6QXh sBLoYqe0wwsRijIGROOMIQhIaHSOsjF4anbn8PCw7xU8NTlY2uWNdSlLAa4BAkQPMu3B Im3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Aa2pPBMOldZH+yQGH0UrveON65rZ08/cb06MQFHGa0E=; b=S2Afvw3UwUBWCZLD1CJUBLkAMkf4CkD04DR+9yIfACvUJLB6HZZy/p0p7R1ypa5s8+ KHExiAiypLyYjyDy/3EbQOJy4/JB/E+90yFy/1TCG85lOyha2ZB8xmyhpH1NGxrfsbtJ F+pHs1pxQSdLmJRAr1Pcs/sdCEIxSL0grvVbL+T+fb/mtx8Z4r/XEsAVhPgS/LGRAcO1 WOmUlj7vMgUbZJnGlxHr+BKTHh/APbVda9EMGTRJGd1VSi33tezmye/yYgDDIJwbzcTw 5whyaszQw0hYEZW+LELZMpfgNxwbw9JKna2RsqRIM42ZLo84l3AWFxGSGD5ABLUqS/tB sqxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oI7Irk60; 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 g22si6337818edr.89.2020.11.13.06.48.23; Fri, 13 Nov 2020 06:48:52 -0800 (PST) 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=oI7Irk60; 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 S1726647AbgKMOqX (ORCPT + 99 others); Fri, 13 Nov 2020 09:46:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgKMOqV (ORCPT ); Fri, 13 Nov 2020 09:46:21 -0500 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 695F0C061A49 for ; Fri, 13 Nov 2020 06:46:21 -0800 (PST) Received: by mail-vs1-xe43.google.com with SMTP id b67so5314134vsc.3 for ; Fri, 13 Nov 2020 06:46:21 -0800 (PST) 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:content-transfer-encoding; bh=Aa2pPBMOldZH+yQGH0UrveON65rZ08/cb06MQFHGa0E=; b=oI7Irk60nS8p8IJ9aebTfBT8tKh0VFGTFn4N+jHvPSrvutUGz4HDN9F2eXGWUFLUJO pztkL1zvJJMqmmqAU4axiDuUUDb7ZZEfZv/0TZRBLjwcw3/kbFA/Hx96JgrITvvr02pZ P9ohzUknb4wDMFPoki9mO18MI2KcxcBOr1dFLBdisyT0QQlXZ092Oz52zVXzS4AIl6nm U8S/pCXL5v33Tp7vs3/soInXrThDoA5cbxXaCLXchnNuLPv28h5iBteaaK6ficGI1j82 XTk7m3rfU//IdaFvmbs97w3+GVYDzQv+iWKbaHXieTVM3M0QznSjPWGv6+xYuZCuLvZr 7YfA== 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:content-transfer-encoding; bh=Aa2pPBMOldZH+yQGH0UrveON65rZ08/cb06MQFHGa0E=; b=XPVD7he8uzdkoI4+mwFqE9OU5G4EBT9oCVOKeKp6lD7e2JLmGU1lnZA5x5mVzD8rwj Lbdgn+VhWpgTIxcxHVfoxS5VA3iKoXKAaFliMTIyPjv7UoNRvaTNlRcpVZeNQ4cXAB9P TqksRp686pzLYAQE8y2YBjPjXIm2EQp00G5VFTfRV32Zi+U+HZ9LtVjB1VaySk85WXZ1 tGN44TNaYW/zxGlWAzGHitukFyBK8MxlgDdDeh2L1iU00O9l+vq9pga/tY8yyeeARr78 ZG1T4BY3j+9TBLUuu4LWglJADn0duEMeUHevcvGFiaE1Jsto3KD0adtQ17fyGN0Q3Dyf SsmA== X-Gm-Message-State: AOAM5312WLNJC7wNfihC0FD22uFWoircvGHJt7ti2D/gkNj2eCgxh8Dj T5RmG5pipRQPFS87UVGkFcVbQ6IdiZ3wLg7xbuLV6A== X-Received: by 2002:a67:3256:: with SMTP id y83mr1567875vsy.48.1605278780301; Fri, 13 Nov 2020 06:46:20 -0800 (PST) MIME-Version: 1.0 References: <20201104234427.26477-1-digetx@gmail.com> <2716c195-083a-112f-f1e5-2f6b7152a4b5@gmail.com> <1f7e90c4-6134-2e2b-4869-5afbda18ead3@gmail.com> <20201112204358.GA1027187@ulmo> <25942da9-b527-c0aa-5403-53c9cc34ad93@gmail.com> In-Reply-To: <25942da9-b527-c0aa-5403-53c9cc34ad93@gmail.com> From: Ulf Hansson Date: Fri, 13 Nov 2020 15:45:43 +0100 Message-ID: Subject: Re: [PATCH v1 00/30] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs To: Dmitry Osipenko Cc: Thierry Reding , Viresh Kumar , Jonathan Hunter , Alan Stern , Peter Chen , Mark Brown , Liam Girdwood , Adrian Hunter , Krzysztof Kozlowski , Greg Kroah-Hartman , Lee Jones , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Mauro Carvalho Chehab , Rob Herring , Marek Szyprowski , Peter Geis , Nicolas Chauvet , linux-samsung-soc , driverdevel , Linux USB List , linux-pwm@vger.kernel.org, "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , DTML , dri-devel , Linux Media Mailing List , linux-tegra Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Nov 2020 at 23:14, Dmitry Osipenko wrote: > > 12.11.2020 23:43, Thierry Reding =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> The difference in comparison to using voltage regulator directly is > >> minimal, basically the core-supply phandle is replaced is replaced wit= h > >> a power-domain phandle in a device tree. > > These new power-domain handles would have to be added to devices that > > potentially already have a power-domain handle, right? Isn't that going > > to cause issues? I vaguely recall that we already have multiple power > > domains for the XUSB controller and we have to jump through extra hoops > > to make that work. > > I modeled the core PD as a parent of the PMC sub-domains, which > presumably is a correct way to represent the domains topology. > > https://gist.github.com/digetx/dfd92c7f7e0aa6cef20403c4298088d7 That could make sense, it seems. Anyway, this made me realize that dev_pm_genpd_set_performance_state(dev) returns -EINVAL, in case the device's genpd doesn't have the ->set_performance_state() assigned. This may not be correct. Instead we should likely consider an empty callback as okay and continue to walk the topology upwards to the parent domain, etc. Just wanted to point this out. I intend to post a patch as soon as I can for this. [...] Kind regards Uffe