From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796107846; b=BCEG+7L1h2OQiHEs9bThb7OyGX7y1hvUs57vA1F8PbwacGnmzc8Sj16TzIYlKyUfxen4 D/GWNwFtRufrQDBixygVRynk1OLNG5rGGhlTqu45RGoc0i/Nw+IdTn63puWncSndV/8DL E52nQtF4FWEO4MdosAuUYNXtxr3RmZEa6LCT0kYau66ht6d0iOJnFBf8IUENCpA6cPXwd +siE915radDK3MvQ0OwwumDeviuwkGfNfj2MiDoMPrLZ9oMOgd7LQpjpE5fTXtNtT3ceN /lnhc9LCyA+t541rsy4mvlEXzDJQIWvJU/y0PVfmr6uBGNMRXmk/wE+xdw/EpQ+PfOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796107846; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=3ndW1Maouzs4xkMEiQhTGQMQJxUjJWrOvxBonugdIxU=; b=2QaU4JYjZ5+zOBl2GdFk76f/6OTZL9BI8TfNny9TpO8majdXKffAaMMSkmHODkqm4vty k9FkB/mWdukH6oYh5AloATpeyr6WESNMM+dwctQI/raOkTkgjJR33aIdVuRWhqeCrRCz9 yHLvEmSskaclte2hglMt0/uZa6J1/tuXl/8upllopKzuaIWz6zgA+BtwlBNfcHbWJsd4y 4/6NrVF0D+XNxduRlwG+bR36xoqT4MRaJDckC8bZ8pSAiGXMvWeqnjviqe/HKeyGtVHsR wVck/0NoGMTvsLppzP05o5tfKB3p1TAiTH6AnZXj7SfralJVSABcYq5zSVMNLa3zxjA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=dYyWi3OL; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=DPwWf2tS; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 73B98606A698 for ; Tue, 1 Dec 2026 06:50:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 73B98606A698 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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.a=rsa-sha256 header.s=qcppdkim1 header.b=dYyWi3OL; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=DPwWf2tS Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B157hvt3936333 for ; Tue, 1 Dec 2026 06:50:46 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= 3ndW1Maouzs4xkMEiQhTGQMQJxUjJWrOvxBonugdIxU=; b=dYyWi3OLaIiQLSnG see8JdFHM4SxgJM583FwVwUYeNUizTLc0iy1YSI5pEzv3cs+23o5Hq/4NuoFfe0v Axk4Kt3RRF+9I7aXyphlGZtJjY0guaOHwTjn9PGeEVcBPOLe0rz83O4Ua1592/ud TZtcmP+pKImfSplls03CtUSMnJXFAz3qYodIj2XkGBbqL5oUk/go5Lx6HhTJwx/5 SI6fDjAY0jNHWuGngX7r0fmLJXdQi1pNzzb0z9EUM/ckzoMcuZctZYZ+XVFMvrvU u7/4BDoRSvDBzvxaIJ13F9HKpWVf75aCuxS+Kx2KMXN1x5dwCVXChGWQsfua3U9D g1VMkw== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9qth0c97-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 06:50:45 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cdd77f53db5so5745494a12.2 for ; Mon, 30 Nov 2026 22:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796107845; x=1796712645; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=3ndW1Maouzs4xkMEiQhTGQMQJxUjJWrOvxBonugdIxU=; b=DPwWf2tSRfTFDw5ZUEPNsq3OI5sId4wWO643L0aRN/VdZ1+idHw/nqpFybTGAX61ns cbG5nrgJ1TkUuCs2rYKD6MLSRzcWCTdUQ8O1g2xWba2UTKahZ41uA6lmjYkots+t9BXQ u6RcZzT4rvqbw4Tz9PSXhBddPPJWQyQ95Nw81Nnh3cXIxE6eo88yVj7W6QgVG4rT51j+ ZFkauyTs5lKrrWLCoXQAnNYXjQyN0cg+STdYesIm6qLlXtXt1hQXpXP8HkiJh1YP3Gxx O/qpOqvPoow4DnJtOdnYry0ymdUMG1fJX3CfpojF/rBESNTJ1xerNKWPjCzf1Fkdw824 L+gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107845; x=1796712645; h=content-transfer-encoding:content-type: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:content-type; bh=3ndW1Maouzs4xkMEiQhTGQMQJxUjJWrOvxBonugdIxU=; b=POGscN6ap4nXbL41J93qQI6H2VW6wi6tUooLFdBRnE269osThxDB4IHzsR5arLAMUq GvXNR0ARRg5LezLXcrGLS9arLHw0sJ227KVVTgIsLlvAphGns+lTGbab/T19mKmEDF+m +ccj/53FEgPgcy+R3GBc0lTWO2t6z/WyjYcSy/i0fe4UgmBlf+Sw2fBhHF0i/FSDU9dJ nJz/RHC3oxsi7I8gqzvbuaVuwS6Qa5PcPw+W0xCejseFYhNO2Uh0G4E+NB2HVO91J1Jg Ww1qx5udBwPPFG1L9xjbsco+Zdi/u2Ugsq7k3dfwYEktfVwc7sjJtyyD/9wf5Rp0Pn95 Ib0Q== X-Forwarded-Encrypted: i=1; AL+hErG3nddhrMFfHtBOULp9onfrbLX42fryw1haW0q+VHG2UvvPKY9Jq1nuFn41rG5DiunVuwR1QuSWLJmaxg0=@vger.kernel.org X-Gm-Message-State: APuU4Z+jb13FA5hVnSSXuef5l6NLN/xtgVyVV3IZP7w/phBW5o23QdVT BJH3jpztEbZkiRWzO0shEBLECQ+oQ5AxLc77wSqrFbNjDeK2dkW4rfJsr6mdxm3WfDlSHg3Vp5u ziHoKtyyyBwZfyfnZy/5DOx4kHeutjPRDPExSk7inhBD1rdu5c+zKWnAx9o9CVURzO5I= X-Gm-Gg: AZFdTZfRE6OBNMydPr1PaJRU/R7bt/Yny8G0PqqEvn5qzDQYydbBvtvYcaOCKpHtWbt kyhlXu9fPw+6EqNCUpp+htzVQWvUOdeQ7ITVVbva5XV/daa0p2Ap9Fh8r/M1t/uiDB3ArPELNAd vyuIEOLgF8dgb51bDmywfC14Xxo+FavjEPVagWoTcC5GqJK8K04CfSvIdzUBfLIjTR9vu3M4uyr xyIrtLku2B02v+0NBzFx8HtDVAFoz+I0GcpjV/4iAfxkzu2U7XXOzqHX6zPr0kvqJoyY5dBBiSk hkXtTMdq4/aj62a/KRHggFVXnqY8bt1ikm+yETA13BcHg4pGOVbED824+EZ/Z7SMYqWz4FqoUS6 MsPo818nxHyIUNE4cnEMTJD+jWJLKtnb4Oxwx71mf6xNrENGVNSTM2RUNn800TjeneHe51GnMIy MUags= X-Received: by 2002:a17:90b:5745:b0:3b5:35eb:5e89 with SMTP id 98e67ed59e1d1-3b535eb5fc5mr15021671a91.37.1796107844717; Mon, 30 Nov 2026 22:50:44 -0800 (PST) X-Received: by 2002:a17:90b:5745:b0:3b5:35eb:5e89 with SMTP id 98e67ed59e1d1-3b535eb5fc5mr15021652a91.37.1796107844239; Mon, 30 Nov 2026 22:50:44 -0800 (PST) Received: from [10.92.180.119] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b50234fb25sm13700920a91.2.2026.11.30.22.50.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 22:50:43 -0800 (PST) Message-ID: <51a4304d-2280-4fa3-a811-91ec46001148@oss.qualcomm.com> Date: Tue, 1 Dec 2026 12:20:35 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v13 0/6] Enable ICE clock scaling To: Ulf Hansson , Abhinaba Rakshit Cc: Abel Vesa , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , "James E.J. Bottomley" , "Martin K. Petersen" , Adrian Hunter , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neeraj Soni , Harshal Dev , linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, Abel Vesa , Konrad Dybcio References: <20261113-enable-ice-clock-scaling-v13-0-258dc817bd63@oss.qualcomm.com> Content-Language: en-US From: Kuldeep Singh In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: aXzuhpF6kJZQkm_zUYy0PgpPoWp6Wc3D X-Proofpoint-GUID: aXzuhpF6kJZQkm_zUYy0PgpPoWp6Wc3D X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyNyBTYWx0ZWRfX8kT5Iq8/TNyy vIkz+eIzNOOQKIYNp73L5hpQCE9mL795J/Zf7xGKimopcsCRyoqVqQv39a2FYs/aS2dMkMjrNyK 6VCWOlLZhNpJC8mdtjiL8kIY4lwTTrk= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyNyBTYWx0ZWRfXwUtKXrkfm2Kh 65dS/zhAh/DQCA4aZz40aySQwU1i54h9ri/FZpXt2aHDgXIJOJDVOSc80aBGTmyik3lvxUrOP86 hl410Mk1pr+qRWudU/jaafc+dlP8aROB+U7BVWrlWO9c++JPfEwWcASUfGntsp1GILAbhP7t5IC 1lKsdpmy73De/rY25J9QMlGsesOmPkDOCqsfscChF9im1qISz1tiQvQx+VV0zts9iiYPKy/3YBo axBvwNr1Yv/t9UFoCvCNY7i5davmdXCGnq4421leZBlBsX8Um71XDZ3Qfpfpta5/g+dNt7n9K7L /cal6owMaxVAYONSXvPE5aGCl+mFZsc1vWhx6ZZTTgxEs/saaEm4zkJVVzrrOEWnF+sKYfD1VeW 1HX34Sd41rAMU4Jp/WjZStd/Ec9ut7I2eMQ72UNag15T3DFXQnPoHLP4CFSfMtIhhiQymBtaDZH hz/fGmlPB7yHtNdnsxQ== X-Authority-Analysis: v=2.4 cv=MLn1C8Zl c=1 sm=1 tr=0 ts=6b0e6e45 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=j4ogTh8yFefVWWEFDRgCtg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=Q2NR5oYpVGZ9Ku3_tyoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 suspectscore=0 clxscore=1015 malwarescore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010027 On 30-11-2026 18:57, Ulf Hansson wrote: > On Thu, Nov 12, 2026 at 11:39 PM Abhinaba Rakshit > wrote: >> >> Introduce support for dynamic clock scaling of the ICE (Inline Crypto Engine) >> using the OPP framework. During ICE device probe, the driver now attempts to >> parse an optional OPP table from the ICE-specific device tree node for >> DVFS-aware operations. API qcom_ice_scale_clk is exposed by ICE driver >> and is invoked by UFS host controller driver in response to clock scaling >> requests, ensuring coordination between ICE and host controller. > > Okay, so I had a closer look at this and I think a better way forward > is to start by adding support for runtime PM for ICE. Then we can add > OPP support for ICE on top. > > To implement runtime PM support for ICE, I suggest during the probe of > the sdhci-msm driver when it calls devm_of_qcom_ice_get() we should > hook up a device link from the consumer (sdhci-msm) to the supplier > (ice). In this way, there is no need for the explicit calls to > qcom_ice_suspend|resume() from the sdhci-msm driver, but instead that > will be handled through the runtime PM core. I am working on enabling runtime PM in ice[1] and we can review/discuss the implementation there. Btw, without opp table too the ice clocks are left default on after ice probe. I think adding link should avoid making explicit qcom_ice_resume/suspend calls from sdhci-msm/ufs-qcom driver which seems valuable suggestion but there's an issue identified where program_key calls arrive before qcom_ice_enable happens in ufs-qcom/sdhci-msm. Let me check if using devlink help in fixing that too. I am going to post v3 for storage drivers fixes and will incorporate this suggestion too. [1] https://lore.kernel.org/all/20261022-qcom_ice_pm_enable-v1-3-f7a84086c651@oss.qualcomm.com/ -- Regards Kuldeep