Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp114381lqp; Mon, 10 Jun 2024 21:17:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8uY66oWT0Fc8Vto7Kh9NUdzntimVvtuPqn+85GWJ/bJppQL0yWElp9MFAJy2hxcxlbYJWZSyYqo2WYJrDq8D0pRxuVS60zhXFbY0Iow== X-Google-Smtp-Source: AGHT+IFbAxFzHnMnw3t+sZ6QXMjZFCOrnNOLQBOszqY2wai/nDa6cn9cn88+qdmuYWlks88x+4My X-Received: by 2002:ac8:7f05:0:b0:440:565a:9207 with SMTP id d75a77b69052e-440565a94eemr104125761cf.62.1718079435996; Mon, 10 Jun 2024 21:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718079435; cv=pass; d=google.com; s=arc-20160816; b=riM1K73wBAPRyeZoxHQ+Fw4ynK16jtdlJM7aS3DUiFcmzxwtwXtrH/WJW7uQrBy34C P/kjd2p6mRCEjRupXBQ6h/17G++qdwHuqd63bEoM+AyTgb3pFiYmtwJu6k4so7KUMW16 aupn/HteNZYGsjb3upjwqxSDlrtAZf9HQmzGIXMA5rucLTJLl8229eWPzUmKjfsE8b3i iy1WMSYQ6UymibbDqyFRv/MFLbJRqNEAPxdRMfWu29Z8ez5oHWc+69ErT4w+ZF+hfXrS b4Q1brRE9XeK6BfFdj8kwXPHtPm4V7YFSUN7/YWi0BTJd1DhyKhc5IQ430Ld1ENlvTWM 5o/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IiKI5PvR+ePZpHPJS83BwqCN4yxz5lsxOhA2qnw2E5w=; fh=4cWj7P8QTKnBEtqci8WDa5A89cVboEzO7w11MOibiTg=; b=kKlkrxQXAzDjRJkwE08PpIjz7vf+IiI5JH8j3C+IVEXKDq4p+VaycaPNl5hrsaxpuT PIKQs+vxIIt0mD7fMoqJek+BWhneTDYCQ1ql+awqnux3gOm24vg8w60M8W1WC+Ec0j/9 d4xCyQrSISIAZujg8RfvTw+Wpl5rOAxRKXYJQ8z4G7oQrFSZOmO5zBMTh2bIW9ZgRCH3 C0DCKno4W5kX8tfwwJK2OeIy8RV0yHr6JA/+fphS4BxV/knzUe0IvGgPfDDltvM4eqgP w3XFtiwSmjSL6EVo/mtIL1wEocmxinQabCO4ZPpG7yCHGDd43MkWj2ik+cFGvTKw1Kmg XPCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=fqdbYVdI; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-209243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44137a0928bsi13955571cf.632.2024.06.10.21.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 21:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=fqdbYVdI; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net dmarc=pass fromdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-209243-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=weissschuh.net 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 B72C71C21F97 for ; Tue, 11 Jun 2024 04:17:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43A9416F916; Tue, 11 Jun 2024 04:17:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="fqdbYVdI" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B47CD22095; Tue, 11 Jun 2024 04:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718079429; cv=none; b=RgbE6cXVwS9et0Himpk/ixc9hCJBLZ43jTPB00zIT73WDFOdmO90S4hKHGRitSvViiLX4DDnoN2poMoBXfMKi3O1dXE00GBvERR+7hz/Ly85SqzF17nT0Gfk8UOtbdamrVntd15YhQJ9dPoRytqNcNrXh01Ep0zbHGXs9WKRBzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718079429; c=relaxed/simple; bh=pOqxnzpHsqOorNOTPo+6rMsXtOAA9gSB1Pi1l3jkIyA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U6fT1CQ3FxfQL57j39sY++mYcPEu1Gi6PVWRZgJVFblotDB65ewNhP5D7OaXMYzcZLkf8GOYCkTqVsz7i27TkO+M7Hnq4hcatfpqJqC2iaLsM+ph9Wu+sodQaqwfg+t9mmi+3DdbTcWPqfgKCcp/H8t+Z9YLMvZXseQhC+aTvrs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=fqdbYVdI; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1718079423; bh=pOqxnzpHsqOorNOTPo+6rMsXtOAA9gSB1Pi1l3jkIyA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fqdbYVdISC27qrrAvuV+Kb8aqggOdTRwNbAKDNHhALa+nHwlBqh61kx2cv2uP37hD V3KOLUU4EUEkmJl7Z3MQoWywK78uTVjAmByvSBO+dkY9cs6i6z8+Ogo3PLh6/oBPi9 sggBP+WGlZ6IjSKX1xasoaDRvmCIj55DVx7GUzKU= Date: Tue, 11 Jun 2024 06:17:02 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Guenter Roeck Cc: Benson Leung , Tzung-Bi Shih , Guenter Roeck , Jean Delvare , Dustin Howett , Mario Limonciello , Stephen Horvath , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH 0/5] hwmon: (cros_ec): fan target, fan pwm control and temperature thresholds Message-ID: <26d68031-233f-432a-b395-cdbafc31191b@t-8ch.de> References: <20240608-cros_ec-hwmon-pwm-v1-0-d29dfc26fbc3@weissschuh.net> <536e51a1-5968-4493-96ce-287167b89288@roeck-us.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <536e51a1-5968-4493-96ce-287167b89288@roeck-us.net> On 2024-06-10 18:18:05+0000, Guenter Roeck wrote: > On 6/8/24 01:12, Thomas Weißschuh wrote: > > Add support to cros_ec_hwmon for > > * fan target speed for fan 1 > > * fan pwm control for all fans > > * fan temperature thresholds (RW) for all temp sensors > > > > The EC also supports tempY_auto_pointZ_{pwm,temp} but that does not yet > > seem to be usable from "struct hwmon_channel_info". > > Guenter, is this intentional, do you want me to add support for it? > > > > When I wrote the _info API, I figured it was too chip specific to make > it generic. It is also at least somewhat questionable if it makes sense > to have all that configurable through sysfs in the first place; normally > the ranges are device specific and should be configured through the > thermal subsystem using devicetree properties and not be touched by > the user. There might even be warranty implications by playing with > thermal parameters if someone manages to overheat the system as result. > I really don't want to help enabling that. Fair enough. > Which leads to the next question - we are going way beyond just reporting > system operational parameters with your patches. What is the actual use > case ? The pwm control is something that many users want. There are a custom daemon [0], its gnome-shell-extension [1] and quite a few scripts shared in the Framework forums to adjust the fan pwm through ectool. Personally I'd like to avoid some thermal throttling for shorter compute tasks where the default curves are not aggressive enough. For the others, it's mostly because the information was already there. I'd be fine with dropping the write access to the thresholds, not even ectool exposes that. [0] https://github.com/TamtamHero/fw-fanctrl [1] https://extensions.gnome.org/extension/7053/fw-fanctrl/