Subject: kern/23446: noisy pci_mem_find() (1-6 branch)
To: None <gnats-bugs@gnats.netbsd.org>
From: Toru TAKAMIZU <ttaka@earth.email.ne.jp>
List: netbsd-bugs
Date: 11/15/2003 17:40:35
>Number:         23446
>Category:       kern
>Synopsis:       noisy pci_mem_find() (1-6 branch)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 15 08:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Toru TAKAMIZU
>Release:        NetBSD 1.6.2_RC2
>Organization:
>Environment:
System: NetBSD localhost 1.6.2_RC2 NetBSD 1.6.2_RC2 (MIWA) #41: Sat Nov 15 17:17:21 JST 2003 toru@localhost:/usr/src/sys/arch/i386/compile/MIWA i386
Architecture: i386
Machine: i386
>Description:

I recently noticed that my kernel started to emit the following
message:

	pci_mem_find: void region

The cause seems to be the rev. 1.10.10.1 of src/sys/dev/pci/pci_map.c,
which was pulled up recently.

>How-To-Repeat:

dmesg

>Fix:

Pulling up the following three changes fixes this problem.
Note that you have to replace "syssrc" with "src" in the following
message.

from http://mail-index.netbsd.org/source-changes/2002/05/30/0041.html
========================================================================
Subject: CVS commit: syssrc/sys/dev/pci
To: None <source-changes@netbsd.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 05/30/2002 15:06:44

Module Name:    syssrc
Committed By:   drochner
Date:           Thu May 30 12:06:43 UTC 2002

Modified Files:
        syssrc/sys/dev/pci: pci_map.c pcivar.h vga_pci.c

Log Message:
implement a check whether a BAR is present at all at a given configuration
space address and use it where the mappings of the VGA card are registered
before descenting too deep into "memory" type specific code
(pci_mem_find() gets noisy if it doesn't like the register)


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 syssrc/sys/dev/pci/pci_map.c
cvs rdiff -r1.51 -r1.52 syssrc/sys/dev/pci/pcivar.h
cvs rdiff -r1.10 -r1.11 syssrc/sys/dev/pci/vga_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

========================================================================
>Release-Note:
>Audit-Trail:
>Unformatted: