public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pmac_nvram problems
@ 2005-08-17 11:16 Johannes Berg
  2005-08-18  5:00 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Berg @ 2005-08-17 11:16 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: benh

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

Hi,

Please CC me on answers, I'm not subscribed. I wasn't too sure where to
send this, so CC'ing to Benjamin Herrenschmidt as the author of the
relevant driver.

Note that this might apply to the copy in ppc64 as well, not sure.

Currently, the pmac_nvram driver can be built as a module, but doesn't
specify its license and also fails to load because it uses
alloc_bootmem:
| pmac_nvram: module license 'unspecified' taints kernel.
| pmac_nvram: Unknown symbol __alloc_bootmem

I'm not sure why alloc_bootmem is used at all (is the nvram larger than
a couple of pages on any machine? And if it is, should it really be
cached in RAM?), but I think it should be sufficient to just use kmalloc
(well, it works for me).

Secondly, this driver misses power management. Having suspended, I
booted OSX which always resets the boot volume. But after resuming
linux, nvsetvol(8) still reports 0 as the boot volume because the
pmac_nvram driver caches the nvram contents. Fixing this would require
converting the driver to the new model though, I think.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-08-20  0:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-17 11:16 pmac_nvram problems Johannes Berg
2005-08-18  5:00 ` Benjamin Herrenschmidt
2005-08-18 13:03   ` Johannes Berg
2005-08-18 21:40     ` Benjamin Herrenschmidt
2005-08-19 10:55       ` Johannes Berg
2005-08-20  0:03         ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox