drm/mgag200: Enable caching for SHMEM pages
SHMEM pages use write-combine caching by default, but can also use the platform's default page caching. Doing so may improve the performance of I/O on the framebuffer. Mgag200's hardware does not access framebuffer pages directly (i.e., via DMA), so enabling caching does not have an effect on consistency of the framebuffer memory or the displayed data. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200730102844.10995-2-tzimmermann@suse.de
This commit is contained in:
parent
cff0adca1e
commit
0b34d58b6c
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ static struct drm_driver mgag200_driver = {
|
||||||
.major = DRIVER_MAJOR,
|
.major = DRIVER_MAJOR,
|
||||||
.minor = DRIVER_MINOR,
|
.minor = DRIVER_MINOR,
|
||||||
.patchlevel = DRIVER_PATCHLEVEL,
|
.patchlevel = DRIVER_PATCHLEVEL,
|
||||||
|
.gem_create_object = drm_gem_shmem_create_object_cached,
|
||||||
DRM_GEM_SHMEM_DRIVER_OPS,
|
DRM_GEM_SHMEM_DRIVER_OPS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue