Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp82975pxy; Sat, 14 Aug 2021 00:53:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyILCIwcMhmC2Gpeq53LS1HB/Os3syn34Fv8eTe0gkL66jwb75H7IXNoBKxLvkyfH6Dx4k4 X-Received: by 2002:a17:906:899:: with SMTP id n25mr6398192eje.543.1628927628830; Sat, 14 Aug 2021 00:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628927628; cv=none; d=google.com; s=arc-20160816; b=Gvab/4iBCnoPxNYPOFNVrI8cO5B1J6yy+Yu+yTIVvhVBmnydOb8zozOhyI1pS1d41/ DMdjTEbgvJcbrLt4Fpyi7/+8Jyxwmsl7g86CDLcQ+HyKueSRcETRF7ggHlnE6Vv9KRaQ LNHPye5RWo3QYesskyE5VZWP+9ToH7GmN3tj2kh7mAie9nQAMpady9yv8q+J5Fnaee+p r9tGXdA4BQtF7MyV8Vhu14kvP+fXDSVKZNWeKV4Ywlnk6qZQKKJSMFiv0LpF13UUFJOZ xsDJrz3s+mstKJj8Iqpn8KejKPbmCY//4P8/m/FbmRwfKOaekQsdOC9OJrmH1PCzibFG sn0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:dkim-signature; bh=r7z4wjtS+5cvW6c8Afk88EXJJL+Kwa5QXm4fkgHzNpA=; b=aIyz0PvKTk7MD6hXofVxZFjmUGqz7axV6dKP4iPFu95Ac3sxddpU3EBwD2cIJ/Q1Wt n5U70kWkzXkM92BL/2DbHWX2a1EmPWzAMG+E2GqMdB5RMo4tsca669PaZC8wz56ivTIK LN9MI4fd3IPkQtv4BbGnpxF23DQhBzlPWrYs+MiLsiSy4ZpxBqh2ywFIKWGWhFCtsBsp DiFEkLVFpfXCYbNT6dA8WdXTa42NSx2SNSxrs8/45KxVJUhT5CPIPNwMt93iPlakIlsS 18mkou9QggaXqPCqKxTr2PhRce4gmvaDHFgnd46Pc87ExWZj4PhbGsI2dP1UnbWqc0d6 1kuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=DQF8I0D9; 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 k9si4299371edh.461.2021.08.14.00.53.24; Sat, 14 Aug 2021 00:53:48 -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=DQF8I0D9; 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 S237275AbhHNHwR (ORCPT + 99 others); Sat, 14 Aug 2021 03:52:17 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:54191 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236519AbhHNHwQ (ORCPT ); Sat, 14 Aug 2021 03:52:16 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 826F75C00EE; Sat, 14 Aug 2021 03:51:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 14 Aug 2021 03:51:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=r7z4wj tS+5cvW6c8Afk88EXJJL+Kwa5QXm4fkgHzNpA=; b=DQF8I0D9YkUUr38GZ9oQ4q ZnM6irqRgP7mK5XjC+8vdUT/mEqw38h2aNrXu02nLcBWJihLJpq8GYk+FPwE+ADC w6fD+HE0b7SNfxR7/MapTCVBjcfwMc9xs0uESEyhq8jxqnmMJODUnZygmm1GHokx u7xhC9J2WASa9DCuaueZrXTy0WCHF6RvCRPO/SkXSvZ1AAuRzEb8SNl7ddjHylK1 GKP1cb+EM1piQ4yQX4VBXHRHxPsbBquBN901BfLxc3B/2TmxihylKDm4oEZYOeaT z1qpJwJYpz81PWmVSzctdFDyM89NM1abMmy5YIN6ik0dKLRYnAtgw03xVX4ZHVaw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrkeeigdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffuvffkjghfofggtgesthdtre dtredtvdenucfhrhhomhepnfhukhgvucflohhnvghsuceolhhukhgvsehljhhonhgvshdr uggvvheqnecuggftrfgrthhtvghrnhepgfeffedufffhgfeuheegffffgeegveeifeeute fhieejffetudfgueevteehtdetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheplhhukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Aug 2021 03:51:43 -0400 (EDT) Date: Sat, 14 Aug 2021 19:51:29 +1200 From: Luke Jones Subject: Re: [PATCH v3 0/1] asus-wmi: add platform_profile support To: linux-kernel@vger.kernel.org Cc: hdegoede@redhat.com, hadess@hadess.net, platform-driver-x86@vger.kernel.org Message-Id: In-Reply-To: <20210814043103.2535842-1-luke@ljones.dev> References: <20210814043103.2535842-1-luke@ljones.dev> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 14 2021 at 16:31:02 +1200, Luke D. Jones wrote: > Changelog: > - V2 > + Correctly unregister from platform_profile if > throttle_thermal_policy fails > + Do platform_profile_notify() in both > throttle_thermal_policy_store() > and in throttle_thermal_policy_switch_next() > + Remove unnecessary prep for possible fan-boost modes as this > doesn't match expected platform_profile behaviour > - V3 > + Add missing declaration for err in > throttle_thermal_policy_switch_next > > Luke D. Jones (1): > asus-wmi: Add support for platform_profile > > drivers/platform/x86/asus-wmi.c | 139 > +++++++++++++++++++++++++++++++- > 1 file changed, 135 insertions(+), 4 deletions(-) > > -- > 2.31.1 Hi, I teested the patch again and it appears that the platform_profile_notify() in both throttle_thermal_policy_store() and throttle_thermal_policy_switch_next() updates the /sys/firmware/acpi/platform_profile sysfs path fine, but userspace isn't updated? The way I'm checking is: 1. echo 1 |sudo tee /sys/devices/platform/asus-nb-wmi/throttle_thermal_policy 2. cat -p /sys/firmware/acpi/platform_profile - performance (updated correctly by platform_profile_notify) 3. Check gnome-settings, not updated. Doing `echo "performance" |sudo tee /sys/firmware/acpi/platform_profile` updates both throttle_thermal_policy and userspace as expected. I'm wondering if I've missed something? Cheers, Luke.