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)
Thu, Jan 23, 8:18 PM
Unknown Object (File)
Jan 8 2025, 4:59 AM
Unknown Object (File)
Jan 7 2025, 7:38 PM
Unknown Object (File)
Dec 28 2024, 7:32 AM
Unknown Object (File)
Dec 25 2024, 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
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.