Message ID | 20240302170147.13026-1-ivor@iwanders.net |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-89523-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp563003dyc; Sat, 2 Mar 2024 09:02:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWAbgCH/BOfu+SBVuxrVAT4nd8lhn/dOOTjXOjti36XYNbpZQ1BjTfcS99LbRut3E+MFI8DsnCFekgTrSg6QqawU2zuSQ== X-Google-Smtp-Source: AGHT+IFt3CG4kuW/Sz2OJ/W/X0tIhgE7KZ9fwmF2J1vJWsKVM36Cu81eELqbCeMK2+IB7Vnlj+/e X-Received: by 2002:a05:6808:11c1:b0:3c1:c8be:7678 with SMTP id p1-20020a05680811c100b003c1c8be7678mr6212718oiv.18.1709398929861; Sat, 02 Mar 2024 09:02:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709398929; cv=pass; d=google.com; s=arc-20160816; b=xP3GV2Z10F2EgI1DNqE4h9xZeiKVAK3trTmfb0JwyfQKDngrjBQfQxrSZGMWKSrAq1 ifFsj8+txkFOSRwHdrqbooPw4yUrFA9c+PuBCwLiXRrUhdZgl2EURxdNlFvZ4s/eJi8H la7wKdKKHXHOFPJWPNY4+CHFxEKKxxGVVpZcI/fa9Hel4WCgdF/bnYvmhm1ZjMAQSOQr u9aPTz/whejHwFPEw/hB4Nzct55K4srKlooa4OWhM11UFU9rnab/+0ZDIA01rzr4YVGl 5eD3bbcMk5BtfhulxNDQp4Lgcqyj/HjC9LOx5Axm6zB6bduf5mhMeQ8f/FZwmjXYZ8WL eFNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=3M/d53LufZMh7nY9lLclzf68ULaBUxwU4N1OOUPIPtk=; fh=Fd4lQv9VX0iadinCCSIX6GaXCnaur8gZeP0BCbWBj+k=; b=BPVvdU0VDN4ZLYMHBlpqHwRza3NO4612mgclGNpByKPJS2W6XFYsB2jatRt15BXhBU PPIW5Fyg/AwObwJjEaeOLpf39TQP1nI8AsGdO1+PGsuv2PHNNEO1ireVqKy3cME51fWl udtiy/4PA/I4ta05zIoEm+hQ3vqO2NQX2ADDYk9WkUZHbL6YLsSo3jXcm37FbxMfghaK HAF2XgNf/AU091HmqAARJpaKTTEROmZRFcq9aO91HxcuGrp3rlNr2ObbH7b70n1z5JWJ 8Zw1VG/Hkotv9neoL7WHhyQBQUD4A7nQEc5K58Ghhx4leLQAZXef90Hc8XZWarnnut3Q TTww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=KplvVdEy; arc=pass (i=1 spf=pass spfdomain=iwanders.net dkim=pass dkdomain=iwanders.net); spf=pass (google.com: domain of linux-kernel+bounces-89523-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89523-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fe2-20020a056130188200b007d9014a9b1fsi946800uab.108.2024.03.02.09.02.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 09:02:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89523-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@iwanders.net header.s=google header.b=KplvVdEy; arc=pass (i=1 spf=pass spfdomain=iwanders.net dkim=pass dkdomain=iwanders.net); spf=pass (google.com: domain of linux-kernel+bounces-89523-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89523-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9C2001C21434 for <ouuuleilei@gmail.com>; Sat, 2 Mar 2024 17:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 373AC2BB0E; Sat, 2 Mar 2024 17:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b="KplvVdEy" Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.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 7370522EF2 for <linux-kernel@vger.kernel.org>; Sat, 2 Mar 2024 17:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709398914; cv=none; b=KNEjcCMyoKQZbl6phou4Ne2c+l5qYt7IS++GN1Iy7r6L2FBs/B7OcpYDDarl3oB5sJD/TG/FIjm5WtR9BsMRxPr8iAsOaxO1Qbsulyf0Sht9wtqg7KICszFWj7MTUVmdPODdPEZU0WoS5R1sr8uuA7+aX3St79wx6w9WTKcb6u4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709398914; c=relaxed/simple; bh=mgtNdTqzkaN8N4V1/T55LN0NAswMFpKEgTXlVE+QKcw=; h=From:To:Cc:Subject:Date:Message-Id; b=cSEUByYnRAAuhV+yG5z+snXP/uBrccrKWAxZqJFuBJypcX8v0zYn9ktQn5qEgtoMN3O+hHwZcw65VHNExtXj4ZnUhOpwgBkUuWxEM4vNhntfwFOufsHfjdPhfMy5eeAU9IYxV8abLWvJYn1lL2gFp0qlC0m0hO5U2WZjBZinKoM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iwanders.net; spf=pass smtp.mailfrom=iwanders.net; dkim=pass (1024-bit key) header.d=iwanders.net header.i=@iwanders.net header.b=KplvVdEy; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iwanders.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iwanders.net Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-787990149edso159158285a.3 for <linux-kernel@vger.kernel.org>; Sat, 02 Mar 2024 09:01:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iwanders.net; s=google; t=1709398911; x=1710003711; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3M/d53LufZMh7nY9lLclzf68ULaBUxwU4N1OOUPIPtk=; b=KplvVdEyJA4SilYY7t64Nsb9cLpFJ2QiI1IlIxQP2lWLaGKeXI8OnaTGc7oNv3i6f5 QRDetY8PRIjwtjlZeUq+Co7v+hBkDsFfUJ/JMoUygIDju533j7Rdfcm2iEmMdC+T+cvr jbkevcPi19ngRAyg9z/duIBF48R1f3Uh+LwXk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709398911; x=1710003711; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3M/d53LufZMh7nY9lLclzf68ULaBUxwU4N1OOUPIPtk=; b=REHcEiX7KeoKj+lml1SveT896kPijGgRZJxBK//+pYHMOChod4TRruty/cuhzvF2TE ksJqoHjB1MonlMswr6yn4zbb6tPHlwsIeHkpu4OOKoEaS2R9NEx+Yb+aYz0Pq/I32Gd0 hoeFbTowT9rztK9AC/Dr+YA3yABfIqVD7MJa170aSNBZfp8b+Se9kAb1BGl7NBunbTSN XsGZXdv8dZWWyGSBbuZMpcERyj8D3V3uuyT9DL/JW8bt53JE44IQuvw1B6GIxe+M516l NPLtj0ardIE7c4X7HQuMXK5PddXr4WxjzDF11PtF7uvEvMZVCBueOK/dHcn3EJajHI8O KbZQ== X-Forwarded-Encrypted: i=1; AJvYcCULzwjSvBGcqiJWDbfutWkpRSsy4vvx4UyGVHH3esFTM3lU60QSNk7QuFDytdWFuW5kSPkaAuHMKQiIQJ3iEqcLNyvby8hTqYdZpAHJ X-Gm-Message-State: AOJu0YxelX+hKIc8cVaeCyadEjUCndK1qUzDp+9mO9IVuajA+/BFzMju gaMMmH3eLwQ8pCiISsOLDhX5erjSRMvDyCFGEkebe9lkGwDzo+tO8bafDkSVb42SBEXY3evbR0V T X-Received: by 2002:a05:620a:1a1b:b0:787:f097:45f1 with SMTP id bk27-20020a05620a1a1b00b00787f09745f1mr6236196qkb.33.1709398911366; Sat, 02 Mar 2024 09:01:51 -0800 (PST) Received: from eagle.lan (24-246-30-234.cable.teksavvy.com. [24.246.30.234]) by smtp.gmail.com with ESMTPSA id z8-20020ae9f448000000b00787c6ed9a68sm2684871qkl.91.2024.03.02.09.01.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 09:01:50 -0800 (PST) From: Ivor Wanders <ivor@iwanders.net> To: Maximilian Luz <luzmaximilian@gmail.com>, Hans de Goede <hdegoede@redhat.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ivor Wanders <ivor@iwanders.net> Subject: [PATCH 0/1] platform/surface: platform_profile: add fan profile switching Date: Sat, 2 Mar 2024 12:01:46 -0500 Message-Id: <20240302170147.13026-1-ivor@iwanders.net> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792434692162981166 X-GMAIL-MSGID: 1792434692162981166 |
Series |
platform/surface: platform_profile: add fan profile switching
|
|
Message
Ivor Wanders
March 2, 2024, 5:01 p.m. UTC
This patch adds functionality that switches the fan profile when the platform profile is switched on the Microsoft Surface Pro 9. Previously, the fan profile was not changed and that results in poor thermal performance. This makes the behaviour and functionality identical to what the Windows drivers do. A plot of the different responses to system load, as well as recordings from the SSAM bus can be found at [1]. Based on discussions with Maximilian Luz there this patch proposes the following changes: In surface_aggregator_registry: - Rename ssam_node_tmp_pprof to ssam_node_tmp_perf_profile for clarity. - Introduce ssam_node_tmp_perf_profile_with_fan that has the has_fan boolean property set. - Use the new ssam_node_tmp_perf_profile_with_fan for the Surface Pro 9. In the platform profile module: - Rename ssam_tmp_profile_device to ssam_platform_profile_device to make it clear it handles more than just the TMP subsystem. - Rename the enum conversion method to make distinction between TMP and FAN clear. - Add enum and set function & request for the fan profile. - Ensure that if the module's has_fan boolean is true, the fan profile is switched whenever the platform profile changes. [1]: https://github.com/linux-surface/kernel/pull/145 Ivor Wanders (1): platform/surface: platform_profile: add fan profile switching .../surface/surface_aggregator_registry.c | 36 +++++--- .../surface/surface_platform_profile.c | 86 ++++++++++++++++--- 2 files changed, 99 insertions(+), 23 deletions(-)