Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 29 Nov 2002 18:21:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 29 Nov 2002 18:21:33 -0500 Received: from nat-pool-rdu.redhat.com ([66.187.233.200]:13114 "EHLO devserv.devel.redhat.com") by vger.kernel.org with ESMTP id ; Fri, 29 Nov 2002 18:21:33 -0500 Date: Fri, 29 Nov 2002 18:28:49 -0500 From: Pete Zaitcev Message-Id: <200211292328.gATNSnL27325@devserv.devel.redhat.com> To: bha@gmx.de cc: linux-kernel@vger.kernel.org Subject: Re: ioremap returns NULL In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 734 Lines: 19 >[...] > 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/