From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795979311; b=qwQ3QuXC8ujHH234H2FOMdcXAm3pVTgrlXmJD0zEkHCCY8AMsNVIF2xItSi620C1X8cA 3UASKOv9eqgKHPyCKQtuXSDoHecI9sGh63wzCAhLibJ0Uguxn9H/E1Ft0aDWByWGR3KmZ kFinRsGZSkO/DnJRh+FDqoJii+E8aLO/fmsXtya0eTk+fnri0FZHP/jnqpVTB4Z4LX50P CKXxDmIz3/xgmYilCLMUXfY57iroy1msF3PrdYPRyvBukE0eV5riI8ZWpkpNa2iodg0s5 w1Kz6CoF6vNIPBz1kfDpAoMZGhsdkfBvfgxYlIST+wltBgAK3iyuq2iZ5mlNrrN42yg== 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=Gr0OO5+u34PKA2f4yj49+ti74XrENd6UTVZ5llpU4W50f27VhsojJfExcMnQCfYA/QEH ETMW88JgfKPIL0G9HX9UCexwuGLPlSBsdrZn74W0cUeKqZXdlQsnorBa7iN9J8PKS6lnN hrWgfzBZPvBPWUimP/quUt3LNK/4kpjEDKOskaI8BkYpXlPEioBDrBQwmpuAKWtBuZ9Yk BKNFyffQIYH0NeIO0h9SlBWzwpkG0714MKuqDHO8/mU6PLzz6BINjBk9qbIucnE+HYLmo IuByntjf0dThjBcxhGbiX4yuJz/Rg3TcWjMgSc3pYre1V/7N7BOpwNu/gt/by4RLZ2Q== 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.49 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 724C0606A329 for ; Sun, 29 Nov 2026 19:08:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 724C0606A329 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-f49.google.com with SMTP id ffacd0b85a97d-492f0a1b685so7015607f8f.0 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=pWnNCuNwFKhIaFrWGJYjeEgl97Z+7uygCaiN+qeIQV4d7SO/ZbBk/Rd/VuCsr3UTSC a/DakVReZzuh9/+he3uALEUecs98NHeIJ8Z2bGZH93/8oJvy2LCAfIXWNAUWe5YafqHL Pp3r4MSAiAfTnY+YwAfVSk6Q+JCOrzjTuLY+qp+4IQnSBEkMbSw8NyGXrfRSIPJzJUob Huoa0X6a3MD1gbq6W1LSaxWn5H0lODHl8Kyxoi0/rha2JL0YhhSrySlSHMv5XY8ILdh2 9N8F5R7QW1S6FHGyMSpiKo/pmpHnKDNilI1szXuCF/DLHH14OVSHYU8J52/LfQt/Y0gY c3Lg== X-Forwarded-Encrypted: i=1; AL+hErGpmdL8L9W3pSU0bQlo2ugS0hvr5pFOBDZsUE2cI7N0lP0HoDJS4U1tZab27twYE2ZxG6mWySJ1ZihGf0Y=@vger.kernel.org X-Gm-Message-State: APuU4Z+KGhS7B08+5qis+FhvJNDYkBE7Hvz4ay/lLEs/559UzXD8eggj e6k91rR39h9susou5URXkGZuf5rjiaXp14wF7dPdmkEpEcaQYa3Dfs4+ X-Gm-Gg: AZFdTZdo2W8qJfA/a3iIVvxsvELHD462Hz+C8hMQ5HB7Y4KrgMXfQtQ5n5oH5S0Cv3P wwTh43znrtmTHv+lkC6UysWpg62sJnBIUzJ700sid8Idu2UUrevpYziES0f6yj37X9tEueO8ACr pf+c1qpwute8QFB0jX7frHka06pnFHSliz2sMY7j6ZfDDBaBTjrzh8qjkklMem1bODNtuTNRj6Y ZQ2/rDnIz8kMBni5CYmu3rZ6rImS/RQ93QLfh+M1Z/canTfzMCgOJdKmzDQ4I9XfUHwrdlLFn0i hZW4s3CTR+5cxaMY9bNsqZUoZzHFI0m5l62k2S1lLMKvKqMTLdKfFf7qUUp8LTsHObWqclCO1rk 1LLKJeKSp+23fnX3WrPuy/ZJnjERRMRM4hhZsMuHxj763+zwe6HIt9PEN5EqlcpBDwin9RMHlOr o0buNbbge+qq2vXKYXVuzh6qEHpATxApYu0dXso492RinSbF5aTg+aFbFmxAxWvVUjw7rxlFD0k eTLcIEawPlHJnPBBUH2aLdBcEaCK9YL/jNnYXDpkrZ5Ea9VUqhWfwNwBCRsU0mE2pUXEAjnX2VB xxMxTzOok+CJsZ5tnB1PE548bTwdBgOU+AnLgPzbYFXr/Y8kDH/YxAEP 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-kernel@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