From: Hans de Goede <hdegoede@redhat.com>
To: Armin Wolf <W_Armin@gmx.de>,
corentin.chary@gmail.com, luke@ljones.dev,
mohamed.ghanmi@supcom.tn
Cc: srinivas.pandruvada@linux.intel.com,
ilpo.jarvinen@linux.intel.com, Michael@phoronix.com,
casey.g.bowman@intel.com, platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] platform/x86: asus-wmi: Fix thermal profile handling
Date: Sat, 26 Oct 2024 11:53:53 +0200 [thread overview]
Message-ID: <0156ec27-e076-4c6e-9bad-b7d64bb08a59@redhat.com> (raw)
In-Reply-To: <20241025191514.15032-1-W_Armin@gmx.de>
Hi All,
On 25-Oct-24 9:15 PM, Armin Wolf wrote:
> When support for Vivobook fan profiles was added, two mistakes where
> made:
>
> 1. throttle_thermal_policy_set_default() was not called anymore during
> probe.
>
> 2. The new thermal profiles where used inconsistently.
>
> This patch series aims to fix both issues. Compile-tested only.
>
> Armin Wolf (2):
> platform/x86: asus-wmi: Fix thermal profile initialization
> platform/x86: asus-wmi: Fix inconsistent use of thermal policies
Taking another look at the vivobook stuff because of this series this
pre-existing code stands out to me:
static int fan_curve_get_factory_default(struct asus_wmi *asus, u32 fan_dev)
{
struct fan_curve_data *curves;
u8 buf[FAN_CURVE_BUF_LEN];
int err, fan_idx;
u8 mode = 0;
if (asus->throttle_thermal_policy_dev)
mode = asus->throttle_thermal_policy_mode;
/* DEVID_<C/G>PU_FAN_CURVE is switched for OVERBOOST vs SILENT */
if (mode == 2)
mode = 1;
else if (mode == 1)
mode = 2;
Since the vivobook has silent and overboost swapped I wonder if we should
do this on vivobook to ?
Also note that patch 2/2 of this series impacts this code too. Until
now we were storing the swapped vivobook values in asus->throttle_thermal_policy_dev
and then here we are swapping them a second time, in essence using unswapped
non vivobook values here due to the double swapping.
Where as after Armin's changes from 2/2 we now store unswapped standard
asus laptop values in asus->throttle_thermal_policy_dev and swap them
here, using the same mode values as with normal asus laptops on vivobooks
now ( mode is swapped from non vivo throttle_thermal_policy_dev values).
Does anyone have any insight what we should do here ?
Regards,
Hans
prev parent reply other threads:[~2024-10-26 9:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 19:15 [PATCH 0/2] platform/x86: asus-wmi: Fix thermal profile handling Armin Wolf
2024-10-25 19:15 ` [PATCH 1/2] platform/x86: asus-wmi: Fix thermal profile initialization Armin Wolf
2024-10-26 4:23 ` srinivas pandruvada
2024-10-25 19:15 ` [PATCH 2/2] platform/x86: asus-wmi: Fix inconsistent use of thermal policies Armin Wolf
2024-10-26 9:56 ` Hans de Goede
2024-10-26 11:49 ` Armin Wolf
2024-10-26 10:45 ` Mohamed Ghanmi
2024-10-26 10:59 ` Hans de Goede
2024-10-26 11:55 ` Armin Wolf
2024-10-26 11:53 ` Armin Wolf
2024-10-26 4:09 ` [PATCH 0/2] platform/x86: asus-wmi: Fix thermal profile handling srinivas pandruvada
2024-10-29 1:19 ` Bowman, Casey G
2024-10-26 9:53 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0156ec27-e076-4c6e-9bad-b7d64bb08a59@redhat.com \
--to=hdegoede@redhat.com \
--cc=Michael@phoronix.com \
--cc=W_Armin@gmx.de \
--cc=casey.g.bowman@intel.com \
--cc=corentin.chary@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luke@ljones.dev \
--cc=mohamed.ghanmi@supcom.tn \
--cc=platform-driver-x86@vger.kernel.org \
--cc=srinivas.pandruvada@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.