All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Utility for creating computate sensors.conf lines
Date: Wed, 31 Oct 2007 21:06:01 +0000	[thread overview]
Message-ID: <20071031220601.198f5e10@hyperion.delvare> (raw)
In-Reply-To: <472841C2.5060701@hhs.nl>

On Wed, 31 Oct 2007 21:38:45 +0100, Hans de Goede wrote:
> Jean Delvare wrote:
> > You could use dmidecode's command line parameters to ease your parsing
> > work or at least speed it up. In particular, option -t, and maybe -u.
> 
> I tried using -t, but although it works for types that dmidecode knows about 
> like 20, it does not work for type 185, when I specify -t 185 I get no output.

Really? That would be a bug. Which version of dmidecode are you using?
An equivalent test case works fine here with both 2.8 and CVS.

Can you please send me (in private) a copy of the memory-mapped BIOS
area, so that I can reproduce the problem? The following command should
capture it:

dd if=/dev/mem of=/tmp/mem-fscher bsdk skip\x14 count=2

> (...)
> > The "+="s above should IMHO be "|="s. Granted, it only makes a
> > difference if the same entity is described twice, which shouldn't
> > happen, but I still think it's cleaner that way.
> 
> Actually they are += deliberately, and the bits used are sparse deliberately, 
> so that if there is more then one occurrence of an entity entities_found won't 
> match, as I don't think thats supposed to happen (most of this is reverse 
> engineered, all I have is the fscher "datasheet" which doesn't give much 
> details about the layout of the dmi data).

I'm fine with returning an error in this case, but failing silently is
confusing. Also, with a more straightforward bitfield you could fail
directly, rather than storing the error and having to wait until the
end.

-- 
Jean Delvare

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

  parent reply	other threads:[~2007-10-31 21:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31  8:50 [lm-sensors] Utility for creating computate sensors.conf lines for Hans de Goede
2007-10-31 20:08 ` [lm-sensors] Utility for creating computate sensors.conf lines Jean Delvare
2007-10-31 20:38 ` Hans de Goede
2007-10-31 21:06 ` Jean Delvare [this message]
2007-11-02  7:46 ` Hans de Goede

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=20071031220601.198f5e10@hyperion.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.