From nobody Tue Nov 24 12:43:49 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795245403; b=OoaYy3dY0kYlQUmID/6JfPx5iB2Su45+E+xwN7P3RdVbXT0fYBxUxM5IM8J2c0zq9tOw Au9KygcdjjrBv5W4KBlifxDaYFjAl3v6O8wahwgNRPULTREvffszDMhN75m2zosq+++wi kAkGQfKeTr2/pZ6mz46Bekw3gGSTgyjZnXpF3phM4B6DluQCCbifcGFEh+xBJwinmoeQB enitfsFWY48Tf9ni7PjL7xDFAj1lg9FVMJKYHIYa9JeR4iSVE6GRQGo4wVkZ+YqSK1fhh 5g/o25R1f70d71rvWpN1uuHcRprONKNNSWxr9Kbc3kncU3DLdIDgWS1Z6t5VwEIp3RQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795245403; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=lyjDt4srRQIFbPUU3r2/dQUczxyZaXszt6feOM3BE7c=; b=MiyOLvelYAGEtdL2HhvEekmDru1nju30/PObMphLi5MLCEgsOpzGZ7y6PBVwSk7vcsHB vL6/kcgMmRjUtQAzlblTl92l2g4046oL1GPHdjEhSnkejLePbzIKzVSj4ffPnGOHE4XDO ktvoR6W0SsYYN9jAVWBHa2ChSCasTP2RchtCVs+QEAyIVHV1WD0Dpx+YywKfRZlQ9kflW hKDTP71WiFQwsd+cnJ/w7rMZcAnaL8jd61jhPA4Nr+SB3YJ/NN07zmX9+yMyUddNW72TJ 5dRHulhqH8gpaWDlbGXvAdPSl7Qu4waHn9VOIruGj81HhfR1NY/4TqYUPg7AmpSu8bg== 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=MuGIDlqF; arc=none smtp.remote-ip=74.125.82.52 Received: from mail-dl1-f52.google.com (mail-dl1-f52.google.com [74.125.82.52]) (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 C86F8606A334 for ; Sat, 21 Nov 2026 07:16:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C86F8606A334 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=MuGIDlqF Received: by mail-dl1-f52.google.com with SMTP id a92af1059eb24-1b3ada81853so1861586c88.0 for ; Fri, 20 Nov 2026 23:16:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795245402; x=1795850202; 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=lyjDt4srRQIFbPUU3r2/dQUczxyZaXszt6feOM3BE7c=; b=MuGIDlqFUE3oyT3NnUxUSuOxFVENsYEzc6lYKiTO/Nu2f9HuGSlo7nfFbbjr1SHUCf OjD3fw2qlNsdWo/R848jLDEN57M/AG6VppyX74HuwvSi9NzNalJnv6TspAsp8bIvWq/+ 4bGfOEXUpPiUfGJR1BF2JC+1wZxoW0yiGaJAesjiSSi9FMgA8EsSFL9X3Fce6deOfxVL bFo44L88yQU97gRTvASmXYSPeUqcg9+9PbHy+S/Sl9uQqERmuT2DBzuns3Dq3w/wItH7 b28KwD5hWsYWZMlX/vA1W6tW1WJC8ZNHvXk+HJToQiKaba8BW2GzvOsIYp1rcx3pZ14r qv4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795245402; x=1795850202; 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=lyjDt4srRQIFbPUU3r2/dQUczxyZaXszt6feOM3BE7c=; b=WWKlmXsJFddkSEM+CtD/p43iL81pOfZfByiPu4+71pnK2yEncCugIPlFb2353Fjpv/ 0L9fZJNDKJCvWLQCD4A91ZKDHneRNVdlzfgbqlH3BBaLxE/qEyaaIDt9vdCE2kzxQlRS 9uly7hPUyp2oJApCWPBE1kx/KIrN0ByXeazpqLVXKA4u63qGgLKLHWQjwXlJ4prueypx dGhex+hrLxtaY058EyPnOovnfLCjLe1h0ywWsG94/JIHbb9yv9lBt7eHGZkBYelUWfDn aA9OtiN46fhvHfDpvqgq8xUb5BwcS2UjwX6Gzn6u/IiU1TRryA2lJ3WCOjUEqhBKhBlx yUTg== X-Gm-Message-State: APuU4Z8SAdRI4obxFd0/SuaSLdvRcXOxBKvteju3s7T9miy3o18laV07 AoRRwpJbcUuITr+GPGX1CQ4VdmDkCW73X3EEKsIL2hY/lHvn6jvoWHMx X-Gm-Gg: AZFdTZftyRi0eyEgIcvsr4WjKPA0fOKTxCvx8qCS4AYzFg0VfbXjU0M/ncRC8SSWFYS y3zJTm9aJmTCNafrSdmT7zGFEQQd+S5NKk17XnpqIpSwxpfRawoxwp4cd6cf+ViejvQ+uMrfXLR wPnfeQwLQuiNAuNJ8EAcJh5FbQ9/0LR5v+VInwvxCK/4IzmJ61AKfuaPNKR6QmNMpkBtJxTpnp8 xYv6dRnZBUQLshTYpL5gN/2CKhqwShxEoCU3ksboW+n3V2tmu97pdDRvoDJ2sFvOS9fLfZpRrVs xUzmMH/kuMaIeMTnm7xjYJdIPi03idLsn5HMh4s283lQQr07WETkORNeejVlj0Mxyav4HtVCMz8 Jc/Vq+ANBGNWkO1tftHHVsfLCxXLyXpJLp3RCW1gHh/+Ih3Bc7xsWhPveNcrnyB0N8tZg+ZXAPz UaKU7QYF7Ld+PeGTH80NO3S8MWGnRgaJL/DNmKrjcs3k4zE74Q2ejKTsUQp58YrNsnvVQeSJZoA xaECJykFjxaSzLEL6TsPEqC+Hzf8DMqF6WXkScOzaNenhdVFPR1G414SK/vEPpfgN6ix3kaWG3s +xqPiuBl+8Ja+snqhsLnH/6mlsXSIzsIEtthF0jwtGgIvN7n1t8= X-Received: by 2002:a05:7022:3f0d:b0:16c:3408:760b with SMTP id a92af1059eb24-1b5568dabf1mr5252313c88.32.1795245401808; Fri, 20 Nov 2026 23:16:41 -0800 (PST) Received: from localhost.localdomain ([2409:40e2:2f:4d17:70ef:2f53:72ff:31c8]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556829d31sm20880373c88.9.2026.11.20.23.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 23:16:41 -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 v3 1/2] platform/x86: hp-wmi: fix platform profile values for Victus 15-fb0xxx (8A3D) Date: Sat, 21 Nov 2026 12:45:33 +0530 Message-ID: <20261121071534.28473-2-nonameblank007@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261121071534.28473-1-nonameblank007@gmail.com> References: <1061c0e1-9e05-a09f-3eb6-5702f4fbcf08@linux.intel.com> <20261121071534.28473-1-nonameblank007@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Currently Victus 15-fb0xxx (8A3D) takes victus_s_thermal_params, which causes it to register as incorrect EC layout while cold boot. - On other hand windows Omen Gaming Hub registers EC offset as 0x95, - which is set in driver as HP_OMEN_EC_THERMAL_PROFILE_OFFSET. - So, address it by adding victus_s_ec_thermal_params. - Also perfcontrol modes as performance (0x1), default (0x0), quiet (0x3) registers. So, add support for quiet mode. Tested-by: Sourav Nayak Signed-off-by: Sourav Nayak --- drivers/platform/x86/hp/hp-wmi.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-= wmi.c index 0069af86800e..0166b9cc4d9e 100644 --- a/drivers/platform/x86/hp/hp-wmi.c +++ b/drivers/platform/x86/hp/hp-wmi.c @@ -125,6 +125,13 @@ static const struct thermal_profile_params victus_s_th= ermal_params =3D { .ec_tp_offset =3D HP_EC_OFFSET_UNKNOWN, }; =20 +static const struct thermal_profile_params victus_s_ec_thermal_params =3D { + .performance =3D HP_VICTUS_THERMAL_PROFILE_PERFORMANCE, + .balanced =3D HP_VICTUS_THERMAL_PROFILE_DEFAULT, + .low_power =3D HP_VICTUS_THERMAL_PROFILE_QUIET, + .ec_tp_offset =3D HP_OMEN_EC_THERMAL_PROFILE_OFFSET, +}; + static const struct thermal_profile_params omen_v1_thermal_params =3D { .performance =3D HP_OMEN_V1_THERMAL_PROFILE_PERFORMANCE, .balanced =3D HP_OMEN_V1_THERMAL_PROFILE_DEFAULT, @@ -168,6 +175,11 @@ static const struct hp_wmi_board_params victus_s_board= _params =3D { .fan_profile =3D &victus_s_fan_profile_params, }; =20 +static const struct hp_wmi_board_params victus_s_ec_board_params =3D { + .thermal_profile =3D &victus_s_ec_thermal_params, + .fan_profile =3D &victus_s_fan_profile_params, +}; + static const struct hp_wmi_board_params omen_v1_board_params =3D { .thermal_profile =3D &omen_v1_thermal_params, .fan_profile =3D &victus_s_fan_profile_params, @@ -251,7 +263,7 @@ static const struct dmi_system_id hp_wmi_feature_boards= [] __initconst =3D { }, { .matches =3D { DMI_MATCH(DMI_BOARD_NAME, "8A3D") }, - .driver_data =3D (void *)&victus_s_board_params, + .driver_data =3D (void *)&victus_s_ec_board_params, }, { .matches =3D { DMI_MATCH(DMI_BOARD_NAME, "8A44") }, @@ -2395,10 +2407,14 @@ static int platform_profile_victus_s_get_ec(enum pl= atform_profile_option *profil * but logically it should have tp =3D=3D 0x30 || tp =3D=3D 0x31, as * corrected by the Omen Gaming Hub on windows. Hence accept both * of these values. + * Since boards like 8A3D write 0x3 to EC offset 0x95 to + * engage quiet mode. Map this to PLATFORM_PROFILE_LOW_POWER. */ if (tp =3D=3D victus_s_thermal_params.performance || tp =3D=3D omen_v1_thermal_params.performance) { *profile =3D PLATFORM_PROFILE_PERFORMANCE; + } else if (tp =3D=3D victus_s_ec_thermal_params.low_power) { + *profile =3D PLATFORM_PROFILE_LOW_POWER; } else if (tp =3D=3D victus_s_thermal_params.balanced || tp =3D=3D omen_v1_thermal_params.balanced) { /* --=20 2.55.0 From nobody Tue Nov 24 12:43:49 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795245406; b=FSmclGqxhJWWlYVVOUnP39XadO70RTDFA1Kn8F11lCPaIjTK59fm2zP56pLuHJPt14bZ Y4egiBG8dYW1vq6fOvsD0vCB6zXusdWUQN77H3Ph41sC+NrwtpU3MyfCpcQ2nS7DmAlJB I5vC63GRuyQPGUuceNSrs2Sf70TaHL0EPWDecfKjwj44eZG8w1829HEXF5rg5axQgmhfT OYt9s9r4TJeeGOKyIwR9l08QL9O7Lt+BD7yg+5qJZOfNSAQCQa6BXsboppgjBnL4eqLRa RK46XNpo5i9SCGBjmM75UqJbdY+/kjliwBYukqhQuMPoxz0JCrZpQqgZhma5KDd3CQA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795245406; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=mYq2jtOrJLY6sKHqCT+nIWSwy/ZRL+QownEH1kRdhD0=; b=TqlZvDxa4piU8tgKtt+T/UVHkdysAGYSnEB3+chN1eSYwRLZnImg0FR/RCxYnpog6D65 nnMnNQ/lTK3eBzof310C9vKcuGzZDhkPX0zy1fUfLJz12oeeRgb7dw4Co//rqUzqE1YnC Pme2Er/F/dT7a20w0Lio3Mem+xYi7UqL77JATzZ8jngGHtbCU3IbrN9I48hsuSc+kEH0m me40AmzLv2BF5NEbmwnv2SY50/rYDffRmI9jtsKjVotFDPg1yMzw2L982aDe/WPaKJa3q n26dpKy9AJ2zX43HKzmMckv6fzwkOY5V+gyRrI1mp6EE0CugNehjpZTimin4a3Vcrww== 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=ryU7Gb31; arc=none smtp.remote-ip=74.125.82.42 Received: from mail-dl1-f42.google.com (mail-dl1-f42.google.com [74.125.82.42]) (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 D204F606A337 for ; Sat, 21 Nov 2026 07:16:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D204F606A337 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=ryU7Gb31 Received: by mail-dl1-f42.google.com with SMTP id a92af1059eb24-1a2761c69fbso3440444c88.0 for ; Fri, 20 Nov 2026 23:16:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795245405; x=1795850205; 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=mYq2jtOrJLY6sKHqCT+nIWSwy/ZRL+QownEH1kRdhD0=; b=ryU7Gb3189lbMLwd8X28moCAhKcxEl3rsYmfp5v4e5CyupNCGj5Ge58FnS89TS/GkN hLXelRbRkcE0ybBI9bb2Cm500muc4CEyUHy9SCi60OW5lZpdqNqjLJtsMfwyT5OAOKYZ KHZ98H1v1yu0VOVr6/kJKOmsfuhghheANH7XyVBDVp4tuquZJZnsyxGJYfdgIT8WZHSZ safzQZLV9DZKSp6NfAl8Q7htThhX5X2sbOW3p9I07UhNmsZhBInF0p3GVkMbVQ28l8gv NJQGIhGgmsuqcPONMxmyrWlfOkuNx126bC8xAeb0B0jC8wrjMkv4Eo23xh6E0s1XF5Gy 8iUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795245405; x=1795850205; 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=mYq2jtOrJLY6sKHqCT+nIWSwy/ZRL+QownEH1kRdhD0=; b=QtxK+hkZfmwMSJ34kX//osnoF4yKLH72v8aawo+JE0/Ou3vRv7KDBB1Vuq+alTx65T PSi4qydX9dnrW5Tj6pX+232jVyHbsQJYzbmBlqDqC6YoS6cJ1scYF5IOVwMWEf2wCkJ1 0p4yli4MqzORbe1RHxpy25tsMAlSSXOnD8ua3rj0Y3m9px0hSyuZl+xHJUQvRt9l3LIT 199uEQNiUqduQlHejstbE9IaLbyU+U39gjUAmc7X7SJtD5Fd+ZWZD1mHMbfFtIv3UWM+ XmohMkgOkzeaeJSM5NhjLoyK0Rfrt9qCQG9/Rj1j7szDB6c45D9fnzr9EieKOWnW3r3R civQ== X-Gm-Message-State: APuU4Z87uaUyKaDpbcqkHPCXcLlf6UB0QRTbahUsLikxpb7caQVBHe9W UY1V00JcBYJ8E72ocPTvpKw2dPt99MAIuPzB9lhOWjPRcujEwkAypF4/ X-Gm-Gg: AZFdTZe8MnhHKJdXYw3bVM+ev+8wXi3aZYUj0G2hbJf8NNP4EDwmoaPu+Rq5xp5WRWx 2KA/gVyo/mbnXG40e/L3abzhXYfYB13ipZyXWnB7zyDbxpQFCSLgM2+YC6n3qtF5S3wMmyJHgfv lCgriGHLLvIlB6Hnh4pzjZEJPd84xY454XXyiSpA/ahU9qKM37uSzzKMhSS1enAyrUeBvOEIKfi F5iLhTaRdeff6FajAao/Qd1rbl0kc8u2RROi3fQ7REAgacxU4q6vdk+jllZ3h5yqnU23gNuW4Av jUJgDkZ9q271+UgWbEFtp+eQ8n9w+jn9QEF3lAPc0EEaO8HZNgcjcxKuapI22YH7rGBdCT1KLY0 ue5Op3CQlQtrIgntW/qSkTcZhVqpr/tn+CgfcmEAbPd+ekgb6iXWnEI/rqc6/POxmnQKKiPGw3o 3b88rL+2FDmdYPrEQWpa/Djm9YVuHOhPHH4HDPJcA9dpNw7d4X9LkzpW9+QNnfvuayzBc6l8xo7 SuND4MkoSfYFCttuAUcmXloK0ZVkPJOpUPUHT+LED9/5Z8eeg53QpMt2D0CqpbX+/O4QPHhk3hE 7Ptaqz13JxCL7xoxsor88tP0mz9lD8aihg351j3ZNjCkNqJR6UU= X-Received: by 2002:a05:701b:450d:20b0:1b2:4378:3545 with SMTP id a92af1059eb24-1b5568e825emr5905692c88.21.1795245404775; Fri, 20 Nov 2026 23:16:44 -0800 (PST) Received: from localhost.localdomain ([2409:40e2:2f:4d17:70ef:2f53:72ff:31c8]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556829d31sm20880373c88.9.2026.11.20.23.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 23:16:44 -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 v3 2/2] platform/x86: hp-wmi: fix fan freeze during load for Victus 15-fb0xxx (8A3D) Date: Sat, 21 Nov 2026 12:45:34 +0530 Message-ID: <20261121071534.28473-3-nonameblank007@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261121071534.28473-1-nonameblank007@gmail.com> References: <1061c0e1-9e05-a09f-3eb6-5702f4fbcf08@linux.intel.com> <20261121071534.28473-1-nonameblank007@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" hp_wmi_fan_speed_max_reset() caused fans to freeze during loads at 0RPM, So, assign a custom victus_s_ec_fan_profile_params for 8A3D, introduce a 'if' statement with hp_wmi_fan_speed_auto_reapply to resolve it= by calling hp_wmi_fan_speed_max_set(0), and passing platform active again to r= eactive curves. 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 Tested-by: Sourav Nayak Signed-off-by: Sourav Nayak tested-by tags can be dropped. --- drivers/platform/x86/hp/hp-wmi.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-= wmi.c index 0166b9cc4d9e..583e1c0dda07 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_e= c_thermal_params =3D { =20 struct hp_wmi_fan_profile_params { int (*get_fan_speed)(int fan); + bool fan_speed_auto_reapply; bool fan_table; }; =20 @@ -170,6 +171,12 @@ static const struct hp_wmi_fan_profile_params victus_s= _fan_profile_params =3D { .fan_table =3D true, }; =20 +static const struct hp_wmi_fan_profile_params victus_s_ec_fan_profile_para= ms =3D { + .get_fan_speed =3D hp_wmi_get_fan_speed_victus_s, + .fan_speed_auto_reapply =3D true, + .fan_table =3D true, +}; + static const struct hp_wmi_board_params victus_s_board_params =3D { .thermal_profile =3D &victus_s_thermal_params, .fan_profile =3D &victus_s_fan_profile_params, @@ -177,7 +184,7 @@ static const struct hp_wmi_board_params victus_s_board_= params =3D { =20 static const struct hp_wmi_board_params victus_s_ec_board_params =3D { .thermal_profile =3D &victus_s_ec_thermal_params, - .fan_profile =3D &victus_s_fan_profile_params, + .fan_profile =3D &victus_s_ec_fan_profile_params, }; =20 static const struct hp_wmi_board_params omen_v1_board_params =3D { @@ -2286,6 +2293,13 @@ static bool hp_wmi_fan_control_supported(void) return params && params->get_fan_speed; } =20 +static bool hp_wmi_fan_speed_auto_reapply(void) +{ + const struct hp_wmi_fan_profile_params *params =3D 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 =3D hp_wmi_fan_profile(); @@ -2945,7 +2959,17 @@ static int hp_wmi_apply_fan_settings(struct hp_wmi_h= wmon_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-ap= ply + * the active platform profile, so the EC firmware thermal curves regain= control. + */ + if (hp_wmi_fan_speed_auto_reapply()) { + ret =3D hp_wmi_fan_speed_max_set(0); + if (ret < 0) + return ret; + ret =3D platform_profile_victus_s_set_ec(active_platform_profile); + } else if (hp_wmi_fan_control_supported()) { ret =3D hp_wmi_get_fan_count_userdefine_trigger(); if (ret < 0) return ret; --=20 2.55.0