Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1315925pxb; Fri, 20 Aug 2021 02:58:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5Z1kH2JetBV2N/K5mkoYG00ssglb+Ue2Xmwt8McS7HGVQc0Od6kdZQD8PgbjZLckw05s4 X-Received: by 2002:a02:9f16:: with SMTP id z22mr16796814jal.18.1629453514231; Fri, 20 Aug 2021 02:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629453514; cv=none; d=google.com; s=arc-20160816; b=D7L3S9ZIqVIOAfgeDkhS0NH1E2hG/La52VIwBs3cyH/my3Q0MhHObK17DpjbwL9kLZ unDTa5+Qj447WiqC/my5mK1wmWA4XUh3c4384qSTPD/47diGNPdM/AbXXszXu3SJNLk1 N4rZ+BSqbb72zwqXeuY5WP1b0dx8A/vB7SfuHstz/TMuUI8HDlcQkBQT9DJiHUywhNS0 RwhtVBMrNPgzofH7N4msMUlAn0Jrtg+Jm42Ns2oL1I2i69VqgGC5s4JHEARpOEq1q4wl 0/orbxgOMC7Xl2nXiLMOCeB4LtTB+5TSvKtmK6K0n+7CwLVJHAhcCquWWeMaMsgt+/9G SGaw== 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:dkim-signature; bh=CfCw/ZeNoblI7uaS14NFIKhhpVcANOaKc3OV06nLfKM=; b=QQFhriAtn0nUakSXnCVxifhYuzrSUznY1WfDj9Oht+ILXQlaOhuLwHVHgn8Qu1iZO1 HXgywvlw/vXvFZEHCriy8dqkXLVfaF7+QdOvY/tZpLhmIwnTMS1CRyaruAvnOpzbblQT O8j0uJDvoOtb2ApZwTVYH5mfRV+VjiVHK3wAKxAB1w2OS0sGaKNLu8bLowlrM9vWz7Oq xmhNtTL4w1RkGVl+E+ICOTXtw1iH1XVuwUc/p37BcSNO2af+Tx96nHTLGUiGewCIbdP4 CxpM5rAr8tpXdYGGBvsW1zDku3CkrUOZVLKsNPG93YXHtp34IAot3RYeNtppu3JG4XSe xO1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Qyw0NBbG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si5388272iol.88.2021.08.20.02.58.22; Fri, 20 Aug 2021 02:58:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Qyw0NBbG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236957AbhHTJ6Q (ORCPT + 99 others); Fri, 20 Aug 2021 05:58:16 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:35027 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235321AbhHTJ6Q (ORCPT ); Fri, 20 Aug 2021 05:58:16 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 138D33200A80; Fri, 20 Aug 2021 05:57:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 20 Aug 2021 05:57:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=CfCw/ZeNoblI7uaS1 4NFIKhhpVcANOaKc3OV06nLfKM=; b=Qyw0NBbGIt+FdY07hbK1DbRxoRm7iWmSX 7XM5y9/vvnudq/8XsoyMORjhTH240OkLMHX+CQzMlOrY5KArT4lauL97RLcJULXn 0JRrLtQsHv4yNEf1AB7lNgHzkYbNoJP3b8e+h5ZgSUiGUwtSCzA7loQXQr9g1rnW XrUlplxp9Iu7gZC1udgSjRDt8qphzOXMaDsLye8aLSWyC2YcfpiCR8OBMAFgw1Fh uJPvUEg3fH4iApnD6kGVMvSiJLiYooswIrnO16hMunJCqyc0iiYuVOERCV/69vTv B9PJ5kdwLK5dxiTNaE+jVgUqZ0KmvI/xGUodth3R263F/YQQ+sY0g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleelgddvudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpedfnfhukhgvucffrdculfhonhgvshdfuceolhhukhgvsehljhhonhgv shdruggvvheqnecuggftrfgrthhtvghrnheplefflefhledthfdtveeugfevueeukeegte eigfeihffgjedvtedvueevtdfhvdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheplhhukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Aug 2021 05:57:33 -0400 (EDT) From: "Luke D. Jones" To: linux-kernel@vger.kernel.org Cc: hdegoede@redhat.com, hadess@hadess.net, platform-driver-x86@vger.kernel.org, "Luke D. Jones" Subject: [PATCH v4 0/1] asus-wmi: Add support for custom fan curves Date: Fri, 20 Aug 2021 21:57:25 +1200 Message-Id: <20210820095726.14131-1-luke@ljones.dev> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for custom fan curves found on some ASUS ROG laptops. The patch has gone through a few revisions as others tested it and requested bahaviour changes or reported issues. V4 should be considered finalised for now and I won't submit a new version until V4 has been reviewed. - V1 + Initial patch work - V2 + Don't fail and remove wmi driver if error from asus_wmi_evaluate_method_buf() if error is -ENODEV - V3 + Store the "default" fan curves + Call throttle_thermal_policy_write() if a curve is erased to ensure that the factory default for a profile is applied again - V4 + Do not apply default curves by default. Testers have found that the default curves don't quite match actual no-curve behaviours + Add method to enable/disable curves for each profile Luke D. Jones (1): asus-wmi: Add support for custom fan curves drivers/platform/x86/asus-wmi.c | 672 +++++++++++++++++++++ include/linux/platform_data/x86/asus-wmi.h | 2 + 2 files changed, 674 insertions(+) -- 2.31.1