From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795704641; b=ZWG09sGuS0alZbgx1bIzflH8IpW4TB97d6m2IGvVz8dudMfgkFMrfc6qibcG8qLA2Z77 MB9DYFxGkF4XjR5nx3Xxzr5m6TxBEQ8tSktOVV2U4tAKWnrMje7GCWDPleFf8DdiuUEzs 4G3SFF6whrtynVf8dK2e+zvJCxmA861C3TEJ5dCCCRaepDLiQ+zu0qy+oiRqY5XWEZn3u dqDy5kQ/Pykrjo0cRiUZ64xzRO4ThFhJqZjXPlkEbnhYqwxMh1wUczJlUJFeoJnplHBT9 KbgDgqJdh07ysvnZoFUxN245mShWORy8YHgZ97uqsg1AbI2Gsz8RGhMkaXS0TgFtLcw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795704641; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Mime-Version:Content-Transfer-Encoding:Content-Type:Date:Message-Id: Cc:Subject:From:To:X-Mailer:References:In-Reply-To; bh=xq+y/FXf8/3zSeIalwIHZaco3Hq6kDLw8caajKfnzLE=; b=Ysd9KRxtBurixRgUlAwhG5oaG6E8bMBYb11tpWBwRtLTHSV1K7TTg5rmZDEw8PKmdnkW gAOtV8XYgfJnUxr6IjdeOF7o/bmv1t2LplRVfkFrphd1KDTyY2ANzHSjSk31AjFjtxbe7 oSZwKcTKhmzZyNwLdwbLp7yclBxZmtF7TEf2AC62cz/8Cs8TAKV4TsWnzbuZ9Rr4ODS4J D3T/K5wtjnUewVGnkSdzlF5z7VLSlezFGDrSosEZLVbdmd/7G/NjeryCaYWJYxuO8Ij13 U6CRrVAQ9FW+UtKW8lN7zp7rTJAOmuWl6u4+ZcsCYBSlXhMpyA43yrWZlcIWL2FE7cQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Pj2eR6ec; arc=none smtp.remote-ip=209.85.221.50 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 B5323606A327 for ; Thu, 26 Nov 2026 14:50:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5323606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Pj2eR6ec Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so6384804f8f.0 for ; Thu, 26 Nov 2026 06:50:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795704639; x=1796309439; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=xq+y/FXf8/3zSeIalwIHZaco3Hq6kDLw8caajKfnzLE=; b=Pj2eR6eciz64xSA48uFZKflTRCMX6C+yirjK0byZG3w5nFGba3RlkC9KY9x2hpYduC y+52YU8Hvr06Keo29cj40ISWfFWRVGp1T9puUNqQygYW4XulPHMPIAg0sFRD81SYq8wI +jtK/Pi8O+1zDSWwjwh9YNqhx5BMNDN8lAHKKpDoEbmBemj1CR0BUUpLjQwrKW6gAPzA Mh3teJg14b+tVoBSjUEsMYIx23pU1meLNtytQhvZGK7zxmYuyPwrYSHTvHlo3Hrpel5r NWTo9miYghs7bnwk05m+O0dNb1ju/KRbpWtcK/pvtqsI3ZlOH8AT+qrnizrUsiaDp8GB UNSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795704639; x=1796309439; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xq+y/FXf8/3zSeIalwIHZaco3Hq6kDLw8caajKfnzLE=; b=ZtTH9GerJmbX8bM93Nc7CLcc9wjwm7fvFvGclrwua4/lDwsiPbF4p1ZySeuKcE3iua 0KZncB0Vs01m5lPY8ksC9LhOYRpOR+f2Cu2xqJAalASnVikBUNDOoy4F3D06PhO4vX+m WA1ykQ+Klm0yQqfPewg4uvVuU78dkhSH1q0wYnTgWG1q+Vk910KvQxlDFMpyMoV5/+CC cFhyorCENULr1sUHHI8btknXKWt5hajfTSmMbc0maB6QY3Us2yOwKBxT38cuD1MsN7jt 5ekgaP2+C7O6rmluQnrmIH35WMdXYYrtbYO5S87hF0oa5UJgUSMM3O8q/CjGyqJyxgaw oOLg== X-Forwarded-Encrypted: i=1; AL+hErHPsrMBPqGH1WVbeApfIm9Xrt/ynmtgUz/wuVpZisjrU/4dnXxb1RPFb94G6YLTUJntDUsGnUfinGOtbJY=@vger.kernel.org X-Gm-Message-State: APuU4Z+yuaKP4jyCgh1+fjkZNgCIApey72B3dOHEggyEYajwAggzKi6N YXYzUMGpFlz9t0MtC4PsJPYzr3RrAAsw2b/pOg7O5IFaleh3wnvB0grd1D0OsGpT0sI= X-Gm-Gg: AZFdTZdV5QsvHi+pmvVbvTkrmJ9p7DEU08TYjkyzWTdJmzyrDMhfq+rDCbXogUJBT+2 EQslXc9IH+K7Xjprn6KapwiLJPA0kXJhDm4LSWIMhvOD0Kshzsm8rdl7STHF6wETg5Yqe2KD+nB ISzQov0GNdn7f2QIT2dVxoRD+ptM5ySsryoePmO6eQNVmifwyHwRKNV6XwAXc4gGpNVDnaEtc2/ zCUxk1K+g4aBubzTs0Yu2HuA2D9DaAGP16CProPtKH84zBGt2aDBLFkUzrzQWS59wDM9BPhUib4 9bHXIC9Tuk06FBOqRoz4Rd1QSwqBouceXsbwqUAgak1+xrkohkNNR/dSRX8anQTSTvdVdu9378A CoGcH0wiJCZIYo9vh7bn+fKFLSryJl7qeJ6UQPMZazX7tHwNrOeI88SZXwNeqnMRsEG4uZL+ioN m6aUcAARCSUNKMP9bcLwuSd6kbeu00VEfJcgpEF3GJMgHBbjK4pQNkOikqAT66qIDqd5WsEOdki RZ9OvWKkVJcbKu7p14N9SdYOp9Kiug2kNbIAM/a8YYqFMTqw5yBv8Nmhm2yT7W5pzA2kPGdYDI1 wKf2DWpFZ+lq7zgA+gM1DeYhc+Vy4td6B+u1XktnFARqL3GH7+bTaUpQzRD5Urpb888fV6Zfhv5 wZiWgBJr7x86mnBm2ApE= X-Received: by 2002:a05:600c:6290:b0:4bb:741d:eba with SMTP id 5b1f17b1804b1-4bb88824a5bmr425798095e9.13.1795704639068; Thu, 26 Nov 2026 06:50:39 -0800 (PST) Received: from localhost ([2a00:2381:fd67:101:11a1:dfac:b1c2:1000]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf630esm41693738f8f.16.2026.11.26.06.50.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2026 06:50:38 -0800 (PST) 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: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 26 Nov 2026 14:50:37 +0000 Message-Id: Cc: , , , , , , , , =?utf-8?q?Andr=C3=A9_Draszik?= , "Peter Griffin" , "Juan Yescas" Subject: Re: [PATCHv3] thermal/drivers/samsung/acpm-tmu: Fix spurious CPU throttling From: "Alexey Klimov" To: "Tudor Ambarus" , "Christian Loehle" X-Mailer: aerc 0.20.0 References: <20261125173959.2198116-1-christian.loehle@arm.com> <2162b02c-642a-446c-973e-ca80607da294@arm.com> <4adc1712-3608-4fd7-9eba-79b129c67b77@linaro.org> In-Reply-To: <4adc1712-3608-4fd7-9eba-79b129c67b77@linaro.org> On Thu Nov 26, 2026 at 2:43 PM GMT, Tudor Ambarus wrote: > > > On 11/26/26 1:51 PM, Alexey Klimov wrote: >> On Thu, 26 Nov 2026 at 10:50, Christian Loehle wrote: >>> >>> On 11/26/26 09:16, Alexey Klimov wrote: >>>> Hi Christian, Tudor, >>>> >>>> On Wed, 25 Nov 2026 at 17:40, Christian Loehle wrote: >>>>> >>>>> acpm_tmu_set_trips() supplies two thresholds, but the ACPM command wr= ites >>>>> all eight slots, zero-filling the rest. On GS101, slot 7 limits CPU c= locks >>>>> independently of its interrupt mask. Setting it to 0 C limits all thr= ee >>>>> clusters to about 200 MHz while cpufreq reports the requested frequen= cies. >>>>> This was found through trial and error while tracking EAS regressions= . >>>> >>>> Cpufreq reports the requested frequencies =E2=80=94 are these cached v= alues >>>> being reported? >>>> Or is this what the kernel gets via the ACPM call? >>> >>> Requested frequencies are reported. The 200MHz I only deduced from PMU = counters. >>=20 >> Tudor, your thoughts? >> Is ACPM reporting an incorrect rate or are those cached values? > > Both. I checked with debug prints in cpufreq: > > - scaling_cur_freq returns the cached policy->cur. > - cpuinfo_cur_freq gets the freq via ACPM call. The value always matched > policy->cur > > So ACPM reports the DVFS level it was asked to set, not the throttled > clock. With the hot trip lowered via sysfs so that the slot 7 throttle > engages, on the X1 (cpu6): > > zone cycles/s (perf) scaling_cur_freq cpuinfo_cur_freq > 68 C 0.85-1.21 GHz 2802000 2802000 > > Without throttling, the three agree (e.g. 2.19 GHz measured, 2188000 > reported). > > It would be good to specify in the commit message that the governors > don't see the throttle. Something like: > > Program slot 7 from the lowest hot trip. Above that temperature the > firmware throttles the CPU clusters on its own, without cpufreq or the > thermal governors noticing, so the hot trip must stay above the range > where the governors regulate. This matches the downstream setup. Ain't that mean that ACPM ->dvfs.set_rate() call doesn't work? I don't remember all the detauls but I think you mentioned that downstream doesn't execute set_rate() ACPM call and does the SFR (mmio) reads, basically what we have on Exynos850. What about clocks and corresponding PLL clocks? Thanks, Alexey