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=1794758371; b=kFtpdPuiFS/AKqo7NcMGV8CjBGclnDae3rDmxaeRF9O2Wa5spEPfyXLSUnMI80tXxj0Y qg6QEQbpte7hqHs+lXSrF+hynCwPJxcD6IEI9LZd9lrBj2RTMYq/AwVATJcv57CqPcZsI ioPiQkZXkWy6a7gM0ca8SNe/R1OwFHo7pLGAOtRN2mkNpFF2VjuuRopVZnO0pWMwntDVP /YmAQz7BqeStwR5mXMLxrmDz3RVuG6vb8e24fIu/MEj7akXo884G7KTI86M3Kgo+0Q1L6 Ql5LZsJ7zBvu2PpQt3lDAy0+Ejn5Zf6KnlW4lsqMS3cm9crAbqkyquZvdRCewAxvyAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794758371; 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:From:Subject:To:Cc:References: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-GUID:X-Proofpoint-Spam-Info:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=rU0kaOlqF9hCuvhvsgIDlYklK2QFRWqi/dYW1+IFo+I=; b=Yxg5nzJIpt9Cg1PSktNeSKRUuZUD1Cl8d5lSqD5yXZ3BWR4V2l2NKduM+8Viw2g6yEFN gAE2ewrjVKygWAXhNonzfo/w9M2+MKA1M1TVDYbFLbz/bQKJ5OjBjQoqs6WuGXYaIwwVt gsBY7XL86VvOM1pCW0MnOx+H/BgYYHzxiOkoGA/fvrnv8kVYYrPoKpIGI908wW1Uqh4+d OMJYoSxCV2VdNJ4xolO/WusdnUglxAJDRHYhIxiyUFeKLElHOxNv91kfKWaQ3/Kajvi3w xYYd3sKaI9Bomslj3quc1l50qPkn1i5I97c+erK37euIFxu/llbEZUYGFYPYULIWSww== 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=ixfoMr+z; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="Y//5Sxd+"; 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 92E28606A31F for ; Sun, 15 Nov 2026 15:59:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 92E28606A31F 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=ixfoMr+z; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Y//5Sxd+ Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AFFAwEx3020827 for ; Sun, 15 Nov 2026 15:59:29 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= rU0kaOlqF9hCuvhvsgIDlYklK2QFRWqi/dYW1+IFo+I=; b=ixfoMr+zQPJ5pPB4 N3Jra/9kLU4Tps7ooXjkJ16KY+CjnGJSpAb6BzhHiRwrfZdu0tIvNABYVeBzikph OE1Nco6B9zP2r/yu4zTkFbH3iE1Mc8AqCPBKIFJCnYIV3wA6M6qgTDzYVrs3NW5F fBVSL8F6IW8ImljVD5/xCZvixQdLcGvM+Dbo+lW38Mh5CyrvUzCmGAG6lxdgL/LO UmiuW1kQqnkCrwq3G+juHFX6+SjLE2shmtFHGc6aWUd7mwbT6u5EPDzixK/fyP/2 1655qe+dpmL0LrohoCsU4n3IdZt4Ylg00PHln0cVxLXAOKXPAWONk0wcM0cvIwyS 44s74w== Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hxhhjucb1-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 15 Nov 2026 15:59:29 +0000 (GMT) Received: by mail-qk1-f200.google.com with SMTP id af79cd13be357-934963b2bc0so537098185a.3 for ; Sun, 15 Nov 2026 07:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1794758369; x=1795363169; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=rU0kaOlqF9hCuvhvsgIDlYklK2QFRWqi/dYW1+IFo+I=; b=Y//5Sxd+AU9S5rMWaNS28SKRgN5qtLzGzuiO4ZYF8UT6qU+fVXcWAIuz+kaqfGCPZc b3jt24nfFxHiAqYRZo+cxcIxH2qOYpOdOTj9lInruUwG+2ItNZwBkMYzdFhclOja9QCA hccUIxD6Q2/Cp3LimHL/WgAhDX4ZHdb1JSnhMstqQ+oVtOOenw2DfcRzVAmg4d4/3Rtw Rp1UotJrFehNQKAF2GOJFTrUUV1WM8vmK8dW8p03N0krgjo6clnDCCMwLJhr5XxzLBrA 7Y2qFW2HxUkQtTdExWcBQQz0ObdkH6u+x4pv0IAe5KGgKN1QCD2h9CeDsQeW1RV4eXBU yZWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794758369; x=1795363169; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from: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=rU0kaOlqF9hCuvhvsgIDlYklK2QFRWqi/dYW1+IFo+I=; b=AYj3l8VLv/rpn7BybN5b/j/wdNylntzxYOXwE0n0q4AlSUNSh5FeoLqV+TeRCYEtEd AqU03PJUop+LxOxp6SobF6tsx2YL7ferAqeQfY84vNS0Z6fiT6nThmZhzy1izKj2nG4D rKMxokXuZ0mbdne58jU9lGJDdz4i1+va33CvbLsJL3IhAVy74t926TNo1kV1St9okySm wEGfvMT2BihYbvkz3AxW4AdzrukNlxBXpFr+W/TwkU+/Fw6I9euec0cd2XRvQYOlsOaD 9kVApDNHqr4ya9DqP2wldQYuzLwwlByp2GSqfTO4qyg9KL7IF7zfoDts5ofIJedh6CIo wBHQ== X-Forwarded-Encrypted: i=1; AL+hErF0y2OWaWr2iPUFz5nAJIW6eekY8WnfAuGErt153SMbX767aWMognC7+AsyabFRhw7zsR3TpKjc+QetHG8=@vger.kernel.org X-Gm-Message-State: APuU4Z8agZphKQsUXVmW1eES9yR67WCYf/YetkDle2jCEIopR1aRojzp yUBfFLk5fos0rhDtrYpVxfY31H00NVaAwr70ho0o+8RJVd9CdVIGO+aoDd1W/Al39NPNVFT5ARm 7iHkQEIR0qcjkr9ZVC4xf+0faI04r87qK6z580qsqAOoa4aa/bhrsrjeFVSYb1TAduYs= X-Gm-Gg: AYBFou0uVu50Q6o1CdO1IBcriHH/0g3syMunYFftPYaRWDTQ71mak+f8C5WZ8Jv8ttc voa/D/eoZSCVOtqvqx7He5zhATlwYgr78M53DGX2LIaVIthBXjLWureOIXVYDcFWyzDOJ6QJhfe EJ2v6Wv+yYqxr5J1NrjAkBBsE9v06PeLFDhx7iEJZbdhIZsvC7cquXDaLr1VYd/5H2EE/cAKM5f Unm8ptpGhft2oYwucnsYP9pHOWtw8YLMOppmu0C/A0q7S8uChIMTruVQBWFv3WMYsoWGXoFFiqW 2eEETPFTrwKM1ERPW6xTb57+O0xbO8v+W6x0hxZ9vyAD2VpqTpSINIBs1jd2XlFJqeZ/gTaGXxd wCFR8jQ41wKi4bDk8p/j1wnDNiK+wpLoFw7K6Py1NC9qTuRTRkzHAZ3HG2AYBx1edUpNGxfBlQm f8RAbcGITTBti5i0NCcD2JLcxGL1N7NzufmSpxi2rLhE7ooaUKHjfSyxqLnTQwM/dw8eqL0PoK6 +Fl3h4TfajWiDJNHPHdqsxx9arLSowsffnq3CtMC7TT X-Received: by 2002:a05:620a:bcb:b0:93e:c12c:4402 with SMTP id af79cd13be357-9494bcb40d5mr1383889085a.79.1794758368715; Sun, 15 Nov 2026 07:59:28 -0800 (PST) X-Received: by 2002:a05:620a:bcb:b0:93e:c12c:4402 with SMTP id af79cd13be357-9494bcb40d5mr1383885485a.79.1794758368150; Sun, 15 Nov 2026 07:59:28 -0800 (PST) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b7c23611bdsm3439393a12.8.2026.11.15.07.59.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Nov 2026 07:59:26 -0800 (PST) Message-ID: <42350f50-d20b-4141-9ff5-bbfad5fec2a7@oss.qualcomm.com> Date: Sun, 15 Nov 2026 16:59:24 +0100 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 From: johannes.goede@oss.qualcomm.com Subject: Re: [PATCH] pmdomain: qcom: rpmhpd: don't clamp gfx and gmxc before sync_state To: Ulf Hansson , Oleg Keri , Konrad Dybcio Cc: Ulf Hansson , Bjorn Andersson , Dmitry Baryshkov , Abel Vesa , Akhil P Oommen , Rob Clark , Thorsten Leemhuis , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, Konrad Dybcio References: <20261021080517.2161-1-okerixx@gmail.com> Content-Language: en-US, nl In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTE1MDA2MyBTYWx0ZWRfXyjYTtfBaQJEv zazpqCKKK9+RI1WLgFXGz63llLfctyd1VXSwfwWwLvZHoALl2u7Frfv71pWRYJNdfxK7cNTFtPL G44k8ZlqyQ9thgrZR6sbOaBNcdUOX+mYo+shimrrN84U+vwvrgQWkFadJKXu3C2/gBx0VFzQ5rv 45ILaxJ5nE5/DlqQUze01hOLwtfnVVLI0qCdAoXw1xoXWmxUHJmU9vlq31EwK5BotCwi3mkehID 2DU312dfBsZAsGTPf9n3g7iKhqFEHT/LuY43k+AltXSBG0FOK6qXF0fo6OsZUh2He4q9SLOSIOQ 137gbKJXbXQbFQwkjxYJfw6nxGjjUEwG7UdMfLcrdDKkBK71LiVZRlW+qgzicaBt1cqqVIH+3+p SXb/26ll8pHpVNqxYOUG+bHx0as5mN5mCmGj+KXjihepHY+90fot3pRfDPAWsSRJlVP1JhbASQs AqIBYQKK9FXOMjdFjkw== X-Proofpoint-ORIG-GUID: NXnqD-ErowF_N7cmPAjwtbuQQVvH4aA- X-Proofpoint-GUID: NXnqD-ErowF_N7cmPAjwtbuQQVvH4aA- X-Proofpoint-Spam-Info: AW1haW4tMjYxMTE1MDA2MyBTYWx0ZWRfX9tBX2NhGxsy4 5aJUPBHv75DRGa2STCIMbmdoIXaP5g98R4Z+tQxfnS6d0FjVbiLLM+sB6JXP6sW37oWGm1Svx/1 hKeRX08fRAB9iu8jo0IjKhtAYmfCYXI= X-Authority-Analysis: v=2.4 cv=X9rHu2Te c=1 sm=1 tr=0 ts=6af9d6e1 cx=c_pps a=hnmNkyzTK/kJ09Xio7VxxA==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=6R6alxyDzFe-mgSiMmgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PEH46H7Ffwr30OY-TuGO: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-11-15_05,2026-11-11_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 adultscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611150063 Hi Ulf, On 13-Nov-26 18:48, Ulf Hansson wrote: > On Wed, Oct 21, 2026 at 10:05 AM Oleg Keri wrote: >> >> Until rpmhpd's sync_state every vote is clamped to the highest corner, >> so that hardware the bootloader left running keeps the rail level it >> needs until its driver takes over. Nothing the bootloader leaves behind >> runs on the GPU rails, but the clamp hits them anyway: the GPU clock >> controller's probe runtime-resumes and suspends its GFX and GMXC >> domains, and from then on both rails are pinned at their highest corner >> until sync_state. >> >> On Glymur gfx.lvl has 14 levels and the clamp holds the rail at the top >> one, 0x1d0, while the GMU's own performance table ends at level 11, >> 0x1c4. With the GPU driver and firmware built in, the GMU boots long >> before sync_state, and its CLX DCVS calibration does not survive a gfx >> rail held that high: the firmware gives up with HFI_F2H_MSG_ERROR >> 0x007306c7 (ResMgrCalibrateDcvsLvl), the first HFI_H2F_MSG_GX_BW_PERF_VOTE >> times out and the first GPU init fails. On the Lenovo Yoga Slim 7x >> Gen 11 this means the compositor cannot start at first login. Pinning >> gfx at level 11 or 12 instead fails the same way, level 10 and below >> boot fine, and pinning gmxc alone has no effect. >> >> Leave gfx and gmxc out of the clamp: they have no bootloader-configured >> consumer to protect, and the GMU votes them through its own RSC. >> >> Fixes: 93b6c8d10fad ("drm/msm/a8xx: Enable CLX feature on Adreno X2-85") >> Link: https://lore.kernel.org/r/179248663855.32151.9955864156939592299@gmail.com >> Acked-by: Akhil P Oommen >> Signed-off-by: Oleg Keri > > Applied for fixes and by adding a stable tag, thanks! Nice, thank you. Talking about regression fixes, any chance you can take a look at this MMC fix, which as the cover letter explains also is sorta a regression fix (the root cause is not a regression but other 7.4 changes make it easier to trigger): https://lore.kernel.org/linux-mmc/20261112124430.110629-1-johannes.goede@oss.qualcomm.com/ and if your happy with the fix can you queue this up for 7/4-rc# merging? Regards, Hans