From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF91234BA24 for ; Tue, 13 Jan 2026 18:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768328773; cv=none; b=DWYiW0WbT/DSDe+O7Vbq8rjeZZkl55/XnOPt28P5GBtnLY9KLeVVnwdqh75V6n16GvETuGfbsThGKXBSc/41KzwXaldNF1HcJlCCl3kOQGyR784lDiqt2NtOS1E2N1iDT++JJWv3mKNXYH2h4SYOJMeskpUZha5bSFZFQkkpQ2w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768328773; c=relaxed/simple; bh=8SG04s9wQYx06v1A2VucKK65RR3078S+mLducKByYyM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eczoiK+YxTnucDrMpsciZoMIkVN23cW8US8oGu2wu2o+df9ODszQt/8ABVoJDO1ByUjEq190Uhsb6QvvzagRfYRkPieBxfNwXMmfkdPyueOipbi064k2V1ySv/BT8a0KQNgSnw7mZwnT2cPNVUMbvjD2dHEFgZJkkonQpLz9MeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LAj5Jbaf; arc=none smtp.client-ip=209.85.214.174 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.b="LAj5Jbaf" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2a58f2e514eso6597885ad.3 for ; Tue, 13 Jan 2026 10:26:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768328771; x=1768933571; 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; bh=OVL5kQVjLvoD/ErJctce5eQhwMrJFWi7sp0O/aTTvPY=; b=LAj5Jbaf3tH3ZOPinDUKttFEHryfCmi8vtG4VBC0PRmGZle6BlLzU5iydHWQBHgpUl b2B1XiZECW6HekCE43fWzx6q6P+aIHsA/5e8qws0Wu00ElGKU9vanenmOqMx6abhyXYu g8W0PleRpuGEhoLi1ZsMwVXP6bLq7bk5DkBWnK2+yiaqE62UFX2V05F62H/ZixPYhtnx iFf1Fqx42zkuFOM+ry7LCX5cH2lQDJSKEPVdIPYziM9trNs9ltmgTqXj+SfphYivfEcb nzeNp3Xt7eHXddYtrXosBVhQ1X2pltSt1C4Cyad1GWp3dT2KpoNo34f3ifbggpgMbd8k jmEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768328771; x=1768933571; 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; bh=OVL5kQVjLvoD/ErJctce5eQhwMrJFWi7sp0O/aTTvPY=; b=e+++qcD4eessD45I0RsIL364KmHStBLMFqwIGbkW6giuiNushkNTGfTIP3KnsknIf2 Y6IAAMIiCCWHzTGGkzw5u8wNMtM1v91lBFXNzIvyfy+9uuPTx54S9shydXWX9BpfdvXP BCWU2/d1ahNVrr9EtmZnoSkMH6KK4YT4ixV4sttL3oHoKWFy7hhncI7nxNgwx5JaxZGK gQpyrZ5bfjV5RtdPwuYJRhZNkRiIki9mEzCOr+zHh49+YCqCne3OcoWOIzIJxxmaX+7L HPJT2B3O/ylRpjg9WA1bSSj4UeUNiJwlCl8Pw9o70x58+CImIiY3XOfJW/Aj+bsbm2pg nt0Q== X-Forwarded-Encrypted: i=1; AJvYcCUUOYhzmEom3Lubo/s4XEqz5S7nqI7++xLCywbxo8o/FAIJvqUS7jiZAIjPXWLYsc/MY1rk7D//ZiIkCXo=@vger.kernel.org X-Gm-Message-State: AOJu0YxgE4lj5OpcHHQqY5Hco6Y76k1qW6HoJTfzyyluJ9MlrytdrE1J flVw6JDcfxneiruOLUmh6gB5yv5Ie48hu5IQ91CQTfVNvxPcwmkCtPDr X-Gm-Gg: AY/fxX4PYEBmucyNiF7QDk2oHQCzCF69hsCu2GJ7/buIIZGd8j8AkwXiCOntAWeKcUJ GNq7j1Lk5HS+aBTrAv4GSM7yuFmYGYaHgUuCygTgoOdp/ZPfsZEbMwaqZ6ByIB9Elf+/OT73DcL 33jqTKTns6E0ksnBfmgkkc6b2jWxv6QfBSZF1xvkyKGx/hdpI17K5FCxtxkRMtFCHVH6NefcWle GwJV0sxeTx8DzU7yu5W1C3oDbf1UIeyzyF88xKM6IaAS2JI08GhTaU/TFPZ79Zwi1epxTd6QfFe uLrIjTEhy8zQ5HkMyyB/TbIycbzGYVjn+i/kTQWIiVgrsDbyClrEfrxrVXRoAv+jHv1MU8qeICF pd92DFXBXn8cCGvA7LtSixg8kcGx7prR2h12O+YlwbWqf2WL5N1ehiF/mecuD8nbw5ejRke1nP+ FQRFSkblPyFOxstJ/3EQI= X-Google-Smtp-Source: AGHT+IGRfmH6saOe9CZzzdAQ/1Q0vye7WX6SW2Dbcu2Y1E+DmSdsjhhQQ2GsUI7YpF5idi2k7aovjQ== X-Received: by 2002:a17:903:46c5:b0:2a3:e89c:593e with SMTP id d9443c01a7336-2a3ee41f181mr228894765ad.4.1768328770715; Tue, 13 Jan 2026 10:26:10 -0800 (PST) Received: from archlinux ([2405:201:1b:225c:eb9d:1fc0:f95c:bd90]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2a3e3cc88f1sm204032685ad.78.2026.01.13.10.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jan 2026 10:26:10 -0800 (PST) From: Krishna Chomal To: ilpo.jarvinen@linux.intel.com, hansg@kernel.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Krishna Chomal Subject: [PATCH v5 0/2] Fix Omen 16-wf1xxx thermal profile and add EC readback Date: Tue, 13 Jan 2026 23:56:02 +0530 Message-ID: <20260113182604.115211-1-krishna.chomal108@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251218124303.22024-1-krishna.chomal108@gmail.com> References: <20251218124303.22024-1-krishna.chomal108@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes incorrect thermal profile parameters sent for HP Omen 16-wf1xxx and implements hardware readback support for Victus S thermal profiles. The first patch refactors the DMI handling for Victus S boards. By moving from simple string list to DMI system id table with driver_data, we can now map each board to its correct thermal parameters. The second patch implements "get" callback for the platform profile API. It reads the hardware state from EC register 0x59. This ensures that the driver stays in sync with the hardware during driver init and power source change events. Changes in v5: - Improved platform_profile_victus_s_get_ec() to support multiple EC layouts by iteratively probing offsets. Changes in v4: - Fixed driver load failure caused in v3 - Handle err after calling victus_s_gpu_thermal_profile_get() - Fixed wrong function call victus_s_powersource_event() Changes in v3: - Moved DMI lookup to hp_wmi_init() - Marked DMI table as __initconst - Renamed `eco` to `low_power` - Added second patch to implement "get" support for Victus S devices Changes in v2: - Refactored victus_s_thermal_profile_boards to use DMI table - Implemented driver_data to handle thermal profile parameters - Moved enum definitions earlier in the file for thermal profile parameters Changes in v1: Initial fix for Omen 16-wf1xxx thermal profile values Krishna Chomal (2): platform/x86: hp-wmi: fix platform profile values for Omen 16-wf1xxx platform/x86: hp-wmi: Add EC offsets to read Victus S thermal profile drivers/platform/x86/hp/hp-wmi.c | 275 ++++++++++++++++++++++++------- 1 file changed, 214 insertions(+), 61 deletions(-) -- 2.52.0