linux/drivers/gpu/drm/virtio
Thomas Zimmermann 0cf2ef46c6 drm/shmem-helper: Use cached mappings by default
SHMEM-buffer backing storage is allocated from system memory; which is
typically cachable. The default mode for SHMEM objects is writecombine
though.

Unify SHMEM semantics by defaulting to cached mappings. The exception
is pages imported via dma-buf. DMA memory is usually not cached.

DRM drivers that require write-combined mappings set the map_wc flag
in struct drm_gem_shmem_object to true. This currently affects lima,
panfrost and v3d.

The drivers mgag200, udl, virtio and vkms continue to use default
shmem mappings.

The drivers cirrus and gm12u320 change caching flags. Both used
writecombine and now switch over to shmem defaults. Both drivers use
SHMEM objects as shadow buffers for internal video memory, so cached
mappings will not affect them negatively.

v3:
	* set value of shmem pointer before dereferencing it in
	  __drm_gem_shmem_create() (Dan, kernel test robot)
v2:
	* recreate patch on top of latest SHMEM helpers
	* update lima, panfrost, v3d to select writecombine (Daniel, Rob)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117133156.26822-2-tzimmermann@suse.de
2020-11-24 09:10:21 +01:00
..
Kconfig drm: virtio: fix kconfig dependency warning 2020-08-31 08:55:02 +02:00
Makefile drm/virtio: implement blob resources: implement vram object 2020-09-29 11:23:33 +02:00
virtgpu_debugfs.c drm/virtio: rename sync_seq and last_seq 2020-11-20 10:44:41 +01:00
virtgpu_display.c drm: Use state helper instead of CRTC state pointer 2020-11-10 12:41:06 +01:00
virtgpu_drv.c drm/<drivers>: Constify struct drm_driver 2020-11-06 10:31:26 +01:00
virtgpu_drv.h drm/virtio: rename sync_seq and last_seq 2020-11-20 10:44:41 +01:00
virtgpu_fence.c drm/virtio: rename sync_seq and last_seq 2020-11-20 10:44:41 +01:00
virtgpu_gem.c drm/virtio: Use struct_size() helper in kmalloc() 2020-08-17 13:08:43 +02:00
virtgpu_ioctl.c drm/virtio: suffix create blob call with _ioctl like any ioctl 2020-11-20 10:44:41 +01:00
virtgpu_kms.c drm/virtio: implement blob resources: implement vram object 2020-09-29 11:23:33 +02:00
virtgpu_object.c drm/shmem-helper: Use cached mappings by default 2020-11-24 09:10:21 +01:00
virtgpu_plane.c drm/virtio: implement blob resources: blob display integration 2020-09-29 11:23:42 +02:00
virtgpu_prime.c drm/virtio: Make virtgpu_dmabuf_ops with static keyword 2020-11-16 08:53:23 +01:00
virtgpu_trace_points.c drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_trace.h drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_vq.c drm/virtio: Fix a double free in virtio_gpu_cmd_map() 2020-11-06 08:50:30 +01:00
virtgpu_vram.c drm/virtio: implement blob resources: resource create blob ioctl 2020-09-29 11:23:51 +02:00