NetBSD Problem Report #44180

From www@NetBSD.org  Wed Dec  1 10:12:27 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 7A85C63BAE5
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Dec 2010 10:12:27 +0000 (UTC)
Message-Id: <20101201101227.5AB0463B95F@www.NetBSD.org>
Date: Wed,  1 Dec 2010 10:12:27 +0000 (UTC)
From: Christoph_Egger@gmx.de
Reply-To: Christoph_Egger@gmx.de
To: gnats-bugs@NetBSD.org
Subject: reconfigure PCI BARs
X-Send-Pr-Version: www-1.0

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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.