Re: ioremap returns NULL

Pete Zaitcev (zaitcev@redhat.com)
Fri, 29 Nov 2002 18:28:49 -0500


>[...]
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/