From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 EBDF4254AF5 for ; Sun, 26 Oct 2025 08:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761466367; cv=none; b=SpIfbgLGPpRwYxq+qzCZBJQGJqN7PRidG//i5/+jY7eK0fPZjC1BwkdOcbNqYZ4HSyjD0q7LJPn0hEyWLacLF6sz3MJ4xkz9gC21Q6CxLt5PE8FuRHVfnLqOQkAFhYoHvgyRyYVqnEa5bquGrdbCk+ZvfcrHZdhqZno8vakPZAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761466367; c=relaxed/simple; bh=NxNRdz2kuz1Lcq3kjc00zlm1uiFMfJ+3oQgiIquoeWc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eQx61laxRwkp7bofBHGcVr1T0ssncVeA2ZPQbZkm1NS/i+YhxnLauFpXP1ZN5Xw117YN5JvIwsb/qTcHP79Zx68DzC7kdXct0GTtcuRcImfTiFJ6Z273p2zOVFSzJ4JogOKcN3wPTRUodf/vupcwvflNug1AhLwoGDxOZ+Mf/gI= 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=MbSMgmSM; arc=none smtp.client-ip=209.85.216.46 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="MbSMgmSM" Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-33255011eafso3390010a91.1 for ; Sun, 26 Oct 2025 01:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761466365; x=1762071165; 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=LZv9rWuJDtiDJIpWUG6ZeOUE94UmXgPwVE62OaqiiqI=; b=MbSMgmSMMqxpBnCnQAjb/QhT/jJAwUBHLznfRwR85ti2q90+HjftoxyfU7AJ7qx+yl IpOQaV1vb4QM/JTuk27kpFtNS5jbgQW1xYVa/WYitjjsWERvz+sahHUOf6mpiQkBPqSA Ji+vh1i63K7rLN2SyfgLCbHV3wIR8YmZAnAIKhwB87v3LxtDMYDD2J4x/WFa+v3OaQmE 1M9UIC6CyTv8Yha/CLtAIrgntpehkQezYDK7vozc+sc69fl7+KsMPFOGnuQw9FldHJ4d fZslJtZvD9G3gpN9W+H9EiV9ptdP1Jb6bcQ0gquSh4F/4nTB1VycWpl6rUnpg+UcgrgG 4jNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761466365; x=1762071165; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LZv9rWuJDtiDJIpWUG6ZeOUE94UmXgPwVE62OaqiiqI=; b=t09qJye8k+pJlvOiefKleP5gd+K3c1eLXURV5UH8gCW6z/c1vXUlBs/iBAO/lmj56k GRWvTBSTPAVf/md20fNu15iWV5pXcjiVCLUO3Ywjuc01Dcfv7zLDWV32saXeN6BpM4w2 ViH1ycBWRkoQvFNyf80GTfxcjv/PNylteD5VEQdbc9JVc5U/ZUsWZkQglnoVB0OsMF3B EsTYfKF27BPf+PDzKdkommEDwM/g/nLRfz1XDTSUDHQhCwZM97fjJ28nH7LtAE4O/D9Z he5piegp6g/LzYwu5mcpJQGTFELD8a+OJ5+mNcGQ+l9vJi4Lh76RbvnwXzfeT458l8Cq 07Og== X-Forwarded-Encrypted: i=1; AJvYcCVpAMyYnFsyEo423WQEO1joFshKSwgzBtjaSOKk0xmggbUzlTjMraQoIy7tFtYvfSDKkyoXzLzcdT7Z+x+vlvYfkteO@vger.kernel.org X-Gm-Message-State: AOJu0YxlVL6UoTQ3d6MzKQEgL01SgyCcFiyOFA4FMxP6Or6zJ9SKdcAT SdT1HBujWGVnf4hPcR+8jZ84QvO4WIuxsIEU8XhXEDFDynsxxxcJb0tU X-Gm-Gg: ASbGncsuh0GQ6fYRcA2JDBXQcvJjuqMX3CGQe6Wsswn9Ayf06PRhZUlJ6zduA72ai6f 0j2Pdnfwq+eTEv7RPSivDKHlSYKIjpeUJ2ZIVDqM1k9v5aAid7J1DcaHzps5lYx5IkDufBPGVhx U6ZOnpmN6am/wfjc9SbwToXkgJp+W2HTvudjuqq3ClVOQjb/PBoasNQGKbcnmMW2qcxSpXtSwQj 94kCPgerchbARj3dV5YWDFWsp5mKyhhPAOV8qS7Y/CQonWI4+hOdVAVpNOkryJq6Ml4CSfOHK4v zAlJduCOxKtNpTPvEvkZpN/zfvDeM65NGd2IsEphD81uiWu9BPUtVtkb5QOPEO2v9ThFU9YEW4p 2NVDI7AE+ivffDUh3YTUEkNdxSctPob2UY/ZE5z7QOl+lsbkSw8CnGfR7Hoglj0KTj2rAMsedZ3 uMkI+2zvJBQ5fnfumxeQpGPtDRiFBvIWsJkrXvXmALVIr48V3AybROkoIL X-Google-Smtp-Source: AGHT+IGzPsm30Fd8AKfchIORpRn/v/MRrF3xbYiFaR1pMFQjvxS+JL0Mejj5JuhfnPngYzQEtIzCjg== X-Received: by 2002:a17:90b:4d0b:b0:33d:a0fd:257b with SMTP id 98e67ed59e1d1-33da0fd264amr30507244a91.36.1761466365050; Sun, 26 Oct 2025 01:12:45 -0700 (PDT) Received: from bliptop (108-228-232-20.lightspeed.sndgca.sbcglobal.net. [108.228.232.20]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33fee8014f6sm2374654a91.0.2025.10.26.01.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Oct 2025 01:12:44 -0700 (PDT) From: "Derek J. Clark" To: Hans de Goede , =?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 0/3] Add extreme platform profile Date: Sun, 26 Oct 2025 01:12:37 -0700 Message-ID: <20251026081240.997038-1-derekjohn.clark@gmail.com> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds a new "extreme" platform profile mode and uses it for the lenovo-wmi-gamezone driver. It also prevents bugs that are being reported by some users by switching the current deny list to an allow list. Currently there are no validated models, so I've removeed the unused quirk until something is added to avoid the warning. 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 is stubbed in multiple devices that incorrectly report the capability as supported. Previously this mode was quirked out for known problem models, but I've since got multiple bug reports of additional models that cause issues. Additionally, 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 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 this mode. Signed-off-by: Derek J. Clark Derek J. Clark (3): acpi: platform_profile - Add Extreme profile option platform/x86: lenovo-wmi-gamezone Use Extreme vice balanced-performance platform/x86: lenovo-wmi-gamezone Use explicit allow list .../ABI/testing/sysfs-class-platform-profile | 2 + .../wmi/devices/lenovo-wmi-gamezone.rst | 18 +++---- drivers/acpi/platform_profile.c | 1 + drivers/platform/x86/lenovo/wmi-gamezone.c | 51 ++++--------------- include/linux/platform_profile.h | 1 + 5 files changed, 21 insertions(+), 52 deletions(-) -- 2.51.1