On Wed, Mar 22, 2017 at 04:35:21PM +0900, Masanobu SAITOH wrote:
>  So what should we do?
> 
>  A) modify pci_mapreg_map(). Stop setting BUS_SPACE_MAP_PREFETCHABLE
>     by defalut when prefetchable bit is set. If a driver really know
>     the whole area of the BAR is prefetchable, set BUS_SPACE_MAP_PREFETCHABLE
>     in the 4th argument(busflags) of pci_mapreg_map(). pci_mapreg_map()
>     check for both the 4th argument and the prefetchable bit, it sets
>     BUS_SPACE_MAP_PREFETCHABLE only when both bits are set.
[..]
> I prefer A.

This gets my vote too.

Martin

Reply via email to