All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rudolf Marek <r.marek@assembler.cz>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] AMB FB DIMM driver
Date: Thu, 21 Jun 2007 19:10:27 +0000	[thread overview]
Message-ID: <467ACD23.5010508@assembler.cz> (raw)
In-Reply-To: <20070523000559.GA7009@jgarrett.org>

Hello Jeffrey,

Sorry for the delay,

>>> static struct sensor_device_attribute temp_input[] = {
>>> 	SENSOR_ATTR(temp00_input, S_IRUGO, show_temp, NULL, 0),
>> Without leading zero and decimal please. Maybe you can even do this in 
>> dynamic fashion. I think there was at least one driver doing it this way, 
>> but I dont recall right now.
> 
> Noted.  Should there be any communication with the user about names
> then?  For example, in the DSBF-D manual it calls the DIMMs DIMM_00,
> DIMM_01, etc. based on channel & number. And this would correlate to
> temp00_input, etc.  In other words, locating a hot DIMM is relatively
> easy with this information.  If they're called, say,
> temp{1,2,17,18,33,34,49,50}_input, then a user can still figure out
> which DIMM is which, but has to realize how to correlate 17 to DIMM_10.
> It's a little bit more opaque.  And if they're called
> temp{1,2,3,4,5,6,7,8}_input, it's even more so.

> So, should there be a separate sysfs attribute, something like
> temp1_name which may read DIMM_00, for example?

Yes we have _label (coretemp driver for example). Please fill the label with string.

> Also, which of the two options above is preferable [no gaps, or gaps but
> numbers that are stable...  temp17 always points to the same slot]?

If we have _label files so perhaps static approach is easiest.

> I made it kinda sorta dynamic...   i.e. the structs are in data, so they
> are allocated dynamically, not statically, and initialized when needed.
> But it still allocates space for 64...

Ok I dont know if Mark will like it, anyway this may be changed in next iteration.



>>> static DEVICE_ATTR(name, S_IRUGO, show_name, NULL);
>>> static struct pci_device_id ambtemp_ids[] = {
>>> 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x25f0) },
>> the 0x25f0 should go to the pciids.h Moreover I do not recall if this is 
>> used also for something else? I mean has this PCI device some other 
>> function?
> 
> It's called the error reporting registers by lspci.  As far as I can
> tell, it's just a bunch of registers associated to the MCH, and nothing
> else in the kernel claims it.

And what about EDAC? (check the edac project please) maybe we need to do same 
trick as for i2c-viapro driver, return -ENODEV to PCI layer but normally 
request_region for the MEM region.

> Helps immensely.  I'm a bit new to this.  Thanks very much,

Good. Sorry for the delays, this week I have first opportunity to have free 
evening :/

Hope it helps a bit.

Rudolf

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

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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23  0:05 [lm-sensors] AMB FB DIMM driver Jeffrey Garrett
2007-05-23 21:40 ` Rudolf Marek
2007-06-13 13:21 ` Jeffrey Garrett
2007-06-21 19:10 ` Rudolf Marek [this message]
2007-07-17 15:17 ` [lm-sensors] [patch] " Jeff Garrett
2007-07-17 15:24 ` Rudolf Marek
2007-07-23 18:16 ` Darrick J. Wong

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=467ACD23.5010508@assembler.cz \
    --to=r.marek@assembler.cz \
    --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.