Skip to contentSkip to conversation

ioremap returns NULL

DISCUSSION Pete Zaitcev 1 participant 1 message Nov 29, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines

[...]
For each card I ioremap() 2 * 16 MB of PCI memory space. It succeeds for the 1st card but for the 2nd card I get NULL as result. This means I cannot use the 2nd card...

I think you are screwed. The ioremap grabs from vmalloc area, which is something like 64MB on i386. The best option is to rewrite the driver to allocate less, and perhaps use fewer modules.

Running a 2G/2G split might help, I'm not sure. But that route has userland implications anyway, so don't.

-- Pete