From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 22F6A254AFF for ; Sun, 26 Oct 2025 08:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761466368; cv=none; b=HXPhZfeAA9vz4g7z0VW256xNlBA85bDCkaZmOg5myL/UQ4bwoEJGF0WHaRZZHwaEtJFCLLFmUq/1Bo6jVGdxyNWt9dHHJS+SgZ5G5J5p1tfO/sOPcsFhZfgk2HgUKLepvAXJCdte1J2Oxd9MUdrryrCoWqnDAI7zlWlWPW7FJkg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761466368; c=relaxed/simple; bh=KfKya3ApWAx7jEzc+tOxx/V5zzMsaSdiqYDUBXDK5Jk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FL9YgBoztIV8UouB4n3sh3s+1nXkSIsTTg7InvMDFZ6pH1i4Gyxov4lvBtxZ8fjSeSoAD8dxCcreClejzeY6InXpNUZLgDY3y9ZL+3a2XcS3bCIbdo55sP+N8/gEeelUWdrNdlw3m6q0pRuwIb74rKA+Aa6OOjpkAQkH/zWBjjk= 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=m16Ombbe; arc=none smtp.client-ip=209.85.216.52 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="m16Ombbe" Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-33d896debe5so4107515a91.0 for ; Sun, 26 Oct 2025 01:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761466366; x=1762071166; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XkzT8rhILn4Qaqc6zAgBKines7TQJhCcdPvDF4nghIs=; b=m16OmbbeNBdH7tl0pbdJjpRNXV8H0HXm1gCgoBRdq+n6ayfQK7rksGMNgFAuoDMqME 5CQIPD06ez00bMznBwkthsCpY4pZBslVg0nTWpNLIp1zxxX2j/uA8jnuWytztXCedT5O 8fjVjFYKKNKHUH8gbeHsI2GUlwdLcW8TwktZUzZ5zaUoZujAKz8mxKFu3hVEsTZxy2nM 77e9wnWD6ZBUPdDgYWpoyaibgVmzOF18GW77nlvpevJCUBxqI66VRka0EJs1XRd1zXNH o+996Vm+auguJ7BW+ncEib165QwYUJ22Luw8AFUYTUCvJBscn5HaFMy0gKSVC1FQAugQ xo9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761466366; x=1762071166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XkzT8rhILn4Qaqc6zAgBKines7TQJhCcdPvDF4nghIs=; b=Xb9co7+CJuYnjCIEJauz6f9Fzdzi/ykJlO9Q/1xI4rFEs7uE4B1nNbd5Nt4UuEgvZY H4Rt7si43MWSp3F55loib6di0mCpAIpWBn+l5z1LI7RP6jEY6MLJPNjc+LFa4OvlWajg UX2Q144T8d/mIZHJa9I74L4kg06b2tAj+ry7jqR+EAs0Ce+QhykDgycXd4C03ZmoLzbo JHonxO4muRhWU4metTJU/T3uBAyZGFyUqanbDHn/s8/ZFgKY85qIFZsSRhL9OlDShuBJ u54e5Bp1aTHYzSYpFozWNskyL09e869ueicbBWd8GkD8NzaOECpOdtxghjtVw798j1Ar WxoA== X-Forwarded-Encrypted: i=1; AJvYcCVM1tCxh7NIplG8G1ex13S93ilkfdEvUDXIJUa9/PUJksaDHN6qVQ1g1+sbqTVDJ8s4KQOOKAUIl/g=@vger.kernel.org X-Gm-Message-State: AOJu0Yzg6TClS5YjDiNO3Qj0OgO+B3AlKjQYiw2CG7GQkPrjasaksYlc UnwVK0SPCRN2zKpdfQk4g9Vig3Vno7tEqyNdan6Ua016U7qiPADyEjoB X-Gm-Gg: ASbGncutepvnItv6sEkAnmf+npszXDSh7UQJ3/S/AC+7Jzs5bkFrO/6zrPXncDnf1af VZiKl80AJfi5HUPDPm0TXijTjyoVJZTc8tjoVQ9sSjxv0y+uTvjtBnwEHBFJgu9i5RTW4ZblNHO xuhven0eD/CjZ6YwiUiZiOpGb1SMxTeD3k/FxRnOYnR08+kXgGzP3rir7zEoD0ki+wB8BDVhTWz TmYgWdZ9DFSJ7ODpGg91yb3QaAPNJtQV0vBBfo77fISSY7E8htEbQHdPmqoWAV78peJL4RKmD5Z HAQRT8/M57oyKBCXfLPMO5642okNPrmvYIlt9acQUtIan5Hb04E6TY+eeO3b7bqI8qcwAoBEQH3 BH5RUwssE0UcsrSNtQ6ck4aDzB1L07a0Mh/AJu2gucSpMLH2iwbsEcbG4Npr4jYAJeHNaQi4g/a sfJMzEbRRWUl6VDHCZ5qzXnfxvup6Gxfo5UvUVjovrhq/tZLe7o7cHT8S1iO7RFbjXWjQ= X-Google-Smtp-Source: AGHT+IE5idy8ltBz4yyQv4LyCXJVQoIVOtH4PVAtTVzDIlLpQ2ipbqC0Mv+dwtrFwZLdO15KZ2mv4Q== X-Received: by 2002:a17:90b:17c3:b0:33b:ae39:c297 with SMTP id 98e67ed59e1d1-33fd6502cb7mr9996760a91.16.1761466366364; Sun, 26 Oct 2025 01:12:46 -0700 (PDT) Received: from bliptop (108-228-232-20.lightspeed.sndgca.sbcglobal.net. [108.228.232.20]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33fee8014f6sm2374654a91.0.2025.10.26.01.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Oct 2025 01:12:46 -0700 (PDT) From: "Derek J. Clark" To: Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Armin Wolf , Len Brown , "Rafael J . Wysocki" , Jonathan Corbet Cc: Mario Limonciello , Zhixin Zhang , Mia Shao , Mark Pearson , "Pierre-Loup A . Griffais" , Kurt Borja , "Derek J . Clark" , platform-driver-x86@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH 1/3] acpi: platform_profile - Add Extreme profile option Date: Sun, 26 Oct 2025 01:12:38 -0700 Message-ID: <20251026081240.997038-2-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251026081240.997038-1-derekjohn.clark@gmail.com> References: <20251026081240.997038-1-derekjohn.clark@gmail.com> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some devices, namely Lenovo Legion devices, have an "extreme" mode where power draw is at the maximum limit of the cooling hardware. Add a new "extreme" platform profile to properly reflect this operating mode. Signed-off-by: Derek J. Clark --- Documentation/ABI/testing/sysfs-class-platform-profile | 2 ++ drivers/acpi/platform_profile.c | 1 + include/linux/platform_profile.h | 1 + 3 files changed, 4 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-class-platform-profile b/Documentation/ABI/testing/sysfs-class-platform-profile index dc72adfb830a..9bee8deb4dc9 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 list 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 ==================== ======================================== diff --git a/drivers/acpi/platform_profile.c b/drivers/acpi/platform_profile.c index b43f4459a4f6..78da17e16d9b 100644 --- a/drivers/acpi/platform_profile.c +++ b/drivers/acpi/platform_profile.c @@ -37,6 +37,7 @@ static const char * const profile_names[] = { [PLATFORM_PROFILE_BALANCED] = "balanced", [PLATFORM_PROFILE_BALANCED_PERFORMANCE] = "balanced-performance", [PLATFORM_PROFILE_PERFORMANCE] = "performance", + [PLATFORM_PROFILE_EXTREME] = "extreme", [PLATFORM_PROFILE_CUSTOM] = "custom", }; static_assert(ARRAY_SIZE(profile_names) == PLATFORM_PROFILE_LAST); diff --git a/include/linux/platform_profile.h b/include/linux/platform_profile.h index a299225ab92e..2bf178bde2b5 100644 --- a/include/linux/platform_profile.h +++ b/include/linux/platform_profile.h @@ -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 */ }; -- 2.51.1