From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 BC9CB305E2D for ; Thu, 6 Nov 2025 21:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762464088; cv=none; b=UaEOxO+UXVsJnn5oLuTTmNLTwbsKUyZdu0Yw3UoiySyCdYo0qjbW+XcdMp088KwXEwUajWtmqrOWGQDMjb1Odx7KUsg9/hOdaAzWok1I2RiufimQdgcvYIGSrYpcUFea8eh0HDQiFSMWfdpR4KhWV7tNTrVZmwCRewh0fAH+aMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762464088; c=relaxed/simple; bh=FwLNkRtTJ0ikM5eQQDKNv4zZ9hcnAfdUu1+o6OVb/0g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tsBFc6IzWrASewxPk3eKM79mm+onF2f5A3kOy2UZUkjyNNJq7SySDJemOL1ip3gSGph4u48JnAWqacJS0Hx6U8FYqgN9rHMynjT5SvgBgKkSA5YAicvYoqkHUjV36b9fl5MAvaYFLCscUdJi0gFwRzZKIKdKwTZoNMMUTxeUbRg= 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=dkFqUJuf; arc=none smtp.client-ip=209.85.210.171 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="dkFqUJuf" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-781ea2cee3fso85140b3a.0 for ; Thu, 06 Nov 2025 13:21:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762464086; x=1763068886; 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=n0aw0d1VUDeF7yPt0q4o8kNpDsBTJNsxGr/Ot8TJH68=; b=dkFqUJufs/gefI7oojiNkMK37ZiU0I5XYR7HrCY15zbUspsLt6zKkar5R0+nsVJD3M 6A25t5Rte/UMQRPhrCVLUkRk7kqScub6qKiqf7TCTBgjieU5yiA7VTGvBNJ0GYOvOG87 Q5bxO6nF9esjh1tVmU7s7tkCSz1E39iMzsCyptmv3sjn0/Z4XubvmHJIpX6/56l+mDzN 959RW8QC5e3qFfoP9mfX4DXXOHiDsI19eWIVnU24fIODnH/YE0Fe53FhNjo/GHaetFdI JQgdJTATE4v94R2V3DI10uJbEWaMeaLLOjFunGNGEhAKFG+l6JfFgBVvjdNRVCx1nuRA GJow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762464086; x=1763068886; 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=n0aw0d1VUDeF7yPt0q4o8kNpDsBTJNsxGr/Ot8TJH68=; b=wGzB6oYJ8cM9ymuAT3KZoT9NPGOWRN6TivJqrS1oZ7nAFdFHgalbjrWiO7Y7W7n6TL QDu9Q378Z/VOhpR127g6f5aPLuM5/PHWCsuVXYNuXYfdH2Es193MdXa1/nokGIjrNYzH PKkKbMOGTn7yReJeODCMgA+H3TuKFpLOd5VVcopCEnAgUIkH3UpM0H/INu4K2KA2hxub rH/nHd38lITiNKxTEKg6Fu/OpL5jLERLctTDxAs/dpBHaow/GoljIAWvpTG78jDj0K7A aDg1i1ITAOq3li/ZUga+QmBOY7af4HafVTW7eAsJ4CycpqchaIZ/rGE/C43wtXxH1lym Me4Q== X-Forwarded-Encrypted: i=1; AJvYcCXUNH4hl3GwMrC6VSnnZ+SQ7xGhqlYE/9x8jnRAsinQc3fHG5tzGG9aTETsGreHPHLyeiljIbAcSmtO@vger.kernel.org X-Gm-Message-State: AOJu0Yzo6J6YZnGbb2aKMo2SFgszPmqlL5bjY9RCNkeBcbTxIIVwzI6Z w+y/ZC+xhH8xHxJUsvXLqsPBPHcabnQefGpPR6Zb1qYlMu/YFw/KrXNQ X-Gm-Gg: ASbGncva5HQeU8eOo9z7t0oJxU+LxNsfKng5P5O0VPVGa6oYt/C7T3mGZOWQpagg2MS 0gu6q2MvNyVPIf26YJjaufzfkYLVHmA9SnXNGoLrOZTaooB7TwxYdQkxfnfgNxr+Vu08qYCIRHA 5U55M7IsCWwyoKUGUOcVoV1CQpI65uRpSEfrFCBqoE8uBXRfjWkWLLHzljdxobzaBTKljVkZjZd +DO1QWnrQGBuMfSzT7k4AsB+GlqC46doBe14v8q8KrnUDi8av/RyrZex75gJTkCkArbelVpXSd9 vgMQUGfpCAiGm56fkDPFLHpJhDnxqHsZ0ojavasNukz9LxwT/Hh92FU/lw5g4vpLR1lYFtI7Dbx t1jTbLs7lekUCcMft5HI+gE4Bn+CdBcM3zMbm4J2KosZvewlM2SSaLDNY9jyMaz5e0Q1bSmaXoH lwdAjp2JnsZ4TdoRq3b5V2oqT7uyw5SKeElF1v6g5my9teiELXXTltzxn8HtdTHZPvVwU= X-Google-Smtp-Source: AGHT+IH826EutkUvFfzktmcjLwXuQGckXss6+pYKmU2ELz6Vx83zq+dwqtEf8PtHFijWmAc6wuQmlw== X-Received: by 2002:a05:6a00:4b11:b0:7ab:c5b9:615f with SMTP id d2e1a72fcca58-7b0bd98b115mr1101362b3a.22.1762464085919; Thu, 06 Nov 2025 13:21:25 -0800 (PST) Received: from bliptop (108-228-232-20.lightspeed.sndgca.sbcglobal.net. [108.228.232.20]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7b0c953d0a6sm521360b3a.12.2025.11.06.13.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Nov 2025 13:21:25 -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 v2 1/3] acpi: platform_profile - Add Extreme profile option Date: Thu, 6 Nov 2025 13:21:19 -0800 Message-ID: <20251106212121.447030-2-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251106212121.447030-1-derekjohn.clark@gmail.com> References: <20251106212121.447030-1-derekjohn.clark@gmail.com> Precedence: bulk X-Mailing-List: linux-acpi@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. 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..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