Page MenuHomeFreeBSD

LinuxKPI: Retire <linux/dma-attrs.h>
ClosedPublic

Authored by jhb on Mon, Jun 22, 6:51 PM.
Tags
None
Referenced Files
F162705008: D57749.diff
Wed, Jul 15, 11:45 PM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Wed, Jul 15, 3:21 AM
Unknown Object (File)
Wed, Jul 8, 11:17 AM
Unknown Object (File)
Sun, Jul 5, 6:18 PM
Unknown Object (File)
Sun, Jul 5, 8:35 AM
Unknown Object (File)
Sun, Jul 5, 7:41 AM

Details

Summary

Move the attribute constants to <linux/dma-mapping.h> to match
upstream.

Sponsored by: Chelsio Communications

Diff Detail

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

Event Timeline

jhb requested review of this revision.Mon, Jun 22, 6:51 PM
emaste added inline comments.
sys/compat/linuxkpi/common/include/linux/dma-attrs.h
43–52

these are not used anywhere?

This revision is now accepted and ready to land.Mon, Jun 22, 6:59 PM
sys/compat/linuxkpi/common/include/linux/dma-attrs.h
43–52

No. OFED used to use them, but I've merged upstream commits from Linux to remove their usage. This is an API change upstream Linux made many years ago.

sys/compat/linuxkpi/common/include/linux/dma-attrs.h
43–52

When you say many years ago, can you lookup the version. I do not know how far back drm-kmod goes in terms of years. Though we could also just check the oldest branch and see that it's no longer used there. Just a better save than sorry.

Apart from that I accept.

The Linux commit was part of Linux 4.10. I merged the upstream commit to remove the usage in OFED in rGe4c4c6eeb2a29f7549d28e6ce51fc36125c08e68. The upstream commit referenced in that log is the tree-wide commit for the Linux kernel that covered everything, not just OFED.

Ah, thanks for the explanation; wasn't clear that the same upstream commit also removed the file.
I believe external drm-kmod starts with 4.16 (not that we still support it).

In D57749#1324141, @bz wrote:

Ah, thanks for the explanation; wasn't clear that the same upstream commit also removed the file.
I believe external drm-kmod starts with 4.16 (not that we still support it).

Indeed, the same upstream commit did remove the file as well (just double checked).

This revision was automatically updated to reflect the committed changes.