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=1795704241; b=m5qhmoCmErft/NAMl1c8b6XF9hSN0XaaBuEgOWB3b9s9ZtCWmPwYx6bAz1pNOWoe/6oV nw3ebuvX2ZP+t2AiMs1FmW9sqqug/PrwwBYovHzgHBLStT1kR0MtKjw3nbY/CzdZPBuX4 Q4G2P0awkHSWgbZd8xBElt6Dcsz/Iv5skdz7OELUqRwJB5pq38zeggwLkzggDfNHKv4x/ VWp9LcJwEKs97qQCrGE5YhOkNJjAWUWCrtKvJLokegzy1MqycXcY2pHoNYTAgAcvCacXv im7wZ/hng1QNTY9WreQDu2Xp7m/toXiFzBfKpZDk0I5zR/Yv0Zbh2eeTKxS0nBI6h8g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795704241; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=4YMdf8dZZ3XD9ty/AOcOBfYoGbewgxxeb9WLsPQ2aAU=; b=c6Q52AkFBwTmVpqOhjsSjtykVptsEVL2f01gXxZKUQ+TA/iAnsNEZ5z2WQNJjfnBRwdp isTRKz3GPeUIRrJW1lXU/I2kJmHCGJ5Y266ZAi6XtyYTShf+VCPZIenTyWGoEN3xhy3n1 r6y6fVIb58PLX/nvrx6dLoxMlTaL5UR9cZ7PHykx9hQ9uwSbgBVBnQEAoUcNCFI/TWV2L nChRAHQB2UKx2t8ysNYCHYIQvKNFYYhayXL6J1ygF6LNJzI7fjZrZ1qBHhLQtfCn7qDEh rEHcpc0LCP7Lgavy6o7HCA9JEmWL9BnIHGYRkjEP5fwtynZs0Rek39MWlU6t7fE9JSQ== 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=eigWEAO+; 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 072DD606A321 for ; Thu, 26 Nov 2026 14:44:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 072DD606A321 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=eigWEAO+ Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-48e20ed3b9dso6247056f8f.2 for ; Thu, 26 Nov 2026 06:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795704239; x=1796309039; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4YMdf8dZZ3XD9ty/AOcOBfYoGbewgxxeb9WLsPQ2aAU=; b=eigWEAO+U3ezl897PKREzwJkRm8DbmgMgKfc/6Ll3Jdz5mNILNZFy3fRXAjKtt2JcC Kv2KeGZ6K6/pJz5IXKQDzvmGEkv02rLXOjLbGRx8YgDm2snl53wmLQ6dqapdpsKO4ttt DTa9LW8E5Xxgnn7wZdkvQuwkUcaL2DEJH7HB6EdYql2Y8064RzvSswcSiI8Yjl2iU/oF 2w/vHp7LoONBYtMSoje3iByComSNZY6XhmI3iK5YFQQn1iDZKJU47/v51pXOSLegbctH 95gmoMkLQcO0NzJ5d8qKNsE/5zKgx0paS6UhENaVDRLV/c5S2ZnijfQEnsknlqTHnCBX Lq9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795704239; x=1796309039; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject: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=4YMdf8dZZ3XD9ty/AOcOBfYoGbewgxxeb9WLsPQ2aAU=; b=a2MDSDH9gyFvkfKfaOl51fnKR+PvD+aWdPJca+HB1JHZdoi30jbjPNM+R0uObesWdM ZSu5FhO3aizLB8bRS4+U1E/opxEUZuhpI6lmXtW2uvrDZC4lcUi514yYYsZAIRZcjW2i 6e3mhW/kULfqP6uoADvm1xee9Ts4UXct6WRX0gVSz7tGHKcH0XTuXm60MnYYTEcF0jPN 0PoyB54acdTv9L9I6g5WnU2/YumWykmzeouGm3Xgi030ZMqLx3MMvr1hGblYe8QMHDrl 0zA0E9rOAGYUshgyaQX4I8hf4BCJjr1Xz0oyQGPH0zqmXJEY+CApaqenepLL86ARVID+ C5xw== X-Forwarded-Encrypted: i=1; AL+hErGrBUCZvvSAiHrr0MHYuVxHOSngBJp4Tlu5ZhpY+CV4C1admscFmv5npCZStSaVpZ0KdsEWKNMNA62zh6w=@vger.kernel.org X-Gm-Message-State: APuU4Z+8BCKtEGKVUlArmvFglIQgRnQJRhNraAcSFAiyeFi3ob281UtP KKb9VJ8/agDmDTxV9rlJ5QqnDY9mDA26LMCUIuvoDXnwhmPZu7QhiEp9Z/jAvaAv9bQ= X-Gm-Gg: AZFdTZdyolOzS0fL4QzjnMvSfjbt5rzUTakhoGOxa8dRI62tuOIGQC2oJ2s21DRNLhT dFUVL+6uuvYTDI3+iyve3hvMcLtQ6wA6yZrAwJuWUF3yakZqJM/Fg4+hEoN8Dg5F+n09KotxWrw PfAsz9zouGzfJttzBxdEULlgB/RYvMEEcwTyJJheNN4Cjfx+dX3IyqaMwa1nNdhfa0V5bwQTKI0 A9JoUuiq1B4dwOPGT8+KIg14rfpSt5mpGAuaEQw14K2g9fwpW0YRXzRlcKIMFuLODxafUMKsAH9 sji3xMmmgGceoJU++r/cOoKOPQjOJecfEAGe1OHvYoGvLRtMRV9vWzR0uRZBMadEUsqn5imIiWM AHdBo6DdfMnLPCxzg+geui6indggmt5Y/QCqxZilV1vqASLVBD4Tlrcr5yuh8qk1Zrn8RTH2jPV h0+L/uc/BsaGTF49SqluChp7zJ0QX+7X9ciw+Lx2Kucbfb4A3rUUa3ibL69GLtBB3WgiaK1yTzx leo0FnKIX38MuX1t9z6F5EyWZUkN+lSDsJRWAtD6tUVSzzXxQtMpcr00qLycZ1iM5//b5QxS1QY J/hYbmGoOgxHlB7lNdsmywnRZgzV+H75/U5jjqQ= X-Received: by 2002:a05:6000:2c13:b0:4aa:874c:a1c7 with SMTP id ffacd0b85a97d-4abb86ed79amr40096146f8f.43.1795704239358; Thu, 26 Nov 2026 06:43:59 -0800 (PST) Received: from [10.11.12.111] ([79.115.63.240]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa3882sm40596392f8f.49.2026.11.26.06.43.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Nov 2026 06:43:59 -0800 (PST) Message-ID: <4adc1712-3608-4fd7-9eba-79b129c67b77@linaro.org> Date: Thu, 26 Nov 2026 16:43:56 +0200 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 Subject: Re: [PATCHv3] thermal/drivers/samsung/acpm-tmu: Fix spurious CPU throttling To: Alexey Klimov , Christian Loehle Cc: bzolnier@gmail.com, krzk@kernel.org, rafael@kernel.org, daniel.lezcano@kernel.org, lukasz.luba@arm.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, =?UTF-8?Q?Andr=C3=A9_Draszik?= , Peter Griffin , Juan Yescas References: <20261125173959.2198116-1-christian.loehle@arm.com> <2162b02c-642a-446c-973e-ca80607da294@arm.com> Content-Language: en-US From: Tudor Ambarus In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 writes >>>> all eight slots, zero-filling the rest. On GS101, slot 7 limits CPU clocks >>>> independently of its interrupt mask. Setting it to 0 C limits all three >>>> clusters to about 200 MHz while cpufreq reports the requested frequencies. >>>> This was found through trial and error while tracking EAS regressions. >>> >>> Cpufreq reports the requested frequencies — are these cached values >>> 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. > > 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. Cheers, ta