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)
Wed, Dec 25, 1:32 PM
Unknown Object (File)
Nov 4 2024, 4:57 AM
Unknown Object (File)
Nov 4 2024, 4:57 AM
Unknown Object (File)
Nov 4 2024, 4:57 AM
Unknown Object (File)
Nov 4 2024, 4:48 AM
Unknown Object (File)
Oct 29 2024, 10:20 AM
Unknown Object (File)
Oct 27 2024, 4:31 PM
Unknown Object (File)
Oct 25 2024, 7:25 AM
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 Skipped
Unit
Tests Skipped

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.