From mboxrd@z Thu Jan 1 00:00:00 1970 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 029723E3142 for ; Wed, 24 Jun 2026 20:41:13 +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=1782333684; cv=none; b=S3SOF/qYbIivy525mqC33msv/I2W9GNM302K+du61k1JohzWdW1AJLQfm3kAAYUWdaj0XI8TAC9Xo4frdiUCGdeg8fm5P6i42y0pq7k45fUbqBzf0+O3rr9jXEgYD3x943JbqK8WYQfwYntGWHD9UdFo87XPeB0zO+9hDK9twog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782333684; c=relaxed/simple; bh=ktFuLBod6PkICS5eU2aAXOoPaoNHT5FsvcQS57K1xyo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oej45JhLnAipNrNrr6Tu8ySmDgMPRNFyS77Apm1HoHWSx8kUmURdu1liNWvsfo03kqUB8yX5GeDcUXWGNLHNaQq2AI5RyoKDOSQcDif/+Wdr2ZgK1fro/Py1GoQUl6RCEmCFW/yWFIxC0Fla3WL1lzMla4qbjJSqNwGsUncwdmc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=G+kOedp/; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=JOmz9Mzc; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="G+kOedp/"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="JOmz9Mzc" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65OJjCHN3746326 for ; Wed, 24 Jun 2026 20:41:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= RzilcVAWfMphGHBUGGTpHmQyinvK3m8bXOKcthvVDMs=; b=G+kOedp/l6hDz4IP MRKMghCFfffhYlvzlLhU2vsVFfjAUus19l6mhBa8bXp+Hsg2ItVlQLkV98/xaL+j 6YeSbTAXsRLxxIBSUTxSX1lIBBXbmQpt9JWp7Ia7EzOSVBEx702+RG9+oYaLyBNk 9O2eajtaQ2KqmA+cfyR/o+ewwMpQ4KDc6s34wSYMilMLAhbxysaRynubMjke3mNy HjefyLKQbFrweKdBLEkpQeIm8OXLdGuNVrGlYSyTKXm9GQwSICD6XMMT4CnvJt0F +otPB0GdvnNRg7zbZcS+NPgwvwuO34yaE41GLTUIg5CgWb6dMcR1kru8u4Iiqtmt osHP3w== Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f0d452hxu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 24 Jun 2026 20:41:12 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-9227d9b3b5cso347712485a.1 for ; Wed, 24 Jun 2026 13:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782333672; x=1782938472; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=RzilcVAWfMphGHBUGGTpHmQyinvK3m8bXOKcthvVDMs=; b=JOmz9Mzc8MUB4pzitfG8Og5gL7ERfzzNDsYEK1KPUViDmUbHYAAKDs4gdSsJQkZYA8 z3YPXuyj7fORp1OEIPXB/ncR05WnJPvkp8UJjojuFoZzb8atqjyzmFelOWbtjsSjV/pR KqKn9Y+1P7JRYydcGVfhW5dXj8U9HvqjJkysScLvDipY6dk45nVItvZSBD7LBqu6Du5U enYF63freqUWg480l3RhNzJi0Lx7DnASN9XN5I9TEkI7Ek6Ucxd4gmMC3KdLk1kyg7DA WZCaAUcj8Caj6NcPBudzXsT8p/U1+irn2MffTIGu9HcDz77a8BhTVrhiV2wC7yuYjDOU xkGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782333672; x=1782938472; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RzilcVAWfMphGHBUGGTpHmQyinvK3m8bXOKcthvVDMs=; b=H/7+PiqxJpPO9YouAna2f0VePptvzpAqlms1s9/biJg4Vju7gUB6LCQnm53XaxWBFr FjqhQaC0NWPjiJghUndf8fSQmExLwNpHA+XXU3ohET3KbYLoNp9A3nKfAM6FMYUGhwwR cmpoWIF/ElOSbdhXyXi1u/dQTViACrvkTlkfGDVUz+fstAT1ZgA001ltMcYWrFzeHqUN hU/AI2oU5+FItsx95icbIXUmkZGLtqpdOeKz9d5OZtKqjD3CwnvrfaGB4ErpYLb8jGi5 yaBdWlogmZf+/PqRTvDTNLixL3z0MVlvUIce1ATbmEbanwpBTM6LM4RseCzTS5uXVeng jDXQ== X-Forwarded-Encrypted: i=1; AFNElJ+8vTFZX/al/loOQeQBzosGe0MpbJPGmqxVooAF2+ExQ+qbbIPd3Mbk+7qCagL/3g7KF4QOzqJLOhMXcRM=@vger.kernel.org X-Gm-Message-State: AOJu0YwpGEIXOiB4U7jQJE76x/tkGr6180VoWnadiIplkVBsq7Imf55j You8JhX6/aCPAtcTUDljQiWI471MSRF953u06vPZdhqnxLtwjPEDYbgq0RZBJnuIRugMzK8xoke xDdmXeamS1WWP9Fwc2kGyTU4wn1R+gY7ZviQ7akd5P26Sjf89seA2NyEcfrciOVN98qs= X-Gm-Gg: AfdE7cl7SQOmPGc2JGxyfParHtnN/l+jSzHj22pMoXDgMrhrXJ3HJsIk+kptWkLbUiW bMZm1k8fcWT4Qp3XTTUYmlla0LqtLBoJvfqX3TBIC59BviFCVCbnUskegJxW52nfXVCs3bzcoy/ ifiM4I5KJcke4kW0r2ejBekZ2XPBpmtMzhG1c1z2S5IvsyzkLOeUVpZgsCn2w1Cio0xRS1ny/O2 lPk9qeVKOLjB9H5Ws3uo0YEb/ucwgjRXFe2ZTdnBKujGoyZxgQmtljCCRoIPVkCBaPZk5Kfznk5 DjX2CUqrngJIfVgispim5HXgmo82o2EBZ0aOLGvIoWQ/A9IRzpcCOsFleEnogzjBQRtGyM4eP2Z N9SeWK5HLRMyFBteybxbuzAtxsd45Rrgh+/eX7897yyP3E+xESnV3pproL2M0TtQBBf3sXQ/PQA == X-Received: by 2002:a05:620a:3724:b0:914:9ecb:9adb with SMTP id af79cd13be357-9277f6db9b0mr759157585a.50.1782333671748; Wed, 24 Jun 2026 13:41:11 -0700 (PDT) X-Received: by 2002:a05:620a:3724:b0:914:9ecb:9adb with SMTP id af79cd13be357-9277f6db9b0mr759151485a.50.1782333671228; Wed, 24 Jun 2026 13:41:11 -0700 (PDT) Received: from [192.168.10.101] (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4926544dfaesm1511725e9.2.2026.06.24.13.41.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jun 2026 13:41:10 -0700 (PDT) Message-ID: <63d42dd6-862f-4a9c-a950-5bc90ffab391@oss.qualcomm.com> Date: Wed, 24 Jun 2026 22:41:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/3] dt-bindings: power: limits: Describe Qualcomm SPEL hardware To: Krzysztof Kozlowski , Manaf Meethalavalappu Pallikunhi Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J. Wysocki" , Bjorn Andersson , Konrad Dybcio , Gaurav Kohli , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org References: <20260620-qcom_spel_driver_upstream-v2-0-a3ee6837c18f@oss.qualcomm.com> <20260620-qcom_spel_driver_upstream-v2-1-a3ee6837c18f@oss.qualcomm.com> <20260622-armored-witty-tarantula-84a28a@quoll> Content-Language: en-US From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI0MDE3MyBTYWx0ZWRfXypi6NBIRHZqH bS/yDBX7xKlcw06UrVDYYVguejbXIdJyez6By2JkqMiFPx9FIoeuJ5+iwlT+BWg6UFSOVC+Wdji ZLWEKCTmVxmpCOEA2AMdQii/HyQjrqDjxUA8d2F/2zRRWU8NJMecrRAgKfFoTFEl9BtailnSsK4 GvD9K0n1MI5mkaYjdYbcw4z1RY8jIbirEIKQjrXGVQ574cTdRTIFfVyl5Doe5hBw1exS8zVcLvg sFZgPGtL4fmQxLlUDiT55qeADFmGSoTRpOwV88gqKLCwebRbYF5W/kobistB9o3Jbuydp0xXV83 ChXZKaQduQRLDiSVVUrrUPHTSDefl11qGtg9zal9iXCSYUXtghDAf56Ue6WJuesbO2jvYU9ArI1 XezhWlTT2H29Ccjld4QqukQ+fWTmaPf/aJ+Ncupgl1VCvdeEhHg7GdfO446y4tDlN9mGpG+Wrt2 I2OWlsZiUi6INpmRxkQ== X-Proofpoint-GUID: Tw1g_8NqI2LUNjJCqGUEafVZojN3hv2B X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI0MDE3MyBTYWx0ZWRfX13ZiKbnLShkb tv3AZienWnhYtDffIoKNROaXU+Vz/SCISX5d/cvpzVl+322mzDSbYRYZZsvcDUROoGSAUc5P1e0 hahJHa6ABehT1eH1IJvPYRBPOW7u4Jg= X-Authority-Analysis: v=2.4 cv=Ar7eGu9P c=1 sm=1 tr=0 ts=6a3c40e8 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=uw/3876vWhRnNVL35W6mqQ==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=PPDuxORCk0BztKokjgsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: Tw1g_8NqI2LUNjJCqGUEafVZojN3hv2B X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-24_04,2026-06-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 spamscore=0 malwarescore=0 bulkscore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606240173 Hi Krzysztof, Le 24/06/2026 à 12:45, Krzysztof Kozlowski a écrit : > On 23/06/2026 11:47, Manaf Meethalavalappu Pallikunhi wrote: >> Hi Krzysztof, >> >> >> On 6/22/2026 5:58 PM, Krzysztof Kozlowski wrote: >>> On Sat, Jun 20, 2026 at 02:09:08AM +0530, Manaf Meethalavalappu Pallikunhi wrote: >>>> The Qualcomm SoC Power and Electrical Limits (SPEL) provides hardware >>>> based power monitoring and limiting capabilities for various domains. >>>> >>>> Add a DeviceTree binding to describe the SPEL block on Qualcomm's SoC. >>>> >>>> Signed-off-by: Manaf Meethalavalappu Pallikunhi >>>> --- >>>> .../bindings/power/limits/qcom,spel.yaml | 47 ++++++++++++++++++++++ >>>> MAINTAINERS | 6 +++ >>>> 2 files changed, 53 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/power/limits/qcom,spel.yaml b/Documentation/devicetree/bindings/power/limits/qcom,spel.yaml >>> >>> What is "limits" directory for? What sort of class of devices fit there? >> >> Added for devices that integrate with the powercap framework (exposed >> via sys/class/powercap). These devices are responsible for enforcing and > > That's a driver answer. I asked about class of devices. powercap > framework is Linux thing, not a class of devices. > > Please describe hardware, not Linux frameworks.>>> monitoring power consumption limits across different domains, such as >> the system, SoC, or specific subsystems. Any other better directory ? > > I don't know what is this hardware doing and commit msg is quite short > on explanation. Power monitoring is usually hwmon, but probably this is > not a hwmon. Right, it is relatively new in the device tree bindings. There is the Intel RAPL which is the same device but it does not belong to the DT namespace. RAPL : Running Average Power Limit SPEL : SoC Power and Electrical Limits It allows power capping and read the average power consumption for a specific device (or/and an energy counter) Basically you can set a power constraint (power limit) to a device and this one won't consume more than that power (the power limitation strategy is managed under the hood by the firmware depending on the device - lower OPP, idle injection, modem weaker signal, etc ...). The RAPL or the SPEL have a hierarchical power limitation. For example: SoC | ------------------------ | | Cluster0 Cluster1 | | ----------------- ----------------- | | | | | | | | CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 If you specify a power limit to 'SoC', then the power consumption of Cluster0 + Cluster1 <= SoC If Cluster0 power consumption decreases, then Cluster1 is allowed to use more power until Cluster0 + Cluster1 <= SoC For me it sounds reasonable to put the device description under power/limits