Re: [PATCH v3 1/4] drm: add pgprot callback to drm_gem_object_funcs

2019-12-11 Thread Thomas Zimmermann
Hi Am 11.12.19 um 13:38 schrieb Daniel Vetter: > On Wed, Dec 11, 2019 at 01:19:53PM +0100, Gerd Hoffmann wrote: >> The callback allows drivers and helpers to tweak pgprot for mappings. >> This is especially helpful when using shmem helpers. It allows drivers >> to switch mappings from writecombin

Re: [PATCH v3 1/4] drm: add pgprot callback to drm_gem_object_funcs

2019-12-11 Thread Gerd Hoffmann
> > + /** > > +* @pgprot: > > +* > > +* Tweak pgprot as needed, typically used to set cache bits. > > +* > > +* This callback is optional. > > +* > > +* If unset drm_gem_pgprot_wc() will be used. > > +*/ > > + pgprot_t (*pgprot)(struct drm_gem_object *obj, pgprot

Re: [PATCH v3 1/4] drm: add pgprot callback to drm_gem_object_funcs

2019-12-11 Thread Daniel Vetter
On Wed, Dec 11, 2019 at 01:19:53PM +0100, Gerd Hoffmann wrote: > The callback allows drivers and helpers to tweak pgprot for mappings. > This is especially helpful when using shmem helpers. It allows drivers > to switch mappings from writecombine (default) to something else (cached > for example)

[PATCH v3 1/4] drm: add pgprot callback to drm_gem_object_funcs

2019-12-11 Thread Gerd Hoffmann
The callback allows drivers and helpers to tweak pgprot for mappings. This is especially helpful when using shmem helpers. It allows drivers to switch mappings from writecombine (default) to something else (cached for example) on a per-object base without having to supply their own mmap() and vmap