linux_dsm_epyc7002/drivers/gpu/drm
Daniel Vetter bcc0ef7f57 drm/vgem: Use devm_drm_dev_alloc
This means we also need to slightly restructure the exit code, so that
final cleanup of the drm_device is triggered by unregistering the
platform device. Note that devres is both clean up when the driver is
unbound (not the case for vgem, we don't bind), and also when unregistering
the device (very much the case for vgem). Therefore we can rely on devres
even though vgem isn't a proper platform device driver.

This also somewhat untangles the load code, since the drm and platform device
setup are no longer interleaved, but two distinct steps.

v2: use devres_open/release_group so we can use devm without real
hacks in the driver core or having to create an entire fake bus for
testing drivers. Might want to extract this into helpers eventually,
maybe as a mock_drm_dev_alloc or test_drm_dev_alloc.

v3: Fix error code handling (Melissa)

Cc: Melissa Wen <melissa.srw@gmail.com>
Reviewed-by: Melissa Wen <melissa.srw@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Emil Velikov <emil.velikov@collabora.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Rob Clark <robdclark@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200909120745.716178-1-daniel.vetter@ffwll.ch
2020-09-11 10:47:19 +02:00
..
amd drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
arc
arm drm/malidp: Use struct drm_gem_object_funcs.get_sg_table internally 2020-08-18 15:26:32 +02:00
armada drm/armada: Don't use drm_device->dev_private 2020-09-11 10:47:19 +02:00
aspeed drm/aspeed: Use managed drmm_mode_config_cleanup 2020-09-11 10:47:19 +02:00
ast drm: ast: fix double __iomem sparse warning 2020-08-19 09:14:40 +02:00
atmel-hlcdc
bochs Linux 5.8 2020-08-11 11:58:31 +10:00
bridge drm/bridge/tc358775: Remove unneeded semicolon 2020-09-10 08:46:24 +02:00
etnaviv drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
exynos Linux 5.9-rc1 2020-08-18 14:14:25 +02:00
fsl-dcu drm: Remove unnecessary drm_panel_attach and drm_panel_detach 2020-08-08 09:06:33 +02:00
gma500 drm/gma500: Constify static structs 2020-09-01 15:30:27 +02:00
hisilicon drm/hisilicon: Removed the dependency on the mmu 2020-08-30 20:35:55 -04:00
i2c sound updates for 5.9 2020-08-06 14:27:31 -07:00
i810
i915 Linux 5.9-rc1 2020-08-18 14:14:25 +02:00
imx drm/imx/dcss: fix compilation issue on 32bit 2020-09-10 12:09:54 +02:00
ingenic
lib
lima Linux 5.8 2020-08-11 11:58:31 +10:00
mcde drm/mcde: Retry DSI read/write transactions 2020-08-15 12:14:18 +02:00
mediatek drm: Remove unnecessary drm_panel_attach and drm_panel_detach 2020-08-08 09:06:33 +02:00
meson
mga
mgag200 drm/mgag200: fix spelling mistake "expeced" -> "expected" 2020-08-27 11:17:52 +02:00
msm drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
mxsfb
nouveau drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
omapdrm drm/omap: fix spelling mistake "propert" -> "property" 2020-08-21 15:15:11 +03:00
panel drm/panel: s6e63m0: Add missing MODULE_LICENSE 2020-09-10 08:53:06 +02:00
panfrost drm/panfrost: Ensure GPU quirks are always initialised 2020-09-10 14:12:33 +01:00
pl111
qxl drm/qxl: move bind/unbind/destroy to the driver function table. 2020-09-09 08:29:47 +10:00
r128
radeon drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
rcar-du Merge drm/drm-next into drm-misc-next 2020-08-12 20:42:08 +02:00
rockchip drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
savage
scheduler This tree adds the sched_set_fifo*() encapsulation APIs to remove 2020-08-06 11:55:43 -07:00
selftests
shmobile
sis
sti Linux 5.9-rc1 2020-08-18 14:14:25 +02:00
stm
sun4i drm/sun4i: lvds: Invert the LVDS polarity 2020-08-27 17:55:50 +02:00
tdfx
tegra drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
tidss drm/tidss: implement WA for AM65xx erratum i2000 2020-08-21 15:17:05 +03:00
tilcdc
tiny
ttm drm/ttm: drop the tt backend function paths. 2020-09-09 08:30:54 +10:00
tve200
udl
v3d drm/v3d: convert to use module_platform_driver 2020-08-10 15:32:00 +02:00
vboxvideo
vc4 drm/vc4: hdmi: Fix NULL vs IS_ERR() checks in vc5_hdmi_init_resources() 2020-09-10 12:15:57 +02:00
vgem drm/vgem: Use devm_drm_dev_alloc 2020-09-11 10:47:19 +02:00
via
virtio drm/virtio: report uuid in debugfs 2020-09-09 08:54:26 +02:00
vkms drm/vkms: Add support for writeback 2020-09-07 17:03:48 -04:00
vmwgfx drm/vmwgfx: move to driver binding functions 2020-09-09 08:30:16 +10:00
xen drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
xlnx
zte sound updates for 5.9 2020-08-06 14:27:31 -07:00
drm_agpsupport.c
drm_atomic_helper.c
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_atomic.c
drm_auth.c
drm_blend.c
drm_bridge_connector.c drm/bridge_connector: Set default status connected for eDP connectors 2020-08-26 19:11:41 +02:00
drm_bridge.c
drm_bufs.c
drm_cache.c
drm_client_modeset.c
drm_client.c
drm_color_mgmt.c
drm_connector.c drm: Replace mode->export_head with a boolean 2020-09-01 13:38:34 +03:00
drm_context.c
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h
drm_crtc.c
drm_damage_helper.c
drm_debugfs_crc.c drm/crc-debugfs: Fix memleak in crc_control_write 2020-09-01 09:45:44 +02:00
drm_debugfs.c
drm_dma.c
drm_dp_aux_dev.c
drm_dp_cec.c
drm_dp_dual_mode_helper.c
drm_dp_helper.c drm: report dp downstream port type as a subconnector property 2020-08-11 14:06:04 +02:00
drm_dp_mst_topology_internal.h
drm_dp_mst_topology.c drm/dp_mst: Support remote i2c writes 2020-09-01 12:18:13 +03:00
drm_drv.c drm/managed: Cleanup of unused functions and polishing docs 2020-09-03 16:25:06 +02:00
drm_dsc.c
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c
drm_encoder_slave.c
drm_encoder.c
drm_fb_cma_helper.c
drm_fb_helper.c Linux 5.8 2020-08-11 11:58:31 +10:00
drm_file.c
drm_flip_work.c
drm_format_helper.c
drm_fourcc.c
drm_framebuffer.c gpu/drm: cleanup coding style a bit 2020-09-09 11:45:18 +02:00
drm_gem_cma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
drm_gem_ttm_helper.c drm/ttm: merge offset and base in ttm_bus_placement 2020-09-08 10:43:30 +02:00
drm_gem_vram_helper.c drm/gem_vram/ttm: move to driver backend destroy function. 2020-09-09 08:30:29 +10:00
drm_gem.c * backmerge from drm-fixes at v5.8-rc7 2020-08-11 12:00:30 +10:00
drm_hashtab.c
drm_hdcp.c
drm_internal.h
drm_ioc32.c
drm_ioctl.c
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy_misc.c
drm_legacy.h
drm_lock.c
drm_managed.c drm/managed: Cleanup of unused functions and polishing docs 2020-09-03 16:25:06 +02:00
drm_memory.c
drm_mipi_dbi.c Linux 5.8 2020-08-11 11:58:31 +10:00
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c Linux 5.8 2020-08-11 11:58:31 +10:00
drm_panel_orientation_quirks.c
drm_panel.c drm/panel: Add helper for reading DT rotation 2020-08-16 17:12:18 +02:00
drm_pci.c
drm_plane_helper.c
drm_plane.c
drm_prime.c drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
drm_print.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_scdc_helper.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_syncobj.c
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank_work.c This tree adds the sched_set_fifo*() encapsulation APIs to remove 2020-08-06 11:55:43 -07:00
drm_vblank.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c
Kconfig
Makefile drm/imx: compile imx directory by default 2020-09-09 16:39:48 +02:00