Page MenuHomeFreeBSD

Add VM eventhandlers
AbandonedPublic

Authored by kmacy on Jun 2 2016, 8:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 12:44 AM
Unknown Object (File)
Dec 14 2023, 3:24 AM
Unknown Object (File)
Dec 6 2023, 10:10 PM
Unknown Object (File)
Sep 22 2023, 8:47 AM
Unknown Object (File)
Jun 28 2023, 6:52 PM
Unknown Object (File)
Jun 21 2023, 6:37 AM
Unknown Object (File)
May 6 2023, 7:17 PM
Unknown Object (File)
Mar 17 2023, 3:53 AM
Subscribers

Details

Summary

This provides equivalent functionality to mmu_notifiers for the subset of functions required by graphics drivers.

I previously discussed mmu notifiers here:
https://lists.freebsd.org/pipermail/freebsd-arch/2016-May/017779.html

The userptr functionality is described in past kernel release notes as follows:

Graphic driver allows mapping of user pages into video memory

By exporting the ability to map user address into the video memory, normal application data can be used as a texture source or even as a render target (depending upon the capabilities of the chipset). This has a number of uses, with zero-copy downloads to the GPU and efficient readback making the intermixed streaming of CPU and GPU operations fairly efficient. This ability has many widespread implications from faster rendering of client-side software rasterisers (chromium), mitigation of stalls due to read back (firefox) and to faster pipelining of texture data (such as pixel buffer objects in GL or data blobs in CL).

I suspect that it's too late to get this in to 11.0. This is here to explain the need for the pointer added in D6695

Test Plan

Run drm4.6 driver with MMU_NOTIFIER enabled with an up to date xf86-intel.

In the absence of a consumer this code will be a no-op post-initialization.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kmacy retitled this revision from to Add VM eventhandlers.
kmacy updated this object.
kmacy edited the test plan for this revision. (Show Details)
kmacy added reviewers: alc, markj, scottl, emaste, dumbbell.
kmacy set the repository for this revision to rS FreeBSD src repository - subversion.

I don't anticipate finding the time to add USERPTR support any time soon.