From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] w83627ehf: Wrong values reported after resuming from suspend/hibernation
Date: Tue, 23 Oct 2012 12:34:05 +0000 [thread overview]
Message-ID: <20121023143405.1f6fbf71@endymion.delvare> (raw)
In-Reply-To: <50856051.5070803@gmx.at>
On Tue, 23 Oct 2012 14:08:10 +0200, Harald Judt wrote:
> Am 23.10.2012 13:45, schrieb Jean Delvare:
> > It is very frequent that the BIOS doesn't display the values for all
> > available sensors. This is a vendor decision, there's nothing we can or
> > should do.
>
> It's not about being displayed, I meant that there could be a
> relationship between the values shown in the BIOS and the values set by
> the BIOS. That is, VBAT is not displayed in the BIOS and is 0 after
> resuming. The other values are reported in the BIOS (I'd have to check
> that again now just to be sure) and get set at boot and after resume too
> (at least that's the assumption).
The fact is that on these chips, all inputs are always monitored except
Vbat, temp2 and temp3. And temp2 and temp3 are monitored by default. So
no active step is needed in the BIOS to get all the values they are
displaying.
> So maybe the BIOS engineers simply
> didn't care about that value or forgot about it. But never mind, that's
> just speculation and doesn't help either, as long as it can be dealt
> with in the module.
You are prefectly right, the BIOS doesn't bother enabling Vbat
monitoring because it does not display the Vbat value anyway. The
driver enables Vbat monitoring because it does display the value, but
forgets to re-enable it at resume. This is one of the things we must
fix.
> > I'm working on my test system now. It has a different chip (W83627THF)
> > supported by a different driver (w83627hf) but the logic should be very
> > similar. When I'm done with my case, I'll post my results and do the
> > same for the w83627ehf driver.
>
> Thanks, I'd be very interested in your suspend/resume code (learn
> something new). May I assume you have the same problem (at least with
> min/max) values then?
I had never tried suspending this specific machine, I'm only using it
to test and fix the w83627hf driver. Yes, some (curiously not all)
limits go wrong on resume, but that's not the only register values
which are lost. I suspect the rest is mainly BIOS bugs, where the
hardware monitoring chip configuration done by the BIOS at boot time is
not replayed at resume time, while it should. As I don't expect it to
be fixed in the BIOS on that 2005 machine, we'll have to work around it
in the driver I suppose.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2012-10-23 12:34 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-22 15:03 [lm-sensors] w83627ehf: Wrong values reported after resuming from suspend/hibernation Harald Judt
2012-10-22 21:40 ` Guenter Roeck
2012-10-23 7:14 ` Jean Delvare
2012-10-23 9:57 ` Harald Judt
2012-10-23 11:45 ` Jean Delvare
2012-10-23 12:08 ` Harald Judt
2012-10-23 12:34 ` Jean Delvare [this message]
2012-10-23 14:01 ` Guenter Roeck
2012-10-23 16:32 ` Jean Delvare
2012-10-23 19:02 ` Harald Judt
2012-10-24 3:45 ` Guenter Roeck
2012-10-24 8:39 ` Jean Delvare
2012-10-24 18:05 ` Harald Judt
2012-10-24 18:14 ` Harald Judt
2012-10-24 19:23 ` Jean Delvare
2012-10-25 9:53 ` Guenter Roeck
2012-10-25 17:26 ` Harald Judt
2012-10-25 19:07 ` Jean Delvare
2012-10-25 19:16 ` Harald Judt
2012-10-25 20:37 ` Guenter Roeck
2012-10-25 23:49 ` Guenter Roeck
2012-10-26 0:41 ` Guenter Roeck
2012-10-26 0:55 ` Harald Judt
2012-10-26 7:27 ` Jean Delvare
2012-10-26 14:06 ` Guenter Roeck
2012-10-26 14:15 ` Jean Delvare
2013-07-28 20:43 ` Harald Judt
2013-07-28 21:43 ` Guenter Roeck
2013-07-28 22:28 ` Guenter Roeck
2013-07-29 2:24 ` Harald Judt
2013-07-29 2:47 ` Harald Judt
2013-07-29 6:58 ` Guenter Roeck
2013-07-29 9:12 ` Harald Judt
2013-07-29 15:27 ` Harald Judt
2013-07-29 22:46 ` Guenter Roeck
2013-07-31 22:11 ` Guenter Roeck
2013-08-01 9:08 ` Harald Judt
2013-08-01 13:42 ` Guenter Roeck
2013-08-01 14:36 ` Harald Judt
2013-08-01 17:46 ` Guenter Roeck
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=20121023143405.1f6fbf71@endymion.delvare \
--to=khali@linux-fr.org \
--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.