NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44180: reconfigure PCI BARs



>Number:         44180
>Category:       kern
>Synopsis:       reconfigure PCI BARs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 01 10:15:00 +0000 2010
>Originator:     Christoph Egger
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:

There are BIOS's which do not initialize the PCI BARs correctly.
This results in boot crashes like this:

extent_alloc_region: extent `iomem' (0x0 - 0xffffffff)
extent_alloc_region: start 0xb3ed988fd8410000, end 0xb3ed988fd841ffff
panic: extent_alloc_region: region lies outside extent
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff80202085 cs e030 rflags 246 cr2  0 cpl 8 rsp 
ffffffff80ed0010
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
panic() at netbsd:panic+0x28f
extent_alloc_region() at netbsd:extent_alloc_region+0x91
bus_space_map() at netbsd:bus_space_map+0x53
pci_mapreg_submap() at netbsd:pci_mapreg_submap+0xe6
pci_mapreg_map() at netbsd:pci_mapreg_map+0x2e
bge_attach() at netbsd:bge_attach+0x160
config_attach_loc() at netbsd:config_attach_loc+0x16c
pci_probe_device() at netbsd:pci_probe_device+0x2e8
pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x139
pcirescan() at netbsd:pcirescan+0x48
pciattach() at netbsd:pciattach+0x17b
config_attach_loc() at netbsd:config_attach_loc+0x16c
ppbattach() at netbsd:ppbattach+0x18f
config_attach_loc() at netbsd:config_attach_loc+0x16c
pci_probe_device() at netbsd:pci_probe_device+0x2e8
pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x139
pcirescan() at netbsd:pcirescan+0x48
pciattach() at netbsd:pciattach+0x17b
config_attach_loc() at netbsd:config_attach_loc+0x16c
ppbattach() at netbsd:ppbattach+0x18f
config_attach_loc() at netbsd:config_attach_loc+0x16c
pci_probe_device() at netbsd:pci_probe_device+0x2e8
pci_enumerate_bus() at netbsd:pci_enumerate_bus+0x139
pcirescan() at netbsd:pcirescan+0x48
pciattach() at netbsd:pciattach+0x17b
config_attach_loc() at netbsd:config_attach_loc+0x16c
mp_pci_scan() at netbsd:mp_pci_scan+0xa5
hypervisor_attach() at netbsd:hypervisor_attach+0x173
config_attach_loc() at netbsd:config_attach_loc+0x16c
mainbus_attach() at netbsd:mainbus_attach+0xa3
config_attach_loc() at netbsd:config_attach_loc+0x16c
cpu_configure() at netbsd:cpu_configure+0x25
main() at netbsd:main+0x215

Additional debug code in pci(4) prints

pci_mem_find: base 0xb3ed988fd8410000
pci_mapreg_submap: base 0xb3ed988fd8410000, size 0x10000


>How-To-Repeat:

>Fix:

We need a resource management to be able to re-configure
suspicious PCI BARs.



Home | Main Index | Thread Index | Old Index