mirror_ubuntu-kernels/drivers/gpu/drm/tegra
Thomas Zimmermann 71ec16f45e drm/tegra: Implement fbdev emulation as in-kernel client
Move code from ad-hoc fbdev callbacks into DRM client functions
and remove the old callbacks. The functions instruct the client
to poll for changed output or restore the display. The DRM core
calls both, the old callbacks and the new client helpers, from
the same places. The new functions perform the same operation as
before, so there's no change in functionality.

Replace all code that initializes or releases fbdev emulation
throughout the driver. Instead initialize the fbdev client by a
single call to tegra_fbdev_setup() after tegra has registered
its DRM device. As in most drivers, tegra's fbdev emulation now
acts like a regular DRM client.

The fbdev client setup consists of the initial preparation and the
hot-plugging of the display. The latter creates the fbdev device
and sets up the fbdev framebuffer. The setup performs display
hot-plugging once. If no display can be detected, DRM probe helpers
re-run the detection on each hotplug event.

A call to drm_dev_unregister() releases the client automatically.
No further action is required within tegra. If the fbdev
framebuffer has been fully set up, struct fb_ops.fb_destroy
implements the release. For partially initialized emulation, the
fbdev client reverts the initial setup.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2023-04-06 12:18:56 +02:00
..
dc.c drm/tegra: dc: Remove set but unused variable 'state' 2023-04-04 18:04:57 +02:00
dc.h drm/tegra: rgb: Make tegra_dc_rgb_remove() return void 2023-04-04 14:24:40 +02:00
dp.c drm: Rename dp/ to display/ 2022-04-25 11:17:45 +02:00
dp.h
dpaux.c drm/tegra: dpaux: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
dpaux.h
drm.c drm/tegra: Implement fbdev emulation as in-kernel client 2023-04-06 12:18:56 +02:00
drm.h drm/tegra: Implement fbdev emulation as in-kernel client 2023-04-06 12:18:56 +02:00
dsi.c drm/tegra: dsi: Clear enable register if powered by bootloader 2023-04-04 18:04:58 +02:00
dsi.h
falcon.c drm/tegra: falcon: Set DMACTX field on DMA transactions 2022-07-08 16:27:52 +02:00
falcon.h drm/tegra: falcon: Set DMACTX field on DMA transactions 2022-07-08 16:27:52 +02:00
fb.c drm/tegra: Hide fbdev support behind config option 2023-04-06 12:18:54 +02:00
fbdev.c drm/tegra: Implement fbdev emulation as in-kernel client 2023-04-06 12:18:56 +02:00
firewall.c drm/tegra: firewall: Check for is_addr_reg existence in IMM check 2023-01-26 15:55:38 +01:00
gem.c drm/tegra: Allow compile test on !ARM v2 2023-04-04 18:04:43 +02:00
gem.h drm/tegra: Extract tegra_gem_lookup() 2021-08-10 14:44:31 +02:00
gr2d.c drm/tegra: gr2d: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
gr2d.h
gr3d.c drm/tegra: gr3d: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
gr3d.h
hda.c
hda.h
hdmi.c drm/tegra: hdmi: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
hdmi.h
hub.c drm/tegra: hub: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
hub.h drm/tegra: Remove duplicate struct declaration 2021-12-16 14:07:07 +01:00
Kconfig drm/tegra: Allow compile test on !ARM v2 2023-04-04 18:04:43 +02:00
Makefile drm/tegra: Hide fbdev support behind config option 2023-04-06 12:18:54 +02:00
mipi-phy.c
mipi-phy.h
nvdec.c drm/tegra: nvdec: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
output.c drm/tegra: Include <linux/i2c.h> 2023-04-05 17:06:07 +02:00
plane.c drm/tegra: plane: Improve use of dev_err_probe() 2023-04-04 18:04:57 +02:00
plane.h drm/tegra: Support semi-planar formats on Tegra114+ 2022-03-01 11:13:09 +01:00
rgb.c drm/tegra: Include <linux/of.h> 2023-04-05 17:06:07 +02:00
riscv.c drm/tegra: Add code for booting RISC-V based engines 2022-11-25 16:14:58 +01:00
riscv.h drm/tegra: Add code for booting RISC-V based engines 2022-11-25 16:14:58 +01:00
sor.c drm/tegra: sor: Make use of the helper function dev_err_probe() 2023-04-04 18:04:57 +02:00
sor.h
submit.c drm/tegra: Use tegra_dev_iommu_get_stream_id() 2023-01-27 17:49:43 +01:00
submit.h drm/tegra: Add job firewall 2021-08-10 17:04:05 +02:00
trace.c
trace.h
uapi.c gpu: host1x: Select context device based on attached IOMMU 2022-11-25 16:14:19 +01:00
uapi.h drm/tegra: Implement correct DMA-BUF semantics 2021-12-16 14:07:06 +01:00
vic.c drm/tegra: vic: Convert to platform remove callback returning void 2023-04-04 14:24:41 +02:00
vic.h drm/tegra: Don't call SET_APPLICATION_ID in VIC boot 2021-06-11 18:48:36 +02:00