[PATCH v3 0/2] Default to cachable mappings for GEM SHMEM

Maxime Ripard maxime at cerno.tech
Mon Nov 23 09:18:58 UTC 2020


On Tue, Nov 17, 2020 at 02:31:54PM +0100, Thomas Zimmermann wrote:
> By default, SHMEM GEM helpers map pages using writecombine. Only a few
> drivers require this setting. Others revert it to default mappings
> flags. Some could benefit from caching, but don't care.
> 
> Unify the behaviour by switching the SHMEM GEM code to use cached
> mappings (i.e., PAGE_KERNEL actually); just like regular shmem memory
> does. The 3 drivers that require write combining explicitly select it
> during GEM object creation.
> 
> The exception is dma-buf imported pages, which are always mapped
> using writecombine mode.


For the whole series:
Acked-by: Maxime Ripard <mripard at kernel.org>

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20201123/30621a44/attachment-0001.sig>


More information about the dri-devel mailing list