Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp554960lqp; Sat, 13 Apr 2024 08:22:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyv4AWYk+D7G+vUFqfWJ7C/Mn4QyQGheOUEDI6baK0jhWkLKQ7VC9dMoYzolCqACXoEF02OCprwX93ZKJf55gQA0LR/0BjmVpj/Nz7/A== X-Google-Smtp-Source: AGHT+IFP4Y8/nR1HVHJMD50dFVD3iCGhhHg4fdVMNnxyoZRwNQf02uW6PrLG3PgbnfwUM3dxYVJS X-Received: by 2002:a05:6512:3b97:b0:513:df6:dcd3 with SMTP id g23-20020a0565123b9700b005130df6dcd3mr6276424lfv.48.1713021743670; Sat, 13 Apr 2024 08:22:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713021743; cv=pass; d=google.com; s=arc-20160816; b=CeBBsPybcH6Tz60DPPB1PLz987Xj+vO1fVAux7RorxojU76v7UevAa6gKvliqfddJ0 ZPcOgQ9rqBcst8wkyocQpVgHaB8RPL+rkbOdHCKvK3YxDKKS1fsOrUFyOj3FCI1FyMRl BpURrM7B+qjq/SACuligaTv0zjNb4trBTBJtrtu+JfaOEuYPwaaxu62MKg8jHCQ1xefs /9Rw82AF/9QD+40TViM336ycIqfWUbOkK4cQbcn/IfUHoO3JHrDJVZTmN/Hvcsm1uJrM lB6r+1NmxezASlHo43f5UIoqI448LCq/aFGBMXFoAkmMr3cUtfve6BEuBRppBuqO6p+x VYFQ== 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=HWhvB7+B3iH9M758/lEFDSW5cbVB3Ca111rsOI8nuJE=; fh=e+77bQkAX7Ya5e/Hf0ION/n/aM80v0LaY3j5OLDEFgs=; b=hrWo5yLkOeeAzgkZ4EHv2yvUoFRC18CiexJCgs5hT7omNcTrQtqvcIWDEvil6OptX0 fX4hwmwMVBP3eirXWJGj9twI2+SrQGzyVydaAbGqWu5kibBHzM+Uwofl2q9k4IdNEkbh /1Hhj4v63ktKK2LGAH3C0guax+tozMlLsvgfoYOoRQ0n+/A1nRjQixqgohchWjMLMqmG sw4obxJdmWXQZCoXhaYeviIHVdQS4/1jYPdyyu5altJtm7EMctn1ikUlJY5yEQcR9r/q OPEpA74Ir2IPylYINcrrIiQmVKHfliayq86nuyjuO0gHRkpBnlluozXtTOJXrfXJFKSt 0lHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J7VpVJvV; 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-143775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hd9-20020a170907968900b00a51fc671857si2862238ejc.457.2024.04.13.08.22.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 08:22:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=J7VpVJvV; 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-143775-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143775-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3879C1F217F9 for ; Sat, 13 Apr 2024 15:22:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED4AA4F215; Sat, 13 Apr 2024 15:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="J7VpVJvV" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 AD18F47F45; Sat, 13 Apr 2024 15:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713021697; cv=none; b=MBM509qH5JMs/t/aPgHIhpulV+a0v7+2kGaHub84yixbpLrHUE7Sqwwv2c1x2KybHqrSPsqDBefd37jzmPM4JAZhxnVzzdNMWYNkNtNVfgoZpTgO70E+QdRKoU5AgRvt0zLetAr0exF+iUlSS3bzn7kRuoiY7aJcXmJSphgysxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713021697; c=relaxed/simple; bh=CXLgWD/uO470UcKLJmanR9iqaxhsVKJIEdE2vI2u1Cs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iGEoSY2ePlYWwTY2uI+B4wOhuB1H5PTzn/v5+brgA4YOvAVgIqJcb2G+wIK5p747Hs8eUNolkC7fdmZZVAhkeHFaWeM3ClXKucdRTMX/h/DyinXNTHhk/3wEuNmx6dMqb8ioBuf96WG5bVZRfkkAmv/0jiQnitczVk1jCs9v5a4= 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=J7VpVJvV; arc=none smtp.client-ip=205.220.168.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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43DF0D2J009509; Sat, 13 Apr 2024 15:21:25 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=HWhvB7+B3iH9M758/lEFDSW5cbVB3Ca111rsOI8nuJE=; b=J7 VpVJvVsu2p0h9BdRt/sDRcEaFuxCJmyMF+4OeaRo0UG0IlG5fGvlrL3ZZY9nqHnU wwBDc+gR2t6Sm0B8G2MEginMlyOTdClxS3Y36HFtnZU40nybvIxxnOV3107PIw/v bDvGsna2AsXjZS3B6T9Q6qJC7og0Zywl5LOjPRbFX1HbfVpbOaw54kToAMS4pg4i jXnzXLoCyl5VxJhqpWhxoADtEchtk95WcflrcV0BTQ9NRKOnWRZ49aRAaxD1Rq2G G/yNhRovMRfJRBCW3901YFydBX32yNZvy5rPm8CcEFTDJNAb0ViOROYYEIuYwHPf qrXJ2B0OUxyBC+LDWZ9w== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xfk7q0j4e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Apr 2024 15:21:25 +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 43DFLOuh027263 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Apr 2024 15:21:24 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.1544.9; Sat, 13 Apr 2024 08:21:16 -0700 From: Jagadeesh Kona To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Mauro Carvalho Chehab , Ulf Hansson , "Rafael J . Wysocki" , Kevin Hilman , Pavel Machek , Len Brown , Greg Kroah-Hartman , Konrad Dybcio , "Andy Gross" , Dmitry Baryshkov , Abel Vesa CC: , , , , , Taniya Das , "Satya Priya Kakitapalli" , Imran Shaik , Ajit Pandey , "Jagadeesh Kona" , Dhruva Gole Subject: [PATCH V5 RESEND 2/5] PM: domains: Add the domain HW-managed mode to the summary Date: Sat, 13 Apr 2024 20:50:10 +0530 Message-ID: <20240413152013.22307-3-quic_jkona@quicinc.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240413152013.22307-1-quic_jkona@quicinc.com> References: <20240413152013.22307-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-GUID: JhKMZujB3oWZs0CZJ1SA0rx3_cK6reu1 X-Proofpoint-ORIG-GUID: JhKMZujB3oWZs0CZJ1SA0rx3_cK6reu1 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-04-13_04,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 priorityscore=1501 spamscore=0 clxscore=1015 malwarescore=0 mlxscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404130113 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 under managed by column 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 Reviewed-by: Dhruva Gole --- 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