Page MenuHomeFreeBSD

amd64 pmap_change_attr(): avoid spurious EINVAL.
ClosedPublic

Authored by kib on Jun 1 2016, 2:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 27, 6:05 AM
Unknown Object (File)
Sat, Oct 25, 1:15 AM
Unknown Object (File)
Mon, Oct 20, 4:17 AM
Unknown Object (File)
Sun, Oct 19, 5:27 PM
Unknown Object (File)
Wed, Oct 15, 1:16 PM
Unknown Object (File)
Sep 18 2025, 4:06 AM
Unknown Object (File)
Sep 11 2025, 7:56 AM
Unknown Object (File)
Aug 17 2025, 6:41 PM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib retitled this revision from to amd64 pmap_change_attr(): avoid spurious EINVAL..
kib updated this object.
kib edited the test plan for this revision. (Show Details)
kib added reviewers: jhb, alc, mav.
kib set the repository for this revision to rS FreeBSD src repository - subversion.
mav edited edge metadata.

Looks good and fixes EINVAL errors for me.

This revision is now accepted and ready to land.Jun 1 2016, 3:07 AM
jhb edited edge metadata.

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.

This revision was automatically updated to reflect the committed changes.