From: Manfred Spraul <manfred@colorfullife.com>
To: Pete Zaitcev <zaitcev@redhat.com>,
linux-kernel@vger.kernel.org, Bernd Harries <bha@gmx.de>
Subject: Re: ioremap returns NULL
Date: Sat, 30 Nov 2002 11:15:53 +0100 [thread overview]
Message-ID: <3DE88FD9.5010906@colorfullife.com> (raw)
>>[...]
>> 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.
The size of the vmalloc area is 128 MB, 96 for highmem kernels.
Either:
- compile a kernel without 4G support, then you have 128 MB
- increase PKMAP_BASE (include/asm-i386/highmem.h) to
0xff800000 (it's 0xfe000000 in 2.5.50)
Right now 32 MB virtual memory are reserved for kmap, but only 4 MB are
used. Changing PKMAP_BASE gives you 24 MB additional vmalloc space for free.
- increase __VMALLOC_RESERVE.
--
Manfred
next reply other threads:[~2002-11-30 10:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-30 10:15 Manfred Spraul [this message]
[not found] <mailman.1038579362.3203.linux-kernel2news@redhat.com>
2002-11-29 23:28 ` ioremap returns NULL Pete Zaitcev
-- strict thread matches above, loose matches on Subject: below --
2002-11-29 14:07 Bernd Harries
[not found] ` <200211291514.50171.gabrielli@roma2.infn.it>
2002-11-29 14:24 ` Bernd Harries
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=3DE88FD9.5010906@colorfullife.com \
--to=manfred@colorfullife.com \
--cc=bha@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.com \
/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.