Subject: kern/32137: if_vge uses BUS_SPACE_MAP_LINEAR unnecessarily
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <garrett_damore@tadpole.com>
List: netbsd-bugs
Date: 11/21/2005 17:42:00
>Number:         32137
>Category:       kern
>Synopsis:       if_vge uses BUS_SPACE_MAP_LINEAR unnecessarily
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 21 17:42:00 +0000 2005
>Originator:     Garrett D'Amore
>Release:        3.99.11
>Organization:
Tadpole Computer, Inc.
>Environment:
evbmips Au1550 -- big-endian
>Description:
While trying to locate devices that use linear bus_space mappings on the PCI bus, I identified vge as a device that performs a linear mapping.  The driver however, never takes a vaddr and never accesses the mapped region directly -- which is good.  So it should remove the requirement for a linear mapping from its mapping operation, because quite frankly this could limit the sorts of systems that the device can be used on.

(See the message http://mail-index.netbsd.org/tech-kern/2005/11/21/0008.html for more detail about why this is a problem.)
>How-To-Repeat:

>Fix:
Just remove the BUS_SPACE_MAP_LINEAR flag from the bus_space_map flags.