Page MenuHomeFreeBSD

linuxkpi: Add `io_mapping_map_user()` and `remap_pfn_range()`
ClosedPublic

Authored by dumbbell on Jan 16 2023, 7:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 14 2024, 10:38 AM
Unknown Object (File)
Jan 15 2024, 12:21 AM
Unknown Object (File)
Dec 20 2023, 3:24 AM
Unknown Object (File)
Nov 5 2023, 9:22 AM
Unknown Object (File)
Nov 5 2023, 9:18 AM
Unknown Object (File)
Nov 4 2023, 5:23 AM
Unknown Object (File)
Nov 4 2023, 5:07 AM
Unknown Object (File)
Sep 10 2023, 9:06 PM

Details

Summary

The code comes from the i915 DRM driver.

In Linux commits b739f125e4ebd73d10ed30a856574e13649119ed and b12d691ea5e01db42ccf3b4207e57cb3ce7cfe91 (Linux 5.13), the i915 DRM driver dropped specific implementations to use Linux generic functions. Therefore I moved the FreeBSD code from that i915 driver to linuxkpi.

However, these commits were later reverted (also in Linux 5.13) so the i915 driver doesn't use these functions. But perhaps it will help in the future.

To sum up, the code comes from the i915 DRM driver but it doesn't it (i.e. it continues to use its internal implementation).

This is part of the update of the DRM drivers to Linux 5.13 but is not required for it.

Diff Detail

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