Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp291131rwb; Thu, 11 Aug 2022 01:18:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Ur1D3blbifyjH1AGFqBjRVtSJQclNzDJ6Qyt86/sC2bIy4Cs5xvd+7skY7Hu5nr2JKwNR X-Received: by 2002:a17:902:7fce:b0:16e:e3e7:b12f with SMTP id t14-20020a1709027fce00b0016ee3e7b12fmr30821965plb.56.1660205887024; Thu, 11 Aug 2022 01:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660205887; cv=none; d=google.com; s=arc-20160816; b=GAqfn0i7n+aO1oClEHes19KMu+apAvthno2VnlRoBGlqlXJkIqh/4fF+VE0njp+gWr OulZkkBAy7wxM2mYam/g9za0UlYQD8Ss47yP2rzMGZlbhQBP3hRjjdUJYyZyU+F7pIyp 2qLYWK8MjHfxXHV2aj4EDCWxHX6gI1TVhrr2pQa5h1kBf8P72lGELk/rr7CqXiWQ/dYN e1JlcpOarqXSJZzImHFWbhfDwWOdJnPGkLWR8/IhbTdUJBh0v9Gt9l4hgpXE8fyp4clo DLfr3qtIQ43u/kpZvAabT6pPEVdOMVpHXHBwRD4rLg+YN6a7Rh65otWGrR/eV2HEwpni 8+HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=aC3eZygEILcyB4OX/y6cTTgl8THV1WO/nlbM9RapgzA=; b=hI3kjqH81yjQcVKDeqNpOiZzX52dijzvPuhTkfMPGSBrfctskn2wEVMHi7powR6Jg/ GrqYg0NN2BQ+GhHTATCHTmbKkPpXy/IGbGqZ8Piz6bAO0jpR1AlkafvZJH1Ksw+Igb2+ CuLiI1TG21FeIz4I0diW27iR30IHkrJV3K78P5sas+6q3wnXb4C57eKrzIiKdqSPWsVy cVg2+L19yV2PTGnRP38GgUo5jSkZKRJs1RMWVlzHuMLFq99Gdsr6uqX6DhxA1A186Dec n20DSXiiJvuhr0CM7f4JvIPozaHZ+Eaxfme8/V4zcy+YSoyWEkClRENUWuJuFrgKkCch MvmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=ru+9AIOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d6-20020a170903230600b0016f86636c7asi20841247plh.69.2022.08.11.01.17.53; Thu, 11 Aug 2022 01:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=ru+9AIOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234333AbiHKIFR (ORCPT + 99 others); Thu, 11 Aug 2022 04:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234318AbiHKIFO (ORCPT ); Thu, 11 Aug 2022 04:05:14 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FB42B2C for ; Thu, 11 Aug 2022 01:05:10 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AFF75240026 for ; Thu, 11 Aug 2022 10:05:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1660205108; bh=uBjOoAjoOE2x/uB83MFmjFqoBdTq+uDcdv7yqd4frS4=; h=Date:From:To:Cc:Subject:From; b=ru+9AIOAljZ4b3fVkdp19kyLiAihJ0zKPfcF1B+Rf3fwXKaLxXFddvvL39n1D8+Jc PxFJgZeorWck0Ym2vyRONraZtyZ0PnRRWEt0l6AhdWsBxBWR2l5IiDoKQO4gRDS5cM g6Hz2aU+fdyA4Du/JuiPQ7Q8DAnMcZAK17TbamE2m/LZ8fl5pgwPYu7S3hFcFKW3Tc dLQFCf1nfs7xqn5WndsU5yiMNclcRmDppeZL+Riw+qhCZqIl6o/RzndJgIO2r9JTCD DYWlerU4QpneHE80pr76/jc0bq20sZfu8bP/hiJIt4TXU7nx09TCPnx4V6JEcuf/qJ MuIpMRDKkiVOQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4M3K9H473jz9rxV; Thu, 11 Aug 2022 10:05:07 +0200 (CEST) Date: Thu, 11 Aug 2022 08:05:06 +0000 From: Wilken Gottwalt To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, Jean Delvare , Jonathan Corbet , linux-hwmon@vger.kernel.org Subject: Re: [PATCH v2] hwmon: corsair-psu: add reporting of rail mode via debugfs Message-ID: <20220811100506.4d69b027@posteo.net> In-Reply-To: <8beb8ae2-04cd-fa37-5dbe-8d18e6a53f4d@roeck-us.net> References: <20220810185658.6e27d9bd@posteo.net> <20220810194852.78536153@posteo.net> <8beb8ae2-04cd-fa37-5dbe-8d18e6a53f4d@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Aug 2022 11:21:36 -0700 Guenter Roeck wrote: > On 8/10/22 10:48, Wilken Gottwalt wrote: > > On Wed, 10 Aug 2022 10:29:08 -0700 > > Guenter Roeck wrote: > > > >> On 8/10/22 09:56, Wilken Gottwalt wrote: > >>> On Wed, 10 Aug 2022 09:31:21 -0700 > >>> Guenter Roeck wrote: > >>> > >>>> On 8/10/22 06:53, Wilken Gottwalt wrote: > >>>>> Add reporting if the PSU is running in single or multi rail mode via > >>>>> ocpmode debugfs entry. Also update the documentation accordingly. > >>>>> > >>>>> Signed-off-by: Wilken Gottwalt > >>>>> --- > >>>>> Changes in v2: > >>>>> - fixed spelling issues in commit message > >>>> > >>>> You did not address or even provide feedback on my second comment. > >>> > >>> Oh darn ... sorry, I was quite busy and didn't really pay attention. I will > >>> answer the earlier mail and think about it. > >>> > >>> Though, maybe you can help me with that what keeps me so busy. Would it be okay > >>> to use a kthread in a hwmon driver to do sampling (500ms - 10s) in conjunction > >>> with HWMON_C_UPDATE_INTERVAL, or is this a strict no-no? I know it is actually > >>> used to set a sample/update rate in a sensor (-register), but this USB-HID > >>> approach is a pure polling thing. It seems to work quite and enables the driver > >>> to collect data quite early in the boot process. > >>> > >> > >> It really depends. Is it _necessary_ ? The pwm-fan driver uses a timer for > >> periodic polling, but that is because it has to. We should not do it purely > >> for convenience, and from the code I don't immediately see why it would > >> be necessary. > > > > Together with the polling I would add encountered lowest and highest values and > > the average of basically all available sensors (kind of session statistics). I > > know it is a bit odd, but currently these power supplies are sold again in a > > newer version and people really like to use them in their servers/workstations > > because of the "realtime" data and this driver. No joke, but I really got > > several requests to add this and I must admit I have quite some fun implementing > > it. > > > > That is out of scope for a kernel driver. If desired, a user space application > should do the polling and calculate statistics such as lowest/highest or averages. That is exactly what I told the requesting people. Now it is in the public record and I hope that kind of requests go down a bit, at least for pushing this in the mainline kernel. greetings, Wilken