Subject: kern/32137: if_vge uses BUS_SPACE_MAP_LINEAR unnecessarily
To: None <,,>
From: None <>
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
Tadpole Computer, Inc.
evbmips Au1550 -- big-endian
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 for more detail about why this is a problem.)

Just remove the BUS_SPACE_MAP_LINEAR flag from the bus_space_map flags.