From nobody Sun Feb 8 01:31:04 2026 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 9623C320CD5 for ; Thu, 13 Nov 2025 21:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069206; cv=none; b=mC4lTMs+uUF915w9FXHKZ1VqWhSZJGolvHG6QMhVpCU1GPL62+1zHi52OLuLXDS6MdS0n3QSVsQ2d7mZ0os2xUpb59bV4tUR5EUnAAwBeIX5JrfU8sijV6DXJJQ/Qfk4lWYIIEfyWqVvY8QNRzRwceba2NrsJP2m5Mo2zWevSfI= 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.215.182 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-pg1-f182.google.com with SMTP id 41be03b00d2f7-bc0d7255434so841564a12.0 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=pyA29oQ+m1koF2CEOkKnthlJU1aNUXA1nksi/FRRS6lopRkaGDs8xtx7RuBAjmGFly pxTJmCoO6KP00AtXW/8hqLVDeerXvVFevhp45snfG98BvHfc2DM1It2705PGorX3H+FV 9KUqekBL7nwAI+EGySf2PAhtFrN2RqzTTwugiH3+JlHuiQt5rdxqOU2s4XVC2hXx+lHB znllkmM74m+pmd0crzhXsz5v1HSCLXzcCyN/T6ufkcjcQCnKwYaL8L8f5+8hAVWX31Si DXMRViayhaTu2vgdpj8/aqVgzLMmavoSRE7Y24g67ukigNzmXxslxk7eD/Fhdzb41K/P ZnSA== X-Forwarded-Encrypted: i=1; AJvYcCU4I+CCSCJwbRq0xowoFGMNdfwjy29mlulYmk0tAoft2qCSIDZJa4w1P5xfebeKv6RHTBazONC3FgDzfe4=@vger.kernel.org X-Gm-Message-State: AOJu0YyefCdG2drum2ik+yTQhxTu5haVTS/ragwe+9eYuSzxORd5cddu psTLg0zYXvKpptE0tz3lX9Fh/LXHhkgJHA+8qC22dSyaI937hnCJsKy3 X-Gm-Gg: ASbGnctlTSevlWNqYO4ix+X+LHku5veYGxXR1a/Wc+yRTO9ljTf4ddlkHNWnAIgzCOv xjWmVxXt8sFcsa6CgofkvPp8oZkWvSuFZIfzrBFxkvabDtxDGqUlO4GmuVMbj4SUV1O2BSYYVUv 4T8bhk8h9KtDnzikZXAsWHBq5oWhxavP4VyJELFqLVTGYz3m0wt9hEAQHhxFIrxeEoBzEBkr/Vo 7hDLwIbebf8zxvh8t2AZnvvSdh2zwBh0DcXJN7odBHPXncVYtySm8RUJy4sMtS9nbRC4kBabw6l HRUKCELprIAVRf7438w9M+ROCx65+Op+f+gvLTnwvu/G6PBnj8jFaJStRwl2U8YKRBCVIApeOpt rWTqzvLEIOXZLDDW0IpDd89JB7oT6aB+6MAUqPzjFreMhL+Rb9pp2o7Qm8TH2sMpx3RNRFCQFnI 0uEcNAQ2IHplrylNkGVW6UbTpD6deg3WokUxrcJt4M0E4N/wvWgu79uHhTLOg6KIbVw/M= 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: 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 "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 Reviewed-by: Armin Wolf --- 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..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 =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..aa1dce05121b 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_MAX_POWER] =3D "max-power", [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..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 */ }; --=20 2.51.2 From nobody Sun Feb 8 01:31:04 2026 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 409393246EC for ; Thu, 13 Nov 2025 21:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069207; cv=none; b=WHKTrqvhOC7i/mCjehk3GlX3n/a3PLvHqbF0b0QQ8NudCBoNfz4yKqBDLOF1RNbkmwG/266OZKdpKP+G8O85G4938RIjjBHXk9kr6Fgi7ihha8XvrUVJ32YTP/53XuLUWGvjfxm0m5w5tOTixqQWvUtbrNUm5jkUF4XtaECyguM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069207; c=relaxed/simple; bh=bINqTcYBnpMiA8eKDMIKE2dhokiXwzdMKmoocGJBxvY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IoN4X2dHDH0Zl5uVJiJq6j+WMjyzq5S6G93l/nY9gCiSn5/s2NPcJPjHa7WDC1dlgT34UD0HB7+zP5YbaXgmiTE2dLqA0SAq+o0FFTQEMAf9WBV+OEp8cpiDuZlIn2xVurslck+Qs92sPLebLzAeBFD5QhKOJi/ctDr/6sm6MD0= 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=Tm/zOQpQ; arc=none smtp.client-ip=209.85.210.182 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="Tm/zOQpQ" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-7ba49f92362so265880b3a.1 for ; Thu, 13 Nov 2025 13:26:45 -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=ETZ2FAyy2v+yzymxyjsZFHVgNltj1Cngjn3GryQ+ajM=; b=Tm/zOQpQlcIUrmG0+jB8yc4M8iTsTuc8qRK1RnyS+fcLs4P+5RVKq7laD5rI14Xdq6 MkGNF5nD+bsi4tDZM6qzotwBAqcJvuompcQG6GzAn75Izac3+mpkBvPpgGRKsAyK6FVh JpA4hPrr+ihhxD+elLGZRa3qmPS71kV+rZqRPU/I8u28UG+V+nm1RpWPG6YEDxLt85hB yZd4XCmh99WIxQSufm1HQ5E7kE3pNlMftiRTq1cY/c1UQWKBz00LsjP/VUzG8AEPszOZ WL6dxvIJrD2d2TmmoPfs9TN/kW5nfPK7EYXZcuqbr0VdS01aPtMNfLgLEla2lez2XJ5s qNtQ== 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=ETZ2FAyy2v+yzymxyjsZFHVgNltj1Cngjn3GryQ+ajM=; b=f3FbMMMQvEq6wOpZN/7TDSwAoWXUaDB/OzomJRxeU2Bu0XHlBBXp1c5bgI28V3hXJ/ kcGBSHrfQHLOH1MYPZdEc3ADJWIIXmiyXk0XcAvTRHXNlyqSKvtA1YgpuGXRX3kGgFsW IBXPnDJ9ZAGd03w+WwR+w5JAXj+tnjqCQKSScI0yeNJ2wqVco+Pc4Gt7plJRHDKbpMiF +vlojdTJLijiW6v71VTEDP6bZTjAfUiIzkTMJRs9vTdII6D1YsX7xWQL1Ou+VEtYXTQS vXZsjplIUsRsMsHEgMpky7Ioct9LMKDXS+Ix4zSpuhWrz5zHDPzhAX9fLBNs+Rr9JFPQ g0xw== X-Forwarded-Encrypted: i=1; AJvYcCUDldXLWrdPGH6i+wmaBqUcH++O9dxMG7YVZtXB/rAlNyrQWf1kVqrmY1uhdJvS8rg+SwfSz8PexQPXdJo=@vger.kernel.org X-Gm-Message-State: AOJu0YxijvMQftPajxOliLU4GbTjaQKsKKmODJq/GjZXUqQrlvYHU/g5 k91YdyNhLIduuNufLLpk8ziMyJ5rqDjqd5Pl2YIvBpUZoXOmh6ZraM2U X-Gm-Gg: ASbGncvuKO0CP7qxFGr80+sFwMvZOZLgN743eDuje8mBG2mqrEB4Gwcs/UUfip+YSos VN7enqVKDEETRgMtejFIXq0vynnvbmbzeKutsvHjXyJTv2VEsWb0tJHdngOIe6kmvY8ogDMG8de d5wl0c8uFDOvTn77APJn3n3JB7sESohrqQPXfklnUbu95THxHZdO18PtBk58vpkA5jaVxgmxb8b vpjC5CHZNxBTNuHytUsP0sucH09RJKV9K5vHrq/+p/MnOJsawLQ0OYK/dlBmg4KJZTLz9fTi63Z 7QLFl0IghqWeQ8tUl6+L9CrjiSBoDu8LIPcBCZWDzT1LGCqiA965kdDLss2/ZR+WbUx6uDHRGrd d+bUkkZFqVe9qri9wx8z9lmejTd6LGp3prndMnK5VURPfVJdZi+DRyKset3QdBrnquPwCGRq4Kz c6Fy5plNvVIHQrzRbrOWxi3hdzqT9mH0vzVLkqvis1bPfClKUVWp/0dCaB X-Google-Smtp-Source: AGHT+IGlGHa64m4FUlNTDBrkTzOJTPv1hG5OJIfDH4dSktE6GCpD7ccEQGk4etzbj8JDAyYp5jdCUQ== X-Received: by 2002:a05:7022:925:b0:119:e569:f866 with SMTP id a92af1059eb24-11b40e8ad2dmr366548c88.3.1763069204472; Thu, 13 Nov 2025 13:26:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 13:26:44 -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 2/3] platform/x86: lenovo-wmi-gamezone Use max-power rather than balanced-performance Date: Thu, 13 Nov 2025 13:26:16 -0800 Message-ID: <20251113212639.459896-3-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: 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 developing the gamezone WMI drivers, "extreme mode" was matched to the performance platform profile and "performance" was matched to the balanced-performance platform profile, but only if extreme mode was fully supported; otherwise performance was matched to the "performance" platform profile. 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 by using the new max-power profile to represent "extreme mode". While add it, update the documentation to reflect the expected LED colors in each operating mode. Signed-off-by: Derek J. Clark driver Reviewed-by: Armin Wolf --- .../wmi/devices/lenovo-wmi-gamezone.rst | 31 +++++++++---------- drivers/platform/x86/lenovo/wmi-gamezone.c | 18 +++-------- 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/Documentation/wmi/devices/lenovo-wmi-gamezone.rst b/Documentat= ion/wmi/devices/lenovo-wmi-gamezone.rst index 997263e51a7d..1769ad3d57b9 100644 --- a/Documentation/wmi/devices/lenovo-wmi-gamezone.rst +++ b/Documentation/wmi/devices/lenovo-wmi-gamezone.rst @@ -19,27 +19,26 @@ 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 + - max-power, purple LED + - custom, purple LED =20 -Balanced-Performance +Extreme Mode ~~~~~~~~~~~~~~~~~~~~ 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. When available, this mode will be represented by the +max-power platform profile. + +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 ta= ble +is provided to ensure these devices cannot set "Extreme Mode" from the dri= ver. =20 Custom Profile ~~~~~~~~~~~~~~ diff --git a/drivers/platform/x86/lenovo/wmi-gamezone.c b/drivers/platform/= x86/lenovo/wmi-gamezone.c index 0eb7fe8222f4..df475e52f79d 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_MAX_POWER; 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_MAX_POWER: + 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_MAX_POWER, choices); =20 return 0; } --=20 2.51.2 From nobody Sun Feb 8 01:31:04 2026 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 2C7F73246FE for ; Thu, 13 Nov 2025 21:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069208; cv=none; b=jd54I41Oj+S5R0YuQBkzBqsZQb2JNoriK5BsG8CnZAKLEthXkDWMrvp50enH2vjN/g3oRrKO9pTIsP6l2H0okPBhwOn0TFMZZt1h/eqTKLAklTRUGeV/aEvrRL0g7D4/vnv47WyaSPm2fNWTlxUrFGfDSm7Ke2mdsNIqAUApcMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069208; c=relaxed/simple; bh=EAYHD0uflfQd6sszqckCoZM9plV9potl4DoHq6i9A4c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sRFf8UOHr6+KUl5qhC80p+gY+tcgWtB524ZwB7KL1OfwAd7GUQGchk4PdI5OQF6w6BrnvC2VLFM3z8lOLCxnjbgggrxtnjI6uP05zHDxO8jSb3qOnJZsym03QMBubLX3DuLVgh4kySggHF8QOGa8phTXVud16XK4rz89+fX92rs= 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=SLeo9aAX; arc=none smtp.client-ip=209.85.215.182 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="SLeo9aAX" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-bc09b3d3afeso809427a12.0 for ; Thu, 13 Nov 2025 13:26:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763069205; x=1763674005; 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=2SI5IT2ccA/LcmNZQUHmcdI+iq0zqrTHDtVhV8fx+VI=; b=SLeo9aAXvz8+jnJn+Ek+oV6/IpdfpReJeK6ysMpgYnJH5+YGaMaPuaU7pRv161/0fH 6cD5fybdcAOoQnIFr1sP66XKYxAJNwq2OFRZzsrLpUZvbY7E1JWx1oV9NCFkaQzW03cR g144UbZXLtBsqwtilem+qzxqRJ1JcFGou6vU8XH5MdW8vm+KNXeCJURweMjcy6kSCVGt drzF539RFvBIWkUynQrjuKVrwi6x6O6kmtmLBwhdKRptbwlbAzPmzdJ/btdQNcsauhiy F+vTKj7XaLjBd6I4FnG6h7/xqEwHcV5porkrSeKftdFATtZp8mj4Rvz9wvPG9t66y5m/ i+JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763069205; x=1763674005; 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=2SI5IT2ccA/LcmNZQUHmcdI+iq0zqrTHDtVhV8fx+VI=; b=IIcAvYsfHNhAsGcgLDBH1FNZxNU2cVhx+4VffgPhQje4Q4MekSZGwyoLTpfXrMB1bw at63EIaJHEOTNigRv9kLSBTeK1mE1f9zcxCLt+a3/zEbxWjt5kOkSbva9wBD/NoKUPGe ChAYQcyv2Sbh/Fbj+DuVqwUz91d33lm3pPzIeM2lLWq7raXzJaCtXALIZJpF1KWbAOdb YRp9hF4ZnwEnhJ71Iys312cmAJVqwTfXlOlZfcHJbNnAGRVZgc4NwHwEnU043wl1Dn9j r3S+AEHaa3ZhLMNAtx3ES0Jt2NivyWzgsXXaGAvFoNs861LmUmsXEaXFsyf+mzsTW+kw JNTQ== X-Forwarded-Encrypted: i=1; AJvYcCXB4kfbqGTKxHk7S1P0lLvTTLuGAy3l92Y43ni6jZvrqUZ5RIG5nO78nPQJ2v0IDS0u5nguKKzEpk1GUs0=@vger.kernel.org X-Gm-Message-State: AOJu0YwzO7JB5SYp+FxDXVEMaJ3OQErENzs/xRcLf3MteJuqabZ+VOpP BE3n4m+HI8Hlmw03oRff4m9kSrlJD/n8U6n5tXloJZT+7nwAU872NjJFKa6RuaGU X-Gm-Gg: ASbGncvPDdqEPw5qPAjLxfELKKZHPE8duMx9YKMg6BIfm1TUx84XfPvgDFzuCKiaqsS L6bBD6HNULICStq9xGtUgQXxtYzY8MzjfFVLFn4pMrCM0vM+IYrTLkGr2RhAdY66tldDqbQIsLU OX3Xk5Sh1ABPJmHjKcmlwARW7Vtxc+a19dPoGl3/a9PYLrj+wKPImCLIJQgbuv75NIv5qfuRHJE raOR+yamPwMZu6cgzdOu9+ELQbIlzLjES4/I1n6SEvXlwTcLk667utveiHf/jUosAuQRIpLdvEF E8Pl5guLNHWNQt0MjiW7Hbt2nxqa+/qZEdC/yn+exN2afSgh8uKDvBJfheUer9FxApHi5rA9HvB ePCUEjOVajLhhaGMOOm+wlV1Vg0vSlLxylGuwG0qqB0rtzF9mK1XfurcfcV/crUTtp/2cDeS2ew 6sRobtjjGHHrGx0Q/qtmbYs3Oaja5AG7kPHmeDjtQ3k3dzKSzsOcPQoZmA1eLC7eYyJXI= X-Google-Smtp-Source: AGHT+IE4bqe47dgeG8a0SwzrDMd8To6AhA03KdcpEfj8eolNH4fytB9FGHHkvfol2Cp158xttn8Vgw== X-Received: by 2002:a05:7022:1581:b0:11b:65e:f6f with SMTP id a92af1059eb24-11b40f98007mr318605c88.14.1763069205472; Thu, 13 Nov 2025 13:26:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 13:26:44 -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 3/3] platform/x86: wmi-gamezone: Add Legion Go 2 Quirks Date: Thu, 13 Nov 2025 13:26:17 -0800 Message-ID: <20251113212639.459896-4-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: 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 Reviewed-by: Armin Wolf --- 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 df475e52f79d..381836d29a96 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.2