Re: aac & PAE not happy in -current

From: Scott Long <scottl_at_samsco.org>
Date: Tue, 20 Mar 2007 23:36:17 -0600
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
Received on Wed Mar 21 2007 - 04:36:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC