From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795704641; b=pIfEB0rs2gSZK2UIELimLhugihTTUm629yyEzraqVhNXVybmG6ugwEAN5UA8y1QyxP0I 79pEmHt5caNW6wlgkmyrHHXy9FSMFgNA7iOvNb7UyRNZSi8NotOuRFnIPRzWAV0ne5CTw auIcg1+LQDIjTupC5LfjCd/zcRQ/7K3kSf/vKYOYP/2U1U31usgIfhWcRTSRh1tguF0dk uwlmJT0yQYBpQtehW6F90Mk79Rc5y7foa024p+nPAL8sX+HPequhWcacZomBIR3OgVq4V Fn2bU1ZwBjFrRsQKrVnPwuHCLugejVvGXL8/nTY1fSGbLDco36t3PGE0OSrBOiqWvug== 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=oMzIGxioYZecnR0WgfMu+2cradY0iYypc5Zf1w2D7K4KxEC23j2tgVZePTK7pAS/auLb wcyukE3ov8ZPTiCJa0uUFvzalGGH83JOh4bVwoMc16UqZYFah/NMw60X6UjyCNiP+u3L3 O3qMGHZxT2XUIPRWj58NPowhsY6h1aRa4ft+fdawlh+ZKC0SOFjdzpekW18t2dLG5AxNp XufOT9mqrWIE+lNn6SUa4Y2kJdyf0gWPcCwNZour2/ytDTHOWbe5cTg5h2Bouo8CBjP+d kpnQ0Bk5THDQXfVo1Snjgr8Dc/oeBNxS1rUsI8X1MRKIw0c3txqGzbHrcstQuEhliaA== 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.51 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 BD513606A329 for ; Thu, 26 Nov 2026 14:50:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BD513606A329 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) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Pj2eR6ec Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-4ad6219f7d8so6384805f8f.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=vgsyRZpbC5VUh1xbmFQskWeg+BwHJ+aVhS2k8BPOS5Utfopha1hjFb3bTyHudYDkTe XOc8Jn7g2AauundNvbBUJ+7y0IMEEfMPLzxd/ySWQtJmg8/Z57OX7mgSFOP+Nze3118t 5amY/bth4oQzeXXv+wi9VGUrgv7DmwGo8cdU85FsOj4BkFoBfnw5SkK0J5TcL3EjseTz nuUdIFPL01HtNQuQzmd1ojS4XYIIG5Nkw2Euyf1OM3uHsAHOi4GOioE4COjXwkUKJkZ6 KKpiVuMzhd5EuOpnd/ne6NBjly9fj+oIgSgQHaZFPaoa55qnVoLwLohm/rdYSpKXn4FK FYzw== X-Forwarded-Encrypted: i=1; AL+hErGW8ZeHVcO8WuKecmsN3vjbLSSkYW4FriT956y5g+Yr735JESXs76KLNhsFM7D9mkXJzYf3kYpPMg==@vger.kernel.org X-Gm-Message-State: APuU4Z9MvRIcn28VcF2K3Fr5glLRC8KdiL+LBsnSZ5HCd8IGmRendHsU wjGK1PO0Fn0IIS/1PN31HC1PKMqvtNOxX/j3iGmufrPmSB8k234OAc9qJ55hvJs7IGE= X-Gm-Gg: AZFdTZdlyxjhJO3utM4Iy7LUH6bKdPgR2TFqPrQoVSjpZubh+HEKgMi+5nw/0k6rREa hzO5KDBCSN4R4ULpDdgjiF6p652hT1btqrKqSpNdqP+zDwPNDgYYO+e4czGwE0KaPc1Zm4sXjMo 1dSxmWUxfDNIwMzXIapzHmYArpMpd3yInJZ+IR9IcDeVm2fo/5Ld0EtFJidxkl6tCqQobeRC6Bh EjwcXklgW7jKrSt8OCInmCQdcs5EeF+Pi2fbElftPCC3vnGwHdoZDNVjluabF5YPEHMBYH6LDcx 7cVaiceaY/yvo8XEyn3W3Fhfc4uB0sZaJPTPe+QkgfH51qMO25zND9HoiQi8fs8YSUyimV7lCRo TTGPZAR30U89FpmYOlPYJJyI59VN4IMvgyVor46j50FlJNcQKXRpgEiQ111HYH9sJ+EcO1LyOXr 4LJVAuIS11mA0LUpJfLyMkhPtfYw0yiP21IazU7N48q3mtowzaPIPzAz8UxdgeficJsERx35/O8 pyUWXlme/PEwuJH7Y94TVhrm+1XIpcIZa24upTWXHGWoPF1xND9szXjp54dsNqsibINNrSQZ5Vu jFYFLRu2kT9rjdvscRephsfX32N0EQSO5PeKn4LRvcc1iGYFH2YUp9/dLcGSJhE1E98SRMSSHuN WNwIZFR8UGHNlc/HRqm4= 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-pm@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