All of lore.kernel.org
 help / color / mirror / Atom feed
* Slram doesn't work
@ 2003-10-21  5:02 B. D. Elliott
  2003-10-21 20:28 ` Hugh Dickins
  0 siblings, 1 reply; 2+ messages in thread
From: B. D. Elliott @ 2003-10-21  5:02 UTC (permalink / raw)
  To: linux-kernel

I have an old (x86) machine that does not cache the upper half of memory.
Under 2.4.x, I used "slram=slr0,64M,+64M" to reserve that half, and then
used it as a swap device.

This fails on 2.6.0-test8, with an "ioremap failed" message during booting.
The boot messages plus capturing the page flags in ioremap() shows the
following:

...
slram: devname = slr0
slram: devstart = 64M
slram: devlength = +64M
slram: devname=slr0, devstart=0x4000000, devlength=0x4000000
.. ioremap failed: line 145 (approximately)
.. phys_addr: 04000000 t_addr: c4000000 t_end: c7ffffff page0: c10a0000 page: c10a0000
.. page-1 flags: 01000000
.. page   flags: 01000080
.. page+1 flags: 01000080
.. page+2 flags: 01000080
.. page+3 flags: 01000080
.. PageReserved(page): 0
slram: ioremap failed
...

The failure occurs where "PageReserved" is checked.  "page0" is the address
of the first page entry for the region, which is also where it failed.
("PageReserved" is bit 11.)  Apparently, "PageReserved" is no longer set
when slram initialization occurs.

-- 
B. D. Elliott   bde@nwlink.com

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

end of thread, other threads:[~2003-10-21 20:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-21  5:02 Slram doesn't work B. D. Elliott
2003-10-21 20:28 ` Hugh Dickins

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.