linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Valentin <edubezval@gmail.com>
To: Peter Feuerer <peter@piie.net>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Andreas Mohr <andi@lisas.de>, Borislav Petkov <bp@suse.de>,
	Zhang Rui <rui.zhang@intel.com>,
	Javi Merino <javi.merino@arm.com>
Subject: Re: [PATCH v3 0/6] acerhdf/thermal: adding new models, appropriate governor and minor clean up
Date: Wed, 30 Jul 2014 09:16:00 -0400	[thread overview]
Message-ID: <20140730131600.GA14219@developer> (raw)
In-Reply-To: <cone.1400194431.560139.1402.1000@galar>

Hello Peter,

On Fri, May 16, 2014 at 12:53:51AM +0200, Peter Feuerer wrote:
> Hi Eduardo,
> 
> Eduardo Valentin writes:
> 
> > Hello Peter,
> > 
> > On Sat, May 03, 2014 at 07:59:20PM +0200, Peter Feuerer wrote:
> >> 
> >> Hi,
> >> 
> >> This patch series is intended to:
> >> 
> >>   * Introduce "manual mode" support (Patch 1 & 2), which is needed to control
> >>     the fan of a few new models.
> >> 
> >>   * Add an appropriate thermal governor (Patch 3 & 4).  Manipulating and
> >>     fiddling around with the step-wise governor has been a very fragile thing
> >>     in the past and as it broke again, I used the opportunity to add a two
> >>     point thermal governor which implements the actual fan handling required by
> >>     acerhdf and puts from my point of view things straight.
> >> 
> > 
> > Can you please provide more groundings why step_wise is not working?
> 
> Step_wise does (or did) not support hysteresis functionality, so what we've
> done in the past was to manipulate the fan handling within acerhdf (e.g.
> reporting different trip temperature, based whether the fan is on or not).
> But this was very fragile and with each change in step_wise we had to find
> another method to somehow fit acerhdf into it again.  Step_wise is clearly
> intended for fans which can be regulated in speed and it has some fancy
> algorithms like trend monitoring which work fine there.
> 
> But for the audience of acerhdf it has always been overkill and they've noticed
> broken fan control, when things changed in step_wise again.
> 

Can you please add your arguments in the commit message and in the code
documentation itself. Explaining the audience why we have an extra
governor is my intention here. My point is for you to improve your patch
description and code documentation with your arguments (above)
explaining the reasons why acerhd needs a special governor.

