Page MenuHomeFreeBSD

LinuxKPI: Implement dma_map_resource/dma_unmap_resource functions.
AbandonedPublic

Authored by wulf on Jun 28 2021, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 29, 8:39 PM
Unknown Object (File)
Sat, Sep 27, 9:16 AM
Unknown Object (File)
Mon, Sep 22, 6:29 AM
Unknown Object (File)
Sep 9 2025, 4:08 AM
Unknown Object (File)
Sep 4 2025, 5:33 AM
Unknown Object (File)
Aug 31 2025, 3:13 PM
Unknown Object (File)
Aug 14 2025, 1:07 AM
Unknown Object (File)
Jul 26 2025, 10:17 PM

Details

Reviewers
hselasky
manu
dumbbell
Group Reviewers
linuxkpi
Summary

dma_map_resource and dma_unmap_resource functions are API for mapping
and unmapping of memory-mapped IO resources so they can be accessed by
the device.

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

Test Plan

This naive implementation is completely untested as drm-kmod v5.5 uses
these functions only for testing purposes yet.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40150
Build 37039: arc lint + arc unit

Event Timeline

wulf requested review of this revision.Jun 28 2021, 8:53 PM

Depending on the outcome in D30932 ulong vs. uintptr_t here too.

drm-kmod is a better place to stay until these routines get tested

I came across this as I touched the linux_* versions and found them directly being called from drm-kmod lkpi code. It's been two years. Can we move such code into base please?

That’s fine with me. Would you like to submit the patch for review or should I do it?

EDIT: I see D45294 now. Should it be part of it?

That’s fine with me. Would you like to submit the patch for review or should I do it?

EDIT: I see D45294 now. Should it be part of it?

I opened D49625 for it.