linux-stable/drivers/gpu/drm/panfrost
Thomas Zimmermann ff0087df19 drm/shmem-helper: Pass GEM shmem object in public interfaces
[ Upstream commit a193f3b4e0 ]

Change all GEM SHMEM object functions that receive a GEM object
of type struct drm_gem_object to expect an object of type
struct drm_gem_shmem_object instead.

This change reduces the number of upcasts from struct drm_gem_object
by moving them into callers. The C compiler can now verify that the
GEM SHMEM functions are called with the correct type.

For consistency, the patch also renames drm_gem_shmem_free_object to
drm_gem_shmem_free. It further updates documentation for a number of
functions.

v3:
	* fix docs for drm_gem_shmem_object_free()
v2:
	* mention _object_ callbacks in docs (Daniel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211108093149.7226-4-tzimmermann@suse.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:19 +02:00
..
Kconfig
Makefile
panfrost_devfreq.c drm/panfrost: devfreq: Don't display error for EPROBE_DEFER 2021-07-23 12:06:29 +01:00
panfrost_devfreq.h
panfrost_device.c drm/panfrost: Don't reset the GPU on job faults unless we really have to 2021-07-01 08:53:35 +02:00
panfrost_device.h drm/panfrost: Queue jobs on the hardware 2021-07-01 08:53:37 +02:00
panfrost_drv.c drm/shmem-helper: Pass GEM shmem object in public interfaces 2022-08-17 14:23:19 +02:00
panfrost_features.h
panfrost_gem.c drm/shmem-helper: Pass GEM shmem object in public interfaces 2022-08-17 14:23:19 +02:00
panfrost_gem.h
panfrost_gem_shrinker.c drm/shmem-helper: Pass GEM shmem object in public interfaces 2022-08-17 14:23:19 +02:00
panfrost_gpu.c drm/panfrost: Check for error num after setting mask 2022-04-08 14:23:24 +02:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/panfrost: Queue jobs on the hardware 2021-07-01 08:53:37 +02:00
panfrost_job.h
panfrost_mmu.c drm/shmem-helper: Pass GEM shmem object in public interfaces 2022-08-17 14:23:19 +02:00
panfrost_mmu.h
panfrost_perfcnt.c drm/shmem-helper: Pass GEM shmem object in public interfaces 2022-08-17 14:23:19 +02:00
panfrost_perfcnt.h
panfrost_regs.h drm/panfrost: Clamp lock region to Bifrost minimum 2021-08-25 15:40:19 +01:00
TODO