All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH v3 1/2] hwmon: (coretemp) Don't use
Date: Tue, 27 Sep 2011 13:50:14 +0000	[thread overview]
Message-ID: <20110927135014.GA22520@ericsson.com> (raw)
In-Reply-To: <1316536503-26883-2-git-send-email-guenter.roeck@ericsson.com>

Hi Jean,

On Tue, Sep 27, 2011 at 09:05:07AM -0400, Jean Delvare wrote:
> Hi Guenter,
> 
> Sorry for the late reply.
> 
> On Wed, 21 Sep 2011 14:28:18 -0700, Guenter Roeck wrote:
> > On Wed, Sep 21, 2011 at 05:01:58PM -0400, Jean Delvare wrote:
> > > On Wed, 21 Sep 2011 13:35:28 -0700, Guenter Roeck wrote:
> > > > Not sure about discarding the value either. If we drop the attribute if
> > > > ttarget is 0, people will wonder where tempX_max disappeared to. Worst
> > > > case tempX_max will show up at the same temperature as tempX_crit, so we
> > > > would know (or learn) about it and users would still have the attribute
> > > > available.
> > > 
> > > This is a read-only value, there's no point in making it "available" if
> > > the value is known to be wrong.
> >
> > But how do we know that or if a reading of 0 would be wrong ? Or a reading
> > larger than X ?
> 
> I'm not quite sure what your concern is. I never talked about filtering
> large register values (which would mean low ttarget temperatures -
> remember that ttarget = tjmax - register). All my proposal is about is
> filtering register value of 0, because it means ttarget = tjmax, which
> in turn means that the supposed effect of t > ttarget (all fans forced
> to full speed) as no chance to happen because the CPU dies or stops at
> tjmax. The only reason why I propose this is because the bits in
> question are undocumented, so we can't rule out that there are models
> out there which do support the MSR in general but don't implement the
> specific bits.
> 
A value of 1 doesn't make much sense either, since t > ttarget means that the
temperature already reached tjmax, and the CPU is just as dead. And a value of,
say, 100 doesn't make sense either. So declaring that "0" is invalid but all
other values are valid is pretty much arbitrary, as would any other limits.
So why bother trying to declare what is valid and what isn't.

> Anyway, I'll propose a patch, maybe it will make my intents clearer.
> 
I am actually ok with adding it in. I just would not bother myself.

> > > Here again, I'm fine if your patch doesn't include that change, after
> > > all you're mainly reverting to pre 3.0 behavior so it makes sense to
> > > stick to what we had before for now. I can submit patches for the
> > > proposed changes later, and we can discuss them again then.
> >
> > Let's do it that way. I really want to limit the changes to 3.1
> > at this point - we are a bit too close to release for my liking.
> 
> Agreed. But anyway, with kernel.org being MIA for so long, this release
> cycle is nothing I like to start with.
> 
Good point ... at the time my assumption was that Linus would release 3.1 
either this week or next week, which as it looks like is not going to happen.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2011-09-27 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-20 16:35 [lm-sensors] [PATCH v3 1/2] hwmon: (coretemp) Don't use threshold Guenter Roeck
2011-09-21 19:56 ` [lm-sensors] [PATCH v3 1/2] hwmon: (coretemp) Don't use Jean Delvare
2011-09-21 20:35 ` Guenter Roeck
2011-09-21 21:01 ` Jean Delvare
2011-09-21 21:28 ` Guenter Roeck
2011-09-27 13:05 ` Jean Delvare
2011-09-27 13:50 ` Guenter Roeck [this message]
2011-09-27 14:04 ` Jean Delvare

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=20110927135014.GA22520@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=lm-sensors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.