From nobody Fri Dec 19 17:17:19 2025 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 B6BCF305E29 for ; Thu, 6 Nov 2025 21:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762464088; cv=none; b=NkhVQ+4t7uuQvl8RLSlR+Lh2/qmnMUg5ZZ9EidO80Y+gATCmZQuEhBotqZp8x0ZMDu2e5e077d89ZMP7J4k2yPrpKBJVjwyhFRYukTFHo0W2EF2iPf47LjHd3snysslD35QCwXLtFlV0V6mGBKp3GputkdZukPTsyyjSRIe9kOs= 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.173 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-f173.google.com with SMTP id d2e1a72fcca58-781997d195aso59919b3a.3 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=p9YYH4VgXSWSl8yK+hGnYP/g3aUR78ahXlxx12965VzuU0WchDS4i18wEhYxem0M+w WiDzUv9aIv/OdAI73XeNIrBwJsw4To8CH+U3tODkZ8sK7bQa1OlQFc6N+qmWV893s7M2 7UXJO21eubTf0gkyKHaO8asLv+6ICh7AIRutkR5wK88DuUBSDx+1baYZuU8uD1R1XLvd MjAuylyHqaPZp/WRHKkduIJjJ+1N0Fp0G7OLllaxAYJiuNeSEJmrGSjNHn6HcbHSyiz7 9xnwVptrb4qp24PMJXThu8JNM+mFzbNDEhFG1jXrgV1jQT93BkdU7Z+Yj6F3J3eqhIWr tGLA== X-Forwarded-Encrypted: i=1; AJvYcCVEOqxkMZbwhgPOE4/po/e/DqM0vu4oOy721LjW/ubu6DlSzEHqj5Bdv6ozoajqNYaDEIz5rQSi2FB9vHA=@vger.kernel.org X-Gm-Message-State: AOJu0YwN804LYI7senfMMBWPSb3YuqV5WKpdVkHgmQmHpL8O9UncwmxA tmPD3O3CIarLFLmlWdbj/IQkliFmsI8RIv31X67lfFFH8fHOTOBRqkk1 X-Gm-Gg: ASbGnctEZUBhzioE8e8g/cwlTFGyXYYk53I4C4Z8Yw+5eqrgH2PicvFb/jk82H6bEsD H04n1tBEZwLYLk91ZOFPq9VzjxPpjguy8BxkEiL90cIuSFlHWi2cuE7sUt/ib1LLx3FtIO4Rmvl ypdqmx5yvTe8qK1ZFGlzXPkshOfCt1SlcdKokv9y2VpxmOykQT00I4fiYN60/Ql4FeaG5sGNl+1 QjBDDugkxHsdqI5STDnmswQ/6kSxkQRCNLC1ODX3V3HRxwvigMAG/qwKxmwUx6FTaHhsg/hnu5A qy9KAyyoa115GwyXSgd3+eTvzDwPhK+YRqEr+fBtESkr839Dq1fODWYcfZ54CsL9weGhGfTqMQe HjMI9N7t9P99TUu0ZIw1fW8pK7MFjGLdA3jy2qzPDYVffsp2qF+iamoJW4/t1KSgi8JpU8MRB1T c4BFctbpcw/oqYxZBTLoZ1rcP5rQ7VUOI8ineYsJgap1Ep9I2JwIpgNnaFaizHGiov1bQ= 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/Docum= entation/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 =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 =20 diff --git a/drivers/acpi/platform_profile.c b/drivers/acpi/platform_profil= e.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[] =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.h b/include/linux/platform_prof= ile.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 */ }; --=20 2.51.1 From nobody Fri Dec 19 17:17:19 2025 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 E617030649F for ; Thu, 6 Nov 2025 21:21:27 +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=1762464089; cv=none; b=XvFdWlL1w/l9ZL1l+xOCMAmH3SjEPcFDCgADfkeQypliEgCJVd/ecCWptwFibz3NbTV0u/eubut0d+exghfAMGr4kw2Q4N33q+XeGqEJkkVJntN26ZGwlG4s4y7Zvu+RO75588jet2b2jfvX7CTgQ0isotnFbSRaCBxXWQEI6Ms= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762464089; c=relaxed/simple; bh=o1D+74u0jESsgRq+dEc78taFi1WVB7FieTFi9hP+7qU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vwf005KOwXZEmuiJsEjIvHyuLC5EjxFOLrK+z27800M9V4IvGDRZTQ2vyKTN54zNz87MLwCljyinYB40rYJjMcXcP0FoYh2n7MhWIvU5dAKUF8yqAsUKzGPgG3dfhASAVMDcXDoDYnTxDmRzdp3vcICJdkOfJzyUGOjDd5HWf10= 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=CZz7JGLg; 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="CZz7JGLg" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-7aad4823079so102137b3a.0 for ; Thu, 06 Nov 2025 13:21:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762464087; x=1763068887; 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=+X+nWVGtuau23CQKffdOvJt/AKrk9R0PxqKgoXH9rgI=; b=CZz7JGLgrwvFBipA8YIXNsJw6H5Dh8NlqHK66836nnD4BCUTI9zWYdaSJVJkvI4MuB sefHj3tglvb+RNHyEwIMVIBQuJ2RYlsHeUtG8N254NN1okMMIMqD+bEeBJoShnAbV+E3 ikK7/cuKtyFR2KH/XchCjDiE4jg8mb0frN7LGNFD1pPatKqGZTgocG+JIH6oU8CAP6Nn R0CFAp1d45NbUvsRVohKmw/ezH+jFjmX2WBeijgrPkbOtPUoUGjSvO8YVCkaTefbi7Fy sYlrXZdF9q8s/1DEvKEcXpOFP2uYjiwTLWio2ppi9Djnbsi7hbfvSMqQXkUR5janDTFV /65A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762464087; x=1763068887; 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=+X+nWVGtuau23CQKffdOvJt/AKrk9R0PxqKgoXH9rgI=; b=I3PxdBndfKmre4d4oDvG36f9lo6MBBwx1Z07KB6Pqg5REjf+E1wQa/u53SGvysBM6x l7tQW70rN8+6x4B14wXZWbPKJSDiZZrDUj62ttQ6xAOmRf/Q9kLWu4dDo1ufjuOIv1X1 SaRBt/iXm1yQtgErFYyVUV1Wnn3xc7nlUmMA/JXyvKnF5KPwKZ0XRM//MWkXZgyDJVWj PbacCm84MWwIVs+ebiMGAJsTZxxLrSCfjGKtRP2cm3ruHu3zKArpodHvWgbQ6Xc/cd8W ur2n7QwJiYxacV5GV+61+UFnCWRU9ClS5hpfPUpzCH5PWIC/dUyuQcgOcc8HUVxgK77J 8V4A== X-Forwarded-Encrypted: i=1; AJvYcCV9hiVXm8ImKBbKQZMANpWyYMtzmFG00PpXX3eVKvkPnoASUJiaaGezprO/wpidxMsrfsWSej0UPd4ERjY=@vger.kernel.org X-Gm-Message-State: AOJu0Yyr/GStaB57HDSJiSywvZKH4UH3pPGrGYn5YC4azK5oIasEfLn8 lc03ldI6wPnrKlKH5sEp2VAwZPDptJFeZLK8mgz3iWf/7R2t3luKbIH8 X-Gm-Gg: ASbGncsWDPuotvUhhesmwdVztaKmFJHsPVoiGLvrkEBy8EiliaLix7E3bVsmJpAooVL PjSiHouXOheH6hlhrzRb3rco6Ox9q4vVU2qgMY8phV+CHrgQFiWJJWb96TiNWgyRLqQrUkWXnAt p4pRW5rDZRVAbWV0TUbRq4VaM71ng5356t3c3k1HbUyxpOHmZUzttDg4HhWR2IeGc/Kfgn+iN7n Gf5kI1O3lmgeVtPp9huxM1/lnCa63XPCKoGl5JoH/khT0w+NqpNtQlJbZTJ+xCIkn4G2kvRCHoT 5vuAG4LHN9IJZArgojqOixffvBU3b0Lq5Yz1rjUmj22rn3X09rkVBZAUw0uKlE6eIHvdZg0DXGo jmeBu7woZe6U5Qq2L5Sz6ljnd/gNwFi76ytf3CG2puRo4jiopWSCxih5Xj7AL0PjCl4hA0dw2vT I1CTZo93SQ4OrYg0e/ni5TmU6spRZrAXRHUZDxiXUAIww05OQjG6ZOLzeI X-Google-Smtp-Source: AGHT+IHR8+vSxHEsoYKLoeyXM3WkEK6OcznT73MUUHSpR0cEymgpx8rJkPnHuN4Dr5upn1/aJ1SsfA== X-Received: by 2002:a05:6a20:9389:b0:342:faff:7a7b with SMTP id adf61e73a8af0-3522b496eaemr1358803637.59.1762464087151; Thu, 06 Nov 2025 13:21:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Nov 2025 13:21:26 -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 2/3] platform/x86: lenovo-wmi-gamezone Use extreme rather than balanced-performance Date: Thu, 6 Nov 2025 13:21:20 -0800 Message-ID: <20251106212121.447030-3-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" When upstreaming the gamezone WMI drivers the "extreme" mode was matched to performance and performance was matched to balanced-performance, but only when extreme mode was fully enabled. Otherwise performance was matched to performance. This has led to quite a bit of confusion with users not understanding why the LED color indicating the platform profile doesn't match their expectations. To solve this, replace the confusing convention with the new "extreme" profile. While add it, update the documentation to reflect the expected LED colors in each mode. Signed-off-by: Derek J. Clark --- .../wmi/devices/lenovo-wmi-gamezone.rst | 29 +++++++++---------- drivers/platform/x86/lenovo/wmi-gamezone.c | 18 ++++-------- 2 files changed, 18 insertions(+), 29 deletions(-) diff --git a/Documentation/wmi/devices/lenovo-wmi-gamezone.rst b/Documentat= ion/wmi/devices/lenovo-wmi-gamezone.rst index 997263e51a7d..8fa0a27fc05d 100644 --- a/Documentation/wmi/devices/lenovo-wmi-gamezone.rst +++ b/Documentation/wmi/devices/lenovo-wmi-gamezone.rst @@ -19,27 +19,24 @@ WMI GUID ``887B54E3-DDDC-4B2C-8B88-68A26A8835D0`` The Gamezone Data WMI interface provides platform-profile and fan curve settings for devices that fall under the "Gaming Series" of Lenovo devices. It uses a notifier chain to inform other Lenovo WMI interface drivers of t= he -current platform profile when it changes. +current platform profile when it changes. The currently set profile can be +determined by the user on the hardware by looking at the color of the power +or profile LED, depending on the model. =20 The following platform profiles are supported: - - low-power - - balanced - - balanced-performance - - performance - - custom + - low-power, blue LED + - balanced, white LED + - performance, red LED + - extreme, purple LED + - custom, purple LED =20 -Balanced-Performance +Extreme ~~~~~~~~~~~~~~~~~~~~ Some newer Lenovo "Gaming Series" laptops have an "Extreme Mode" profile -enabled in their BIOS. For these devices, the performance platform profile -corresponds to the BIOS Extreme Mode, while the balanced-performance -platform profile corresponds to the BIOS Performance mode. For legacy -devices, the performance platform profile will correspond with the BIOS -Performance mode. - -For some newer devices the "Extreme Mode" profile is incomplete in the BIOS -and setting it will cause undefined behavior. A BIOS bug quirk table is -provided to ensure these devices cannot set "Extreme Mode" from the driver. +enabled in their BIOS. For a subset of these devices the "Extreme Mode" +profile is incomplete in the BIOS and setting it will cause undefined +behavior. A BIOS bug quirk table is provided to ensure these devices cannot +set "Extreme Mode" from the driver. =20 Custom Profile ~~~~~~~~~~~~~~ diff --git a/drivers/platform/x86/lenovo/wmi-gamezone.c b/drivers/platform/= x86/lenovo/wmi-gamezone.c index 0eb7fe8222f4..faabbd4657bd 100644 --- a/drivers/platform/x86/lenovo/wmi-gamezone.c +++ b/drivers/platform/x86/lenovo/wmi-gamezone.c @@ -171,14 +171,10 @@ static int lwmi_gz_profile_get(struct device *dev, *profile =3D PLATFORM_PROFILE_BALANCED; break; case LWMI_GZ_THERMAL_MODE_PERFORMANCE: - if (priv->extreme_supported) { - *profile =3D PLATFORM_PROFILE_BALANCED_PERFORMANCE; - break; - } *profile =3D PLATFORM_PROFILE_PERFORMANCE; break; case LWMI_GZ_THERMAL_MODE_EXTREME: - *profile =3D PLATFORM_PROFILE_PERFORMANCE; + *profile =3D PLATFORM_PROFILE_EXTREME; break; case LWMI_GZ_THERMAL_MODE_CUSTOM: *profile =3D PLATFORM_PROFILE_CUSTOM; @@ -218,16 +214,12 @@ static int lwmi_gz_profile_set(struct device *dev, case PLATFORM_PROFILE_BALANCED: mode =3D LWMI_GZ_THERMAL_MODE_BALANCED; break; - case PLATFORM_PROFILE_BALANCED_PERFORMANCE: - mode =3D LWMI_GZ_THERMAL_MODE_PERFORMANCE; - break; case PLATFORM_PROFILE_PERFORMANCE: - if (priv->extreme_supported) { - mode =3D LWMI_GZ_THERMAL_MODE_EXTREME; - break; - } mode =3D LWMI_GZ_THERMAL_MODE_PERFORMANCE; break; + case PLATFORM_PROFILE_EXTREME: + mode =3D LWMI_GZ_THERMAL_MODE_EXTREME; + break; case PLATFORM_PROFILE_CUSTOM: mode =3D LWMI_GZ_THERMAL_MODE_CUSTOM; break; @@ -338,7 +330,7 @@ static int lwmi_gz_platform_profile_probe(void *drvdata= , unsigned long *choices) =20 priv->extreme_supported =3D lwmi_gz_extreme_supported(profile_support_ver= ); if (priv->extreme_supported) - set_bit(PLATFORM_PROFILE_BALANCED_PERFORMANCE, choices); + set_bit(PLATFORM_PROFILE_EXTREME, choices); =20 return 0; } --=20 2.51.1 From nobody Fri Dec 19 17:17:19 2025 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 48685306B30 for ; Thu, 6 Nov 2025 21:21:28 +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=1762464090; cv=none; b=ZpCKWFL5CVbIGkrEEN8vu7yf5cYJzfH32xwDfSqdABzQyJGRk15NlS0CeFkNxPo2AosKSM51ZZnGWEz50I19jrDAP7P+5ZwXj0SZyRQRRdIrsjkbXj/1JowNQttq/7taHYGXCVioi7FJlRqkQ8sLLrIXlYb0CRf3G/k/odhdRDg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762464090; c=relaxed/simple; bh=gQDolCcuD5vIgWYrJOYDk+Yjb2OnvDvhndDe6j5Tii0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=C4scbbikWZQZzV7NpKPQMdd0zvU1W2cKgWf18GK2lb/e1VoMrkeUSAvuAD2DyrBY5nPxtyt0BJkwEcJxGxTVYBmWdsEPGsxnUS0kKUbmCwvff7jMljFmSxRPu8afvcqWXrhHLGJE/fULsDlSxQkyUtfNPva0d1jL618aq1m3itM= 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=fBQIWIhH; 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="fBQIWIhH" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-7aea19fd91cso152596b3a.0 for ; Thu, 06 Nov 2025 13:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762464088; x=1763068888; 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=IL4It3kAEsZc/+9OA5N/VLO1Ag46m6s63x6+w+Fz15Q=; b=fBQIWIhHOZntTRKDfIRCxhUlhUY2OkzdtfDXOLxkT/ImlD28sMMC0M27BP5A1MCQQo 3QlLzufwdZQd1AKVUaY9GyIq5x8zDvaGa38BHLFGHrB6c11j69fvAnuK3Bv6CfGavb5X tex2e3OlFdmdOC9vfvBISATt8j0qkHHgtiwOVhfQfwmHcBZIsn9G70wnWnprRzer0H1o D9xhpFNX1oFq99k9G9bkPNgQhykc6yHYCt02O78jOyJ/ZvVHBFb6UIbzvHbWDfiATFxx EpMRJAWShLfPw4zGk+R6B2qGU7lfR7mA4rZJfv1OdCsNQXA2wi1NvgsVWnXGtzu3QEb6 zfkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762464088; x=1763068888; 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=IL4It3kAEsZc/+9OA5N/VLO1Ag46m6s63x6+w+Fz15Q=; b=GNJifb3q+ALhT/ohAEBR4Fz2fw2YeFCn9iYJuD6cM62brOx1EcZYhFIblTQS+4XLdZ 0P/kfNSJ7/nKw+Y6GCzA7zw297EiH6Pc+IPcn+esQs+Zb8HjrrOPj7Q+0vqeIU1MAc/S CCzuV12Nf4Z18SCa4+93HWPxpVIyKGHslJP2zKjxORpF4QlOcFFuA1MPPClXYgrxcS5p cFT3uau/gURev52qfUgBWC2gTeVBLuxWcbjAKFyyHmh5g/6sfx8xEqZebU4jhEs8jqzv kDF76msOGE78T4bpSQRvVyHqrLXQmifE6NagsSEdgAM5OmtwqNcFBWlEFBwC7T3rQZbt tPYA== X-Forwarded-Encrypted: i=1; AJvYcCVXMtr4s+k2+0lqsnwTCjQIEqzLt+QErl1NQliz2gVqkjujf1PpJyINbCAuoZsubP/PSu/lXc0Xa6I2Y50=@vger.kernel.org X-Gm-Message-State: AOJu0YzZu3qAN/7SD7tVzoI9e1aqjtFp9G22Ti0jmKbCqEIGfa/5a2QU +dHwB8286ISX4cqzZiqpYHrd+RnemUBQp+An7bZ0JmSupH9ZWO5E0ZJe X-Gm-Gg: ASbGnctg4BCThUxixbLYaIBuwb3BBPG5EEhqteqS1YKDTuuFg+iZT9HoAwypt9fE/b8 jHKILq4NnozxhlktMzQYEbJQtd2Y/hdq2fcM56R2dSFlgHDxIFJ0AMx2N2qKCJILwDWAXY00tiY Er5FfNnC0qV57YSZTMbBMKF5sP3Q/EbJn/AIFgW5A7o9UztH7t0fEw+N4UQcLqCBZeqrk7bL1mM y2Jvv0NqAsSIHvG8laJpn8yEAFqpB8YmfBX9PCNpNVoQcHU6tQOGIRl20QOnAZm7bevvxwvET7G lcvPyAgVo9IyqpoJ3Dxad0yIg6jMT26AEEcn1b6n4+z9Cqdhjy4Cn1EFWnM/KgIxoLv3LSEpIO6 /U3d43XM8dI5ZRAxojVRhlsm3WSrI94770Agz461pCvm4xLJcXkgkYsqVNk83aj2Ymui4DfNGjb eWdjLq+hafDnjoPrIs1XsC+5hZCFi5a8m7grJVIsDHmfSTZZipR3msmdWAajyStnQZ0RQ= X-Google-Smtp-Source: AGHT+IGnZ3ioVBRnnG8un6BDnXO8Duun1EVSqTxxH6SbHC2rrOCyZqeAC5RipHrEQAaoZitkIkBHEw== X-Received: by 2002:a05:6a00:17a9:b0:7aa:e5f2:617d with SMTP id d2e1a72fcca58-7b0bdd76f66mr1178498b3a.30.1762464088459; Thu, 06 Nov 2025 13:21:28 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Nov 2025 13:21:28 -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 3/3] platform/x86: wmi-gamezone: Add Legion Go 2 Quirks Date: Thu, 6 Nov 2025 13:21:21 -0800 Message-ID: <20251106212121.447030-4-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add Legion Go 2 SKU's to the Extreme Mode quirks table. Signed-off-by: Derek J. Clark --- drivers/platform/x86/lenovo/wmi-gamezone.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/lenovo/wmi-gamezone.c b/drivers/platform/= x86/lenovo/wmi-gamezone.c index faabbd4657bd..bea4d2024628 100644 --- a/drivers/platform/x86/lenovo/wmi-gamezone.c +++ b/drivers/platform/x86/lenovo/wmi-gamezone.c @@ -266,8 +266,23 @@ static const struct dmi_system_id fwbug_list[] =3D { }, .driver_data =3D &quirk_no_extreme_bug, }, + { + .ident =3D "Legion Go 8ASP2", + .matches =3D { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Legion Go 8ASP2"), + }, + .driver_data =3D &quirk_no_extreme_bug, + }, + { + .ident =3D "Legion Go 8AHP2", + .matches =3D { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_VERSION, "Legion Go 8AHP2"), + }, + .driver_data =3D &quirk_no_extreme_bug, + }, {}, - }; =20 /** --=20 2.51.1