Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp713957rdf; Fri, 3 Nov 2023 12:44:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFn6yrhfxBtrtNomW/Ts85cVniJkF/VJ7rUlhenP8d1kMvIMO9bFA4u719bfP0gj9yYG9Uw X-Received: by 2002:a17:902:f68f:b0:1cc:6101:2094 with SMTP id l15-20020a170902f68f00b001cc61012094mr4630036plg.14.1699040654013; Fri, 03 Nov 2023 12:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699040654; cv=none; d=google.com; s=arc-20160816; b=0ZMkXuSAN6eiVGVgnOIWMnxvNok5Eh0K9IjYZ26EDs3iyA0z/+3OAc5NQGhMZRGf+s sh3/H/0lvAXUz/a4u+QZ6cwpl2n2bbi1pJOU0GFQvwtnRbxLcsdICptGU+1KJfHdSBLE JSNbWF7xIw+1uIVIunnmQrgdyz9F8BLOiboa1zYRn934l9kpVzxZgvyBj0bOwcqoum45 fJlIbPfshIUj+akix9zGes7cT3YnSi2/1rnVNxK+lXXPTzHPMeSB+abFLy+CIFaV9+MM iEiMkRUR0r/mUooiA8adpnxllG9odNvDo8H0PmUwrXU+5/OlTuu7qvhT4fJrFiOFfAsO yXhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wyKW7kb1XpoSpBCEwvNrU1CSGuhfHpE+EHjxBAnX6V8=; fh=O11OWpgo2jK432oOk4Y2qCell8nNVnSIW+FFPfeOiYw=; b=fks6KLdqChD8j+rTdCrvsVrkwje9+3u/qfqfPZ3REM8UeZgQ3pgrecVZZOU5QeP92r SXJCvaLQcKLnJE1HKgEnxChdqMtK1ooY/bPMKkwQEjB5V7u1uvOljBPacCvlLo8NpeFG 6ffqOmytj5yUOivUN30IziAT3C5xlOFXeM0I6lYReraMztFyBydh1BiAc2sBTOo0DEI7 A/bwrHMmskqS+osRJ+lFtdCMBt9Y+HH37H6YyjTw5dib6yuF++9mn/kcUPJwnrvFbvbX lRIv6HDnCToPlpAxQYrYfoYPKm1aqSHNrGbFnymDqrN+M/wPqLO95mw9X19hVyAaRY/v Wa5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pVm9iB9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id u8-20020a17090341c800b001cc686a4128si2247081ple.600.2023.11.03.12.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 12:44:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pVm9iB9V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4DFD78332347; Fri, 3 Nov 2023 12:44:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377789AbjKCTnQ (ORCPT + 99 others); Fri, 3 Nov 2023 15:43:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234453AbjKCTnP (ORCPT ); Fri, 3 Nov 2023 15:43:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB0DADB; Fri, 3 Nov 2023 12:43:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2585BC433C7; Fri, 3 Nov 2023 19:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699040592; bh=CFSrDlVUM0+gZalq2vpH/rAxg1gkP2kOq+1l1toyv8k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pVm9iB9VSfX2kugsBsG83Jfa0Q0eQcbYrBFjmoWBQ+Bcv11MmJzm7e1r1RkqnT4j9 MiBichAfocfVllA5cJ8OatOs/qcC8tMZui00fM7kvRtNQI8Ro1u1UuXEOdmNPOf91z EeR2ix+M0s+c2qv/f2crxX9+9JTXOQUOeVXtICN4lOPpKeJBn+WJNDJCFr1A7xFpCY B0VRQ5E+DMIL07jvMTyUZp4MBU3wdxEDiylzRNQRehq4rKELlvEAoxhGkr/4U0s7qO MbHQPoF0ltnidEH1wcl3qufWnQtH59YTis/hXEBL9KhulanOJwwJ/A4TJxZU2pS5F8 BjAxKgvBjudMQ== Date: Fri, 3 Nov 2023 12:47:17 -0700 From: Bjorn Andersson To: Abel Vesa Cc: "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Greg Kroah-Hartman , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Mauro Carvalho Chehab , Taniya Das , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-media@vger.kernel.org, Taniya Das Subject: Re: [PATCH RESEND v3 2/5] PM: domains: Add the domain HW-managed mode to the summary Message-ID: <7ep4opcrephg3iyfpvwtuwqxjsw3jx6mgeapjz4ryawt5w7xzq@qluhryilt2nl> References: <20231101-gdsc-hwctrl-v3-0-0740ae6b2b04@linaro.org> <20231101-gdsc-hwctrl-v3-2-0740ae6b2b04@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231101-gdsc-hwctrl-v3-2-0740ae6b2b04@linaro.org> X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 12:44:07 -0700 (PDT) On Wed, Nov 01, 2023 at 11:04:08AM +0200, Abel Vesa wrote: > Now that genpd supports dynamically switching the control for an > attached device between hardware- and software-mode, let's add this > information to the genpd summary in debugfs. > > Suggested-by: Taniya Das > Signed-off-by: Abel Vesa > Reviewed-by: Ulf Hansson Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/base/power/domain.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > index 3fb1a234c7f2..7044271ec93b 100644 > --- a/drivers/base/power/domain.c > +++ b/drivers/base/power/domain.c > @@ -3181,6 +3181,15 @@ static void rtpm_status_str(struct seq_file *s, struct device *dev) > seq_printf(s, "%-25s ", p); > } > > +static void mode_status_str(struct seq_file *s, struct device *dev) > +{ > + struct generic_pm_domain_data *gpd_data; > + > + gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); > + > + seq_printf(s, "%20s", gpd_data->hw_mode ? "HW" : "SW"); > +} > + > static void perf_status_str(struct seq_file *s, struct device *dev) > { > struct generic_pm_domain_data *gpd_data; > @@ -3239,6 +3248,7 @@ static int genpd_summary_one(struct seq_file *s, > seq_printf(s, "\n %-50s ", kobj_path); > rtpm_status_str(s, pm_data->dev); > perf_status_str(s, pm_data->dev); > + mode_status_str(s, pm_data->dev); > kfree(kobj_path); > } > > @@ -3255,8 +3265,9 @@ static int summary_show(struct seq_file *s, void *data) > int ret = 0; > > seq_puts(s, "domain status children performance\n"); > - seq_puts(s, " /device runtime status\n"); > - seq_puts(s, "----------------------------------------------------------------------------------------------\n"); > + seq_puts(s, " /device runtime status managed by\n"); > + seq_puts(s, "------------------------------------------------------------------------------------------------------------\n"); > + > > ret = mutex_lock_interruptible(&gpd_list_lock); > if (ret) > > -- > 2.34.1 >