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
F137607855: D30933.id91460.diff
Mon, Nov 24, 2:32 PM
Unknown Object (File)
Wed, Nov 19, 12:45 AM
Unknown Object (File)
Mon, Nov 17, 5:48 PM
Unknown Object (File)
Sun, Nov 16, 2:20 AM
Unknown Object (File)
Thu, Nov 13, 11:12 AM
Unknown Object (File)
Thu, Nov 13, 3:41 AM
Unknown Object (File)
Tue, Nov 11, 6:58 AM
Unknown Object (File)
Mon, Nov 3, 4:29 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.