linux/drivers/gpu/drm/panfrost
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
Makefile
panfrost_devfreq.c drm/panfrost: simplify the return expression of panfrost_devfreq_target() 2020-10-01 13:59:01 +01:00
panfrost_devfreq.h drm/panfrost: add regulators to devfreq 2020-08-07 10:11:26 -06:00
panfrost_device.c drm/panfrost: Move the GPU reset bits outside the timeout handler 2020-11-16 10:27:30 +00:00
panfrost_device.h drm/panfrost: Move the GPU reset bits outside the timeout handler 2020-11-16 10:27:30 +00:00
panfrost_drv.c Merge drm/drm-next into drm-misc-next 2020-11-10 17:11:37 +01:00
panfrost_features.h
panfrost_gem.c drm/shmem-helper: Use cached mappings by default 2020-11-24 09:10:21 +01:00
panfrost_gem.h drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-03 09:21:52 +01:00
panfrost_gem_shrinker.c drm/panfrost: Fix a deadlock between the shrinker and madvise path 2020-11-03 09:21:52 +01:00
panfrost_gpu.c drm/panfrost: increase readl_relaxed_poll_timeout values 2020-10-09 16:57:27 +01:00
panfrost_gpu.h drm/panfrost: add amlogic reset quirk callback 2020-09-21 10:13:50 +01:00
panfrost_issues.h
panfrost_job.c drm/panfrost: Move the GPU reset bits outside the timeout handler 2020-11-16 10:27:30 +00:00
panfrost_job.h
panfrost_mmu.c Merge drm/drm-next into drm-misc-next 2020-11-02 11:17:54 +01:00
panfrost_mmu.h
panfrost_perfcnt.c drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
panfrost_perfcnt.h
panfrost_regs.h drm/panfrost: add amlogic reset quirk callback 2020-09-21 10:13:50 +01:00
TODO