Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21770439rwd; Thu, 29 Jun 2023 22:42:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlHpsHgSOdY4jAyZWUQXENqPR9p6FuoaouhsEQz0eUSdLgMRyd9eB0xng+e55g63/xw+0v7H X-Received: by 2002:a17:902:ab81:b0:1b8:21f:bcc2 with SMTP id f1-20020a170902ab8100b001b8021fbcc2mr791487plr.34.1688103738314; Thu, 29 Jun 2023 22:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688103738; cv=none; d=google.com; s=arc-20160816; b=XBNxZjiTJcjV/jw+UbfvyF3YvwHsmL04NwHlJAT6G07vEDfKqUbUbJOjHsNX8WmHex n6wC48/lb1Oa71Wf3+NR72z2oq/+GT0wr/EIV7ElFkMxJYYxImo2dA1jlUevKE3EwREF oD7FrUQHL65xa7VhxjIXlfEDZ8SISSDNOVw1tcPVdPiFOmlXj2GTGD6AxFDhT0OXkBJD bdQk/QCDa07Y4C+URiWrYIGxYS+9zNQZQgvNjAVRf/D42Bj7qg3JLOc3tJ9sp6enbzv+ b0i7g3aorXC/lAY6B07pQtn59QY/NfHxskiEjWtXA5rwSwOvAESf7fwMy14b4/kK8Tbz eqLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=MYM7zcS68etgcFaROVR2fVfdgFG8CJYtLYbZNZStSYw=; fh=52RqnqzHFu3c3gS8VqgRtcRPBRgGlf5eGe8HkjfR8FI=; b=YD9JW2XVvwXISSyrPQu1A4/UAVKZfrntXTq6KzKxP7XFe5gzrjXJ0K9/wigMzRNAvs oOPE2Zn5Ovug4Cadmmnvj5KX3gUDR0Mdb2pdx89bci0yuK3xI4YeYcX8AWLwlsiZomt3 obYNTCc8Ldr0FBO3b64M9T6ZLm3R58F2LZAEet2EmyzJRbbAOanrX4Q0neGDtQWeEmjw 7ujomsQjpfoInC4ZciV9Bg3It0ifoYnbXxwcX+T6egYzC9OVb3HgyaSOuHGL2fgW9Kqc qU5XPU9wmFL9qDAUppOe7ZAfa9PBpQ3LQR1JzZi9/hpjPp3kndy4vELqF6hvOoZ//ZdJ DJBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=kVoxg5IE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=MuoYYEgk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a170902d50600b001b82da85c5asi5139987plg.336.2023.06.29.22.42.04; Thu, 29 Jun 2023 22:42:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm3 header.b=kVoxg5IE; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=MuoYYEgk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbjF3FgG (ORCPT + 99 others); Fri, 30 Jun 2023 01:36:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjF3FgE (ORCPT ); Fri, 30 Jun 2023 01:36:04 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C546410F8; Thu, 29 Jun 2023 22:36:02 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 590893200987; Fri, 30 Jun 2023 01:36:01 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 30 Jun 2023 01:36:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1688103360; x=1688189760; bh=MYM7zcS68e tgcFaROVR2fVfdgFG8CJYtLYbZNZStSYw=; b=kVoxg5IE+bVDjQxJRo2gA3KmBY O1Gr+TOEjCWAcagetji6lPFPodsYVRadAxkBk4zjPzIZEolWDH/jisqyuJpfZ1F0 0nJa47jSurjcs4Yd3ZT9z/TQAD5UaCRBf8exaAKC3GNX2QIFRGq3eHkTYkswGEHp SvD2vHtFWmIiiY49vVcuemwo/Bkz1fI1Jt1RW835wGBooarN+nXGVxSeaGPqGCMA gA/smpg2SeugeeO78q5TGmps9cxBheNUrbxcslmjg0Qm192Ng1thY8VSXyCa4JSI CiuqnaU3fomQaM2w64ijnqpSjMY79NySXDP0o5kRjDwvIfK7ZQffqD3YNJsw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688103360; x=1688189760; bh=MYM7zcS68etgc FaROVR2fVfdgFG8CJYtLYbZNZStSYw=; b=MuoYYEgkZKG+jnZu6nsXiC0OW6oxc Nm0hdF/XIuK5rSqD0hnvRTIu3NJwb3A+fAEhlPd5fGT2Kh8Uq+3nrTTI58O7+Mns 9eJ2g1iXxLd9dHUdheDX9Pnoi03zqbrY4cVScUVrIFM44XZtEKPREKPXrq0A/jz7 Qoixv2jHtD7h+5b70evRKa/aukbLPlNmZD26bAFocB1EuHrlb8BxSEsHcEmf7fyi 1j+eOXyVy4Sp2lH7lhscbdp3Dfcoi59LN1DetUYG7WdS/qoRkXLGAJCP/r2aMLi8 p3lMoMdHiayKZ32SSWJpYGwKJwsppYl8PU2f7vv7FIOFmr5VIFcTf4Elw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdehgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekredtre dttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhjohhn vghsrdguvghvqeenucggtffrrghtthgvrhhnpefgudejtdfhuddukefffeekiefftddtvd fhgeduudeuffeuhfefgfegfeetvedvgeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Jun 2023 01:35:57 -0400 (EDT) From: "Luke D. Jones" To: hdegoede@redhat.com Cc: corentin.chary@gmail.com, acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, markgross@kernel.org, jdelvare@suse.com, linux@roeck-us.net, "Luke D. Jones" Subject: [PATCH v2 0/8] platform/x86: asus-wmi: Date: Fri, 30 Jun 2023 17:35:44 +1200 Message-ID: <20230630053552.976579-1-luke@ljones.dev> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds or exposes more features that are available in the ROG laptop series. - expose dGPU and CPU tunables for ROG - These are things like GPU boost, CPU Pl1 and PL2, package power limits - support setting mini-LED mode - Some newer laptops have a screen that can toggle between regular style backlight and using mini-LED backlight - add WMI method to show if egpu connected - This WMI method can be monitored/queried to see if it is possible to begin the change-over to eGPU - support middle fan custom curves - Some newer laptops have a center/middle fan which blows across the CPU and GPU - add support for showing middle fan RPM - add support for showing charger mode (AC, USB-C, both plugged) - add additional checks to GPU switching code - These try to prevent a sceanrio such as the user disabling the dGPU while it is driving the internal panel via MUX, resulting in no output at all. There are no checks in the ACPI code for this, but on some newer models ASUS did finally add a switch in the BIOS menu. It is best to try and prevent this at the kernel level rather than userland level. All patches pass ./scripts/checkpatch.pl Changelog: - v2-0008-platform-x86-asus-wmi-expose-dGPU-and-CPU-tunable.patch - Rename the WMI defs to match what ASUS supplied as names - Remove EDC and TDC exposure (unsafe) - Slight change to formatting - Add better notes to documentation Luke D. Jones (8): platform/x86: asus-wmi: add support for showing charger mode platform/x86: asus-wmi: add support for showing middle fan RPM platform/x86: asus-wmi: support middle fan custom curves platform/x86: asus-wmi: add WMI method to show if egpu connected platform/x86: asus-wmi: don't allow eGPU switching if eGPU not connected platform/x86: asus-wmi: add safety checks to gpu switching platform/x86: asus-wmi: support setting mini-LED mode platform/x86: asus-wmi: expose dGPU and CPU tunables for ROG .../ABI/testing/sysfs-platform-asus-wmi | 86 +++ drivers/platform/x86/asus-wmi.c | 605 +++++++++++++++++- include/linux/platform_data/x86/asus-wmi.h | 19 +- 3 files changed, 707 insertions(+), 3 deletions(-) -- 2.41.0