^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) TODO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) . Where should we do eviction (detatch_pages())? We aren't necessarily
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) accessing the pages via a GART, so maybe we need some other threshold
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) to put a cap on the # of pages that can be pin'd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) . Use mm_shrinker to trigger unpinning pages.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) . This is mainly theoretical since most of these devices don't actually
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) have swap or harddrive.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) . GEM/shmem backed pages can have existing mappings (kernel linear map,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) etc..), which isn't really ideal.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) . Revisit GEM sync object infrastructure.. TTM has some framework for this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) already. Possibly this could be refactored out and made more common?
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) There should be some way to do this with less wheel-reinvention.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) . This can be handled by the dma-buf fence/reservation stuff when it
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) lands
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) Userspace:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) . git://anongit.freedesktop.org/xorg/driver/xf86-video-omap
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) Currently tested on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) . OMAP3530 beagleboard
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) . OMAP4430 pandaboard
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) . OMAP4460 pandaboard
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) . OMAP5432 uEVM