Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp698948lqb; Fri, 15 Mar 2024 04:12:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCJM3uX+ZBESIdWBvpMw/zQkTRiyg2BMfUtcQrIMQMB9bIQzMif++96u5/4GZ7mSiW4dU8jZKIeFiU/caBa0z1T9jV3Y8VtDx8cHRTdg== X-Google-Smtp-Source: AGHT+IHAPKzeivkrkoFaOeG6a3tL4WEHRpGa+1s7twyox8ElAoG9tL16uARkaXvh5HqsY6Bz9/Pn X-Received: by 2002:a05:6e02:147:b0:365:cd40:c1e7 with SMTP id j7-20020a056e02014700b00365cd40c1e7mr4554179ilr.11.1710501142633; Fri, 15 Mar 2024 04:12:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710501142; cv=pass; d=google.com; s=arc-20160816; b=agFZjiGIyX9ksY1DHLFCbGe20c2XRdlH6rNXjt4GbP9TV8aSEfDUZmM3GU5kqEPqs9 kRtG0IoLrm6q1o7A2PIe0Ta6aPHqw/6xlM+zgu5UBtmeEs+wBOoLaoCwayMvh2M2ooOC oZbXuUWw/4QKP9yHW1pZul2aB7RwkWYTnUAawQi8oYYmeukUnngjrnDMFBKY1N3NcUL0 9Yl8LVM17o2kJZd8V9TqvQpA3wjO4BYE/Zg1nekzTwh549j5Frpu/Mbn4DTtnGJFm3OW ky8dnZIGg3Jlpe/xQFQGm4H2kdE/LmbmWOGdSx1UJm1LgygVzD1qmsnSotCRhFYGx1be Y7+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7D7g3yngEOEFV8pm/KGzWC2C2tyOeO/uGyi8NkcsdoE=; fh=x0TgoAxpWhsHeGJlUNXKeTIk28FLTKexZ/W8TOUom3M=; b=w1swnl53OoxdtGpWo4R8fJWv53u940cUHZrmb7KnNjRwX+cinKegbEqH8EPCzatLHr Uxnha86eBRn+I/rmImH1xmuSph+v/h04yuRW7UiRWVHjVmqSYwjsCZEzDLyylTFg/asD zh9hElIHCCTrQHASI4alXGvpLPL/wU1P30j0/Th12B9aUT+sLe4+7axIGZZtj9dd6p9R 4DKfSVgq1hqIA3Wf35FiSOhn4nFvbDBiRn/HViPwGzhOfYYZhzF3wHHeXyh2/LNfXF5b gl+bfDR+06A/TyUYE5k100aRxGxV/C+N4AQGHB48cvSugxHA294l51axXisJjBWW10H7 gFcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WzrwRLye; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-104305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b15-20020a63eb4f000000b005dc9daed2d2si2511799pgk.429.2024.03.15.04.12.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 04:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WzrwRLye; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-104305-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 493C0283EBE for ; Fri, 15 Mar 2024 11:12:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16A1C1BC44; Fri, 15 Mar 2024 11:11:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WzrwRLye" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FE711B95B; Fri, 15 Mar 2024 11:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710501097; cv=none; b=a+Ncmt9kV0RDjHBM4A99Ml0xs3VLnuQWFTHE53edmpH0GjrDY6QG/bAzVTKXGwj9zeagJ8XG6p9MRN7/+w/34Czi8CMAsvuOu78kKbmTvZs4byNHjAD90yEOLnFzJ5a7ibQ+UVFaLXqU7pnpZyLUq/WluLO1lOu6x7osP3gLs7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710501097; c=relaxed/simple; bh=TyfXweg617NaYVEXWRrpCLFjb8JamgFztuX3uOZlO5k=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TqIkNXgvjT5vOw8o+nWr6lRBUXuQ/vrzhZakcUckKbhoa4PYnkr7jkXxp+TOL4MfclPJe9Ozu382uWFYYV4z53s0a65VdRJPv2bHMMwGXvK3jhoyzZgLec8v2dgw0uxJrvYJFb2VxUtoiVFwBogOrmqiVsFgxomH6bQQ0M6LiQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=WzrwRLye; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42FACgXQ014870; Fri, 15 Mar 2024 11:11:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=7D7g3yngEOEFV8pm/KGzWC2C2tyOeO/uGyi8NkcsdoE=; b=Wz rwRLyeWdWyQdA2lRoMOziWZ9chCi0uTaE9d9fvQcdf1sEBUm7ytlN/wfmr43mSwa m1ei+MCJr96NOZNamiI9qCoCZSJL7rt971FA4aOGznt+rD1E0195J4H5hGhyTUMg Qkdylawjl1TjLDXN7u18DsE865SRiUuV6Njtul5ArI2ZMBDafwLHI8MNBOyg1+Y7 joJ8CSKMhq4GYP89LaIFRbhVekD6fSPKiTzoSursaPWfBgPCY2JMHIydvwJ31w4g eFC8vxVLe6Crkp3cOmZ8ycUIGTkWie7MuryG4eSMTmOH7NZc2z3cXzwHUDxP+HML /zIdVrhcqED0WqUwkdhA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wva0eh22a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Mar 2024 11:11:27 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42FBBPF9022226 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Mar 2024 11:11:25 GMT Received: from hu-jkona-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 15 Mar 2024 04:11:18 -0700 From: Jagadeesh Kona To: "Rafael J . Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Greg Kroah-Hartman , Bjorn Andersson , "Konrad Dybcio" , Michael Turquette , Andy Gross , Stephen Boyd , Stanimir Varbanov , "Vikash Garodia" , Bryan O'Donoghue , Mauro Carvalho Chehab , Dmitry Baryshkov , Abel Vesa , Taniya Das CC: , , , , , Jagadeesh Kona , "Imran Shaik" , Ajit Pandey Subject: [PATCH V5 2/5] PM: domains: Add the domain HW-managed mode to the summary Date: Fri, 15 Mar 2024 16:40:43 +0530 Message-ID: <20240315111046.22136-3-quic_jkona@quicinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240315111046.22136-1-quic_jkona@quicinc.com> References: <20240315111046.22136-1-quic_jkona@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: HoVV052xUXQjSc8jySp6tqo5HPkkd869 X-Proofpoint-GUID: HoVV052xUXQjSc8jySp6tqo5HPkkd869 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-14_13,2024-03-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 bulkscore=0 phishscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 adultscore=0 spamscore=0 clxscore=1015 malwarescore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403150091 From: Abel Vesa 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 Signed-off-by: Jagadeesh Kona Reviewed-by: Ulf Hansson Reviewed-by: Dmitry Baryshkov Reviewed-by: Bjorn Andersson --- drivers/pmdomain/core.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 70d8634dd9e8..18a101215c9c 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -3173,6 +3173,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; @@ -3231,6 +3240,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); } @@ -3247,8 +3257,8 @@ 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.43.0