From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 67DF7322DC0 for ; Thu, 13 Nov 2025 21:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069205; cv=none; b=fvdebKkVnry+8QzOmzDxhUZRKVS039LDPBH40pnt+JZR/lEy0lLKD7rwKARBCIrzhBukHIH4fWMdcvLftY2kVZvQzV/renTC09AZMKmo6Y8wWHPVZS+cMpeAgatah71HgJwQp9qvDfqTXXh3wEErovWEMy+NxFaxODnQFwaUewQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763069205; c=relaxed/simple; bh=75BuXIjGpZny9CJyYZ3+cDjv4Td/7jryzbg1I2bUBp8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZRPvypqgcApBeS8ICTL1+EdaJwjP8cqdz/trBOP/A0oNLgDD54ASocyoFPzgn4GLapznKtKv0AkCEFCTb4a4ZqaHld+iLs8d9sQLWkyZnVjOX7DL+P7M4UzsJEur4NoDftDnKDZbZ+R3HbZjJZXLzH5vJFYJZ3YeN7c2BjhBLh4= 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=BmkL1HZc; arc=none smtp.client-ip=209.85.215.176 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="BmkL1HZc" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-b4755f37c3eso936119a12.3 for ; Thu, 13 Nov 2025 13:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763069203; x=1763674003; 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=Xm8LcnZyr//0nT7mWq+F1YEGC3NfbcijTCKWk6nFZu0=; b=BmkL1HZcTfHeiGfgLY8doTDPzVBx6ymCS/gRBaYt0Nf9adnjVfYTchjtfi0Zhrio2I qt7fsxhCNwypHkWT6CdaY78iCSSFVGHzB8cOhyauEWSkAd9UXHYpET6Ms0CVFvUFs2HC 7e7HFwKSDb9qaTuFczTcvd+tf3bsfP0GWXH5xcmTDF2MXMFmCjB9wrQb4s5qcpQQPbOV 28HoOeonsmF4m0pPxMV9vMJtOYzlyHgXCTkPHaBuZ91DxXDV73bgFCR2z9e/7S5JtnKS edL59PnoWjI7cp30tI/pUIsq4k5y1ADXWQjt2yB7K+6joSSgvBNxm0X5k0njK+CxMyTp oD7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763069203; x=1763674003; 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=Xm8LcnZyr//0nT7mWq+F1YEGC3NfbcijTCKWk6nFZu0=; b=DgyDX5Kam51Xtiauk1jUtWNe5uTw/r1lXWmspVYeBRKuLNRyP83IY6EMyet2zkCtfE qryeS0pFlfb47X1K27ubDn68ubJFJ++6p+6xROlBWKXa14fa431llFHB036Mi8SppO5F J7X/aF/8T2hOBWo2hfs/xeVlcHwiHZ4wvt4KbKeYz5HnJZ6igRFvGdXoSx8WxahgUd8V JYD6VmBMW/226Y7qQmZc48TZ8CHPSjTW35mYsyNYxVw0jX8QWC4XL8aq0UiQw1kodJqx V2+cV2DCJzFxAFgN3cRNv49oTCk8DXyc6B9OLN5iUjN7PyyDPcKZdYu3Su3NGtvEn77p HVLA== X-Forwarded-Encrypted: i=1; AJvYcCWWt7VnM8pyCkHFSUI1iSVjpw55P3L3UjewbeBId+5LjvTy3H8US0AyH4g9hdWJ3fQEcI46wtQeQHatdo4=@vger.kernel.org X-Gm-Message-State: AOJu0Yyh8em6Uhrr4SMhJtr2q81LH9arF0StjGmW3+iPqpsWKNZVbV8A LEc+8Tj/76gDrvazywcfjCpyopMhaA9r0U+9zRviMp8A86DVn1ttZTe3 X-Gm-Gg: ASbGncvnVOKFhFrqDgLSxiJ4JLTojxU1z+1lX/gRWJd6/YmDgdCDZesgnGwPMZ9rl5Y /eTJ6hgAjx9GNvhk2c1IehtG0oyy8tRPu7RViAQ8YEGpymubMAIIjUQmiV9kd2lKc5ZicwzHEMb 8P7BtwKSDa4iJ9YZxiZiCpfZexBehhTPaV4lzP6Un2MdW2z9VkTz/Y0qQmdn27SHJTcHKbynOtf yvFfojbECa6mhQIh5Ldk9zidvwMr0yt3By/5eUmf5TYp1puGP+V3pp/wqrG3ZwUUANCFL8x79YW Tp95CcfB8BDQwNWVUQfqaeraSIcoKhQrSA3o2afMu3RhFyP5iQURWQJlj3Y4Gu0gCQVz4uV3Ouu ahU35YR9LVz/SLl/rVe+TyTWgYEABH3T4GrlO1uxKNkD5LeQE3bbMsT6uzpQUT4UtJ3G0DpE8mS I5E8JMSw6Nvj+m1JDPrEEOI/bbUd2nTFK0BPdfUt9MqQx4UkZ+kLorB6hP X-Google-Smtp-Source: AGHT+IH2ppKVKaegleIFYp2CPh1L2DqmyfOwakV0r/xJMX47RxpUdSR1jy5Z+Tosq9kSQTZd5Y8Tew== X-Received: by 2002:a05:7022:69a0:b0:119:e569:f622 with SMTP id a92af1059eb24-11b4150c6aamr292336c88.27.1763069202522; Thu, 13 Nov 2025 13:26:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 13:26:41 -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 0/3] Add max-power platform profile Date: Thu, 13 Nov 2025 13:26:14 -0800 Message-ID: <20251113212639.459896-1-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-kernel@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 --- v3: - Rename the vendor specific "extreme" to a vendor agnositic "max-power" to better allign with the "low-power" platform profile. v2: - 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/ *** BLURB HERE *** 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 | 1 + drivers/platform/x86/lenovo/wmi-gamezone.c | 35 +++++++++++-------- include/linux/platform_profile.h | 1 + 5 files changed, 40 insertions(+), 30 deletions(-) -- 2.51.2