X86 platform drivers
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org>
To: Stefan Assmann <sassmann-llIHtaV5axyzQB+pC5nmwQ@public.gmane.org>
Cc: agk-mA9ux5SlULTR7s880joybQ@public.gmane.org,
	kjslag-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	Dario Messina <nanodario-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	civic9 <civic9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org,
	platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	bastidoerner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	"larsh-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org"
	<larsh-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org>,
	arc-e1Wt+8K1Ta8ZEwqihLH0+Q@public.gmane.org,
	ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH v4] thinkpad_acpi: Add support for dual fan control on select models
Date: Thu, 30 Apr 2020 18:40:41 -0300	[thread overview]
Message-ID: <20200430214041.GA28186@khazad-dum.debian.net> (raw)
In-Reply-To: <91feeffa-1f48-347a-fb90-7bf733647476-llIHtaV5axyzQB+pC5nmwQ@public.gmane.org>

On Wed, 29 Apr 2020, Stefan Assmann wrote:
> On 29.04.20 02:20, larsh-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org wrote:
> > Do you have a use case for that behavior?
> > 
> > The previous patch broke the /proc interface, didn't not work with the current version of thinkfan
> > (but a a version with multi-fan support is in the works), and it had hard to track internal mutable state.
> > 
> > The proposed change is clean on all these fronts.
> > 
> > I'm not a fan of surprising the user with unnecessarily complex behavior (but perhaps this can be added as an option in the future.)
> 
> I concur to keep the patch as is. Any additional functionality could be
> added later on, if deemed necessary.

Yes, but let's avoid changing exposed APIs as much as possible...

Anyway, the correct interface *when exposing both fans* is:

1. Use the "hwmon" sysfs interface to expose each fan separately, and
control them separately.

1a. it is quite acceptable to control them in group by default, and have
a module parameter to select grouped, or separate behavior.

2. /proc/acpi/ibm/fan shall control both of them at the same time, and
report data from the first fan.  THIS INTERFACE IS FROZEN, LET'S NOT
MESS WITH IT.

Also, "fail-safe" for this is to have the two fans on automatic, and to
enable both fans.

All of that said, *it is very much acceptable* to merge a first set of
patches that controls both fans simultaneously and exposes the fan group
as if it were just the main fan, and later improve on the patch to
expose the second fan separately (provided safe group behavior is
maintained, see above).

-- 
  Henrique Holschuh

  parent reply	other threads:[~2020-04-30 21:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200423165457.54388-1-larsh@apache.org>
     [not found] ` <20200423215709.72993-1-larsh@apache.org>
     [not found]   ` <20200423215709.72993-1-larsh-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org>
2020-04-24  9:59     ` [PATCH v4] thinkpad_acpi: Add support for dual fan control on select models Andy Shevchenko
2020-04-24 11:11     ` Andy Shevchenko
     [not found]       ` <1630425700.517847.1587973463950@mail.yahoo.com>
     [not found]         ` <1630425700.517847.1587973463950-sAHhhX/85wgbqTNvkayDYw@public.gmane.org>
2020-04-27  9:40           ` Andy Shevchenko
2020-04-27 18:41     ` Dario Messina
2020-04-28 21:18       ` civic9
     [not found]         ` <1605997626.1278142.1588119634625@mail.yahoo.com>
     [not found]           ` <91feeffa-1f48-347a-fb90-7bf733647476@kpanic.de>
     [not found]             ` <91feeffa-1f48-347a-fb90-7bf733647476-llIHtaV5axyzQB+pC5nmwQ@public.gmane.org>
2020-04-30 21:40               ` Henrique de Moraes Holschuh [this message]
     [not found]           ` <1605997626.1278142.1588119634625-sAHhhX/85wgbqTNvkayDYw@public.gmane.org>
2020-05-01 18:48             ` civic9

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200430214041.GA28186@khazad-dum.debian.net \
    --to=hmh-n3tv7giv+o9fyo9q7ep/yw@public.gmane.org \
    --cc=agk-mA9ux5SlULTR7s880joybQ@public.gmane.org \
    --cc=arc-e1Wt+8K1Ta8ZEwqihLH0+Q@public.gmane.org \
    --cc=bastidoerner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=civic9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=ibm-acpi-N3TV7GIv+o9fyO9Q7EP/yw@public.gmane.org \
    --cc=ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=kjslag-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=larsh-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org \
    --cc=nanodario-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=platform-driver-x86-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sassmann-llIHtaV5axyzQB+pC5nmwQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox