Message ID | 20201117133156.26822-1-tzimmermann@suse.de (mailing list archive) |
---|---|
Headers | show |
Series | Default to cachable mappings for GEM SHMEM | expand |
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@kernel.org> Maxime