From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (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 34F561B3925 for ; Wed, 12 Nov 2025 21:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762981807; cv=none; b=Iml5eu3V95aGLbSw1DvtUmtpCSnPwAp1ussihIO7Ysl+tO+BXliQ3C6UThY86BXhuB3SChBBjP9rDQRvf3gQzZTts+XRgPy9q1qooaqCsJJKnWdXNff0JWUenTkMW+5EH8VLuqnjSrL3CXzwtEMvWa1Hu0VJavQ+MAwBpmBE+6Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762981807; c=relaxed/simple; bh=3KeLYpoxQunGwePMrGw9Ag8kDi0pL6I47mlzQXLbZbo=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=dqZbpcdEGym5vpJRqb+1629xpCXHMywzTMEFqAxUHeI2vZ5SUenETuElgQiV8dhOjhl3EL0/tviLaJgqP63q2dUoJztDI6yyi3HHZhbRYsKNTajETYcfzPzwAHOuu/LSATm3hJj2ts93g6y3WegEWI5m5/LLG08YopukO/6hRps= 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.177 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-f177.google.com with SMTP id d2e1a72fcca58-7aae5f2633dso74998b3a.3 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=a30QsECmrGcjm+6gtXfpurQwpO0El2FmSWdVP0gSKsjJ3lIeAgToi1q2uP5Zx34ib4 6Z960qz17+aERC3xp/54y41hj9/3kn7iBegPcYLHkvRcXPTE6aLgtzVsJtQTTMcmCsce uUGY3k8ZgS/6GVPBlTJGN0Ai6PVkd6WaBJrMffHpbTUPLxps1NetvUz4jw4s7QW0DtMw m8xRoUzGTa7/oIfc2AzU7L7KwiP6lUY4sD/TVp57cyGYRWQjAvHkoBYXohMqt3/+wZEZ sTJmPCXrRYtouUnud1vYnBol58eHU3hjxTM9WvhOjz2OBj/qjYg40c8EtAbC8Veo2zeJ WQeA== X-Forwarded-Encrypted: i=1; AJvYcCUGxEVEXRZHxKng6V3C0aegcsXRxLCGUUOvmmQMUoxpMhusrIlLitWi/J+Ufr/5/NpG0UgGCLT7g74x@vger.kernel.org X-Gm-Message-State: AOJu0Yyn6qWSWNCPKCdpLXvUEpoe3z3Ljhx2Hi+vvS3FCXkPlhM/uZgn VP9DVMHf87bJum+C9LB5KSZp9cuwd9Q0kjBaEmOj1Vh1foqn2pLTJtc9 X-Gm-Gg: ASbGncsPlDvFT2eH7EDBl5X7VfPYpG40Uk1t/Ama5/9o20dS2v85eHhO9chnVMX9Cne TEVxTUdCixsbIy4gBI0MG+hWRWUtbQo2lL92uyoycCPhM6i/S9xYfLxIt1tLoedSNXLMrQuzP60 ItE/P3v/Cz4fwwmd3Obsr6QiTpCZq/EYZSqBZaUD94e659AtAegTs4uj5HxpkdWLq8HJ0A32qJI dvMZmoovgJfkjo/APhXyqoa5sQBjnZKpgIV94OsoRnAL8s+CFYc4i99Q9Ar/dsbjqL2XN0dl6y6 AqTd/19H8L8tI4YEn0VIVQ7KhngO+ZPn+BlZh98A4TWiG7kEBJLE7Kjr6h4pJAdAKBqvErGRLso nRQxhC+9KXcTd1bE71LvFDi4WY3ZU7Hfhn6VHIwce3DCl+uJXqDEQCrIxkCqCSHtutAAwwyZ+Fh JtyX5jdHwIMRNwalYQvFGFQiRgtUaxGTrXwxa1gfnwu9l0KvOx/jK6jWyBIZ2B2ps/UwQddXI= 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-acpi@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