1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/msm
AngeloGioacchino Del Regno ec919e6e71 drm/msm: Allocate msm_drm_private early and pass it as driver data
In preparation for registering the mdss interrupt controller earlier,
move the allocation of msm_drm_private from component bind time to
msm_drv probe; this also allows us to use the devm variant of kzalloc.

Since it is not right to allocate the drm_device at probe time (as
it should exist only when all components are bound, and taken down
when components get cleaned up), the only way to make this happen is
to pass a pointer to msm_drm_private as driver data (like done in
many other DRM drivers), instead of one to drm_device like it's
currently done in this driver.

This is also simplifying some bind/unbind functions around drm/msm,
as some of them are using drm_device just to grab a pointer to the
msm_drm_private structure, which we now retrieve in one call.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211201105210.24970-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
2021-12-06 09:22:51 -08:00
..
adreno drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
disp drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
dp drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
dsi drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
hdmi drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
Kconfig drm: msm: fix building without CONFIG_COMMON_CLK 2021-11-26 08:58:57 -08:00
Makefile drm/msm/edp: drop old eDP support 2021-11-28 09:32:02 -08:00
msm_atomic.c drm/msm: Add hrtimer + kthread_work helper 2021-10-15 16:35:39 -07:00
msm_atomic_trace.h drm/msm: add atomic traces 2019-09-03 16:17:02 -07:00
msm_atomic_tracepoints.c drm/msm: add atomic traces 2019-09-03 16:17:02 -07:00
msm_debugfs.c drm/msm: Add debugfs to disable hw err handling 2021-11-28 09:56:47 -08:00
msm_debugfs.h drm: convert .debugfs_init() hook to return void. 2020-03-18 17:53:28 +01:00
msm_drv.c drm/msm: Allocate msm_drm_private early and pass it as driver data 2021-12-06 09:22:51 -08:00
msm_drv.h Merge remote-tracking branch 'drm/drm-next' into msm-next-staging 2021-12-06 09:14:28 -08:00
msm_fb.c drm/msm: Move FB debug prints to drm_dbg_state() 2021-06-23 07:32:15 -07:00
msm_fbdev.c drm/msm: Remove unnecessary struct_mutex 2021-11-28 09:50:33 -08:00
msm_fence.c drm/msm: Track "seqno" fences by idr 2021-07-27 18:09:18 -07:00
msm_fence.h drm/msm: Handle fence rollover 2021-11-28 09:56:47 -08:00
msm_gem.c Merge remote-tracking branch 'drm/drm-next' into msm-next-staging 2021-12-06 09:14:28 -08:00
msm_gem.h Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00
msm_gem_prime.c drm/msm: Implement mmap as GEM object function 2021-08-07 11:48:37 -07:00
msm_gem_shrinker.c drm/msm: Fix missing include files in msm_gem_shrinker.c 2021-10-21 09:46:02 -07:00
msm_gem_submit.c drm/msm: Fix null ptr access msm_ioctl_gem_submit() 2021-11-21 12:54:22 -08:00
msm_gem_vma.c drm/msm: Leave inuse count intact on map failure 2020-09-22 08:28:15 -07:00
msm_gpu.c drm/msm: Handle fence rollover 2021-11-28 09:56:47 -08:00
msm_gpu.h drm/msm/gpu: Respect PM QoS constraints 2021-11-28 10:01:40 -08:00
msm_gpu_devfreq.c drm/msm/gpu: Respect PM QoS constraints 2021-11-28 10:01:40 -08:00
msm_gpu_trace.h drm/msm: Support evicting GEM objects to swap 2021-04-07 11:05:48 -07:00
msm_gpu_tracepoints.c drm/msm/gpu: Add trace events for tracking GPU submissions 2018-12-11 13:05:28 -05:00
msm_gpummu.c drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_iommu.c drm/msm: Fix display fault handling 2021-07-27 08:14:55 -07:00
msm_kms.h drm/msm: use compatible lists to find mdp node 2021-11-29 16:19:58 -08:00
msm_mmu.h drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_perf.c drm/msm: Remove struct_mutex usage 2021-11-28 09:50:33 -08:00
msm_rd.c drm/msm: Remove struct_mutex usage 2021-11-28 09:50:33 -08:00
msm_ringbuffer.c drm/msm: Remove struct_mutex usage 2021-11-28 09:50:33 -08:00
msm_ringbuffer.h drm/msm: Conversion to drm scheduler 2021-07-28 09:19:00 -07:00
msm_submitqueue.c drm/msm: unlock on error in get_sched_entity() 2021-10-15 16:52:32 -07:00
NOTES