From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 95701323401 for ; Thu, 13 Nov 2025 21:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069206; cv=none; b=FQdVhmHDB9bgw5sTScPZB2RUUfy3svocV8DtZncRCrE83U4a4sfArWjgEX3aHN3nNq3BB6q+aRAHOakEKZAYYSmQKuRNNdgttwBLz81ltwHSunDOpHyIlWEAdM2qp0cOV+O728rTaC31uT09ZRzQdqtQUTVkWaSRygcLSpVZr4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069206; c=relaxed/simple; bh=Aowo0IlaBztSOOQxDvKMq5NmrZZmaP5pZMs9pRTujV0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kvYdQ84BoftQ5fvhzhhIs0RpOC3Z56tHr5F2mC8SCM0m7idlIGkJixWdRotm0njekQURGZ1Z7ekLoGa0SrPrwKKUx4ygbj7PEdtoN0khrwr9/1AeZoeOFQO6EjzLWC24VDbVj8NTT/vsBlfC2SrqYfqlclTunD+sQ7kWwdH+54U= 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=eeK1dBjm; arc=none smtp.client-ip=209.85.210.172 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="eeK1dBjm" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-7b75e366866so759212b3a.2 for ; Thu, 13 Nov 2025 13:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763069204; x=1763674004; 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=gup8jlztTqVVoO7AH7wg8TZA7qN2MbWnEYHaxHfLc6M=; b=eeK1dBjmAF3nRhKL4Sn+8bDmP+zlgZWX6piXua+ugK7M9e///LbcAJchYWzCtjv3iM yW8reGZeDY2IWJFpmJGbjC5wd/+QMRJPjkfoQkPoo2YRKZe99gPZGtHxk8ZN2Fl899ly 2R5ELAjKUtrgLjdls6sEhxy5py48oKnJBc2JuJlmvb5jGhVU7IpCxgvwzjQ/xZIjjl2l Kf9wmgBXR40kqCm31UFsygx5ycSnrFVwBAuO2F54nGJJEG2Qrr13fEMHUdlrIpdjcXU0 7uhhd6bP4Ydv2EQsxcoKvzuXvHQ8fLN6lPj9NscAX93U5pOlmmzBrviLg8Acw8gEo7x8 prcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763069204; x=1763674004; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gup8jlztTqVVoO7AH7wg8TZA7qN2MbWnEYHaxHfLc6M=; b=oG/MPI9mqsq+GY7lf9aDczklkD1Y7F1exYHgfeVa5AZWql852LXKPw2YCHCak+4bOo HIlSwc/7N8j3JQW0/rJHJxvd0IbxWx6w/J2SmfrZ63wFsw8GiWiBRzd+7dqWdfjzkId5 /RFpFiV2hmUQnEfWalwA0vdyjo2XiFX4FXyKGVJa3XtE/KahNxcOlx4ETT94rr2evdVp d/N55WBGSafbdqL0EKBsnCJyfd2f9VbBmOym9nsIP+TbteLDLz6k+9h5cQF2jcrzdcB2 5Wmcn2Rgp5l6HOcoNBpNhw/VjKbe6UNlXZOcznYu1JDG2/TMPJgVgJj4/8EZ87YIlour aRFA== X-Forwarded-Encrypted: i=1; AJvYcCXdV7oL4Hgmc6ylu3iK+n+y6BQc/DEOurl7HK0/wwTiT+ntra30TJ+LZhKgmlkphCRC0bw59bi/0uXdLISCeu3hlfhR@vger.kernel.org X-Gm-Message-State: AOJu0Ywe0V07bKsL6yJo/9ACmMdd/QgSpsbpjh+V6dadbBCL4qT6ZWkb Nyqqq7yT21sSK6+4vmeXDpqKdrI79zxA4yH/UjHz4yEwKeVSJ1WlH6f1 X-Gm-Gg: ASbGnctpCpmAe9eTZzQf66kV9+ScVP6zlogUZnwyw0yv2aouMtL0g/ACc94f5wY7Ih3 on1XPCeR+hNmcxIJpcQwYeth0hfneGeW83y+JTN+VAJAIxD6fllC1WG8ebdo8bua0nxbRTop6Fi pj99X1kZ+mgPHl9UZB5mcE57LR+d1IKrbRLZn9vxbpEqBB1L2VQ/ZVt/ECpLIxu4k3vaprXr2Xk UFlLgW55+6fZR4GosaC1Gjt0//ov6JlLGij/MDgjztk8CBxxfXehIuMvIV7O4fdljn9HVmD+7vd qiU7qMT5YUeD+Zu6l6IYadxFd/hfFDK6d8HzZf0+tzstosMIobCRko7s9b7xfeGS4HKBwcmXxMR 3WSh0doM6gCP5zjly3l/cjqY0gwEu9joBqUc8G6IXqATIIoFUrUKofOBc22Hx94MvsYDQXviQfE fAZ6i+yLu6zCTgThkSSCIWj34wYMsKAlv0xa5v6HEAP4XAxGz/OOqfLhNauodQWxNgNl4= X-Google-Smtp-Source: AGHT+IHDHzMyGrR9XzZFFbHiUHCu+jeBztlrSt+PxD2cgPY1wVsNA1mn7BCOfms8yNm5tlIFGPONXw== X-Received: by 2002:a05:701b:240e:b0:119:e55a:9bf0 with SMTP id a92af1059eb24-11b40f9404fmr260328c88.12.1763069203573; Thu, 13 Nov 2025 13:26:43 -0800 (PST) Received: from bliptop (108-228-232-20.lightspeed.sndgca.sbcglobal.net. [108.228.232.20]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11b060885eesm1811414c88.1.2025.11.13.13.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 13:26:43 -0800 (PST) From: "Derek J. Clark" To: =?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 v3 1/3] acpi: platform_profile - Add max-power profile option Date: Thu, 13 Nov 2025 13:26:15 -0800 Message-ID: <20251113212639.459896-2-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20251113212639.459896-1-derekjohn.clark@gmail.com> References: <20251113212639.459896-1-derekjohn.clark@gmail.com> Precedence: bulk X-Mailing-List: platform-driver-x86@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 "max-power" platform profile to properly reflect this operating mode. Reviewed-by: Mario Limonciello (AMD) Acked-by: Rafael J. Wysocki (Intel) 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..fcab26894ec3 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 + max-power 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..aa1dce05121b 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_MAX_POWER] = "max-power", [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..855b28340e95 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_MAX_POWER, PLATFORM_PROFILE_CUSTOM, PLATFORM_PROFILE_LAST, /*must always be last */ }; -- 2.51.2