Do not try to change attributes for DMAP when working on a mapping which is not covered by the DMAP. This was reported on real system where a BAR of a device (NTB) was mapped outside the PCI window.
Reported and tested by: mav
 Differential  D6668  
amd64 pmap_change_attr(): avoid spurious EINVAL. Authored by kib on Jun 1 2016, 2:25 AM. Tags None Referenced Files 
 
 
 
 
 
 
 
 Subscribers 
Details 
 Do not try to change attributes for DMAP when working on a mapping which is not covered by the DMAP. This was reported on real system where a BAR of a device (NTB) was mapped outside the PCI window. Reported and tested by: mav 
Diff Detail 
 Event TimelineComment Actions Note that ntb(4) should be changed to use bus_map_resource() and stop using pmap_change_attr() directly in 11 but that is orthogonal to this.  |