> 
> > I had a look on bang bang proposal patch and to me, at a first glance,
> > step_wise should cover the target behavior. Of course, that also depend 
> > on the cooling device you attach to it.
> 
> Actually even Rui stated a while ago, creation of a separate governor would be
> one thinkable solution to get a more robust solution for the two step
> regulation of acerhdf.
> 
> 
> > Is it possible to report the problems you have with step_wise? This way
> > we could benefit the other users of it as well.
> 
> There is no problem in step_wise in general.  It is just so, that the 
> governor is overkill for the simple on-off fan of acerhdf.
> 
> And what's the deal of having plugable governors, when you try to fit every
> single feature into one gigantic?
> Aren't the unix philosophies of modularity, serparation and simplicity valid
> in the kernel too?
> 
> kind regards,
> --peter;
> 
> > 
> > 
> > 
> > 
> >>   * Do some minor clean up like:
> >>       - adding second trip point for critical temperature (Patch 5)
> >>       - removing _t suffix from struct which isn't typedef and replace unsigned
> >>         char by u8 (Patch 6)
> >> 
> >> Thanks and kind regards,
> >> peter
> >> 
> >> 
> >> Cc: Andrew Morton <akpm@linux-foundation.org>
> >> Cc: Andreas Mohr <andi@lisas.de>
> >> Cc: Borislav Petkov <bp@suse.de>
> >> Cc: Zhang Rui <rui.zhang@intel.com>
> >> Cc: Javi Merino <javi.merino@arm.com>
> >> 
> >> 
> >> Peter Feuerer (6):
> >>   acerhdf: Adding support for "manual mode"
> >>   acerhdf: Adding support for new models
> >>   thermal: Added Bang-bang thermal governor
> >>   acerhdf: Use bang-bang thermal governor
> >>   acerhdf: added critical trip point
> >>   acerhdf: minor clean up
> >> 
> >>  drivers/platform/x86/Kconfig    |   2 +-
> >>  drivers/platform/x86/acerhdf.c  | 260 +++++++++++++++++++++++++---------------
> >>  drivers/thermal/Kconfig         |  10 ++
> >>  drivers/thermal/Makefile        |   1 +
> >>  drivers/thermal/gov_bang_bang.c | 131 ++++++++++++++++++++
> >>  drivers/thermal/thermal_core.c  |   5 +
> >>  drivers/thermal/thermal_core.h  |   8 ++
> >>  7 files changed, 321 insertions(+), 96 deletions(-)
> >>  create mode 100644 drivers/thermal/gov_bang_bang.c
> >> 
> >> -- 
> >> 1.9.2
> >> 
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> >> the body of a message to majordomo@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >> Please read the FAQ at  http://www.tux.org/lkml/

  parent reply	other threads:[~2014-07-30 13:16 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-27  1:23 [PATCH 0/4] acerhdf/thermal: adding new models and appropriate governor Peter Feuerer
2014-04-27  1:23 ` [PATCH 1/4] acerhdf: Adding support for "manual mode" Peter Feuerer
2014-04-27 21:03   ` Borislav Petkov
2014-04-27 22:22     ` Peter Feuerer
2014-04-27  1:23 ` [PATCH 2/4] acerhdf: Adding support for new models Peter Feuerer
2014-04-27  1:23 ` [PATCH 3/4] thermal: Added Bang-bang thermal governor Peter Feuerer
2014-04-27  1:23 ` [PATCH 4/4] acerhdf: Use bang-bang " Peter Feuerer
2014-04-27 18:57 ` [PATCH 0/4] acerhdf/thermal: adding new models and appropriate governor Andreas Mohr
2014-04-27 23:13   ` Peter Feuerer
2014-04-28  4:58     ` Andreas Mohr
2014-04-29  9:17 ` [PATCH v2 " Peter Feuerer
2014-04-29  9:17   ` [PATCH v2 1/4] acerhdf: Adding support for "manual mode" Peter Feuerer
2014-04-29  9:17   ` [PATCH v2 2/4] acerhdf: Adding support for new models Peter Feuerer
2014-04-29  9:17   ` [PATCH v2 3/4] thermal: Added Bang-bang thermal governor Peter Feuerer
2014-04-29 15:53     ` Javi Merino
2014-04-29 16:37       ` Peter Feuerer
2014-04-29 21:31         ` Peter Feuerer
2014-04-30  9:01           ` Javi Merino
2014-04-29  9:17   ` [PATCH v2 4/4] acerhdf: Use bang-bang " Peter Feuerer
2014-04-29 16:00     ` Javi Merino
2014-04-29 16:43       ` Peter Feuerer
2014-05-01 18:36   ` [PATCH v2 0/4] acerhdf/thermal: adding new models and appropriate governor Peter Feuerer
2014-05-03 17:59 ` [PATCH v3 0/6] acerhdf/thermal: adding new models, appropriate governor and minor clean up Peter Feuerer
2014-05-03 17:59   ` [PATCH v3 1/6] acerhdf: Adding support for "manual mode" Peter Feuerer
2014-07-17  9:44     ` Borislav Petkov
2014-05-03 17:59   ` [PATCH v3 2/6] acerhdf: Adding support for new models Peter Feuerer
2014-07-17  9:46     ` Borislav Petkov
2014-07-18 16:06       ` Peter Feuerer
2014-07-18 16:17         ` Borislav Petkov
2014-07-18 16:25           ` Peter Feuerer
2014-05-03 17:59   ` [PATCH v3 3/6] thermal: Added Bang-bang thermal governor Peter Feuerer
2014-07-17  9:58     ` Borislav Petkov
2014-07-18 16:24       ` Peter Feuerer
2014-05-03 17:59   ` [PATCH v3 4/6] acerhdf: Use bang-bang " Peter Feuerer
2014-05-06 10:50     ` Javi Merino
2014-05-12 10:27       ` Peter Feuerer
2014-05-12 12:03         ` Javi Merino
2014-05-03 17:59   ` [PATCH v3 5/6] acerhdf: added critical trip point Peter Feuerer
2014-05-03 17:59   ` [PATCH v3 6/6] acerhdf: minor clean up Peter Feuerer
2014-07-17 10:12     ` Borislav Petkov
2014-05-15 16:05   ` [PATCH v3 0/6] acerhdf/thermal: adding new models, appropriate governor and " Eduardo Valentin
2014-05-15 22:53     ` Peter Feuerer
2014-06-15 22:39       ` Felix Deichmann
2014-07-30 13:16       ` Eduardo Valentin [this message]
2014-07-16 22:24   ` Borislav Petkov
2014-07-16 22:34     ` Peter Feuerer
2014-07-17  8:46       ` Borislav Petkov
2014-07-20  0:51 ` [PATCH v4 " Peter Feuerer
2014-07-20  0:51   ` [PATCH v4 1/6] acerhdf: Adding support for "manual mode" Peter Feuerer
2014-07-20  8:04     ` Andreas Mohr
2014-07-20 10:42       ` Peter Feuerer
2014-07-20 20:20         ` Andreas Mohr
2014-07-20  0:51   ` [PATCH v4 2/6] acerhdf: Adding support for new models Peter Feuerer
2014-07-20  0:51   ` [PATCH v4 3/6] thermal: Added Bang-bang thermal governor Peter Feuerer
2014-07-21  9:29     ` Borislav Petkov
2014-07-21  9:37       ` Zhang Rui
2014-07-21  9:40       ` Zhang Rui
2014-07-22 14:59         ` Peter Feuerer
2014-07-22 16:09           ` Borislav Petkov
2014-07-20  0:51   ` [PATCH v4 4/6] acerhdf: Use bang-bang " Peter Feuerer
2014-07-21 10:23     ` Borislav Petkov
2014-07-20  0:51   ` [PATCH v4 5/6] acerhdf: added critical trip point Peter Feuerer
2014-07-20  0:51   ` [PATCH v4 6/6] acerhdf: minor clean up Peter Feuerer
2014-07-22 15:37 ` [PATCH v5 0/6] acerhdf/thermal: adding new models, appropriate governor and " Peter Feuerer
2014-07-22 15:37   ` [PATCH v5 1/6] acerhdf: Adding support for "manual mode" Peter Feuerer
2014-07-22 15:37   ` [PATCH v5 2/6] acerhdf: Adding support for new models Peter Feuerer
2014-07-22 15:37   ` [PATCH v5 3/6] thermal: Added Bang-bang thermal governor Peter Feuerer
2014-07-26 14:14     ` Peter Feuerer
2014-07-28  2:26       ` Zhang Rui
2014-10-21 10:29         ` Peter Feuerer
2014-10-28 19:33           ` Peter Feuerer
2014-10-29  9:44             ` Javi Merino
2014-10-29 10:14               ` Peter Feuerer
2014-07-22 15:37   ` [PATCH v5 4/6] acerhdf: Use bang-bang " Peter Feuerer
2014-08-27  7:48     ` Zhang Rui
2014-08-27  8:01       ` Peter Feuerer
2014-08-28  1:17         ` Zhang Rui
2014-08-28  6:05           ` Borislav Petkov
2014-07-22 15:37   ` [PATCH v5 5/6] acerhdf: added critical trip point Peter Feuerer
2014-07-26 14:16     ` Peter Feuerer
2014-07-22 15:37   ` [PATCH v5 6/6] acerhdf: minor clean up Peter Feuerer
2014-11-28 14:20 ` [RESEND PATCH v5 0/5] acerhdf: adding new models, appropriate governor and " Peter Feuerer
2014-11-28 14:20   ` [RESEND PATCH v5 1/5] acerhdf: Adding support for "manual mode" Peter Feuerer
2014-11-28 14:20   ` [RESEND PATCH v5 2/5] acerhdf: Adding support for new models Peter Feuerer
2014-11-28 14:20   ` [RESEND PATCH v5 3/5] acerhdf: Use bang-bang thermal governor Peter Feuerer
2014-12-03  9:04     ` Darren Hart
2014-12-04  7:10       ` Peter Feuerer
2014-12-04  7:21         ` Peter Feuerer
2014-12-04 11:40           ` Darren Hart
2014-12-08  7:45           ` Peter Feuerer
2014-12-04 11:18             ` Darren Hart
2014-11-28 14:20   ` [RESEND PATCH v5 4/5] acerhdf: added critical trip point Peter Feuerer
2014-12-03  9:08     ` Darren Hart
2014-11-28 14:20   ` [RESEND PATCH v5 5/5] acerhdf: minor clean up Peter Feuerer
2014-12-03 21:46   ` [RESEND PATCH v5 0/5] acerhdf: adding new models, appropriate governor and " Peter Feuerer
2014-12-11  4:27   ` Darren Hart
2014-12-11  4:59   ` Darren Hart

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=20140730131600.GA14219@developer \
    --to=edubezval@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi@lisas.de \
    --cc=bp@suse.de \
    --cc=javi.merino@arm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peter@piie.net \
    --cc=rui.zhang@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).