Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp848309pxb; Thu, 26 Aug 2021 16:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0XvTsrotFqx5kw2nCWsa4kGp7KynOQZywLRSrzKVPienO1ZVOwKeq+vnKL2bddMW1Rm+R X-Received: by 2002:a17:906:3699:: with SMTP id a25mr6793815ejc.452.1630021495750; Thu, 26 Aug 2021 16:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630021495; cv=none; d=google.com; s=arc-20160816; b=ieVe8KYblCnYxQb3Y28p2qgS2Ic/02Ckcft27+d+BmTxRuuY+oZ+1VunU2iG0sN/SQ 8EGSqA9+5+WpQHY9lCM7AmU3V/Nr6XNMYDR8RHrhSX2uU6z1stUDh1JdM883BbvxIEHJ mvjGEJPtrOazNXuYDbq0yKv3+lZonYE2/x/Ns8Hzlr7h59gDGcQIXCTujt6RyJVD69eA qHce7t0HZ2+KCW68tcbWR6qdBEbTa5qfuCazMvPkYFLaTLCkQ/y54L95MjYd2frVsezm 8cziaHr70G1XHmCh3VGzJA82JzJkYv6PrPmdNG5krML9yfz+ztV8ay5svSUNcmBAA16f aL+w== 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=fZOcR1E8avVH2/V2C3iPXJTHIEC4k7DfXpKxPA2s4BY=; b=mreEQ8u6uwhm8L77BFQxyq3cqhttBcqN1ahOLF1lIHwcTxfRUXFHLoLYtRkgaxsDLn tT8ebdFRZmJZSqgdRATu6nh1pEFsBvSe1zgoIdMRch6ShnVa8LTn9bp9Cw1yfZlzlvqp yikrRPHA+4gDkD3Ujze+Ca8gAfUkyEuDeb0lqHtxCfEyQQ2dxjboZvy3256UF1M2vvub yftLrriBOneQY8ySQ1ik68wBcQIp24H1eoT2lGj/OcRE2sLaSefAYGj2Co4Uwo6RJcyC Ux69L1JSNTLsfRSL06XVtxzTrybXQGnQDTmBp+zUOCugeglJDpR2BE9gQn4Lmyh9QenQ ORKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MLtMTAB1; 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 g2si4510720edw.520.2021.08.26.16.44.30; Thu, 26 Aug 2021 16:44:55 -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=MLtMTAB1; 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 S234234AbhHZXoB (ORCPT + 99 others); Thu, 26 Aug 2021 19:44:01 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:49819 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbhHZXoA (ORCPT ); Thu, 26 Aug 2021 19:44:00 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3AE423200947; Thu, 26 Aug 2021 19:43:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 26 Aug 2021 19:43:12 -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=fZOcR1E8avVH2/V2C 3iPXJTHIEC4k7DfXpKxPA2s4BY=; b=MLtMTAB1T4nokmfVq+rTKszD1HK0gBibv zVzf2I3R1u7VsZKlDE3KEnDST8cxnSOaKjnE9UrU/2dO1Zjj/PzCf/luHAluS2b5 7p6l9oDL1vkn9B5RgjD5cNdjMgGj+Da1hZtkEu/CG2wOJ2I+aC8uPFcM8bw8JqOH 6hR66GNPpgGkQpfIel/yY29rKlgWqgCk4dIwD/t8gfX3LjRPNJ6WTpTUc4DLWp0m xPc0dPuc3N7dXZKIfML/ppEJUvY58z95gFdY4+MjoUcSiPsR3bnSX0tLbUome907 KhVmSeOrJJmhJqlB8qlNFSlydXgHy5l+Yu1bWlSwBr5hWmJJqX9Pg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudduvddgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdfnuhhkvgcuffdrucflohhnvghsfdcuoehluhhkvgeslhhjohhn vghsrdguvghvqeenucggtffrrghtthgvrhhnpeelffelhfeltdfhtdevuefgveeuueekge etiefgiefhgfejvdetvdeuvedthfdvkeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehluhhkvgeslhhjohhnvghsrdguvghv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Aug 2021 19:43:07 -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 v5 0/1] asus-wmi: Add support for custom fan curves Date: Fri, 27 Aug 2021 11:42:58 +1200 Message-Id: <20210826234259.5980-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 - V5 + Remove an unrequired function left over from previous iterations + Ensure default curves are applied if user writes " " to a curve path + Rename "active_fan_curve_profiles" to "enabled_fan_curve_profiles" to better reflect the behavious of this setting + Move throttle_thermal_policy_write_*pu_curves() and rename to fan_curve_*pu_write() + Merge fan_curve_check_valid() and fan_curve_write() + Remove some leftover debug statements + Remove '\n' causing double-up of '\n\n' Luke D. Jones (1): asus-wmi: Add support for custom fan curves drivers/platform/x86/asus-wmi.c | 618 ++++++++++++++++++++- include/linux/platform_data/x86/asus-wmi.h | 2 + 2 files changed, 619 insertions(+), 1 deletion(-) -- 2.31.1