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=1795447992; b=vsK6CnmaVzoHE8oXtwCwj7jsYQgQZM681oIRnIlw9K5lhxk4Lua5oekRn1cQ8MgQ85n2 7xO6Y/OF7Jq0JydG5yaKHOnEdYw5dZVnWETnbQVw3dTq3x898R6ec+jlQDZ/2b/KSV4dW /9nEFIjZoAMCFDB98hI2qMZZV3edwBi4XsXTWA7Bac3cTBgpMO/nzNl5nIa144WtsiU9O wScmbS25prIEPXWpisiN8zF1LyqFk2pVOPKKTh014YykXDs1i3JfbS2Lax17a7TK35TVL 5Aza8NHKBReiWM3RwSDilzva4J46KNlQ6Y/dlvPmEXwY3bvVG+7s0HQXi4yebla9Y1Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795447992; 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=ipIK7sVjw5HFO+rITfLdlmyImTHYjd1/xZQ8o7M7p5g=; b=4H/5tMY3xU/cX7psUztaV9tf5HhZmpWHHHAuTW9RKPnpGAOsLz5H8O0t1LUCJV+ywN7t +0nj6ep8FnuTf2hU16dLHlK8yTR1tFq0exTrjP0Dy6bZlKsGpkoVVBlEk0s1ZrwYrkyRR hdAcO/ByKOWRxAJHPJ/Ta/cR5ehc208P+Kh/IIA6nGAEmqyJZcuhS9J9ZSqg3/itJzuUr JDvUxUImvF8XtLb3fmTWhcG5ELGr9EhMU5+kWFN24n5z21AWZUgtSUwApyOtyK8sqllzY 2aQ3miHeWcpi0lWXX6lJHmHmQPGLhG3KiwO+QXY3IWt3fXEiT57+PqObU1/8LsJ+Bzw== 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=RXtVyhUO; 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 EFB2A606A6A6 for ; Mon, 23 Nov 2026 15:33:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EFB2A606A6A6 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=RXtVyhUO Received: by mail-dl1-f52.google.com with SMTP id a92af1059eb24-170135e43c7so4724004c88.0 for ; Mon, 23 Nov 2026 07:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795447991; x=1796052791; 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=ipIK7sVjw5HFO+rITfLdlmyImTHYjd1/xZQ8o7M7p5g=; b=RXtVyhUOdOo9t65ynoQFDJgTSUThZ5zeGSC5PI/g5g+aRMOLtSX1WpNLxOMyvkmAD3 ZkM2iTmg9jY3Ug5GT6BYez4T5UKvRnIQXm5fQ+gZIRbm6ZtLtzRW3WLBabv39PnmJ3rt CTaXr2QIykD3A7e/VoifJgbVOn0ENaFSMa6SIsBGE/kNUpq6O0Kk0XySAbGhehQCQfRL VsIjfd/1PQ3MCbGcDNV/n/Em9TsPTEnQY1C7nbCMhTj1k24W+PVKNyZaxjIOVPWl++ew jjetNn5/3Is8ByxMJOX1jEuRET8QypyVoBGWgdC1Wv20hPX9WdbmASP9c6Aik7/eJMIG guTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795447991; x=1796052791; 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=ipIK7sVjw5HFO+rITfLdlmyImTHYjd1/xZQ8o7M7p5g=; b=FjMm7B3ZTaC/AXUPatU7pb+Oj90omsE01HftdOEyj9XLwbyd38j57gxajeUeQtMdtp TRaTkV8Y5FRyTfrwMbanwQJrthrS6zmxvsvj+fXw5uEvuVppUBNXFNzRBdqjxqoqW8d4 pXxb8e59Mch3KJqIi95UMxy6QQNoTsZMfhXW+hqqvbnJy7HG7TfkruHuLRrCT/OAO/sd K9V6g2OVyMFLuCjvfAYMTYKUMYViBgYFPd2PW/Rf1/ryiwTHvS/R/HWUAHwpL9yOuVtH sAEuwqMSK1rPS8Jon7DCtfmqfPtQC9X6JoCWmo67zH5xAUo2qS8NJ2GUK//y5IWUCSNz kDTw== X-Gm-Message-State: APuU4Z8AMorHU0OvnptLtTv2L0PYUa8IoK+3GcIeCzWy0I6SDZhUtNFO ZfALM/F8bbgvjEalVW9Lw8yXA7vswQY7jB8mFfVOVdelA2MvaVRoIovZhPrYVw== X-Gm-Gg: AZFdTZd1mO3bITTstupIdHYHbVMuTMV+ILxqs+n6l6WbdMTa3QtGRL5D2pY2w02S9IB xYPFmy/wQ4VmldIwjKmGuCaBYIl7zN+IaYFgwIKttHjptkTR8fK0AyXaaV7islgWteqfRdkVNPW ds5wG/F5OpylxljIKquNU52Npn9nKysjgCxExt8gKP7x01+DUlfHifoGDEQ9jO9LxqlJxYI1XBZ Wex9in58ECnqxcYdJe7ieYfWqmHVC+1H0V6h4ZCfUmFT+czBZQQ102gzmz3RGXAvfxXnHS50krL num5OOJz5/eRqbcd18+Kk9FmtGaapVR4iHEc6Gm8dovpjTvVDFpdZY+gJI8QIgP6qKvZCndkd8O PJ28Trt85Zyor6fYn7DQph6OLgMeDeGDdQvBJCWjMcVn3d4qAb2Jq/gBJaD/Gq2dKkigR3yJ4VU k/KX79Q8Frw2tlLEkzJOtOohnr+FfgjdA4Mx5tnLGFPSx6GJlkOTCibsAnvKsPeC5rLFC8/EbfG krqIF2DOetmeSwxYOlnYagrH2m23MG+unHVI3k6EwlroMafJLo4EDBH7V+cB9n4k/rYKzAfHok1 n2VxHq25LO1JT+p70xBXvVHuVKSxJHpDHXMyRF7C0tvrd/MksygnTg== X-Received: by 2002:a05:701b:4308:b0:165:aced:1fde with SMTP id a92af1059eb24-1b56f87a910mr4332174c88.0.1795447990101; Mon, 23 Nov 2026 07:33:10 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 07:33:09 -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 1/2] platform/x86: hp-wmi: fix platform profile values for Victus 15-fb0xxx (8A3D) Date: Mon, 23 Nov 2026 20:59:16 +0530 Message-ID: <20261123152917.14260-2-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: 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. 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.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795447994; b=bhc0r8czElv+JdfyL1XkPsfwI/DbM9aZ/mxEHxiRMJ5cIRVn/SLJ5Nod1z7+rjnaIYoI fqMPfSDSQiz5HVCOSWEGGt7d5CvICCZvS2g+nIUFifp9Po8miyyedtrRfdOFSuXQHtj2I f6vcgcBaODF6u2JUkAOSP3aDSzB73y8oz8zDWiIAXrxh15cF1Rb3qt3ySL9YPhE/83ctU nPa35nlskBHI1xdQYD0iU3FwptRA8y2Tm3TQTYA0tVM8of1sZWv4IilTZr/gYxq+D20YH 1p6bhEPMiuYkYtumXOaVOW4mEY4HqIYguvSZIfmkLNREB+iIFCQ+H8j6svp+DkGwmTQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795447994; 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=kWLSHx8/R+2zMKFW4nd9QjS92NXhkGIV5/Qn0pcMWDk=; b=Pm/c4c+kSJzp4Xzh9Am3cNWa3uLF6mnE6NQ9GWsq2zhLE+5MXzpj+JE5g8qcnYJfa2Vy fb6cJsXpE0RQTcrDhOYbUM7DaruMBIMkuq1nkJZ64ZJ4VWkZgqv8SPgf/7O3dEoXg/Xi5 9HY7SrEEjMj4lztelj1sMltKTEx8Ji5qiPRKlWwRLB4l3GEN9BfnJ2GjyddlobqrvKVqm VSiVs1/gu9GzpCdGwhqGQ7qvOtZo29c9Elf/OLqAk9owRjrQc8NMBYDRZTpO5cYnQU9mm E7dr2Khs9s68WABc+TBNalpPbLXkvF/k1m5Oo7A488dcvEvTs3UD7kfwbRUl+nWfBDw== 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.179 Received: from mail-dy1-f179.google.com (mail-dy1-f179.google.com [74.125.82.179]) (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 97CF7606A684 for ; Mon, 23 Nov 2026 15:33:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 97CF7606A684 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-f179.google.com with SMTP id 5a478bee46e88-33bf40b0c8bso7363675eec.0 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=tyl8DPinEBoHubtjNgOiF0CYXLZA7XX09HK2BKrYyhGK3w0k3V73/DTQF2TX6MBvEM HAwYnJD0BQYA+VaMrvoD5HEP2j1mcr/A5I/y4LPPOCs6NtsQa5bAi9z+pz6vkEu2gpuj sSuqkzP7B0ly9xJjwua2kuToND479fYx5k4CWX2MSMg4GMP5KzlWHiLCNsBEFI3i1ld3 MaEIZbcXiLEArH73FNyLz8iTbU8PpCu64gm8qRkOLGmBsRAs3DqMzWLMYAn97Yrbzynm EqkKfUQ+y78u0gjiSuk61unKAkWHT4h95fR/ndbmudxpV4TIXORbpP4cEfEBh7EQmJQ9 lFxg== X-Gm-Message-State: APuU4Z/cXbus6h2YYCrc258AwIudwwzh1uHxLEA8pN+THVhB0MOAI9IY yIerQq44QdjxxBk3CKYnBV9Bno0EX86TaR9FKiRmYzEY20VAMhEEPpdq X-Gm-Gg: AZFdTZeXQuAb9AKt/0fgOKHcYneleP+u0ubJyT9abitRhX0DEl3gCyynTogBUz++5Nf D+H2cdr6jvYWNqQlQAkfJOQMWHCuSNj2H1teiOc8GbZPT+tugrLGSxVLlPyNJpUQ+aWxmLWopU/ RoIddKghSfB6PzTOHjFNgn0XeIgWc51OJti9PcpPKYSkSp4HCpnCn6C/K19sYCJEyxqy6UY4xwp ddmc+7bEiBPpFeZ7jUa4K+rrhOAyegrM9o4AtGbkZKmNLew7iX9vmfne5FSsnd5gX140sQFqQzQ P5CaaDxwc4LtCXFACz4ttXK04JNc1WngTefqMano18XrhM2wpc/35Q7oeSGFHg1FpXROzJRAjKR ev0nRty/+OiCYWrnJZeT4v5ZeOiim8m+8wegWKUtKktbJ0ML+1uUiBL1VqPsv+vI3x23zudeq3x JuiNuCpkEl0fTn7CbYPOMUni3icjjSFhYzis/KiWKP7F2bgoMIuM7SvdWS/M3Dg9vha02YgvPEF Khwg1jqwUueZGMwuwyoffYPcNLWIRwSZIeP3WrbzzZy5B2xaKG6rxFqg3x9kDf7bELzMjL4iq2o Y5AS738jbLMvZSPjsIrC4pMjCCAha5KaqcAB8Yjy1eFwxUztfI5NyN8miGFz 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: 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" 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_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,19 @@ 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-apply + * 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