public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ioremap returns NULL
@ 2002-11-29 14:07 Bernd Harries
       [not found] ` <200211291514.50171.gabrielli@roma2.infn.it>
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Harries @ 2002-11-29 14:07 UTC (permalink / raw)
  To: Linux Kernel

Hi all,

my normally (on 256 MB, dual Xeon, ASUS board, .....) working driver
module fails on a new box with 1 MB RAM, 2 PIII, ASUS board

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...

Is the reason for this that the RAM is bigger? 
What could I do about it? 
- Build a 64 GB kernel? 
- Use an other function?
- pull out sone DIMM?
- nothing?

Thanks,  Bernd

-- 
Bernd Harries

bha@gmx.de
bharries@web.de       Tel. +49 421 809 7343 priv.  | MSB First!
harries@stn-atlas.de       +49 421 457 3966 offi.  | Linux-m68k
bernd@linux-m68k.org       +49 172 139 6054 handy  | Medusa T40

^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <mailman.1038579362.3203.linux-kernel2news@redhat.com>]
* Re: ioremap returns NULL
@ 2002-11-30 10:15 Manfred Spraul
  0 siblings, 0 replies; 4+ messages in thread
From: Manfred Spraul @ 2002-11-30 10:15 UTC (permalink / raw)
  To: Pete Zaitcev, linux-kernel, Bernd Harries

 >>[...]
 >> 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




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

end of thread, other threads:[~2002-11-30 10:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-29 14:07 ioremap returns NULL Bernd Harries
     [not found] ` <200211291514.50171.gabrielli@roma2.infn.it>
2002-11-29 14:24   ` Bernd Harries
     [not found] <mailman.1038579362.3203.linux-kernel2news@redhat.com>
2002-11-29 23:28 ` Pete Zaitcev
  -- strict thread matches above, loose matches on Subject: below --
2002-11-30 10:15 Manfred Spraul

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