Page MenuHomeFreeBSD

linuxkpi: Add `split_page()`
Needs ReviewPublic

Authored by dumbbell on Mon, Aug 10, 5:31 PM.
Referenced Files
F167112244: D58762.diff
Wed, Aug 19, 4:51 AM
F167063803: D58762.diff
Tue, Aug 18, 8:26 PM
F167018157: D58762.diff
Tue, Aug 18, 3:03 PM
Unknown Object (File)
Tue, Aug 18, 6:26 AM
Unknown Object (File)
Mon, Aug 17, 4:23 AM
Unknown Object (File)
Sun, Aug 16, 8:50 PM
Unknown Object (File)
Sun, Aug 16, 2:53 PM
Unknown Object (File)
Sat, Aug 15, 9:54 PM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

This function is supposed to split large pages into an array of PAGE_SIZE-sized pages, with correct refcounting. This is apparently used to allow some drivers to free a part of a large page only.

I don't think we use large pages in linuxkpi. Therefore, this new function is curently a no-op.

The DRM drivers TTM memory manager started to use it in Linux 6.15.

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I don't think we use large pages in linuxkpi. Therefore, this new function is curently a no-op.

Is there a way we can add either a compile-time error or KASSERT to ensure this remains the case?

I don't think we use large pages in linuxkpi. Therefore, this new function is curently a no-op.

Is there a way we can add either a compile-time error or KASSERT to ensure this remains the case?

Or at least at the pr_debug("%s:TODO\n", func). I really should make that a macro and replace all occurrences.