From: j.w.r.degoede@hhs.nl (Hans de Goede)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] new abituguru driver in mm kernel
Date: Thu, 27 Jul 2006 14:44:52 +0000 [thread overview]
Message-ID: <44C8D164.80908@hhs.nl> (raw)
In-Reply-To: <ce9ef0d90607041146t6837a584x68d1ab7e528139ea@mail.gmail.com>
Sunil Kumar wrote:
> actually the reason I am insisting on doing more than one sleep is that one
> sleep actually didn't work for me. It worked for four days (the uptime was
> four days but 'on' time was probably one day cumulative because those were
> working days and I was suspending the system down at night and in the
> morning before going to work) and I assumed that it was fine but then it
> popped its head again in the /var/log/messages. My cpu concern is already
> addressed by making the TIMEOUT as 100 as you suggested.
>
> I think the middle ground will be to make this a configuration parameter
> for
> the driver because this sleep is going to vary from board to board e.g. 100
> works for you and sometimes 100+msleep(1) doesn't work for me. The default
> could be 1 and max could be 50, and these are taken out of the TIMEOUT i.e.
> if value is set to 50, the loop executes for 50 and then starts to sleep
> for
> the rest 50.
>
> A runtime parameter would be better but I am fine with a config parameter
> too. does that work?
>
Hmm,
I really don't want to add all kinda knobs a user needs to tune for
things to work. Did you see this message return despite of the sleep
with my latest version of the driver? Because with my new driver you
shouldn't see it as its treated as retryable (which means the driver
will silently return the old values and try again next update, it will
only start to scream on 3 (define) or more consecutive errors.)
Noticed you also decreased the ABIT_UGURU_READY_TIMEOUT from 50 to 5,
maybe that is the problem now. I agree 50 is to much, but maybe 5 isn't
enough? What was the exact error you saw?
Since the sleep is in what is in essence an error handling path, Its
fine by me to sleep say 3 times before giving up, it should be very rare
that the uguru then still isn't responding. Together with making the
wait for read statsu retryable and thus in this rare occasion returning
oldvalues to userspace instead of an error I think we should be fine.
Does this sound like a plan?
I'm glad atleast we agree on the CPU-usage being fixed by setting the
default TIMEOUT to 100.
Regards,
Hans
next prev parent reply other threads:[~2006-07-27 14:44 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 18:46 [lm-sensors] new abituguru driver in mm kernel Sunil Kumar
2006-07-04 20:10 ` Stephen Cormier
2006-07-05 6:38 ` Hans de Goede
2006-07-05 16:35 ` Sunil Kumar
2006-07-05 17:37 ` Jean Delvare
2006-07-05 17:41 ` Hans de Goede
2006-07-05 17:44 ` Hans de Goede
2006-07-05 20:11 ` Hans de Goede
2006-07-05 20:16 ` Sunil Kumar
2006-07-06 1:09 ` Sunil Kumar
2006-07-06 1:24 ` Stephen Cormier
2006-07-08 23:03 ` Sunil Kumar
2006-07-09 8:16 ` Hans de Goede
2006-07-09 14:44 ` Sunil Kumar
2006-07-09 16:41 ` Sunil Kumar
2006-07-09 17:11 ` Hans de Goede
2006-07-09 17:30 ` Sunil Kumar
2006-07-09 20:32 ` Hans de Goede
2006-07-09 20:54 ` Sunil Kumar
2006-07-10 4:33 ` Hans de Goede
2006-07-11 4:43 ` Sunil Kumar
2006-07-14 19:15 ` Hans de Goede
2006-07-14 19:33 ` Sunil Kumar
2006-07-14 19:43 ` Hans de Goede
2006-07-14 19:50 ` Sunil Kumar
2006-07-15 0:52 ` Sunil Kumar
2006-07-19 4:35 ` Hans de Goede
2006-07-19 20:34 ` Sunil Kumar
2006-07-19 22:42 ` Sunil Kumar
2006-07-19 23:02 ` Sunil Kumar
2006-07-20 5:23 ` Sunil Kumar
2006-07-20 7:54 ` Hans de Goede
2006-07-20 14:37 ` Sunil Kumar
2006-07-20 17:13 ` Sunil Kumar
2006-07-20 17:14 ` Sunil Kumar
2006-07-21 6:10 ` Hans de Goede
2006-07-21 16:15 ` Sunil Kumar
2006-07-25 3:27 ` Sunil Kumar
2006-07-26 14:30 ` Hans de Goede
2006-07-26 18:32 ` Sunil Kumar
2006-07-26 20:43 ` Hans de Goede
2006-07-27 0:48 ` Sunil Kumar
2006-07-27 8:19 ` Hans de Goede
2006-07-27 14:31 ` Sunil Kumar
2006-07-27 14:44 ` Hans de Goede [this message]
2006-07-27 16:07 ` Sunil Kumar
2006-08-01 4:01 ` Hans de Goede
2006-08-25 23:13 ` Sunil Kumar
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=44C8D164.80908@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--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.