From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C1FE29BDBF for ; Wed, 1 Oct 2025 10:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759315101; cv=none; b=U7WR1TNOPv29B5sonnEJKf2UwPhx4V3b7mLZrpKG+n2C0DEZ32AH5Jzh6tfH+l9MPVP3FQKWZyjWD448ln3uleo3Nv0ZWjG3mYQAqtrMyGcRzaFumkmDTFsc5iMxMeV44DsJ677UFYVw9S/10nh3yJ+EklPh2yGLg1Je9TjVGIk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759315101; c=relaxed/simple; bh=6WpRzUY1xB9VvC/VEjbYbB5z3j3GxfQ6hBgggjbZ6EA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GXA1yRepmFP2C68eEjyi1gsxA/1tzJfIMRlACrAt9L1WleJ0NNY2q/Jq8TmjOaITANTicOV1TPaq8XCTdkBLnJcvHLYZ0K2c+I7fXEjOeTAE9T4imfITZbbdZCsbpZPHEWYILs1JltRehVZntVQ1yr8Ryhc94GvJhUZyQVw0Xts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io; spf=pass smtp.mailfrom=layalina.io; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b=y+Qrg6t2; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="y+Qrg6t2" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3f1aff41e7eso5297639f8f.0 for ; Wed, 01 Oct 2025 03:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1759315097; x=1759919897; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4mF0RoLdx3iYd2wCJGbdBLKsyAovYaRReQN2weBYtMg=; b=y+Qrg6t2+x2XATp4qoY42IpRtEEqTMo+ykgdzwd5GUoPd95dWiV0NKZVydDwFCv5TT 5EOiYYiElupqnYTbg6ahOFnzxnRnpRmyVQhpkIWiJkoI0XJhvBOZha9MoPxLBmEUAQih 7OiC5JbiOch7qdXoOnM7o5KH/2vwFlbgnkUxlw0JCOkxpNjvfjSfrfsijG33waVj9rp3 EgaXwCD6ivCBUpb3vb7ZrEuU4G4Ru5ovUfhZB/46618+I+TUP6BeITd5QuIeod+CqLG+ f9HUHKzdome3ICyoaRlY59BztYhqNTuYCTW/d/swcoDc+wS3iLXDv3smiC/9tMSLOFLe p4Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759315097; x=1759919897; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4mF0RoLdx3iYd2wCJGbdBLKsyAovYaRReQN2weBYtMg=; b=LRjHkTL93DFUPeVtuxgnocLRgqs5jTy8QKNidTlNWW48aRjH5X+o7GkoHJ4CJVWKHz nwqZIDuf1s0VEBXAtVgqPTECP1njMcmNUaDW5yVGo/VxDmM1A1M++E80P80AxuhMnhLD 5DgkPNeubVCrlup2aWS9QjkJVUxALdxNR2iewSJaSu9JfMEW5bzV29V+v5E4FYj8Ttlu MY95J/TtdkGS9TVzEEffQPHFmCatvzYUIGJ1Fxcv2PqYr11PeS+BS1RuUdbRD4cFPuAm y85OEHiSleP9n4kurqNjH12mMxr6CI6XRQjKkIcJK2I9o3GwC0boL9DLUALFGEgc0ki3 Wmyw== X-Gm-Message-State: AOJu0YwEm82jTiYIrzNAFfYcAxfxcP842Ya7s0WnCrsOeV2Xz9M17lG3 +FZbuR3fSY9WdVUVFEbhFprc1esluPDJC6arXUULwjxuSpNSfnzznFFtGdfQuNHoRhk= X-Gm-Gg: ASbGncshF9rmgPd5YCTZAcaJaxETs65nHfXLv6/MCrHbbP8qFj0kNGFPGZ/+fP06grs KqnLJYbw+DNfGwu/4fq0ZuP6Skwj+9STu+mhe5gEdtdCzbeKDfre8Fewyn9+W7bv5oxO5v0kXAO uWr0Rd6SAsQFsE1jE98gLq992NsaXCB0CKqFqTceitvsK0F+EVA2fwcSTy6/7SixRQlQeM8ZkE5 EyUVhu+CqSzgFhTKtDyT7Hx3YmqWmSPXaDgwhDYWbBWhhmWpbk5GX1UCjrQXfczd0YuwVtL3fRc IMDvRmmxgk8nnqo9rMK33igtrZHn8mEQYwrSQx8uY03CSF2Sdawq3P50KD07DsjGXHGuHCQIwsO af4zxr36ZFTao6DDMlsOSsaRTNldni23mVA1Rqf6H8j+9uJvshUMgOhNcOR+7rDKCMjjo40L9jC db6yIGxeuW29RGiyeFmWydyshG7/s= X-Google-Smtp-Source: AGHT+IEaer9MYyjKdjU2yY0Pc7X/yiVBoIWcheLdIRRZJC17ULlWTNZ7OJDYC5pxYdi3TVVVua5g6A== X-Received: by 2002:a05:6000:2086:b0:410:3a4f:1298 with SMTP id ffacd0b85a97d-425577f3522mr2447321f8f.15.1759315097237; Wed, 01 Oct 2025 03:38:17 -0700 (PDT) Received: from airbuntu (host86-146-64-97.range86-146.btcentralplus.com. [86.146.64.97]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-40fc7e2c6b3sm28297378f8f.54.2025.10.01.03.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 03:38:16 -0700 (PDT) Date: Wed, 1 Oct 2025 11:38:15 +0100 From: Qais Yousef To: "Rafael J. Wysocki" Cc: Linux PM , Shawn Guo , LKML , Viresh Kumar , Pierre Gondois , Mario Limonciello , Linux ACPI , Jie Zhan , rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor Subject: Re: [PATCH v3 1/4] cpufreq: Make drivers using CPUFREQ_ETERNAL specify transition latency Message-ID: <20251001103815.a57cc3wyasyhmrmt@airbuntu> References: <5069803.31r3eYUQgx@rafael.j.wysocki> <2264949.irdbgypaU6@rafael.j.wysocki> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <2264949.irdbgypaU6@rafael.j.wysocki> On 09/26/25 12:12, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit a755d0e2d41b ("cpufreq: Honour transition_latency over > transition_delay_us") caused platforms where cpuinfo.transition_latency > is CPUFREQ_ETERNAL to get a very large transition latency whereas > previously it had been capped at 10 ms (and later at 2 ms). > > This led to a user-observable regression between 6.6 and 6.12 as > described by Shawn: > > "The dbs sampling_rate was 10000 us on 6.6 and suddently becomes > 6442450 us (4294967295 / 1000 * 1.5) on 6.12 for these platforms > because the default transition delay was dropped [...]. > > It slows down dbs governor's reacting to CPU loading change > dramatically. Also, as transition_delay_us is used by schedutil > governor as rate_limit_us, it shows a negative impact on device > idle power consumption, because the device gets slightly less time > in the lowest OPP." > > Evidently, the expectation of the drivers using CPUFREQ_ETERNAL as > cpuinfo.transition_latency was that it would be capped by the core, > but they may as well return a default transition latency value instead > of CPUFREQ_ETERNAL and the core need not do anything with it. > > Accordingly, introduce CPUFREQ_DEFAULT_TRANSITION_LATENCY_NS and make > all of the drivers in question use it instead of CPUFREQ_ETERNAL. Also > update the related Rust binding. > > Fixes: a755d0e2d41b ("cpufreq: Honour transition_latency over transition_delay_us") > Closes: https://lore.kernel.org/linux-pm/20250922125929.453444-1-shawnguo2@yeah.net/ > Reported-by: Shawn Guo > Reviewed-by: Mario Limonciello (AMD) > Reviewed-by: Jie Zhan > Cc: 6.6+ # 6.6+ > Signed-off-by: Rafael J. Wysocki The whole series LGTM. I think this is clearer now without the CPUFREQ_ETERNAL. Reviewed-by: Qais Yousef Cheers -- Qais Yousef