Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 C95E8335559 for ; Thu, 27 Nov 2025 15:16:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764256575; cv=none; b=PmjYyPe7bZ/3SwMIkDisBtymvXW7bZ7aWcVLL/dWs2rwECpi2l4yGLcAJccPym3GFIWbg1khGpWnUkq4ySChuu1poqwqj+O962AFrZRernNvLs0RBLV7xt1CI1BKB+FuGyLj/DLZw6gruKoDFEeBtmyOYS0Gs0KTk9/iUYVPusM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764256575; c=relaxed/simple; bh=WwMLobnu+D0efGsATUA1Gw89i4CUGPUY5A4C7NZzBs4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FvKJHOG9x1QwBy9PSlGbZs7H8QBVw7FhUd9dLF5kfppYKLAAAaKMa84bxi9U9JOZzdZB+IAqhUzgnPc0g5esv19Aqd9q52aN0laf263LVEU6oyQ/VJWcfzNKtjjI36LvCFDQndy6+qAb3XKRI/P5LeXZezNBeQuxKOgoPDjrwV0= 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=S+Qb/E96; arc=none smtp.client-ip=209.85.210.170 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="S+Qb/E96" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7bb710d1d1dso1445719b3a.1 for ; Thu, 27 Nov 2025 07:16:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764256571; x=1764861371; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wiV6R1vlmXrHgZfzQSWNBuKjhfxpu4gsWfPp8c9V5+4=; b=S+Qb/E96RUGwTiXOKPv+JVk4LtO0oZNNbax9UqzNGOQ/l0OaCH08U55IIbwl0DgfSy hpwAxibRQpMYEVU1TeU/uMhqL9HoFfdcpERnvhN9lCtIn2YIayUxPlloK7nORKmdtHYJ bWkJee1MXc8O2T33Kw6AhrlnPuoGXky94Vg+rGYX0zyGg631B95mpMuF4Nx6wgai/6Z4 EwA/urk6sSs2JJpc1ypADKLLmve90VGJJBDCbdJuD9X4rtRCYY45d19N/WUflNVmz3xG HD7nTpE19wOmbcgKUkFzojhANw+GI2oFPcMt7PLFokVIKTJhzxU6Gf9RnMID42o7Wt/H JCNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764256572; x=1764861372; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=wiV6R1vlmXrHgZfzQSWNBuKjhfxpu4gsWfPp8c9V5+4=; b=ISYhEf3vMKpOi3A0CKKXUNfrIVh9CSWBqZ5n8ohH++mWjft2t4v/kJALf/YxryBujs p0ixfPooa3S9yiIAjsjUV7sHHS/uZiGrO+4PiCbfCYSV83T1CmsYi3wB3rR2d+jkVFpN oY8vyICd+fsqTNxTZZqxfdNvuDxUBFOHhjOnhdE/Mj7Agr0BbU7rsqGN+Rkajiberor8 i17a5i1irD2yhw4fes3NTtkPjAKVO1Ib2ZAh2QblOm1kAKggYVHCCX2yyEfRBpEMJt3N 36dRhq81HpRz1hjpCkEsin8ifWDFYjIvaJpKhl5es9tkWnX5umqtVci39JaQ2kiEEX9Q gN2Q== X-Forwarded-Encrypted: i=1; AJvYcCWWEgv6jnIGqdVtlLvOE9lGSqvMLrbahilLsMlTOc15/FjvEoPAxCfB69E1ndNS0BJVT1d75UVnlodo@vger.kernel.org X-Gm-Message-State: AOJu0YwkE9q0ei2NuUMVNxPXETvo/kRQuxoFVp49CuP8a07/ypgDG/zn aWCs+RNcyFFDxLy5AXKMwuhOMsz6yItBxdn92WBBdulKEeHjk7jM6UoI X-Gm-Gg: ASbGncszACQMmnquef/Dl4pHa4ELlhmthhZO3888Av1JC6m212WeSHz5ShWVxW0Qp51 ZpogkROF96wVLtiiWZoqg0FU0SS4Y7J5jKFJmdkqoi2ITrHwKJW87RS00T6vl8J61g5cLXYC5vr D6YymVsXHX2XaMoJHPG874cQ0fs4AUGDeUYVzOedjuuQWdYmx526K40TQY/V2aS7gcRYfE9YTny 1pA4gvgPPn3aRSSgPQ187CDIxsDxoGXumk8mPZ+4VNNXxK4qDwp1s49uluLDAdvYZj2e5TQe064 X0HJenw5vEXqLkP00i2alYS7IExyu9Q2seqHKCFLab1NC1Qlr6G134nWhBxMVkwKBkqOESOSMfx AU7Q+m7j5YRbs4ChFuY35AYo8FX1TqWp/oesj+S3cKF/t6sB2eE+7d7+Q6iAZwEeT70OGC+YmqE YxnzhH8twqEzbE7rzJXjGr7Di6CvPdbjzxwON1MUerkwPvyxMINDIbQBltA6KrPDKlLuM= X-Google-Smtp-Source: AGHT+IFd1tsj8i1fuFllq8M+Us0CAnfM9u3urHFsNyMVndTLSc4t9XxvGPy0JyQPnwq9EIFp2b7Ksw== X-Received: by 2002:a05:7022:e01:b0:119:e56b:c74f with SMTP id a92af1059eb24-11cb3ed2996mr8778050c88.20.1764256571336; Thu, 27 Nov 2025 07:16:11 -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-11dcb067088sm5099656c88.10.2025.11.27.07.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Nov 2025 07:16:10 -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 v4 0/3] Add max-power platform profile Date: Thu, 27 Nov 2025 07:16:02 -0800 Message-ID: <20251127151605.1018026-1-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-acpi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds a new "max-power" platform profile mode and uses it for the lenovo-wmi-gamezone driver. It also adds the Lenovo Legion Go 2 to the extreme mode quirks table. On some Lenovo Legion devices there is a thermal mode called extreme that corresponds to setting ppt/spl vlaues to the maximum achievable by the cooling solution. This correlates strongly with an overall power draw that exceeds the DC power draw capability of the internal battery. This mode being mapped to performance when extreme mode is detected as supported, with the actual performance mode being set to balanced-performance, has led to some misinformation being promulgated that performance is always a bad setting in Linux for these devices. There is also some confusion that the mode labeled performance in userspace, which corresponds to a red LED in Windows, shows as purple when set using the hardware extreme mode. I'll also note that as the hard TDP limits are refreshed when on AC or DC by the ACPI notifier of lenovo-wmi-other method driver, no special handling of the battery is needed for safety limiting extreme mode. Signed-off-by: Derek J. Clark --- v4: - prevent platform_profile_cycle() from selecting max_power. v3: https://lore.kernel.org/platform-driver-x86/20251113212639.459896-1-derekjohn.clark@gmail.com/ - Rename the vendor specific "extreme" to a vendor agnositic "max-power" to better allign with the "low-power" platform profile. v2: https://lore.kernel.org/platform-driver-x86/20251106212121.447030-1-derekjohn.clark@gmail.com/ - Drop patch 3/3, keep extreme mode quirks table - Add Legion Go 2 to quirks table - Fix nits from Mario v1: https://lore.kernel.org/platform-driver-x86/20251026081240.997038-1-derekjohn.clark@gmail.com/ Derek J. Clark (3): acpi: platform_profile - Add max-power profile option platform/x86: lenovo-wmi-gamezone Use max-power rather than balanced-performance platform/x86: wmi-gamezone: Add Legion Go 2 Quirks .../ABI/testing/sysfs-class-platform-profile | 2 ++ .../wmi/devices/lenovo-wmi-gamezone.rst | 31 ++++++++-------- drivers/acpi/platform_profile.c | 7 ++-- drivers/platform/x86/lenovo/wmi-gamezone.c | 35 +++++++++++-------- include/linux/platform_profile.h | 1 + 5 files changed, 44 insertions(+), 32 deletions(-) -- 2.51.2