From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 4E52E2D6E4A for ; Wed, 12 Nov 2025 21:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762981809; cv=none; b=dhF1YEO2MIYqYkfJB7DghLxNF7ShkCEoskcoyJ8cKOFmA7Ed41leirCFnlRM5iOvfWJ2zI2Xef1OhZHhqLl0zaCt+tuXOvSxVHCAdqEuoSe5luYIz9m6LZTLgYJb2zS1gXSz54E/aIsZr01S8LMUdR8T+Mv/KwQW3+uqZ7G3LY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762981809; c=relaxed/simple; bh=3KeLYpoxQunGwePMrGw9Ag8kDi0pL6I47mlzQXLbZbo=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=iblsoMG+IwKuAs+dszsb9G+MyjLER9AP8ROBCS0FWB6393EyH8AASekZ1+VeUM3V1ZGMZuR7Nvd0DYAuLFA9h36lScxfMMpXtRmda87ye1g2ScVeE4IEzvOHBEBxEsVZXYrXG09RIPDI783KYtlu+50sVwY8+WVFebU661p4mOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bzXaEggd; arc=none smtp.client-ip=209.85.210.169 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.b="bzXaEggd" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-7b0246b27b2so106338b3a.0 for ; Wed, 12 Nov 2025 13:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762981805; x=1763586605; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=iK9hwywVCoA1owwArThQ0iGrOFP6QXJhSt+mBhrCefg=; b=bzXaEggdBF7zyHCMWT9uYGuMR0WlMBzNddiJbxsn8vBUEO5LFZv2I3PE3h+FAOZggs N/quX5dU4ouADzl5u8VfMOfsOV2BoWhsG7+W+dz7RK0lyz4kdzYwRDENYM0H38lpgXdU R60c/AVrGUF5bp9xRi+XwKAgDftXozHw3MguFIHw01l/LtrAG10mNt8qbnnLRLAhHpLY hxFsHOOv9BdOl0B4gzHhJx6EbXIbdXXa0ZqnorNVkegtKufksgPE4ipIV2ONVzbv8xdU f6OY/X7niYfEvjuoMKgoZf1AsdE1qxq1Rfs2I2ZlTA9XX7/90gE4lM2eMyxHNUr56hJi sn+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762981805; x=1763586605; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iK9hwywVCoA1owwArThQ0iGrOFP6QXJhSt+mBhrCefg=; b=cVyIsUssGl4m2FxylW2NkwXGYsL1tnWM1kC6I8VKkhn3slSCMukDK5fLNWgIihe2+C K4LzJ0PiOCgbWhfJ3RZ4srtRuduKuQ/Z97g0FNJrNTIUmMo3Mzu5lR3W8YUmtYPVOZYT PJzq57v6RAcSU5/TffcFBkr4Y/RnT81m+Vc3mqUaOGwm7RM/KTSYE6NeT64LxDrhaK1O 2WijiW0kDgIFyzDgs1RxBniX6a8Ve9Fs1ZiL9gBKLSKy+YEWlmGvxE0sYupY/aaxyUo7 zXTgzTWXr1m18A+mIjUrUjyjm88geaAnAXtMzeWf6G07CFik+CrRPuE0+ZqebtRdBV2N bQcQ== X-Forwarded-Encrypted: i=1; AJvYcCW9afjneYOrvNeR7fAxfqmwnClf6KVtumOg5pqT+h8UMPBBnu5IAZgY1PJ+yWIP+8BhNX/22hh2+lzS34o=@vger.kernel.org X-Gm-Message-State: AOJu0Yxc1MxWqUxB5ouvhSlCgN8al6fOVT7ar5JMzjT4zPy69PNHVGeT +kIcWaKlBjpufURB+tKrL7T5DFU6B5LQto5AZD+LX6Pi1UV2EaeIfW8+ X-Gm-Gg: ASbGncttiYYY9iJRhy5nYgzvLjp5D4R26TZoMnUV4s8B2lyCiz4VUN/7LfB2k/RKuSG xreG8qvrZK/0acPmtMhNhNqTjFctJYMYJwC7ab/nn9Z7GMjmqUeu/NaGG36cnCbmc6+g4gnYzMg NqzXRp79yO271MVL49graPkcr3EjCzfr0xf34tDiP5nKykhwQNjkaduzJQiT7ynP6C/PK2JdF1/ 8G+UE/fICWe9rLIS+lqRtXEV1SSzLKLmyzQKPj8kMlDkg46W7FoMqK79LLli1wB3d5E0sG3IeHN r2Fmhac/H1qL/B/twED7lRspCV0EO4xI/Yul3pgY78PCXkAYnAoTSon98TYIDvIj4j4Vh9yJf6R 55Ip+9/UMFA24Ucgdfqo2N/bHJ0atb6uRfHzCalWdiASJYV53Z6yLsGK1UM7X/PcIeoztFYHIl/ 0S+wtB7l8x6C+Kv2KGfHsJxv4TdXoN7UiFJm78s1Jz9j3aJviz3DANk055tGqvHYrBHjv1i8Q= X-Google-Smtp-Source: AGHT+IHGmuARPThpnwcferH+2Fz0BRD/2zZnyupg6Za/IMYh6KBq2OjFyv6xSKw5IW/55mxOopvWyw== X-Received: by 2002:a17:90a:8c10:b0:341:194:5e7c with SMTP id 98e67ed59e1d1-343dde6f7ebmr4302109a91.24.1762981805360; Wed, 12 Nov 2025 13:10:05 -0800 (PST) Received: from ehlo.thunderbird.net (108-228-232-20.lightspeed.sndgca.sbcglobal.net. [108.228.232.20]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7b0c9635007sm19900217b3a.2.2025.11.12.13.10.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Nov 2025 13:10:04 -0800 (PST) Date: Wed, 12 Nov 2025 13:10:04 -0800 From: "Derek J. Clark" To: Mario Limonciello , =?ISO-8859-1?Q?Ilpo_J=E4rvinen?= , Hans de Goede CC: Armin Wolf , Len Brown , "Rafael J . Wysocki" , Jonathan Corbet , Zhixin Zhang , Mia Shao , Mark Pearson , "Pierre-Loup A . Griffais" , Kurt Borja , platform-driver-x86@vger.kernel.org, linux-doc@vger.kernel.org, LKML , linux-acpi@vger.kernel.org Subject: =?US-ASCII?Q?Re=3A_=5BPATCH_v2_1/3=5D_acpi=3A_platform=5Fp?= =?US-ASCII?Q?rofile_-_Add_Extreme_profile_option?= User-Agent: Thunderbird for Android In-Reply-To: References: <20251106212121.447030-1-derekjohn.clark@gmail.com> <20251106212121.447030-2-derekjohn.clark@gmail.com> <701898dd-3310-e86d-7499-fca5a445447a@linux.intel.com> Message-ID: <1558D575-0F14-418E-ACD7-7B7420C622BF@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On November 10, 2025 9:17:12 PM PST, Mario Limonciello wrote: > > >On 11/10/25 5:14 AM, Ilpo J=C3=A4rvinen wrote: >> On Thu, 6 Nov 2025, Derek J=2E Clark wrote: >>=20 >>> Some devices, namely Lenovo Legion devices, have an "extreme" mode whe= re >>> power draw is at the maximum limit of the cooling hardware=2E Add a ne= w >>> "extreme" platform profile to properly reflect this operating mode=2E >>>=20 >>> Reviewed-by: Mario Limonciello (AMD) >>> Acked-by: Rafael J=2E Wysocki (Intel) >>> Signed-off-by: Derek J=2E Clark >>> --- >>> Documentation/ABI/testing/sysfs-class-platform-profile | 2 ++ >>> drivers/acpi/platform_profile=2Ec | 1 + >>> include/linux/platform_profile=2Eh | 1 + >>> 3 files changed, 4 insertions(+) >>>=20 >>> diff --git a/Documentation/ABI/testing/sysfs-class-platform-profile b/= Documentation/ABI/testing/sysfs-class-platform-profile >>> index dc72adfb830a=2E=2E9bee8deb4dc9 100644 >>> --- a/Documentation/ABI/testing/sysfs-class-platform-profile >>> +++ b/Documentation/ABI/testing/sysfs-class-platform-profile >>> @@ -23,6 +23,8 @@ Description: This file contains a space-separated li= st of profiles supported >>> power consumption with a slight bias >>> towards performance >>> performance High performance operation >>> + extreme Higher performance operation that may exceed >>> + internal battery draw limits when on AC power >>> custom Driver defined custom profile >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> diff --git a/drivers/acpi/platform_profile=2Ec b/drivers/acpi/platfo= rm_profile=2Ec >>> index b43f4459a4f6=2E=2E78da17e16d9b 100644 >>> --- a/drivers/acpi/platform_profile=2Ec >>> +++ b/drivers/acpi/platform_profile=2Ec >>> @@ -37,6 +37,7 @@ static const char * const profile_names[] =3D { >>> [PLATFORM_PROFILE_BALANCED] =3D "balanced", >>> [PLATFORM_PROFILE_BALANCED_PERFORMANCE] =3D "balanced-performance", >>> [PLATFORM_PROFILE_PERFORMANCE] =3D "performance", >>> + [PLATFORM_PROFILE_EXTREME] =3D "extreme", >>> [PLATFORM_PROFILE_CUSTOM] =3D "custom", >>> }; >>> static_assert(ARRAY_SIZE(profile_names) =3D=3D PLATFORM_PROFILE_LAST= ); >>> diff --git a/include/linux/platform_profile=2Eh b/include/linux/platfo= rm_profile=2Eh >>> index a299225ab92e=2E=2E2bf178bde2b5 100644 >>> --- a/include/linux/platform_profile=2Eh >>> +++ b/include/linux/platform_profile=2Eh >>> @@ -24,6 +24,7 @@ enum platform_profile_option { >>> PLATFORM_PROFILE_BALANCED, >>> PLATFORM_PROFILE_BALANCED_PERFORMANCE, >>> PLATFORM_PROFILE_PERFORMANCE, >>> + PLATFORM_PROFILE_EXTREME, >>> PLATFORM_PROFILE_CUSTOM, >>> PLATFORM_PROFILE_LAST, /*must always be last */ >>> }; >>>=20 >>=20 >> I wonder if "extreme" is the best name for this? Given the description = you >> gave above, perhaps "max-power" would be more descriptive (and we alrea= dy >> have "low-power" so it kind of feels fitting the theme too)=2E >>=20 >> I don't have strong opinion on this so if you guys feel this suggestion >> would not make things better, feel free to voice it=2E :-) >>=20 > >I don't feel strongly here, either sound find to me=2E > Fine with me=2E Extreme is the vendor (marketing) specific phrase but the = low/max-power symmetry is nicer=2E I'll try to spin a v3 today or tomorrow= =2E Thanks, Derek