From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795979311; b=xNbQZjJY1H3D8v773HNwSj5r/WWGFPRTcBRaOCbinUBOYEgVN+1vDUb35Rqjd+IDdTuM hbDXGByPk/eAiWoBNJD18K/+anXxoeanZZYa481gqojobxu9rY7JeE6njL5tsywuZs18T g3jlmqAHB+/C11DctAGI3YE8tQLxq9IoHimYCTlZ+dZ0Ehc4DfPjjYmuZQt+MCt3uNUXs aguBkI4qN1VFzVVg5inUJ9hFypEDpNeIlzU0xjBgp9P0M7Q/l0ZVzLABT/5fhg5D2RpvQ cPHvItktHDlF8zexL3jFOBOeqiLYuk9vldr7HvWMbqlIVkMxXwoKuXuil7xtTeUlY9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795979311; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=KdmPiT+UB4YH2HPH0osAf6J53uvbw/LYQBQRfmDqlcQ=; b=iBwTc2VG9CSGvfIzGSjouy2EsfF+OqeVDdUTjSohfjndRH4u/gmtaZQP7rFA0nm0yI4v pHVK7s7pNZGUXxKfRTWUBf3M4+9mntZ97TNd/ejd4Ek5QOdbjFGrpR3bFcizvQKXMKwwB BSyFQ8urmyZmP3A63VFzBS3RpW2IbpYBbv9E3nPrl43OoPzwm0OcxsTwDQRitm02KFmEA vvS0X/FNMXbYsMLuWBL8N01aMPujKVOEzPHl78f5rx16GyEL3Rdb1UFWelxbyHR9XyNIf s2F8CFm5iq9btQyxCd3tLlQGr+jSjqv/qmtGnzZQNz5MZJhgETZd4cOJhi1PSFZxRVg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=MSokISlR; arc=none smtp.remote-ip=209.85.221.44 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86CBD606A32C for ; Sun, 29 Nov 2026 19:08:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 86CBD606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=MSokISlR Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-49465892f7bso7144575f8f.1 for ; Sun, 29 Nov 2026 11:08:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795979310; x=1796584110; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KdmPiT+UB4YH2HPH0osAf6J53uvbw/LYQBQRfmDqlcQ=; b=MSokISlR3g2A2UZUFd0w+vghXqNMmzsOhwC36521wruHNXZ0P2TBoUuGrZv6X1Qqx0 OBhiWfQu8X+0nru15hPKsQ42KLosUUtgqfEA4Jx8rZJdBQzXbwnea9gFpTpe3RRRhBYr pDgz8XJ4JZz4zwP48MWRUROWbIz2i/0+SWM+W1IJpqKyyXO77u9uCRz96C7hj60sxl5q OS8ysRgVyAhfwu4nXzqUcltxPTlC0hvLUFlPEmtbUEsB0u9IxhZVG3YHiw8b2qdket+X 4rKwzOsX8ODH7KGmxFOvBPaFTUXvVaeHHdx/p8+YeeWd1NhNb189uVJT7GcCqmMbXqI3 Bo+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795979310; x=1796584110; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=KdmPiT+UB4YH2HPH0osAf6J53uvbw/LYQBQRfmDqlcQ=; b=nRe2wkDXhJXgp/ax35EzmPAGbd4L5jc70OWhSqYLb+fd4b8COvmW2kiU8405TCbakY Tx7EiU1cKkWNQmeHmgfCsfcRmM/G3hp/l8imCORfA7/+X74mT3wMpNb0mcWJzaI72XlI RUnAD8ZSAc59udaeFcevWtNBnaD3fo9e7yoM3n3T7HFjj/4zQCAtSftCgpZ0tkei28wt /U0QUdykYaR593wv93braRMpgCU3kiU3BL1Tl7wsXGxdjyTx5KBuAJaGmHQUJ+FKXpK0 FwOgm+LvvwX/R22ZOyXybFktJax/cSLqk27WiDmzhC6w1SOmsGrdHx60i4Gz5yOkM4Q6 X5/g== X-Forwarded-Encrypted: i=1; AL+hErE+4PpxusJuP6UZvqo5frJZb53onaw+JR5j3+eahg8d76bTybHmAvl2ZW7xVbS1iJHfihwqSlAK036MaU04@vger.kernel.org X-Gm-Message-State: APuU4Z/NgZDYuDuakHleZUpnqnCn7V/CJBkRiVYOZYMcawx5+AqWrn+A e+r/q0pA1qJQk6JfHHPutf5SiPzQkHtYN92wQ7vH3N6nuDjdikZP2eKhr4MKNv3T4h0= X-Gm-Gg: AZFdTZdjwqy/KejmsgDCwBK1Q34HW1+1SukBiP/actn67MaP3k9znzcDpE+OIKbfTET L2Bqip8UeppuaTi9xzcZsY/Qqa5eAUAYPx+dnvGCUiaC3GDJ386p0l43tkuyyA2FycH7MfPOQbu deRGaL0K1e5s6cpDfu5Oqavwr0006d16IQoeQ5NbntbkT3enTn0Mkm50Pe2V77fTUUJGfH4CRQS M7q3Ia2gyIby14ofceZKBAuwbXE7L9V+9qA1U33/6Z8/P/mNlwDyeEDbrkZeBgiB/DJZ751E0en 2EUTWsWJNKYunXF2G3E61AhxSU/j4qqrpWnqJJMa/8OVeKAwJdWloEIqiI6UR5DWt6CiRtjdQTJ 1CP03o/7I+uwoGPpG6ww5nkSfPoAy9/rroBZJquWT1WHAkvgH9tcG962Jpdr8vC+t7lesozg7m0 q5dKBPy39BuGD1fyiI6+qM6qKnMmdr1Gt79VI1GfQ1F+AZlsrD0KJhF79E5mezb4ONP3avbW1Pq /VUGLdbb6TC80CVFOumPV5K0BHydYN/lBDdTsO8g6JCKJyEPKHLalWgQTPDiRvdjJpZNJO6O8bd lPrAA1POccgifS49X5QvU9XoJYqJHp9vWUtCiuLz7sxAhdUcVraQGEmd X-Received: by 2002:a5d:5f86:0:b0:4a5:ba8b:e00e with SMTP id ffacd0b85a97d-4abb4f5a324mr58767335f8f.45.1795979309593; Sun, 29 Nov 2026 11:08:29 -0800 (PST) Received: from localhost.localdomain ([188.190.249.216]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bc8ce06sm57239667f8f.47.2026.11.29.11.08.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 11:08:29 -0800 (PST) From: Vladyslav Tymoshchuk To: yzddMr6 Cc: Konrad Dybcio , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Melody Olvera , Ajay Kumar Nandam , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: qcom: llcc-qcom: Reserve ISLAND1 ways on SM8750 Date: Sun, 29 Nov 2026 21:08:17 +0200 Message-ID: <20261129190817.594-1-tvlad744@gmail.com> X-Mailer: git-send-email 2.45.1.windows.1 In-Reply-To: References: <20261111-sm8750-llcc-island1-v1-1-64055702ca3f@gmail.com> <79ac053a-3235-4da0-87da-ebd8da01e4a4@oss.qualcomm.com> X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, Nov 17, 2026 at 12:47:50AM +0800, yzddMr6 wrote: > With the five macros suspended, only the LPI pin controller could still > hold them, so I would expect a count of at most 1; 6 looks like all six > were active when you read it. You are right, the 6 was an artifact of how I read it. clk_summary takes a runtime PM reference on every clock provider before it walks the tree, and the TX macro is one (it provides "mclk"), so reading clk_summary resumes it and its pm_clk prepares both votes. Right after a clk_summary read the TX macro is active; without it all five macros are runtime suspended. > Since you offered to run variants: could you read the three prepare > counts right before suspend on the kernel that resets? On v7.3-rc5 without the MC0 sleep-set vote, read from clk//clk_prepare_count right before rtcwake, MACRO, DCODEC and LPR were 0, 0 and 0 in all ten runs where I read them, and in the eight of those where I also read runtime_status all five macros were suspended. Every one of those runs ended in a reset. So the resets here happen with the LPASS votes released. Five runs or more per case, one s2idle cycle each, 10 s RTC alarm, gadget soft-disconnected and input current limit 0 (cable present in some runs; the resets came both with and without it): MC0 voted in the sleep set 5 of 5 resumed no MC0 vote 5 of 5 reset no MC0 vote, Konrad's table fix [1] applied 5 of 5 reset In the seven new runs where I have the time, the reset came 60 to 72 s after s2idle entry; earlier runs spread from 11 to 111 s, once before the alarm fired. One boot was different. On the kernel without the MC0 vote the ADSP audio services did not come up (APM commands timed out, the LPI pin controller and all macros stayed in deferred probe), and that boot went through eight s2idle cycles without a reset, one of them 4.7 hours. That is a single boot, so it may be chance. Keeping only the LPI pin controller module out, so that no macro binds while the ADSP and APM work normally, still reset 3 of 3. So if that boot was not chance, what matters is the state of the ADSP, not the APPS-side LPASS drivers. With the LPI pin controller module kept out, stopping the ADSP remoteproc right before rtcwake resumed 4 of 4 (three boots), and stopping it and starting it again 30 s before sleep reset 3 of 3. Keeping the ADSP awake through suspend with an open playback stream also resumed 3 of 3. Unloading the pmic_glink clients (battmgr, UCSI, altmode) with the ADSP running still reset 3 of 3, and so did disabling island mode in the sensors registry. I would not read "the ADSP does it" into the resumed runs, though. In ddr_stats the DDR goes to 200 MHz during s2idle with the MC0 vote and both DSPs running, but stays at 547 MHz for the whole suspend when a DSP remoteproc was stopped before it (ADSP or CDSP, also with the MC0 vote present) and in the playback runs. So in the runs that resumed without the MC0 vote and where I logged ddr_stats, the DDR was not taken down at all; the resets come where the ADSP is running and idle. What holds it there after a DSP stop I do not know: in the AOP vote table I found no vote that tells those runs from the control runs that go to 200 MHz. In an earlier test a sleep-set vote on llcc_mc -> ebi from a test module avoided the reset; one on chm_apps -> qns_llcc (SH0/SH1) does not. > If the Pad 3 behaves like the Pad 2 Pro, the ISLAND1 slice is not in use > during its s2idle, and this patch could not make a difference there. In the five resumed runs adsp_island stayed at the same count before and after each cycle, so it does look like the Pad 2 Pro here. [1] https://lore.kernel.org/r/20261113-topic-8750_llcc-v1-1-6536cb46d7fe@oss.qualcomm.com Thanks, Vladyslav