Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2007 23:36:17 -0600
From:      Scott Long <scottl@samsco.org>
To:        Kevin Day <toasty@dragondata.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: aac & PAE not happy in -current
Message-ID:  <4600C451.2020407@samsco.org>
In-Reply-To: <52299CBE-F3AD-439D-820D-3FC3458614F8@dragondata.com>
References:  <52299CBE-F3AD-439D-820D-3FC3458614F8@dragondata.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Kevin Day wrote:
> 
> I've got a Dell PowerEdge 2650 running the 200702 -current snapshot. 
> It's fine with 2GB of ram, but when I tried bumping it to 6GB and 
> turning on PAE, the aac driver panics on boot.
> 
> aacch0: <AAC RAID Channel> port 0xcc00-0xccff mem 0xfccff000-0xfccfffff 
> irq 30 at device 6.0 on pci5
> aacch1: <AAC RAID Channel> port 0xc800-0xc8ff mem 0xfccfe000-0xfccfefff 
> irq 31 at device 6.1 on pci5
> aac0: <Dell PERC 3/Di> mem 0xf0000000-0xf7ffffff irq 30 at device 8.1 on 
> pci4
> panic: pmap_mapdev: Couldn't alloc kernel virtual memory
> 
> Backtrace:
> 
> pmap_mapdev
> nexus_activate_resource
> bus_generic_activate_resource
> bus_generic_activate_resource
> bus_generic_activate_resource
> pci_alloc_resource
> bus_alloc_resource
> aac_pci_attach
> device_attach
> device_probe_and_attach
> bus_generic_attach
> pci_attach
> device_attach
> device_probe_and_attach
> bus_generic_attach
> mptable_hostb_attach
> nexus_attach
> ...
> 
> Booting the same kernel without PAE I get the same thing:
> 
> aacch0: <AAC RAID Channel> port 0xcc00-0xccff mem 0xfccff000-0xfccfffff 
> irq 30 at device 6.0 on pci5
> aacch1: <AAC RAID Channel> port 0xc800-0xc8ff mem 0xfccfe000-0xfccfefff 
> irq 31 at device 6.1 on pci5
> aac0: <Dell PERC 3/Di> mem 0xf0000000-0xf7ffffff irq 30 at device 8.1 on 
> pci4
> aac0: [FAST]
> aac0: Adaptec Raid Controller 2.0.0-1
> 
> and it works fine.
> 
> 
> Is this a known problem, or is there any other info I can give? Happy to 
> try anything anyone might suggest. :)
> 
> 

The device is asking for 128MB of register space.  This is exhausting
the limit on the amount of kernel mapped memory, hence the panic.  The
difference between PAE and non-PAE is likely that the non-PAE case
isn't consuming as much kernel address space for the extra page tables,
so you're squeaking by.

The 128MB of register space is wrong, but it's something that the aac
firmware is causing.  I don't have a 2650, but my 2450 only tries to
claim 4K for registers for the aac device, and the hardware is basically
identical to the 2650.  Maybe try flashing in a newer (or older)
firmware?  Knowing what firmware version you have would help.

Scott



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4600C451.2020407>