From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795447995; b=vJnXLwX/GbSTdF7hmYzM3ciPcyUrYObH4sFndpA+qhndyQyNut4wzFnLKfo7lYJ6VOa9 7fHDbPiOn4g4VOe935Cfyzzcr5Yde42UW7sU+UQ0BGud5ZEOFkOe8nIENzLZk3YFLTqKK B0BTweNsBP0K4sWqukh6oDxTlgvGIp2FnXGIWNFMIC85wCv7CM0RFLYbGJglTYhz46sgG 8EJVf+6LRU3sOtSI3t5faEHtQCxMv+yv1f9Ub6G5KEwHKzoDRIsWIZ2uHezwqzf6ZbNkf +AaP3S7XdLMRnyuFZayizoq/j/rdxNttKAwyA8BQxnYuLwkSEClOQdeLYBpDw/x6TpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795447995; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=kWLSHx8/R+2zMKFW4nd9QjS92NXhkGIV5/Qn0pcMWDk=; b=qnZg1FJJ3JGVCJ/lMb5sx0lISfRvIdR78f1WAVTwte0hwLzarqyrIwAacKER5qL8Qsc6 UbsHQRkSmISZml86eWMUwtn8FF3WFQyKKg6vDUAzrFyLYVW0gZCgzOuNi3W3k5x/U0wbH LQZwhXUietpPRmxKpB+iKquWjqDqDZZZliE0FnMC3YOE8rwBGdAw+7UKLRwYGMf1PxKkv YTUQrKhB8UpoScPJl4OA9+gIu562+SL4l7KTaaX/HkDHS72jjeK+wDbFNZekap6t7H+jo EQXzC2nyQXPvyPs+Ek+ApkBNtnwLiyasknAKgmIId5Lc2mFppardx6nE7py1uSH/qgg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GYWvcMKN; arc=none smtp.remote-ip=74.125.82.182 Received: from mail-dy1-f182.google.com (mail-dy1-f182.google.com [74.125.82.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04804606A687 for ; Mon, 23 Nov 2026 15:33:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 04804606A687 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=GYWvcMKN Received: by mail-dy1-f182.google.com with SMTP id 5a478bee46e88-386bd881d39so682eec.1 for ; Mon, 23 Nov 2026 07:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795447994; x=1796052794; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kWLSHx8/R+2zMKFW4nd9QjS92NXhkGIV5/Qn0pcMWDk=; b=GYWvcMKN3tDC65FFLe1C21Qs9+Ct8D3KvApyfM8S/ST298wjdzAdBgfcDkGb7jh23E oxru6a0zv+YtIcrv/pHVX+wJ3WgqxgeQc3+pnq6r/Cbb1U5x5ecy4QgquKKz/Z8DuNTT JXQ4JDoY5+e+JPid/Jw8bNBMrVQTz6XliLccffHMbwRxBvHi6dNtslHM7gDnBqrVXyjS Bh+hOw/OAbwX4S2Nk+WVER5cHZIk/qgdqhpEBZuuSRJ5P8GES2ocFm/1JPwG+thgYJq6 6FA6etxUdCOn8GzKiFNhXdACkMs7WVstRLTIqufp2EwcfInctcClEayuhZ8X1n5h+W3f RfEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795447994; x=1796052794; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kWLSHx8/R+2zMKFW4nd9QjS92NXhkGIV5/Qn0pcMWDk=; b=aGTCY1C9n3vNsJo0E1e9dOiQXR50PaNq5mSPLjIL9nLHpTqH4xIscug9CRuHTNRE7P pZkfjji1ro7V+AX0J2F4hye29WWlGXC6Uht974ZfSgwA9CSPPAWg3UGUbFzwF6rEMU+V kbfVHpp+HQkGZYUuV12AAVFt/dr48pCicCfa6kLEkIo70nkI8beY9pCsFdgtf2HPoSXB s9SmsgX8swy/LlthrlvQM+YfZLhhYMQF/bOGpDK21Qw4drxaUzK1IP6pRFrQ6YRnqKF4 BwnPw7hmFam6z25cZqX5w8akm7DHfL/6w+8MvPcx9CwB0EXYrMUSldE993+LPs/ZQdyw VPvQ== X-Forwarded-Encrypted: i=1; AL+hErH+rOg0pzlmv1a+L9MX6USPCAsl24AAkutDeg4CcieM8MHHve2dnO3lP3X0z42b7ON14wvto0Bb6C36hAdb113UHbD0@vger.kernel.org X-Gm-Message-State: APuU4Z/7i7yG5oCK6PV8PdwbISH64z6E2Z/4XFoWha30y4ccpJPhHSgN GpXn158S2hIw+cR58LCsjHpgAcbSbCuMl5NMJmTTo+7Ypup8CmqH63LN X-Gm-Gg: AZFdTZefoNSn70h/NBfJX+EFdC1oQZSq6ZTwtHihK26nFOHDEgnvr+QVu9wZscprapr hKdzlsgS03fNLsm2kwQ0gIesy8lSJN1sn84nHnz9gBUPMLI3vYcK+mOYJ05yhWhbaCGHf/4Jspu vMp2luj3Au4xiZAt3j6X42nX0u3pxXrgD+dpgbjLX/NNp+1GG1BBAWbUvWbGbLDErEVaIHA5Rug iZu8NVlecgTNo8y+tC3wu5HzllUQhPGnurVjYeSCDtJgAmmr4+eTUXkHLIfkyuRdaGYFw1Drg3E UaK8GgPM0r7ptBQd5rZrFz0EUdHWCmJ+HXke4lxYZeAD3Goc//bRFtIIhCOyDecI2itmySfhkxl nKUMQXHs92QXIjKmWvxfyudgNP+ZsFxYUPhe16jSekRlcVsnTge4X+tMaznXxeILDmnZASdB2CT DIlN199iXPdSYwvWjqNt40KPxa5jFZXxBTq6PWSiVDxXdEOL6jsfBXCzcwfhfaAZS9R7d3GhzCw UNRsINF2Hj646QpwMizTVESG3luPyIoXYZ2J+nqBKovJzLHkH8qzz/xWURvbKU+ddINBu5KioKW CeIY3Djddj789+8JipNcMZMBlJdCWhcGhYFo5aWL0s04SX+CqacrIntb8c9O X-Received: by 2002:a05:7300:f797:b0:386:95e7:848c with SMTP id 5a478bee46e88-38695e79009mr10096617eec.7.1795447993630; Mon, 23 Nov 2026 07:33:13 -0800 (PST) Received: from localhost.localdomain ([2409:40e2:122d:3887:9ee5:1e78:760d:3a39]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385672ce402sm34587395eec.16.2026.11.23.07.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 07:33:13 -0800 (PST) From: Sourav Nayak To: ilpo.jarvinen@linux.intel.com Cc: linux-kernel@vger.kernel.org, nonameblank007@gmail.com, platform-driver-x86@vger.kernel.org Subject: [PATCH v4 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D) Date: Mon, 23 Nov 2026 20:59:17 +0530 Message-ID: <20261123152917.14260-3-nonameblank007@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261123152917.14260-1-nonameblank007@gmail.com> References: <47c9dd58-774b-20ea-b78e-0d3453be0a42@linux.intel.com> <20261123152917.14260-1-nonameblank007@gmail.com> X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Victus 15-fb0xxx (8A3D) model, Calling hp_wmi_fan_speed_max_reset() causes fans to freeze during loads at 0RPM in auto mode, So, fix this regression by a flag to struct hp_wmi_fan_profile_params and enable it for 8A3D in victus_s_ec_fan_profile_params. When fan_speed_auto_reapply() is called, It disables maximum fan speed via hp_wmi_fan_speed_max_set(0), and passes to active platform profile to reactive curves via platform_profile_victus_s_set_ec(). Test data: auto/max: hp-isa-0000 Adapter: ISA adapter fan1: 5400 RPM fan2: 5200 RPM mannual[255]: hp-isa-0000 Adapter: ISA adapter fan1: 5800 RPM fan2: 5800 RPM Signed-off-by: Sourav Nayak --- drivers/platform/x86/hp/hp-wmi.c | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c index 0166b9cc4d9e..d9a51406aea8 100644 --- a/drivers/platform/x86/hp/hp-wmi.c +++ b/drivers/platform/x86/hp/hp-wmi.c @@ -155,6 +155,7 @@ static const struct thermal_profile_params omen_v1_no_ec_thermal_params = { struct hp_wmi_fan_profile_params { int (*get_fan_speed)(int fan); + bool fan_speed_auto_reapply; bool fan_table; }; @@ -170,6 +171,12 @@ static const struct hp_wmi_fan_profile_params victus_s_fan_profile_params = { .fan_table = true, }; +static const struct hp_wmi_fan_profile_params victus_s_ec_fan_profile_params = { + .get_fan_speed = hp_wmi_get_fan_speed_victus_s, + .fan_speed_auto_reapply = true, + .fan_table = true, +}; + static const struct hp_wmi_board_params victus_s_board_params = { .thermal_profile = &victus_s_thermal_params, .fan_profile = &victus_s_fan_profile_params, @@ -177,7 +184,7 @@ static const struct hp_wmi_board_params victus_s_board_params = { static const struct hp_wmi_board_params victus_s_ec_board_params = { .thermal_profile = &victus_s_ec_thermal_params, - .fan_profile = &victus_s_fan_profile_params, + .fan_profile = &victus_s_ec_fan_profile_params, }; static const struct hp_wmi_board_params omen_v1_board_params = { @@ -2286,6 +2293,13 @@ static bool hp_wmi_fan_control_supported(void) return params && params->get_fan_speed; } +static bool hp_wmi_fan_speed_auto_reapply(void) +{ + const struct hp_wmi_fan_profile_params *params = hp_wmi_fan_profile(); + + return params && params->fan_speed_auto_reapply; +} + static bool hp_wmi_fan_table_supported(void) { const struct hp_wmi_fan_profile_params *params = hp_wmi_fan_profile(); @@ -2945,7 +2959,19 @@ static int hp_wmi_apply_fan_settings(struct hp_wmi_hwmon_priv *priv) secs_to_jiffies(KEEP_ALIVE_DELAY_SECS)); return 0; case PWM_MODE_AUTO: - if (hp_wmi_fan_control_supported()) { + /* + * Victus models like 8A3D, calling + * hp_wmi_fan_speed_max_reset() freezes fans at 0 RPM + * under load. Instead, disable max fans and re-apply + * the active platform profile, so the EC firmware + * thermal curves regain control. + */ + if (hp_wmi_fan_speed_auto_reapply()) { + ret = hp_wmi_fan_speed_max_set(0); + if (ret < 0) + return ret; + ret = platform_profile_victus_s_set_ec(active_platform_profile); + } else if (hp_wmi_fan_control_supported()) { ret = hp_wmi_get_fan_count_userdefine_trigger(); if (ret < 0) return ret; -- 2.55.0