Page MenuHomeFreeBSD

LinuxKPI: Implement dma_map_resource/dma_unmap_resource functions
ClosedPublic

Authored by bz on Apr 1 2025, 3:03 PM.
Tags
None
Referenced Files
F156978640: D49625.id.diff
Sun, May 17, 6:33 PM
F156978483: D49625.id152989.diff
Sun, May 17, 6:32 PM
Unknown Object (File)
Sat, May 16, 4:58 PM
Unknown Object (File)
Mon, May 11, 5:28 AM
Unknown Object (File)
Mon, May 11, 5:27 AM
Unknown Object (File)
Wed, Apr 29, 6:05 PM
Unknown Object (File)
Wed, Apr 29, 10:25 AM
Unknown Object (File)
Tue, Apr 28, 3:35 AM
Subscribers

Details

Summary

dma_map_resource() and dma_unmap_resource() functions are used to map
and unmap of memory-mapped IO resources so they can be accessed by
the device.

Required by drm-kmod v5.5 to be built.

While for drm-kmod 6.6-lts only amdgpu uses these in one place and
the code apparently has not been exercised a lot it has been around
like this for years. With changing the underlying implementations
bring it into the tree; should we find errors with it they can also
be fixed here.

Obtained from: D30933 (by wulf)
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Apr 1 2025, 3:03 PM
This revision is now accepted and ready to land.Apr 1 2025, 3:56 PM

I'll bump __FreeBSD_version when this all goes in so drm-kmod can track it.