From: Alistair John Strachan <alistair@devzero.co.uk>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] hwmon: (abituguru3) Support multiple DMI
Date: Sun, 06 Sep 2009 14:41:05 +0000 [thread overview]
Message-ID: <200909061541.05356.alistair@devzero.co.uk> (raw)
In-Reply-To: <1252170780-4141-1-git-send-email-alistair@devzero.co.uk>
Hi Rune,
(Fixed CCs)
On Sunday 06 September 2009 15:15:58 Rune Svendsen wrote:
> On Sun, 2009-09-06 at 14:03 +0200, Jean Delvare wrote:
> [snip]
>
> > > @@ -947,7 +951,7 @@ static int __devinit abituguru3_probe(struct
> > > platform_device *pdev) "ID: %04X\n", (unsigned int)id);
> > >
> > > #ifdef CONFIG_DMI
> > > - if (!abituguru3_motherboards[i].dmi_name) {
> > > + if (!abituguru3_motherboards[i].dmi_name[0]) {
> > > printk(KERN_WARNING ABIT_UGURU3_NAME ": this motherboard was "
> > > "not detected using DMI. Please send the output of "
> > > "\"dmidecode\" to the abituguru3 maintainer "
> >
> > This test is no longer as perfect as it used to be. Now that you admit
> > that each ID can correspond to more than one board model, it is
> > possible that the board was _not_ detected using DMI but this message
> > will not show (because another board with this ID is already known.)
> > While this is not a blocker, I still think it would be worth improving.
> >
> > Maybe I am missing something obvious, but why isn't this message
> > printed in abituguru3_dmi_detect() directly? This would be more
> > efficient and more elegant too IMHO.
>
> After speaking with Alistair I've been thinking about this as well.
> Right now, when I'm running a kernel that doesn't support inserting the
> abituguru3 module without using the "force=1" option (a kernel to which
> this patch has not been applied), I don't receive a message in my kernel
> log about sending the output of "dmidecode" - precisely because of what
> you mention here.
There's a bit of history associated with the DMI message. Before I added DMI
support to the driver the legacy probe method (which doesn't really work at
all on IP35 Pro) was used to detect the other 20-or-so supported mainboards.
On a lot of the boards in this list, this detection is reliable, and the
message I added was a useful helper to get people to send in their DMI info.
Unfortunately your case has fallen through the cracks of obscurity where both
DMI was broken (because of a bug) and legacy probing didn't work (because it
doesn't work on IP35 Pro). You board appears to the driver to be just like any
other unsupported hardware.
You're right that it's suboptimal there are no kernel messages displayed, but
consider the distro/script case where driver loading may be attempted
automatically on unsupported hardware. In this case it is customary for Linux
drivers to reject the modprobe with -ENODEV but *not* print a message.
Printing a verbose one about sending DMI info to the uguru maintainer would
certainly not be desirable!
So yes, it's not perfect, and maybe we could improve it a la "if it's an Abit
board, the message could be printed" but anything you do is really just a
heuristic.
--
Cheers,
Alistair.
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2009-09-06 14:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-05 17:13 [lm-sensors] [PATCH] hwmon: (abituguru3) Support multiple DMI Alistair John Strachan
2009-09-06 7:23 ` Hans de Goede
2009-09-06 9:15 ` Alistair John Strachan
2009-09-06 9:37 ` Hans de Goede
2009-09-06 12:03 ` Jean Delvare
2009-09-06 13:55 ` Alistair John Strachan
2009-09-06 14:06 ` Jean Delvare
2009-09-06 14:15 ` Rune Svendsen
2009-09-06 14:30 ` Alistair John Strachan
2009-09-06 14:41 ` Alistair John Strachan [this message]
2009-09-06 15:05 ` Rune Svendsen
2009-09-06 16:23 ` 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=200909061541.05356.alistair@devzero.co.uk \
--to=alistair@devzero.co.uk \
--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.