drm/fb-helper: Untangle fbdev emulation and helpers
Subsystems (81)
Thomas Zimmermann
maintainercover drm/fb-helper: Untangle fbdev emulation and helpers
Separate generic fbdev emulation from the helper code that is shared among the various fbdev implementations within DRM. Affects many drivers.
The goal of this patchset is to improve readability and streamline the fbdev helper code within DRM. In the long term, we want to get to a point where drivers or memory managers can pick and combine the various helpers for optimal fbdev support.
Patches 1 to 8 start by preparing drivers. Setting lastclose is not required by generic fbdev emulation.
Two drivers depend on fb helpers implicitly including other Linux header files. Fixing this in patches 9 and 10 allows to remove unnecesary include statements from the fb-helper header in patch 11.
Do some renaming in patches 12 to 14.
There are currently various implementation of the fbdev I/O helpers with varying feature sets. The fb helpers for fbdev I/O should all call fb_sync, which is what fbdev's internal implementation does. For DRM, damage handling needs to be performed after updating a framebuffer. The damage worker is part of the fb helpers, but the actual update logic only works with generic fbdev emulation. Separate the two, which also gives other drivers an option so set their own damage handling if neccessary. The full-featured I/O helpers can be moved under a shared implementation and called by all drivers. Patches 15 to 18 resolve these issues.
Patch 19 changes fbdev disablement to work at the level of display detection. If disabled, generic fbdev emulation will be initialized, but no display will be detected. It can later be enabled by changing the parameter in sysfs and plugging in a connector.
Patches 20 and 21 move the generic fbdev emulation into their own source and header files and clean up the include statements throughout DRM. Many drivers only call drm_fbdev_generic_setup() and can avoid including other Linux header files.
Built on x86-64, aarch64, arm, ppc64le. Tested with various combinations of bochs, radeon, simpledrm.
Thomas Zimmermann (21):
drm/amdgpu: Don't set struct drm_driver.lastclose
drm/imx: Don't set struct drm_driver.lastclose drm/ingenic: Don't set struct drm_driver.lastclose drm/komeda: Don't set struct drm_driver.lastclose drm/logicvc: Don't set struct drm_driver.lastclose drm/mcde: Don't set struct drm_driver.lastclose drm/rockchip: Don't set struct drm_driver.lastclose drm/vboxvideo: Don't set struct drm_driver.lastclose drm/panel-ili9341: Include <linux/backlight.h>
drm/tve200: Include <linux/of.h>
drm/fb-helper: Cleanup include statements in header file drm/fb_helper: Rename field fbdev to info in struct drm_fb_helper drm/fb-helper: Rename drm_fb_helper_alloc_fbi() to use _info postfix drm/fb-helper: Rename drm_fb_helper_unregister_fbi() to use _info
postfix
drm/fb-helper: Disconnect damage worker from update logic drm/fb-helper: Call fb_sync in I/O functions drm/fb-helper: Perform all fbdev I/O with the same implementation drm/fb_helper: Minimize damage-helper overhead drm/fb-helper: Always initialize generic fbdev emulation drm/fb-helper: Move generic fbdev emulation into separate source file drm/fb-helper: Remove unnecessary include statements
drivers/gpu/drm/Makefile | 2 +- .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 - drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 - .../gpu/drm/arm/display/komeda/komeda_drv.c | 2 +- .../gpu/drm/arm/display/komeda/komeda_kms.c | 2 - drivers/gpu/drm/arm/hdlcd_crtc.c | 1 - drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- drivers/gpu/drm/arm/malidp_drv.c | 2 +- drivers/gpu/drm/armada/armada_fbdev.c | 6 +- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.c | 1 + drivers/gpu/drm/ast/ast_drv.h | 1 - drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/bridge/tc358762.c | 2 +- drivers/gpu/drm/drm_crtc_helper.c | 1 - drivers/gpu/drm/drm_fb_helper.c | 1081 ++++++----------- drivers/gpu/drm/drm_fbdev.c | 512 ++++++++ drivers/gpu/drm/drm_gem_framebuffer_helper.c | 1 - drivers/gpu/drm/drm_probe_helper.c | 1 - drivers/gpu/drm/etnaviv/etnaviv_drv.h | 3 +- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 6 +- drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- drivers/gpu/drm/gma500/framebuffer.c | 6 +- drivers/gpu/drm/gud/gud_drv.c | 2 +- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 + .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 1 - .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 +- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 2 +- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 1 - drivers/gpu/drm/i915/display/intel_fbdev.c | 8 +- drivers/gpu/drm/imx/dcss/dcss-kms.c | 3 +- drivers/gpu/drm/imx/imx-drm-core.c | 2 +- drivers/gpu/drm/imx/imx-ldb.c | 2 +- drivers/gpu/drm/imx/imx-tve.c | 1 - drivers/gpu/drm/imx/parallel-display.c | 2 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 3 +- drivers/gpu/drm/kmb/kmb_drv.c | 2 +- drivers/gpu/drm/kmb/kmb_plane.c | 1 - drivers/gpu/drm/logicvc/logicvc_drm.c | 2 +- drivers/gpu/drm/logicvc/logicvc_mode.c | 2 - drivers/gpu/drm/mcde/mcde_drv.c | 3 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- drivers/gpu/drm/meson/meson_drv.c | 2 +- drivers/gpu/drm/mgag200/mgag200_drv.c | 1 + drivers/gpu/drm/mgag200/mgag200_drv.h | 1 - drivers/gpu/drm/msm/msm_fbdev.c | 4 +- drivers/gpu/drm/mxsfb/lcdif_drv.c | 2 +- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 27 +- drivers/gpu/drm/omapdrm/omap_fbdev.c | 6 +- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 3 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- drivers/gpu/drm/qxl/qxl_drv.c | 1 + drivers/gpu/drm/qxl/qxl_drv.h | 1 - drivers/gpu/drm/radeon/radeon_fb.c | 6 +- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 2 - drivers/gpu/drm/solomon/ssd130x.c | 2 +- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- drivers/gpu/drm/tegra/fb.c | 8 +- drivers/gpu/drm/tidss/tidss_drv.c | 2 +- drivers/gpu/drm/tidss/tidss_kms.c | 1 - drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- drivers/gpu/drm/tiny/arcpgu.c | 2 +- drivers/gpu/drm/tiny/bochs.c | 2 +- drivers/gpu/drm/tiny/cirrus.c | 2 +- drivers/gpu/drm/tiny/gm12u320.c | 2 +- drivers/gpu/drm/tiny/hx8357d.c | 2 +- drivers/gpu/drm/tiny/ili9163.c | 2 +- drivers/gpu/drm/tiny/ili9225.c | 2 +- drivers/gpu/drm/tiny/ili9341.c | 2 +- drivers/gpu/drm/tiny/ili9486.c | 2 +- drivers/gpu/drm/tiny/mi0283qt.c | 2 +- drivers/gpu/drm/tiny/ofdrm.c | 2 +- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 2 +- drivers/gpu/drm/tiny/repaper.c | 2 +- drivers/gpu/drm/tiny/simpledrm.c | 2 +- drivers/gpu/drm/tiny/st7586.c | 2 +- drivers/gpu/drm/tiny/st7735r.c | 2 +- drivers/gpu/drm/tve200/tve200_drv.c | 3 +- drivers/gpu/drm/udl/udl_drv.c | 2 +- drivers/gpu/drm/v3d/v3d_drv.c | 1 - drivers/gpu/drm/vboxvideo/vbox_drv.c | 4 +- drivers/gpu/drm/vboxvideo/vbox_main.c | 1 - drivers/gpu/drm/vc4/vc4_drv.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.c | 1 + drivers/gpu/drm/virtio/virtgpu_drv.h | 1 - drivers/gpu/drm/vkms/vkms_drv.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 3 + drivers/gpu/drm/xen/xen_drm_front_gem.c | 1 - drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- include/drm/drm_fb_helper.h | 59 +- include/drm/drm_fbdev.h | 15 + 99 files changed, 1019 insertions(+), 883 deletions(-) create mode 100644 drivers/gpu/drm/drm_fbdev.c create mode 100644 include/drm/drm_fbdev.h
base-commit: 8c797a984264f04708d2099e83c85978a0fede89
prerequisite-patch-id: c2b2f08f0eccc9f5df0c0da49fa1d36267deb11d
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24
prerequisite-patch-id: 3f204510fcbf9530d6540bd8e6128cce598988b6
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 1/21 drm/amdgpu: Don't set struct drm_driver.lastclose
Don't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as amdgpu uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 -- 2 files changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -1
@@ -1224,7 +1224,6 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev,const struct drm_mode_config_funcs amdgpu_mode_funcs = { .fb_create = amdgpu_display_user_framebuffer_create, - .output_poll_changed = drm_fb_helper_output_poll_changed, }; static const struct drm_prop_enum_list amdgpu_underscan_enum_list[] =
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0 -2
@@ -82,7 +82,6 @@#include <drm/drm_atomic_uapi.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_blend.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_edid.h> #include <drm/drm_vblank.h>
@@ -2810,7 +2809,6 @@ const struct amdgpu_ip_block_version dm_ip_block =static const struct drm_mode_config_funcs amdgpu_dm_mode_funcs = { .fb_create = amdgpu_display_user_framebuffer_create, .get_format_info = amd_get_format_info, - .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = amdgpu_dm_atomic_check, .atomic_commit = drm_atomic_helper_commit, };
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 2/21 drm/imx: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as imx uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/imx/dcss/dcss-kms.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/imx/dcss/dcss-kms.c +0 -1
@@ -21,7 +21,6 @@ DEFINE_DRM_GEM_DMA_FOPS(dcss_cma_fops);static const struct drm_mode_config_funcs dcss_drm_mode_config_funcs = { .fb_create = drm_gem_fb_create, - .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 3/21 drm/ingenic: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_mode_config.output_poll_changed. It's used to inform the fbdev console about conncetor changes. But as ingenic uses generic fbdev emulation, the console is being informed by the DRM client helpers already. See the calls to drm_client_dev_hotplug() in drm_probe_helper.c.
--- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +0 -1
@@ -1018,7 +1018,6 @@ static const struct drm_bridge_funcs ingenic_drm_bridge_funcs = {static const struct drm_mode_config_funcs ingenic_drm_mode_config_funcs = { .fb_create = ingenic_drm_gem_fb_create, - .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 4/21 drm/komeda: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as komeda uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/arm/display/komeda/komeda_kms.c +0 -2
@@ -10,7 +10,6 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_managed.h>
@@ -59,7 +58,6 @@ static irqreturn_t komeda_kms_irq_handler(int irq, void *data)static const struct drm_driver komeda_kms_driver = { .driver_features =DRIVER_GEM |DRIVER_MODESET |DRIVER_ATOMIC , - .lastclose = drm_fb_helper_lastclose,DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (komeda_gem_dma_dumb_create), .fops = &komeda_cma_fops, .name ="komeda" ,
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 5/21 drm/logicvc: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as logicvc uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/logicvc/logicvc_mode.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/logicvc/logicvc_mode.c +0 -2
@@ -10,7 +10,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_mode_config.h>
@@ -26,7 +25,6 @@static const struct drm_mode_config_funcs logicvc_mode_config_funcs = { .fb_create = drm_gem_fb_create, - .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 6/21 drm/mcde: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as mcde uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/mcde/mcde_drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/mcde/mcde_drv.c +0 -1
@@ -203,7 +203,6 @@ DEFINE_DRM_GEM_DMA_FOPS(drm_fops);static const struct drm_driver mcde_drm_driver = { .driver_features =DRIVER_MODESET |DRIVER_GEM |DRIVER_ATOMIC , - .lastclose = drm_fb_helper_lastclose, .ioctls =NULL , .fops = &drm_fops, .name ="mcde" ,
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 7/21 drm/rockchip: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as rockchip uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/rockchip/rockchip_drm_fb.c +0 -2
@@ -9,7 +9,6 @@#include <drm/drm.h> #include <drm/drm_atomic.h> #include <drm/drm_damage_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_framebuffer_helper.h>
@@ -101,7 +100,6 @@ rockchip_fb_create(struct drm_device *dev, struct drm_file *file,static const struct drm_mode_config_funcs rockchip_drm_mode_config_funcs = { .fb_create = rockchip_fb_create, - .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 8/21 drm/vboxvideo: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannDon't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as vboxvideo uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to drm_client_dev_restore() in drm_lastclose().
--- drivers/gpu/drm/vboxvideo/vbox_drv.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/vboxvideo/vbox_drv.c +0 -2
@@ -178,8 +178,6 @@ static const struct drm_driver driver = { .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC, - .lastclose = drm_fb_helper_lastclose, - .fops = &vbox_fops, .name = DRIVER_NAME, .desc = DRIVER_DESC,
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 9/21 drm/panel-ili9341: Include <linux/backlight.h>
In reply to Thomas ZimmermannInclude <linux/backlight.h> for devm_of_find_backlight().
--- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-ilitek-ili9341.c +1 -0
@@ -18,6 +18,7 @@* Copyright 2018 David Lechner <[email protected]> */ +#include <linux/backlight.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/gpio/consumer.h>
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 10/21 drm/tve200: Include <linux/of.h>
In reply to Thomas ZimmermannInclude <linux/of.h> for of_match_ptr().
--- drivers/gpu/drm/tve200/tve200_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/tve200/tve200_drv.c +1 -0
@@ -32,6 +32,7 @@#include <linux/irq.h> #include <linux/io.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/shmem_fs.h> #include <linux/slab.h>
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 11/21 drm/fb-helper: Cleanup include statements in header file
In reply to Thomas ZimmermannOnly include what we have to.
--- include/drm/drm_fb_helper.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
include/drm/drm_fb_helper.h +2 -4
@@ -32,11 +32,9 @@struct drm_fb_helper ; -#include <drm/drm_client.h> -#include <drm/drm_crtc.h> -#include <drm/drm_device.h> #include <linux/fb.h> -#include <linux/kgdb.h> + +#include <drm/drm_client.h> enum mode_set_atomic {LEAVE_ATOMIC_MODE_SET ,
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 12/21 drm/fb_helper: Rename field fbdev to info in struct drm_fb_helper
In reply to Thomas ZimmermannRename struct drm_fb_helper.fbdev to info. The current name is misleading as it overlaps with generic fbdev naming conventions. Adapt to the usual naming in fbdev drivers by calling the field 'info'. No functional changes.
--- drivers/gpu/drm/drm_fb_helper.c | 40 +++++++++++----------- drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 23 ++++++------- drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +- drivers/gpu/drm/tegra/fb.c | 2 +- include/drm/drm_fb_helper.h | 4 +-- 6 files changed, 36 insertions(+), 37 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +20 -20
@@ -368,7 +368,7 @@ static void drm_fb_helper_resume_worker(struct work_struct *work) resume_work);console_lock (); -fb_set_suspend (helper->fbdev,0 ); +fb_set_suspend (helper->info,0 );console_unlock (); }
@@ -401,7 +401,7 @@ static void drm_fb_helper_damage_blit_real(struct drm_fb_helper *fb_helper,break ; } - src = fb_helper->fbdev->screen_buffer + offset; + src = fb_helper->info->screen_buffer + offset;iosys_map_incr (dst, offset);/* go to first pixel within clip rect */ for (y = clip->y1; y < clip->y2; y++) {
@@ -598,7 +598,7 @@ struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper) goto err_free_cmap; } - fb_helper->fbdev = info; + fb_helper->info = info; info->skip_vt_switch = true;return info;
@@ -621,8 +621,8 @@ EXPORT_SYMBOL(drm_fb_helper_alloc_fbi);*/ void drm_fb_helper_unregister_fbi (struct drm_fb_helper *fb_helper) { -if (fb_helper && fb_helper->fbdev) -unregister_framebuffer (fb_helper->fbdev); +if (fb_helper && fb_helper->info) +unregister_framebuffer (fb_helper->info); }EXPORT_SYMBOL (drm_fb_helper_unregister_fbi);
@@ -647,13 +647,13 @@ void drm_fb_helper_fini(struct drm_fb_helper *fb_helper)cancel_work_sync (&fb_helper->resume_work);cancel_work_sync (&fb_helper->damage_work); - info = fb_helper->fbdev; + info = fb_helper->info;if (info) {if (info->cmap.len)fb_dealloc_cmap (&info->cmap);framebuffer_release (info); } - fb_helper->fbdev =NULL ; + fb_helper->info =NULL ;mutex_lock (&kernel_fb_helper_lock);if (!list_empty (&fb_helper->kernel_fb_list)) {
@@ -914,8 +914,8 @@ EXPORT_SYMBOL(drm_fb_helper_cfb_imageblit);*/ void drm_fb_helper_set_suspend (struct drm_fb_helper *fb_helper,bool suspend) { -if (fb_helper && fb_helper->fbdev) -fb_set_suspend (fb_helper->fbdev, suspend); +if (fb_helper && fb_helper->info) +fb_set_suspend (fb_helper->info, suspend); }EXPORT_SYMBOL (drm_fb_helper_set_suspend);
@@ -938,20 +938,20 @@ EXPORT_SYMBOL(drm_fb_helper_set_suspend);void drm_fb_helper_set_suspend_unlocked (struct drm_fb_helper *fb_helper,bool suspend) { -if (!fb_helper || !fb_helper->fbdev) +if (!fb_helper || !fb_helper->info)return ;/* make sure there's no pending/ongoing resume */ flush_work (&fb_helper->resume_work);if (suspend) { -if (fb_helper->fbdev->state !=FBINFO_STATE_RUNNING ) +if (fb_helper->info->state !=FBINFO_STATE_RUNNING )return ;console_lock (); }else { -if (fb_helper->fbdev->state ==FBINFO_STATE_RUNNING ) +if (fb_helper->info->state ==FBINFO_STATE_RUNNING )return ;if (!console_trylock ()) {
@@ -960,7 +960,7 @@ void drm_fb_helper_set_suspend_unlocked(struct drm_fb_helper *fb_helper, } } -fb_set_suspend (fb_helper->fbdev, suspend); +fb_set_suspend (fb_helper->info, suspend);console_unlock (); }EXPORT_SYMBOL (drm_fb_helper_set_suspend_unlocked);
@@ -1850,7 +1850,7 @@ EXPORT_SYMBOL(drm_fb_helper_fill_info);/* * This is a continuation of drm_setup_crtcs() that sets up anything related * to the framebuffer. During initialization, drm_setup_crtcs() is called before -* the framebuffer has been allocated (fb_helper->fb and fb_helper->fbdev). +* the framebuffer has been allocated (fb_helper->fb and fb_helper->info). * So, any setup that touches those fields needs to be done here instead of in * drm_setup_crtcs(). */
@@ -1858,7 +1858,7 @@ static void drm_setup_crtcs_fb(struct drm_fb_helper *fb_helper) {struct drm_client_dev *client = &fb_helper->client;struct drm_connector_list_iter conn_iter; -struct fb_info *info = fb_helper->fbdev; +struct fb_info *info = fb_helper->info;unsigned int rotation, sw_rotations =0 ;struct drm_connector *connector;struct drm_mode_set *modeset;
@@ -1942,7 +1942,7 @@ __drm_fb_helper_initial_config_and_unlock(struct drm_fb_helper *fb_helper, fb_helper->deferred_setup = false; - info = fb_helper->fbdev; + info = fb_helper->info; info->var.pixclock =0 ;/* Shamelessly allow physical address leaking to userspace */ #if IS_ENABLED (CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM )
@@ -2077,7 +2077,7 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper)drm_setup_crtcs_fb (fb_helper);mutex_unlock (&fb_helper->lock); -drm_fb_helper_set_par (fb_helper->fbdev); +drm_fb_helper_set_par (fb_helper->info);return 0 ; }
@@ -2135,7 +2135,7 @@ static int drm_fbdev_fb_release(struct fb_info *info, int user)static void drm_fbdev_cleanup (struct drm_fb_helper *fb_helper) { -struct fb_info *fbi = fb_helper->fbdev; +struct fb_info *fbi = fb_helper->info;void *shadow =NULL ;if (!fb_helper->dev)
@@ -2495,7 +2495,7 @@ static void drm_fbdev_client_unregister(struct drm_client_dev *client) {struct drm_fb_helper *fb_helper =drm_fb_helper_from_client (client); -if (fb_helper->fbdev) +if (fb_helper->info)/* drm_fbdev_fb_destroy() takes care of cleanup */ drm_fb_helper_unregister_fbi (fb_helper);else
@@ -2546,7 +2546,7 @@ static int drm_fbdev_client_hotplug(struct drm_client_dev *client)drm_fbdev_cleanup (fb_helper); err: fb_helper->dev =NULL ; - fb_helper->fbdev =NULL ; + fb_helper->info =NULL ;drm_err (dev,"fbdev: Failed to setup generic emulation (ret=%d)\n" , ret);
drivers/gpu/drm/i915/display/intel_fbdev.c +1 -1
@@ -627,7 +627,7 @@ void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronousif (!ifbdev || !ifbdev->vma) goto set_suspend; - info = ifbdev->helper.fbdev; + info = ifbdev->helper.info;if (synchronous) {/* Flush any pending work to turn the console on, and then
drivers/gpu/drm/nouveau/nouveau_fbcon.c +11 -12
@@ -231,9 +231,9 @@ void nouveau_fbcon_accel_save_disable(struct drm_device *dev) {struct nouveau_drm *drm =nouveau_drm (dev); -if (drm->fbcon && drm->fbcon->helper.fbdev) { - drm->fbcon->saved_flags = drm->fbcon->helper.fbdev->flags; - drm->fbcon->helper.fbdev->flags |=FBINFO_HWACCEL_DISABLED ; +if (drm->fbcon && drm->fbcon->helper.info) { + drm->fbcon->saved_flags = drm->fbcon->helper.info->flags; + drm->fbcon->helper.info->flags |=FBINFO_HWACCEL_DISABLED ; } }
@@ -241,9 +241,8 @@ void nouveau_fbcon_accel_restore(struct drm_device *dev) {struct nouveau_drm *drm =nouveau_drm (dev); -if (drm->fbcon && drm->fbcon->helper.fbdev) { - drm->fbcon->helper.fbdev->flags = drm->fbcon->saved_flags; - } +if (drm->fbcon && drm->fbcon->helper.info) + drm->fbcon->helper.info->flags = drm->fbcon->saved_flags; } static void
@@ -253,8 +252,8 @@ nouveau_fbcon_accel_fini(struct drm_device *dev)struct nouveau_fbdev *fbcon = drm->fbcon;if (fbcon && drm->channel) {console_lock (); -if (fbcon->helper.fbdev) - fbcon->helper.fbdev->flags |=FBINFO_HWACCEL_DISABLED ; +if (fbcon->helper.info) + fbcon->helper.info->flags |=FBINFO_HWACCEL_DISABLED ;console_unlock ();nouveau_channel_idle (drm->channel);nvif_object_dtor (&fbcon->twod);
@@ -272,7 +271,7 @@ nouveau_fbcon_accel_init(struct drm_device *dev) {struct nouveau_drm *drm =nouveau_drm (dev);struct nouveau_fbdev *fbcon = drm->fbcon; -struct fb_info *info = fbcon->helper.fbdev; +struct fb_info *info = fbcon->helper.info;int ret;if (drm->client.device.info.family <NV_DEVICE_INFO_V0_TESLA )
@@ -290,7 +289,7 @@ nouveau_fbcon_accel_init(struct drm_device *dev)static void nouveau_fbcon_zfill (struct drm_device *dev,struct nouveau_fbdev *fbcon) { -struct fb_info *info = fbcon->helper.fbdev; +struct fb_info *info = fbcon->helper.info;struct fb_fillrect rect;/* Clear the entire fbcon. The drm will program every connector
@@ -586,8 +585,8 @@ nouveau_fbcon_init(struct drm_device *dev)if (ret) goto fini; -if (fbcon->helper.fbdev) - fbcon->helper.fbdev->pixmap.buf_align =4 ; +if (fbcon->helper.info) + fbcon->helper.info->pixmap.buf_align =4 ;return 0 ; fini:
drivers/gpu/drm/omapdrm/omap_fbdev.c +1 -1
@@ -38,7 +38,7 @@ static struct drm_fb_helper *get_fb(struct fb_info *fbi);static void pan_worker (struct work_struct *work) { struct omap_fbdev *fbdev = container_of(work, struct omap_fbdev, work); -struct fb_info *fbi = fbdev->base.fbdev; +struct fb_info *fbi = fbdev->base.info;int npages;/* DMM roll shifts in 4K pages: */
drivers/gpu/drm/tegra/fb.c +1 -1
@@ -261,7 +261,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper, fb = fbdev->fb; helper->fb = fb; - helper->fbdev = info; + helper->info = info; info->fbops = &tegra_fb_ops;
include/drm/drm_fb_helper.h +2 -2
@@ -96,7 +96,7 @@ struct drm_fb_helper_funcs {* @fb: Scanout framebuffer object * @dev: DRM device * @funcs: driver callbacks for fb helper -* @fbdev: emulated fbdev device info struct +* @info: emulated fbdev device info struct * @pseudo_palette: fake palette of 16 colors * @damage_clip: clip rectangle used with deferred_io to accumulate damage to * the screen buffer
@@ -127,7 +127,7 @@ struct drm_fb_helper {struct drm_framebuffer *fb;struct drm_device *dev;const struct drm_fb_helper_funcs *funcs; -struct fb_info *fbdev; +struct fb_info *info;u32 pseudo_palette[17 ];struct drm_clip_rect damage_clip;spinlock_t damage_lock;
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 13/21 drm/fb-helper: Rename drm_fb_helper_alloc_fbi() to use _info postfix
In reply to Thomas ZimmermannRename drm_fb_helper_alloc_fbi() to drm_fb_helper_alloc_info() as part of unifying the naming within fbdev helpers. Adapt drivers. No functional changes.
--- drivers/gpu/drm/armada/armada_fbdev.c | 2 +- drivers/gpu/drm/drm_fb_helper.c | 8 ++++---- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 +- drivers/gpu/drm/gma500/framebuffer.c | 2 +- drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +- drivers/gpu/drm/msm/msm_fbdev.c | 2 +- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 2 +- drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +- drivers/gpu/drm/radeon/radeon_fb.c | 2 +- drivers/gpu/drm/tegra/fb.c | 2 +- include/drm/drm_fb_helper.h | 4 ++-- 11 files changed, 15 insertions(+), 15 deletions(-)
drivers/gpu/drm/armada/armada_fbdev.c +1 -1
@@ -72,7 +72,7 @@ static int armada_fbdev_create(struct drm_fb_helper *fbh,if (IS_ERR (dfb))return PTR_ERR (dfb); - info =drm_fb_helper_alloc_fbi (fbh); + info =drm_fb_helper_alloc_info (fbh);if (IS_ERR (info)) { ret =PTR_ERR (info); goto err_fballoc;
drivers/gpu/drm/drm_fb_helper.c +4 -4
@@ -558,7 +558,7 @@ int drm_fb_helper_init(struct drm_device *dev,EXPORT_SYMBOL (drm_fb_helper_init);/** -* drm_fb_helper_alloc_fbi - allocate fb_info and some of its members +* drm_fb_helper_alloc_info - allocate fb_info and some of its members * @fb_helper: driver-allocated fbdev helper * * A helper to alloc fb_info and the members cmap and apertures. Called
@@ -570,7 +570,7 @@ EXPORT_SYMBOL(drm_fb_helper_init);* fb_info pointer if things went okay, pointer containing error code * otherwise */ -struct fb_info *drm_fb_helper_alloc_fbi (struct drm_fb_helper *fb_helper) +struct fb_info *drm_fb_helper_alloc_info (struct drm_fb_helper *fb_helper) {struct device *dev = fb_helper->dev->dev;struct fb_info *info;
@@ -609,7 +609,7 @@ struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper)framebuffer_release (info);return ERR_PTR (ret); } -EXPORT_SYMBOL (drm_fb_helper_alloc_fbi); +EXPORT_SYMBOL (drm_fb_helper_alloc_info);/** * drm_fb_helper_unregister_fbi - unregister fb_info framebuffer device
@@ -2440,7 +2440,7 @@ static int drm_fb_helper_generic_probe(struct drm_fb_helper *fb_helper, fb_helper->fb = buffer->fb; fb = buffer->fb; - fbi =drm_fb_helper_alloc_fbi (fb_helper); + fbi =drm_fb_helper_alloc_info (fb_helper);if (IS_ERR (fbi))return PTR_ERR (fbi);
drivers/gpu/drm/exynos/exynos_drm_fbdev.c +1 -1
@@ -63,7 +63,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,unsigned int size = fb->width * fb->height * fb->format->cpp[0 ];unsigned long offset; - fbi =drm_fb_helper_alloc_fbi (helper); + fbi =drm_fb_helper_alloc_info (helper);if (IS_ERR (fbi)) {DRM_DEV_ERROR (to_dma_dev (helper->dev),"failed to allocate fb info.\n" );
drivers/gpu/drm/gma500/framebuffer.c +1 -1
@@ -268,7 +268,7 @@ static int psbfb_create(struct drm_fb_helper *fb_helper,memset (dev_priv->vram_addr + backing->offset,0 , size); - info =drm_fb_helper_alloc_fbi (fb_helper); + info =drm_fb_helper_alloc_info (fb_helper);if (IS_ERR (info)) { ret =PTR_ERR (info); goto err_drm_gem_object_put;
drivers/gpu/drm/i915/display/intel_fbdev.c +1 -1
@@ -254,7 +254,7 @@ static int intelfb_create(struct drm_fb_helper *helper, goto out_unlock; } - info =drm_fb_helper_alloc_fbi (helper); + info =drm_fb_helper_alloc_info (helper);if (IS_ERR (info)) {drm_err (&dev_priv->drm,"Failed to allocate fb_info\n" ); ret =PTR_ERR (info);
drivers/gpu/drm/msm/msm_fbdev.c +1 -1
@@ -93,7 +93,7 @@ static int msm_fbdev_create(struct drm_fb_helper *helper, goto fail; } - fbi =drm_fb_helper_alloc_fbi (helper); + fbi =drm_fb_helper_alloc_info (helper);if (IS_ERR (fbi)) {DRM_DEV_ERROR (dev->dev,"failed to allocate fb info\n" ); ret =PTR_ERR (fbi);
drivers/gpu/drm/nouveau/nouveau_fbcon.c +1 -1
@@ -362,7 +362,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, } } - info =drm_fb_helper_alloc_fbi (helper); + info =drm_fb_helper_alloc_info (helper);if (IS_ERR (info)) { ret =PTR_ERR (info); goto out_unlock;
drivers/gpu/drm/omapdrm/omap_fbdev.c +1 -1
@@ -161,7 +161,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper, goto fail; } - fbi =drm_fb_helper_alloc_fbi (helper); + fbi =drm_fb_helper_alloc_info (helper);if (IS_ERR (fbi)) {dev_err (dev->dev,"failed to allocate fb info\n" ); ret =PTR_ERR (fbi);
drivers/gpu/drm/radeon/radeon_fb.c +1 -1
@@ -243,7 +243,7 @@ static int radeonfb_create(struct drm_fb_helper *helper, rbo =gem_to_radeon_bo (gobj);/* okay we have an object now allocate the framebuffer */ - info =drm_fb_helper_alloc_fbi (helper); + info =drm_fb_helper_alloc_info (helper);if (IS_ERR (info)) { ret =PTR_ERR (info); goto out;
drivers/gpu/drm/tegra/fb.c +1 -1
@@ -243,7 +243,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,if (IS_ERR (bo))return PTR_ERR (bo); - info =drm_fb_helper_alloc_fbi (helper); + info =drm_fb_helper_alloc_info (helper);if (IS_ERR (info)) {dev_err (drm->dev,"failed to allocate framebuffer info\n" );drm_gem_object_put (&bo->gem);
include/drm/drm_fb_helper.h +2 -2
@@ -222,7 +222,7 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,int drm_fb_helper_restore_fbdev_mode_unlocked (struct drm_fb_helper *fb_helper); -struct fb_info *drm_fb_helper_alloc_fbi (struct drm_fb_helper *fb_helper); +struct fb_info *drm_fb_helper_alloc_info (struct drm_fb_helper *fb_helper);void drm_fb_helper_unregister_fbi (struct drm_fb_helper *fb_helper); void drm_fb_helper_fill_info(struct fb_info *info, struct drm_fb_helper *fb_helper,
@@ -320,7 +320,7 @@ drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper) }static inline struct fb_info * -drm_fb_helper_alloc_fbi (struct drm_fb_helper *fb_helper) +drm_fb_helper_alloc_info (struct drm_fb_helper *fb_helper) {return NULL ; }
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 14/21 drm/fb-helper: Rename drm_fb_helper_unregister_fbi() to use _info postfix
In reply to Thomas ZimmermannRename drm_fb_helper_unregister_fbi() to drm_fb_helper_unregister_info() as part of unifying the naming within fbdev helpers. Adapt drivers. No functional changes.
--- drivers/gpu/drm/armada/armada_fbdev.c | 2 +- drivers/gpu/drm/drm_fb_helper.c | 8 ++++---- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 +- drivers/gpu/drm/gma500/framebuffer.c | 2 +- drivers/gpu/drm/i915/display/intel_fbdev.c | 2 +- drivers/gpu/drm/msm/msm_fbdev.c | 2 +- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 2 +- drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +- drivers/gpu/drm/radeon/radeon_fb.c | 2 +- drivers/gpu/drm/tegra/fb.c | 2 +- include/drm/drm_fb_helper.h | 4 ++-- 11 files changed, 15 insertions(+), 15 deletions(-)
drivers/gpu/drm/armada/armada_fbdev.c +1 -1
@@ -155,7 +155,7 @@ void armada_fbdev_fini(struct drm_device *dev)struct drm_fb_helper *fbh = priv->fbdev;if (fbh) { -drm_fb_helper_unregister_fbi (fbh); +drm_fb_helper_unregister_info (fbh);drm_fb_helper_fini (fbh);
drivers/gpu/drm/drm_fb_helper.c +4 -4
@@ -612,19 +612,19 @@ struct fb_info *drm_fb_helper_alloc_info(struct drm_fb_helper *fb_helper)EXPORT_SYMBOL (drm_fb_helper_alloc_info);/** -* drm_fb_helper_unregister_fbi - unregister fb_info framebuffer device +* drm_fb_helper_unregister_info - unregister fb_info framebuffer device * @fb_helper: driver-allocated fbdev helper, can be NULL * * A wrapper around unregister_framebuffer, to release the fb_info * framebuffer device. This must be called before releasing all resources for * @fb_helper by calling drm_fb_helper_fini(). */ -void drm_fb_helper_unregister_fbi (struct drm_fb_helper *fb_helper) +void drm_fb_helper_unregister_info (struct drm_fb_helper *fb_helper) {if (fb_helper && fb_helper->info)unregister_framebuffer (fb_helper->info); } -EXPORT_SYMBOL (drm_fb_helper_unregister_fbi); +EXPORT_SYMBOL (drm_fb_helper_unregister_info);/** * drm_fb_helper_fini - finialize a &struct drm_fb_helper
@@ -2497,7 +2497,7 @@ static void drm_fbdev_client_unregister(struct drm_client_dev *client)if (fb_helper->info)/* drm_fbdev_fb_destroy() takes care of cleanup */ -drm_fb_helper_unregister_fbi (fb_helper); +drm_fb_helper_unregister_info (fb_helper);else drm_fbdev_release (fb_helper); }
drivers/gpu/drm/exynos/exynos_drm_fbdev.c +1 -1
@@ -201,7 +201,7 @@ static void exynos_drm_fbdev_destroy(struct drm_device *dev,drm_framebuffer_remove (fb); } -drm_fb_helper_unregister_fbi (fb_helper); +drm_fb_helper_unregister_info (fb_helper);drm_fb_helper_fini (fb_helper); }
drivers/gpu/drm/gma500/framebuffer.c +1 -1
@@ -383,7 +383,7 @@ static int psb_fbdev_destroy(struct drm_device *dev, {struct drm_framebuffer *fb = fb_helper->fb; -drm_fb_helper_unregister_fbi (fb_helper); +drm_fb_helper_unregister_info (fb_helper);drm_fb_helper_fini (fb_helper);drm_framebuffer_unregister_private (fb);
drivers/gpu/drm/i915/display/intel_fbdev.c +1 -1
@@ -584,7 +584,7 @@ void intel_fbdev_unregister(struct drm_i915_private *dev_priv)if (!current_is_async ())intel_fbdev_sync (ifbdev); -drm_fb_helper_unregister_fbi (&ifbdev->helper); +drm_fb_helper_unregister_info (&ifbdev->helper); }void intel_fbdev_fini (struct drm_i915_private *dev_priv)
drivers/gpu/drm/msm/msm_fbdev.c +1 -1
@@ -184,7 +184,7 @@ void msm_fbdev_free(struct drm_device *dev)DBG (); -drm_fb_helper_unregister_fbi (helper); +drm_fb_helper_unregister_info (helper);drm_fb_helper_fini (helper);
drivers/gpu/drm/nouveau/nouveau_fbcon.c +1 -1
@@ -419,7 +419,7 @@ nouveau_fbcon_destroy(struct drm_device *dev, struct nouveau_fbdev *fbcon)struct drm_framebuffer *fb = fbcon->helper.fb;struct nouveau_bo *nvbo; -drm_fb_helper_unregister_fbi (&fbcon->helper); +drm_fb_helper_unregister_info (&fbcon->helper);drm_fb_helper_fini (&fbcon->helper);if (fb && fb->obj[0 ]) {
drivers/gpu/drm/omapdrm/omap_fbdev.c +1 -1
@@ -274,7 +274,7 @@ void omap_fbdev_fini(struct drm_device *dev)if (!helper)return ; -drm_fb_helper_unregister_fbi (helper); +drm_fb_helper_unregister_info (helper);drm_fb_helper_fini (helper);
drivers/gpu/drm/radeon/radeon_fb.c +1 -1
@@ -309,7 +309,7 @@ static int radeon_fbdev_destroy(struct drm_device *dev, struct radeon_fbdev *rfb {struct drm_framebuffer *fb = &rfbdev->fb; -drm_fb_helper_unregister_fbi (&rfbdev->helper); +drm_fb_helper_unregister_info (&rfbdev->helper);if (fb->obj[0 ]) {radeonfb_destroy_pinned_object (fb->obj[0 ]);
drivers/gpu/drm/tegra/fb.c +1 -1
@@ -348,7 +348,7 @@ static int tegra_fbdev_init(struct tegra_fbdev *fbdev,static void tegra_fbdev_exit (struct tegra_fbdev *fbdev) { -drm_fb_helper_unregister_fbi (&fbdev->base); +drm_fb_helper_unregister_info (&fbdev->base);if (fbdev->fb) {struct tegra_bo *bo =tegra_fb_get_plane (fbdev->fb,0 );
include/drm/drm_fb_helper.h +2 -2
@@ -223,7 +223,7 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,int drm_fb_helper_restore_fbdev_mode_unlocked (struct drm_fb_helper *fb_helper);struct fb_info *drm_fb_helper_alloc_info (struct drm_fb_helper *fb_helper); -void drm_fb_helper_unregister_fbi (struct drm_fb_helper *fb_helper); +void drm_fb_helper_unregister_info (struct drm_fb_helper *fb_helper);void drm_fb_helper_fill_info (struct fb_info *info,struct drm_fb_helper *fb_helper,struct drm_fb_helper_surface_size *sizes);
@@ -325,7 +325,7 @@ drm_fb_helper_alloc_info(struct drm_fb_helper *fb_helper)return NULL ; } -static inline void drm_fb_helper_unregister_fbi (struct drm_fb_helper *fb_helper) +static inline void drm_fb_helper_unregister_info (struct drm_fb_helper *fb_helper) { }
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 15/21 drm/fb-helper: Disconnect damage worker from update logic
In reply to Thomas ZimmermannThe fbdev helpers implement a damage worker that forwards fbdev updates to the DRM driver. The worker's update logic depends on the generic fbdev emulation. Separate the two via function pointer.
The generic fbdev emulation sets struct drm_fb_helper_funcs.fb_dirty, a new callback that hides the update logic from the damage worker. It's not possible to use the generic logic with other fbdev emulation, because it contains additional code for the shadow buffering that the generic emulation employs.
DRM drivers with internal fbdev emulation can set fb_dirty to their own implementation if they require damage handling; although no such drivers currently exist.
--- drivers/gpu/drm/drm_fb_helper.c | 75 ++++++++++++++++++++------------- include/drm/drm_fb_helper.h | 15 +++++++ 2 files changed, 61 insertions(+), 29 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +46 -29
@@ -448,35 +448,24 @@ static int drm_fb_helper_damage_blit(struct drm_fb_helper *fb_helper,static void drm_fb_helper_damage_work (struct work_struct *work) { - struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, - damage_work); -struct drm_device *dev = helper->dev; + struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work);struct drm_clip_rect *clip = &helper->damage_clip;struct drm_clip_rect clip_copy;unsigned long flags;int ret; +if (!helper->funcs->fb_dirty) +return ; +spin_lock_irqsave (&helper->damage_lock, flags); clip_copy = *clip; clip->x1 = clip->y1 = ~0 ; clip->x2 = clip->y2 =0 ;spin_unlock_irqrestore (&helper->damage_lock, flags); -/* Call damage handlers only if necessary */ -if (!(clip_copy.x1 < clip_copy.x2 && clip_copy.y1 < clip_copy.y2)) -return ; - -if (helper->buffer) { - ret =drm_fb_helper_damage_blit (helper, &clip_copy); -if (drm_WARN_ONCE (dev, ret,"Damage blitter failed: ret=%d\n" , ret)) - goto err; - } - -if (helper->fb->funcs->dirty) { - ret = helper->fb->funcs->dirty (helper->fb,NULL ,0 ,0 , &clip_copy,1 ); -if (drm_WARN_ONCE (dev, ret,"Dirty helper failed: ret=%d\n" , ret)) - goto err; - } + ret = helper->funcs->fb_dirty (helper, &clip_copy); +if (ret) + goto err;return ;
@@ -670,16 +659,6 @@ void drm_fb_helper_fini(struct drm_fb_helper *fb_helper) }EXPORT_SYMBOL (drm_fb_helper_fini); -static bool drm_fbdev_use_shadow_fb (struct drm_fb_helper *fb_helper) -{ -struct drm_device *dev = fb_helper->dev; -struct drm_framebuffer *fb = fb_helper->fb; - -return dev->mode_config.prefer_shadow_fbdev || - dev->mode_config.prefer_shadow || - fb->funcs->dirty; -} -static void drm_fb_helper_damage (struct fb_info *info,u32 x,u32 y,u32 width,u32 height) {
@@ -687,7 +666,7 @@ static void drm_fb_helper_damage(struct fb_info *info, u32 x, u32 y,struct drm_clip_rect *clip = &helper->damage_clip;unsigned long flags; -if (!drm_fbdev_use_shadow_fb (helper)) +if (!helper->funcs->fb_dirty)return ;spin_lock_irqsave (&helper->damage_lock, flags);
@@ -2111,6 +2090,16 @@ void drm_fb_helper_output_poll_changed(struct drm_device *dev) }EXPORT_SYMBOL (drm_fb_helper_output_poll_changed); +static bool drm_fbdev_use_shadow_fb (struct drm_fb_helper *fb_helper) +{ +struct drm_device *dev = fb_helper->dev; +struct drm_framebuffer *fb = fb_helper->fb; + +return dev->mode_config.prefer_shadow_fbdev || + dev->mode_config.prefer_shadow || + fb->funcs->dirty; +} +/* @user: 1=userspace, 0=fbcon */ static int drm_fbdev_fb_open (struct fb_info *info,int user) {
@@ -2487,8 +2476,36 @@ static int drm_fb_helper_generic_probe(struct drm_fb_helper *fb_helper,return 0 ; } +static int drm_fbdev_fb_dirty (struct drm_fb_helper *helper,struct drm_clip_rect *clip) +{ +struct drm_device *dev = helper->dev; +int ret; + +if (!drm_fbdev_use_shadow_fb (helper)) +return 0 ; + +/* Call damage handlers only if necessary */ +if (!(clip->x1 < clip->x2 && clip->y1 < clip->y2)) +return 0 ; + +if (helper->buffer) { + ret =drm_fb_helper_damage_blit (helper, clip); +if (drm_WARN_ONCE (dev, ret,"Damage blitter failed: ret=%d\n" , ret)) +return ret; + } + +if (helper->fb->funcs->dirty) { + ret = helper->fb->funcs->dirty (helper->fb,NULL ,0 ,0 , clip,1 ); +if (drm_WARN_ONCE (dev, ret,"Dirty helper failed: ret=%d\n" , ret)) +return ret; + } + +return 0 ; +} +static const struct drm_fb_helper_funcs drm_fb_helper_generic_funcs = { .fb_probe = drm_fb_helper_generic_probe, + .fb_dirty = drm_fbdev_fb_dirty, };static void drm_fbdev_client_unregister (struct drm_client_dev *client)
include/drm/drm_fb_helper.h +15 -0
@@ -30,6 +30,7 @@#ifndef DRM_FB_HELPER_H #define DRM_FB_HELPER_H +struct drm_clip_rect ;struct drm_fb_helper ;#include <linux/fb.h>
@@ -89,6 +90,20 @@ struct drm_fb_helper_funcs {*/ int (*fb_probe)(struct drm_fb_helper *helper,struct drm_fb_helper_surface_size *sizes); + +/** +* @fb_dirty: +* +* Driver callback to update the framebuffer memory. If set, fbdev +* emulation will invoke this callback in regular intervals after +* the framebuffer has been written. +* +* This callback is optional. +* +* Returns: +* 0 on success, or an error code otherwise. +*/ +int (*fb_dirty)(struct drm_fb_helper *helper,struct drm_clip_rect *clip); };/**
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 16/21 drm/fb-helper: Call fb_sync in I/O functions
In reply to Thomas ZimmermannCall struct fb_ops.fb_sync in drm_fbdev_{read,write}() to mimic the behavior of fbdev. Fbdev implementations of fb_read and fb_write in struct fb_ops invoke fb_sync to synchronize with outstanding operations before I/O. Doing the same in DRM implementations will allow us to use them throughout DRM drivers.
--- drivers/gpu/drm/drm_fb_helper.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/drm_fb_helper.c +6 -0
@@ -2246,6 +2246,9 @@ static ssize_t drm_fbdev_fb_read(struct fb_info *info, char __user *buf,if (total_size - count < pos) count = total_size - pos; +if (info->fbops->fb_sync) + info->fbops->fb_sync (info); +if (drm_fbdev_use_iomem (info)) ret =fb_read_screen_base (info, buf, count, pos);else
@@ -2327,6 +2330,9 @@ static ssize_t drm_fbdev_fb_write(struct fb_info *info, const char __user *buf, count = total_size - pos; } +if (info->fbops->fb_sync) + info->fbops->fb_sync (info); +/* * Copy to framebuffer even if we already logged an error. Emulates * the behavior of the original fbdev implementation.
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 17/21 drm/fb-helper: Perform all fbdev I/O with the same implementation
In reply to Thomas ZimmermannImplement the fbdev's read/write helpers with the same functions. Use the generic fbdev's code as template. Convert all drivers.
DRM's fb helpers must implement regular I/O functionality in struct fb_ops and possibly perform a damage update. Handle all this in the same functions and convert drivers. The functionality has been used as part of the generic fbdev code for some time. The drivers don't set struct drm_fb_helper.fb_dirty, so they will not be affected by damage handling.
For I/O memory, fb helpers now provide drm_fb_helper_cfb_read() and drm_fb_helper_cfb_write(). Several drivers require these. Until now tegra used I/O read and write, although the memory buffer appears to be in system memory. So use _sys_ helpers now.
--- drivers/gpu/drm/armada/armada_fbdev.c | 2 + drivers/gpu/drm/drm_fb_helper.c | 383 ++++++++++++--------- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 + drivers/gpu/drm/gma500/framebuffer.c | 2 + drivers/gpu/drm/i915/display/intel_fbdev.c | 2 + drivers/gpu/drm/radeon/radeon_fb.c | 2 + drivers/gpu/drm/tegra/fb.c | 2 + drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 3 + include/drm/drm_fb_helper.h | 17 + 9 files changed, 257 insertions(+), 158 deletions(-)
drivers/gpu/drm/armada/armada_fbdev.c +2 -0
@@ -19,6 +19,8 @@static const struct fb_ops armada_fb_ops = { .owner =THIS_MODULE ,DRM_FB_HELPER_DEFAULT_OPS , + .fb_read = drm_fb_helper_cfb_read, + .fb_write = drm_fb_helper_cfb_write, .fb_fillrect = drm_fb_helper_cfb_fillrect, .fb_copyarea = drm_fb_helper_cfb_copyarea, .fb_imageblit = drm_fb_helper_cfb_imageblit,
drivers/gpu/drm/drm_fb_helper.c +225 -158
444 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_drm_fbdev.c +2 -0
@@ -49,6 +49,8 @@ static const struct fb_ops exynos_drm_fb_ops = { .owner = THIS_MODULE,DRM_FB_HELPER_DEFAULT_OPS , .fb_mmap = exynos_drm_fb_mmap, + .fb_read = drm_fb_helper_cfb_read, + .fb_write = drm_fb_helper_cfb_write, .fb_fillrect = drm_fb_helper_cfb_fillrect, .fb_copyarea = drm_fb_helper_cfb_copyarea, .fb_imageblit = drm_fb_helper_cfb_imageblit,
drivers/gpu/drm/gma500/framebuffer.c +2 -0
@@ -147,6 +147,8 @@ static const struct fb_ops psbfb_unaccel_ops = { .owner = THIS_MODULE,DRM_FB_HELPER_DEFAULT_OPS , .fb_setcolreg = psbfb_setcolreg, + .fb_read = drm_fb_helper_cfb_read, + .fb_write = drm_fb_helper_cfb_write, .fb_fillrect = drm_fb_helper_cfb_fillrect, .fb_copyarea = drm_fb_helper_cfb_copyarea, .fb_imageblit = drm_fb_helper_cfb_imageblit,
drivers/gpu/drm/i915/display/intel_fbdev.c +2 -0
@@ -124,6 +124,8 @@ static const struct fb_ops intelfb_ops = { .owner = THIS_MODULE,DRM_FB_HELPER_DEFAULT_OPS , .fb_set_par = intel_fbdev_set_par, + .fb_read = drm_fb_helper_cfb_read, + .fb_write = drm_fb_helper_cfb_write, .fb_fillrect = drm_fb_helper_cfb_fillrect, .fb_copyarea = drm_fb_helper_cfb_copyarea, .fb_imageblit = drm_fb_helper_cfb_imageblit,
drivers/gpu/drm/radeon/radeon_fb.c +2 -0
@@ -80,6 +80,8 @@ static const struct fb_ops radeonfb_ops = { DRM_FB_HELPER_DEFAULT_OPS, .fb_open = radeonfb_open, .fb_release = radeonfb_release, + .fb_read = drm_fb_helper_cfb_read, + .fb_write = drm_fb_helper_cfb_write, .fb_fillrect = drm_fb_helper_cfb_fillrect, .fb_copyarea = drm_fb_helper_cfb_copyarea, .fb_imageblit = drm_fb_helper_cfb_imageblit,
drivers/gpu/drm/tegra/fb.c +2 -0
@@ -206,6 +206,8 @@ static int tegra_fb_mmap(struct fb_info *info, struct vm_area_struct *vma)static const struct fb_ops tegra_fb_ops = { .owner =THIS_MODULE ,DRM_FB_HELPER_DEFAULT_OPS , + .fb_read = drm_fb_helper_sys_read, + .fb_write = drm_fb_helper_sys_write, .fb_fillrect = drm_fb_helper_sys_fillrect, .fb_copyarea = drm_fb_helper_sys_copyarea, .fb_imageblit = drm_fb_helper_sys_imageblit,
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +3 -0
@@ -29,6 +29,7 @@#include <linux/fb.h> #include <linux/pci.h> +#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/ttm/ttm_placement.h>
@@ -611,6 +612,8 @@ static int vmw_fb_set_par(struct fb_info *info)static const struct fb_ops vmw_fb_ops = { .owner =THIS_MODULE , + .fb_read = drm_fb_helper_sys_read, + .fb_write = drm_fb_helper_sys_write, .fb_check_var = vmw_fb_check_var, .fb_set_par = vmw_fb_set_par, .fb_setcolreg = vmw_fb_setcolreg,
include/drm/drm_fb_helper.h +17 -0
@@ -257,6 +257,11 @@ void drm_fb_helper_sys_copyarea(struct fb_info *info,void drm_fb_helper_sys_imageblit (struct fb_info *info,const struct fb_image *image); +ssize_t drm_fb_helper_cfb_read (struct fb_info *info,char __user *buf, +size_t count,loff_t *ppos); +ssize_t drm_fb_helper_cfb_write (struct fb_info *info,const char __user *buf, +size_t count,loff_t *ppos); +void drm_fb_helper_cfb_fillrect (struct fb_info *info,const struct fb_fillrect *rect); void drm_fb_helper_cfb_copyarea(struct fb_info *info,
@@ -402,6 +407,18 @@ static inline void drm_fb_helper_sys_imageblit(struct fb_info *info, { } +static inline ssize_t drm_fb_helper_cfb_read (struct fb_info *info,char __user *buf, +size_t count,loff_t *ppos) +{ +return -ENODEV ; +} + +static inline ssize_t drm_fb_helper_cfb_write (struct fb_info *info,const char __user *buf, +size_t count,loff_t *ppos) +{ +return -ENODEV ; +} +static inline void drm_fb_helper_cfb_fillrect (struct fb_info *info,const struct fb_fillrect *rect) {
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 18/21 drm/fb_helper: Minimize damage-helper overhead
In reply to Thomas ZimmermannPull the test for fb_dirty into the caller to avoid extra work if no callback has been set. In this case no damage handling is required and no damage area needs to be computed. Print a warning if the damage worker runs without getting an fb_dirty callback.
--- drivers/gpu/drm/drm_fb_helper.c | 90 ++++++++++++++++++++++----------- 1 file changed, 60 insertions(+), 30 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +60 -30
@@ -449,12 +449,13 @@ static int drm_fb_helper_damage_blit(struct drm_fb_helper *fb_helper,static void drm_fb_helper_damage_work (struct work_struct *work) { struct drm_fb_helper *helper = container_of(work, struct drm_fb_helper, damage_work); +struct drm_device *dev = helper->dev;struct drm_clip_rect *clip = &helper->damage_clip;struct drm_clip_rect clip_copy;unsigned long flags;int ret; -if (!helper->funcs->fb_dirty) +if (drm_WARN_ON_ONCE (dev, !helper->funcs->fb_dirty))return ;spin_lock_irqsave (&helper->damage_lock, flags);
@@ -659,16 +660,12 @@ void drm_fb_helper_fini(struct drm_fb_helper *fb_helper) }EXPORT_SYMBOL (drm_fb_helper_fini); -static void drm_fb_helper_damage (struct fb_info *info,u32 x,u32 y, +static void drm_fb_helper_damage (struct drm_fb_helper *helper,u32 x,u32 y,u32 width,u32 height) { -struct drm_fb_helper *helper = info->par;struct drm_clip_rect *clip = &helper->damage_clip;unsigned long flags; -if (!helper->funcs->fb_dirty) -return ; -spin_lock_irqsave (&helper->damage_lock, flags); clip->x1 =min_t (u32, clip->x1, x); clip->y1 =min_t (u32, clip->y1, y);
@@ -718,6 +715,7 @@ static void drm_fb_helper_memory_range_to_clip(struct fb_info *info, off_t off,*/ void drm_fb_helper_deferred_io (struct fb_info *info,struct list_head *pagereflist) { +struct drm_fb_helper *helper = info->par;unsigned long start, end, min_off, max_off;struct fb_deferred_io_pageref *pageref;struct drm_rect damage_area;
@@ -733,17 +731,19 @@ void drm_fb_helper_deferred_io(struct fb_info *info, struct list_head *pagerefliif (min_off >= max_off)return ; -/* -* As we can only track pages, we might reach beyond the end -* of the screen and account for non-existing scanlines. Hence, -* keep the covered memory area within the screen buffer. -*/ - max_off =min (max_off, info->screen_size); +if (helper->funcs->fb_dirty) { +/* +* As we can only track pages, we might reach beyond the end +* of the screen and account for non-existing scanlines. Hence, +* keep the covered memory area within the screen buffer. +*/ + max_off =min (max_off, info->screen_size); -drm_fb_helper_memory_range_to_clip (info, min_off, max_off - min_off, &damage_area); -drm_fb_helper_damage (info, damage_area.x1, damage_area.y1, -drm_rect_width (&damage_area), -drm_rect_height (&damage_area)); +drm_fb_helper_memory_range_to_clip (info, min_off, max_off - min_off, &damage_area); +drm_fb_helper_damage (helper, damage_area.x1, damage_area.y1, +drm_rect_width (&damage_area), +drm_rect_height (&damage_area)); + } }EXPORT_SYMBOL (drm_fb_helper_deferred_io);
@@ -877,6 +877,7 @@ static ssize_t drm_fb_helper_write_screen_buffer(struct fb_info *info, const chassize_t drm_fb_helper_sys_write (struct fb_info *info,const char __user *buf,size_t count,loff_t *ppos) { +struct drm_fb_helper *helper = info->par;loff_t pos = *ppos;ssize_t ret;struct drm_rect damage_area;
@@ -885,10 +886,12 @@ ssize_t drm_fb_helper_sys_write(struct fb_info *info, const char __user *buf,if (ret <=0 )return ret; -drm_fb_helper_memory_range_to_clip (info, pos, ret, &damage_area); -drm_fb_helper_damage (info, damage_area.x1, damage_area.y1, -drm_rect_width (&damage_area), -drm_rect_height (&damage_area)); +if (helper->funcs->fb_dirty) { +drm_fb_helper_memory_range_to_clip (info, pos, ret, &damage_area); +drm_fb_helper_damage (helper, damage_area.x1, damage_area.y1, +drm_rect_width (&damage_area), +drm_rect_height (&damage_area)); + }return ret; }
@@ -904,8 +907,12 @@ EXPORT_SYMBOL(drm_fb_helper_sys_write);void drm_fb_helper_sys_fillrect (struct fb_info *info,const struct fb_fillrect *rect) { +struct drm_fb_helper *helper = info->par; +sys_fillrect (info, rect); -drm_fb_helper_damage (info, rect->dx, rect->dy, rect->width, rect->height); + +if (helper->funcs->fb_dirty) +drm_fb_helper_damage (helper, rect->dx, rect->dy, rect->width, rect->height); }EXPORT_SYMBOL (drm_fb_helper_sys_fillrect);
@@ -919,8 +926,12 @@ EXPORT_SYMBOL(drm_fb_helper_sys_fillrect);void drm_fb_helper_sys_copyarea (struct fb_info *info,const struct fb_copyarea *area) { +struct drm_fb_helper *helper = info->par; +sys_copyarea (info, area); -drm_fb_helper_damage (info, area->dx, area->dy, area->width, area->height); + +if (helper->funcs->fb_dirty) +drm_fb_helper_damage (helper, area->dx, area->dy, area->width, area->height); }EXPORT_SYMBOL (drm_fb_helper_sys_copyarea);
@@ -934,8 +945,12 @@ EXPORT_SYMBOL(drm_fb_helper_sys_copyarea);void drm_fb_helper_sys_imageblit (struct fb_info *info,const struct fb_image *image) { +struct drm_fb_helper *helper = info->par; +sys_imageblit (info, image); -drm_fb_helper_damage (info, image->dx, image->dy, image->width, image->height); + +if (helper->funcs->fb_dirty) +drm_fb_helper_damage (helper, image->dx, image->dy, image->width, image->height); }EXPORT_SYMBOL (drm_fb_helper_sys_imageblit);
@@ -1035,6 +1050,7 @@ static ssize_t fb_write_screen_base(struct fb_info *info, const char __user *bufssize_t drm_fb_helper_cfb_write (struct fb_info *info,const char __user *buf,size_t count,loff_t *ppos) { +struct drm_fb_helper *helper = info->par;loff_t pos = *ppos;ssize_t ret;struct drm_rect damage_area;
@@ -1043,10 +1059,12 @@ ssize_t drm_fb_helper_cfb_write(struct fb_info *info, const char __user *buf,if (ret <=0 )return ret; -drm_fb_helper_memory_range_to_clip (info, pos, ret, &damage_area); -drm_fb_helper_damage (info, damage_area.x1, damage_area.y1, -drm_rect_width (&damage_area), -drm_rect_height (&damage_area)); +if (helper->funcs->fb_dirty) { +drm_fb_helper_memory_range_to_clip (info, pos, ret, &damage_area); +drm_fb_helper_damage (helper, damage_area.x1, damage_area.y1, +drm_rect_width (&damage_area), +drm_rect_height (&damage_area)); + }return ret; }
@@ -1062,8 +1080,12 @@ EXPORT_SYMBOL(drm_fb_helper_cfb_write);void drm_fb_helper_cfb_fillrect (struct fb_info *info,const struct fb_fillrect *rect) { +struct drm_fb_helper *helper = info->par; +cfb_fillrect (info, rect); -drm_fb_helper_damage (info, rect->dx, rect->dy, rect->width, rect->height); + +if (helper->funcs->fb_dirty) +drm_fb_helper_damage (helper, rect->dx, rect->dy, rect->width, rect->height); }EXPORT_SYMBOL (drm_fb_helper_cfb_fillrect);
@@ -1077,8 +1099,12 @@ EXPORT_SYMBOL(drm_fb_helper_cfb_fillrect);void drm_fb_helper_cfb_copyarea (struct fb_info *info,const struct fb_copyarea *area) { +struct drm_fb_helper *helper = info->par; +cfb_copyarea (info, area); -drm_fb_helper_damage (info, area->dx, area->dy, area->width, area->height); + +if (helper->funcs->fb_dirty) +drm_fb_helper_damage (helper, area->dx, area->dy, area->width, area->height); }EXPORT_SYMBOL (drm_fb_helper_cfb_copyarea);
@@ -1092,8 +1118,12 @@ EXPORT_SYMBOL(drm_fb_helper_cfb_copyarea);void drm_fb_helper_cfb_imageblit (struct fb_info *info,const struct fb_image *image) { +struct drm_fb_helper *helper = info->par; +cfb_imageblit (info, image); -drm_fb_helper_damage (info, image->dx, image->dy, image->width, image->height); + +if (helper->funcs->fb_dirty) +drm_fb_helper_damage (helper, image->dx, image->dy, image->width, image->height); }EXPORT_SYMBOL (drm_fb_helper_cfb_imageblit);
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 19/21 drm/fb-helper: Always initialize generic fbdev emulation
In reply to Thomas ZimmermannInitialize the generic fbdev emulation even if it has been disabled on the kernel command line. The hotplug and mode initialization will fail accordingly.
The kernel parameter can still be changed at runtime and the emulation will initialize after hotplugging the connector.
--- drivers/gpu/drm/drm_fb_helper.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/gpu/drm/drm_fb_helper.c +0 -8
@@ -526,11 +526,6 @@ int drm_fb_helper_init(struct drm_device *dev, {int ret; -if (!drm_fbdev_emulation) { - dev->fb_helper = fb_helper; -return 0 ; - } -/* * If this is not the generic fbdev client, initialize a drm_client * without callbacks so we can use the modesets.
@@ -2716,9 +2711,6 @@ void drm_fbdev_generic_setup(struct drm_device *dev,drm_WARN (dev, !dev->registered,"Device has not been registered.\n" );drm_WARN (dev, dev->fb_helper,"fb_helper is already set!\n" ); -if (!drm_fbdev_emulation) -return ; - fb_helper =kzalloc (sizeof (*fb_helper),GFP_KERNEL );if (!fb_helper) {drm_err (dev,"Failed to allocate fb_helper\n" );
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 20/21 drm/fb-helper: Move generic fbdev emulation into separate source file
In reply to Thomas ZimmermannMove the generic fbdev implementation into its own source and header file. Adapt drivers. No functonal changes, but some of the internal helpers have been renamed to fit into the drm_fbdev_ naming scheme.
--- drivers/gpu/drm/Makefile | 2 +- .../gpu/drm/arm/display/komeda/komeda_drv.c | 2 +- drivers/gpu/drm/arm/hdlcd_drv.c | 2 +- drivers/gpu/drm/arm/malidp_drv.c | 2 +- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 2 +- drivers/gpu/drm/ast/ast_drv.c | 1 + drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 +- drivers/gpu/drm/drm_fb_helper.c | 517 +----------------- drivers/gpu/drm/drm_fbdev.c | 512 +++++++++++++++++ drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 2 +- drivers/gpu/drm/gud/gud_drv.c | 2 +- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 + .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 +- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 2 +- drivers/gpu/drm/imx/dcss/dcss-kms.c | 2 +- drivers/gpu/drm/imx/imx-drm-core.c | 2 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- drivers/gpu/drm/kmb/kmb_drv.c | 2 +- drivers/gpu/drm/logicvc/logicvc_drm.c | 2 +- drivers/gpu/drm/mcde/mcde_drv.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 +- drivers/gpu/drm/meson/meson_drv.c | 2 +- drivers/gpu/drm/mgag200/mgag200_drv.c | 1 + drivers/gpu/drm/mxsfb/lcdif_drv.c | 2 +- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 2 +- drivers/gpu/drm/panel/panel-ilitek-ili9341.c | 2 +- drivers/gpu/drm/pl111/pl111_drv.c | 2 +- drivers/gpu/drm/qxl/qxl_drv.c | 1 + drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +- drivers/gpu/drm/solomon/ssd130x.c | 2 +- drivers/gpu/drm/sti/sti_drv.c | 2 +- drivers/gpu/drm/stm/drv.c | 2 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 2 +- drivers/gpu/drm/tidss/tidss_drv.c | 2 +- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- drivers/gpu/drm/tiny/arcpgu.c | 2 +- drivers/gpu/drm/tiny/bochs.c | 2 +- drivers/gpu/drm/tiny/cirrus.c | 2 +- drivers/gpu/drm/tiny/gm12u320.c | 2 +- drivers/gpu/drm/tiny/hx8357d.c | 2 +- drivers/gpu/drm/tiny/ili9163.c | 2 +- drivers/gpu/drm/tiny/ili9225.c | 2 +- drivers/gpu/drm/tiny/ili9341.c | 2 +- drivers/gpu/drm/tiny/ili9486.c | 2 +- drivers/gpu/drm/tiny/mi0283qt.c | 2 +- drivers/gpu/drm/tiny/ofdrm.c | 2 +- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 2 +- drivers/gpu/drm/tiny/repaper.c | 2 +- drivers/gpu/drm/tiny/simpledrm.c | 2 +- drivers/gpu/drm/tiny/st7586.c | 2 +- drivers/gpu/drm/tiny/st7735r.c | 2 +- drivers/gpu/drm/tve200/tve200_drv.c | 2 +- drivers/gpu/drm/udl/udl_drv.c | 2 +- drivers/gpu/drm/vboxvideo/vbox_drv.c | 2 +- drivers/gpu/drm/vc4/vc4_drv.c | 2 +- drivers/gpu/drm/virtio/virtgpu_drv.c | 1 + drivers/gpu/drm/vkms/vkms_drv.c | 2 +- drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 2 +- include/drm/drm_fb_helper.h | 9 - include/drm/drm_fbdev.h | 15 + 61 files changed, 586 insertions(+), 576 deletions(-) create mode 100644 drivers/gpu/drm/drm_fbdev.c create mode 100644 include/drm/drm_fbdev.h
drivers/gpu/drm/Makefile +1 -1
@@ -115,7 +115,7 @@ drm_kms_helper-y := \ drm_self_refresh_helper.o \ drm_simple_kms_helper.o drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o -drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o +drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fbdev.o drm_fb_helper.o obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o #
drivers/gpu/drm/arm/display/komeda/komeda_drv.c +1 -1
@@ -9,7 +9,7 @@#include <linux/platform_device.h> #include <linux/component.h> #include <linux/pm_runtime.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_module.h> #include <drm/drm_of.h> #include "komeda_dev.h"
drivers/gpu/drm/arm/hdlcd_drv.c +1 -1
@@ -26,7 +26,7 @@#include <drm/drm_crtc.h> #include <drm/drm_debugfs.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_modeset_helper.h>
drivers/gpu/drm/arm/malidp_drv.c +1 -1
@@ -19,7 +19,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_device.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/ast/ast_drv.c +1 -0
@@ -33,6 +33,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_drv.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_shmem_helper.h> #include <drm/drm_module.h> #include <drm/drm_probe_helper.h>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -1
@@ -19,7 +19,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/drm_fb_helper.c +2 -515
554 lines not on this page · raw message
drivers/gpu/drm/drm_fbdev.c new file +512 -0
512 lines not on this page · raw message
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +1 -1
@@ -20,7 +20,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_modeset_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/gud/gud_drv.c +1 -1
@@ -18,7 +18,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_debugfs.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +1 -0
@@ -17,6 +17,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_gem_vram_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +1 -1
@@ -19,7 +19,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/hyperv/hyperv_drm_drv.c +1 -1
@@ -11,7 +11,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_shmem_helper.h> #include <drm/drm_simple_kms_helper.h>
drivers/gpu/drm/imx/dcss/dcss-kms.c +1 -1
@@ -7,7 +7,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge_connector.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_of.h>
drivers/gpu/drm/imx/imx-drm-core.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +1 -1
@@ -32,7 +32,7 @@#include <drm/drm_encoder.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
drivers/gpu/drm/kmb/kmb_drv.c +1 -1
@@ -15,7 +15,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/logicvc/logicvc_drm.c +1 -1
@@ -17,7 +17,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_print.h>
drivers/gpu/drm/mcde/mcde_drv.c +1 -1
@@ -69,7 +69,7 @@#include <drm/drm_bridge.h> #include <drm/drm_drv.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/mediatek/mtk_drm_drv.c +1 -1
@@ -17,7 +17,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem.h> #include <drm/drm_gem_dma_helper.h>
drivers/gpu/drm/meson/meson_drv.c +1 -1
@@ -18,7 +18,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_modeset_helper_vtables.h>
drivers/gpu/drm/mgag200/mgag200_drv.c +1 -0
@@ -11,6 +11,7 @@#include <drm/drm_aperture.h> #include <drm/drm_drv.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_ioctl.h> #include <drm/drm_managed.h>
drivers/gpu/drm/mxsfb/lcdif_drv.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_mode_config.h>
drivers/gpu/drm/mxsfb/mxsfb_drv.c +1 -1
@@ -20,7 +20,7 @@#include <drm/drm_bridge.h> #include <drm/drm_connector.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/panel/panel-ilitek-ili9341.c +1 -1
@@ -31,7 +31,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/pl111/pl111_drv.c +1 -1
@@ -48,7 +48,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/qxl/qxl_drv.c +1 -0
@@ -37,6 +37,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_gem_ttm_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/rcar-du/rcar_du_drv.c +1 -1
@@ -20,7 +20,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h> #include <drm/drm_probe_helper.h>
drivers/gpu/drm/rockchip/rockchip_drm_drv.c +1 -1
@@ -17,7 +17,7 @@#include <drm/drm_aperture.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_of.h> #include <drm/drm_probe_helper.h>
drivers/gpu/drm/solomon/ssd130x.c +1 -1
@@ -23,7 +23,7 @@#include <drm/drm_crtc_helper.h> #include <drm/drm_damage_helper.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_format_helper.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
drivers/gpu/drm/sti/sti_drv.c +1 -1
@@ -14,7 +14,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_debugfs.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_of.h>
drivers/gpu/drm/stm/drv.c +1 -1
@@ -18,7 +18,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/sun4i/sun4i_drv.c +1 -1
@@ -17,7 +17,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_module.h> #include <drm/drm_of.h>
drivers/gpu/drm/tidss/tidss_drv.c +1 -1
@@ -14,7 +14,7 @@#include <drm/drm_crtc.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h> #include <drm/drm_module.h>
drivers/gpu/drm/tilcdc/tilcdc_drv.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_debugfs.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/tiny/arcpgu.c +1 -1
@@ -12,7 +12,7 @@#include <drm/drm_drv.h> #include <drm/drm_edid.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_dma_helper.h>
drivers/gpu/drm/tiny/bochs.c +1 -1
@@ -7,7 +7,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/tiny/cirrus.c +1 -1
@@ -30,7 +30,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_drv.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_format_helper.h> #include <drm/drm_fourcc.h>
drivers/gpu/drm/tiny/gm12u320.c +1 -1
@@ -12,7 +12,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_drv.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_format_helper.h> #include <drm/drm_fourcc.h>
drivers/gpu/drm/tiny/hx8357d.c +1 -1
@@ -18,7 +18,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/tiny/ili9163.c +1 -1
@@ -9,7 +9,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_mipi_dbi.h>
drivers/gpu/drm/tiny/ili9225.c +1 -1
@@ -20,7 +20,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_drv.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
drivers/gpu/drm/tiny/ili9341.c +1 -1
@@ -17,7 +17,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/tiny/ili9486.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/tiny/mi0283qt.c +1 -1
@@ -15,7 +15,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/tiny/ofdrm.c +1 -1
@@ -11,7 +11,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_device.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_format_helper.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
drivers/gpu/drm/tiny/panel-mipi-dbi.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/tiny/repaper.c +1 -1
@@ -26,7 +26,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_drv.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_format_helper.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
drivers/gpu/drm/tiny/simpledrm.c +1 -1
@@ -15,7 +15,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_device.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_format_helper.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
drivers/gpu/drm/tiny/st7586.c +1 -1
@@ -16,7 +16,7 @@#include <drm/drm_damage_helper.h> #include <drm/drm_drv.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_format_helper.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_atomic_helper.h>
drivers/gpu/drm/tiny/st7735r.c +1 -1
@@ -18,7 +18,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_atomic_helper.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/tve200/tve200_drv.c +1 -1
@@ -40,7 +40,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_module.h>
drivers/gpu/drm/udl/udl_drv.c +1 -1
@@ -7,7 +7,7 @@#include <drm/drm_crtc_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_gem_shmem_helper.h> #include <drm/drm_managed.h>
drivers/gpu/drm/vboxvideo/vbox_drv.c +1 -1
@@ -14,7 +14,7 @@#include <drm/drm_aperture.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_ioctl.h> #include <drm/drm_managed.h>
drivers/gpu/drm/vc4/vc4_drv.c +1 -1
@@ -33,7 +33,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_vblank.h> #include <soc/bcm2835/raspberrypi-firmware.h>
drivers/gpu/drm/virtio/virtgpu_drv.c +1 -0
@@ -35,6 +35,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include "virtgpu_drv.h"
drivers/gpu/drm/vkms/vkms_drv.c +1 -1
@@ -17,7 +17,7 @@#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_file.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_ioctl.h>
drivers/gpu/drm/xlnx/zynqmp_dpsub.c +1 -1
@@ -19,7 +19,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_device.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_fbdev.h> #include <drm/drm_fourcc.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h>
include/drm/drm_fb_helper.h +0 -9
@@ -285,9 +285,6 @@ int drm_fb_helper_debug_leave(struct fb_info *info);void drm_fb_helper_lastclose (struct drm_device *dev);void drm_fb_helper_output_poll_changed (struct drm_device *dev); - -void drm_fbdev_generic_setup (struct drm_device *dev, -unsigned int preferred_bpp);#else static inline void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper,
@@ -472,12 +469,6 @@ static inline void drm_fb_helper_lastclose(struct drm_device *dev)static inline void drm_fb_helper_output_poll_changed (struct drm_device *dev) { } - -static inline void -drm_fbdev_generic_setup (struct drm_device *dev,unsigned int preferred_bpp) -{ -} -#endif #endif
include/drm/drm_fbdev.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef DRM_FBDEV_H +#define DRM_FBDEV_H + +struct drm_device ; + +#ifdef CONFIG_DRM_FBDEV_EMULATION +void drm_fbdev_generic_setup (struct drm_device *dev,unsigned int preferred_bpp); +#else +static inline void drm_fbdev_generic_setup (struct drm_device *dev,unsigned int preferred_bpp) +{ } +#endif + +#endif
Signature · 1 line
2.38.0
Thomas Zimmermann
maintainerPATCH 21/21 drm/fb-helper: Remove unnecessary include statements
In reply to Thomas ZimmermannRemove include statements for <drm/drm_fb_helper.h> where it is not required (i.e., most of them). In a few places include other header files that are required by the source code.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 1 - drivers/gpu/drm/arm/hdlcd_crtc.c | 1 - drivers/gpu/drm/ast/ast_drv.h | 1 - drivers/gpu/drm/bridge/tc358762.c | 2 +- drivers/gpu/drm/drm_crtc_helper.c | 1 - drivers/gpu/drm/drm_gem_framebuffer_helper.c | 1 - drivers/gpu/drm/drm_probe_helper.c | 1 - drivers/gpu/drm/etnaviv/etnaviv_drv.h | 3 ++- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 1 - drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 1 - drivers/gpu/drm/imx/imx-ldb.c | 2 +- drivers/gpu/drm/imx/imx-tve.c | 1 - drivers/gpu/drm/imx/parallel-display.c | 2 +- drivers/gpu/drm/kmb/kmb_plane.c | 1 - drivers/gpu/drm/mgag200/mgag200_drv.h | 1 - drivers/gpu/drm/qxl/qxl_drv.h | 1 - drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 2 +- drivers/gpu/drm/tidss/tidss_kms.c | 1 - drivers/gpu/drm/v3d/v3d_drv.c | 1 - drivers/gpu/drm/vboxvideo/vbox_main.c | 1 - drivers/gpu/drm/virtio/virtgpu_drv.h | 1 - drivers/gpu/drm/xen/xen_drm_front_gem.c | 1 - 24 files changed, 6 insertions(+), 24 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +0 -1
@@ -26,7 +26,6 @@#include <drm/display/drm_dp_helper.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_probe_helper.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h"
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0 -1
@@ -42,7 +42,6 @@#include <drm/drm_drv.h> #include <drm/drm_edid.h> #include <drm/drm_gem_framebuffer_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_vblank.h>
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +0 -1
@@ -36,7 +36,6 @@#include <drm/drm_encoder.h> #include <drm/drm_fixed.h> #include <drm/drm_crtc_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> #include <drm/drm_probe_helper.h> #include <linux/i2c.h>
drivers/gpu/drm/arm/hdlcd_crtc.c +0 -1
@@ -19,7 +19,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_of.h>
drivers/gpu/drm/ast/ast_drv.h +0 -1
@@ -38,7 +38,6 @@#include <drm/drm_encoder.h> #include <drm/drm_mode.h> #include <drm/drm_framebuffer.h> -#include <drm/drm_fb_helper.h> #define DRIVER_AUTHOR "Dave Airlie"
drivers/gpu/drm/bridge/tc358762.c +1 -1
@@ -11,6 +11,7 @@*/ #include <linux/delay.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/of_graph.h> #include <linux/regulator/consumer.h>
@@ -19,7 +20,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_crtc.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
drivers/gpu/drm/drm_crtc_helper.c +0 -1
@@ -42,7 +42,6 @@#include <drm/drm_drv.h> #include <drm/drm_edid.h> #include <drm/drm_encoder.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_print.h>
drivers/gpu/drm/drm_gem_framebuffer_helper.c +0 -1
@@ -9,7 +9,6 @@#include <linux/module.h> #include <drm/drm_damage_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem.h>
drivers/gpu/drm/drm_probe_helper.c +0 -1
@@ -36,7 +36,6 @@#include <drm/drm_client.h> #include <drm/drm_crtc.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_modeset_helper_vtables.h> #include <drm/drm_print.h>
drivers/gpu/drm/etnaviv/etnaviv_drv.h +2 -1
@@ -6,13 +6,14 @@#ifndef __ETNAVIV_DRV_H__#define __ETNAVIV_DRV_H__ +#include <linux/io.h> #include <linux/list.h> #include <linux/mm_types.h> #include <linux/sizes.h> #include <linux/time64.h> #include <linux/types.h> -#include <drm/drm_fb_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_gem.h> #include <drm/etnaviv_drm.h> #include <drm/gpu_scheduler.h>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +0 -1
@@ -19,7 +19,6 @@#include <linux/i2c.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_framebuffer.h> struct hibmc_connector {
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +0 -1
@@ -8,7 +8,6 @@#include <drm/drm_damage_helper.h> #include <drm/drm_drv.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_format_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h>
drivers/gpu/drm/imx/imx-ldb.c +1 -1
@@ -7,6 +7,7 @@#include <linux/clk.h> #include <linux/component.h> +#include <linux/i2c.h> #include <linux/media-bus-format.h> #include <linux/mfd/syscon.h> #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
@@ -23,7 +24,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_managed.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
drivers/gpu/drm/imx/imx-tve.c +0 -1
@@ -19,7 +19,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_managed.h> #include <drm/drm_probe_helper.h> #include <drm/drm_simple_kms_helper.h>
drivers/gpu/drm/imx/parallel-display.c +1 -1
@@ -8,6 +8,7 @@#include <linux/component.h> #include <linux/media-bus-format.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/platform_device.h> #include <linux/videodev2.h>
@@ -16,7 +17,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_edid.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_managed.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
drivers/gpu/drm/kmb/kmb_plane.c +0 -1
@@ -9,7 +9,6 @@#include <drm/drm_crtc.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_fb_dma_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem_dma_helper.h>
drivers/gpu/drm/mgag200/mgag200_drv.h +0 -1
@@ -18,7 +18,6 @@#include <drm/drm_connector.h> #include <drm/drm_crtc.h> #include <drm/drm_encoder.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_gem.h> #include <drm/drm_gem_shmem_helper.h> #include <drm/drm_plane.h>
drivers/gpu/drm/qxl/qxl_drv.h +0 -1
@@ -38,7 +38,6 @@#include <drm/drm_crtc.h> #include <drm/drm_encoder.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_gem_ttm_helper.h> #include <drm/drm_ioctl.h> #include <drm/drm_gem.h>
drivers/gpu/drm/rockchip/rockchip_drm_drv.h +1 -1
@@ -9,10 +9,10 @@#ifndef _ROCKCHIP_DRM_DRV_H#define _ROCKCHIP_DRM_DRV_H -#include <drm/drm_fb_helper.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_gem.h> +#include <linux/i2c.h> #include <linux/module.h> #include <linux/component.h>
drivers/gpu/drm/tidss/tidss_kms.c +0 -1
@@ -10,7 +10,6 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_crtc_helper.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
drivers/gpu/drm/v3d/v3d_drv.c +0 -1
@@ -22,7 +22,6 @@#include <linux/reset.h> #include <drm/drm_drv.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_managed.h> #include <uapi/drm/v3d_drm.h>
drivers/gpu/drm/vboxvideo/vbox_main.c +0 -1
@@ -11,7 +11,6 @@#include <linux/pci.h> #include <linux/vbox_err.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_damage_helper.h>
drivers/gpu/drm/virtio/virtgpu_drv.h +0 -1
@@ -35,7 +35,6 @@#include <drm/drm_atomic.h> #include <drm/drm_drv.h> #include <drm/drm_encoder.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_framebuffer.h> #include <drm/drm_gem.h>
drivers/gpu/drm/xen/xen_drm_front_gem.c +0 -1
@@ -12,7 +12,6 @@#include <linux/scatterlist.h> #include <linux/shmem_fs.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_gem.h> #include <drm/drm_prime.h> #include <drm/drm_probe_helper.h>
Signature · 1 line
2.38.0
Re: [PATCH 03/21] drm/ingenic: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannHello!
Quoted 2 lines · Thomas Zimmermann
Don't set struct drm_mode_config.output_poll_changed. It's used to inform the fbdev console about conncetor changes. But as ingenic
Connector. :-)
Quoted 5 lines
uses generic fbdev emulation, the console is being informed by the DRM client helpers already. See the calls to
drm_client_dev_hotplug()indrm_probe_helper.c.Signed-off-by Thomas Zimmermann <[email protected]>
[...]
MBR, Sergey
Christian König
maintainerRe: [PATCH 01/21] drm/amdgpu: Don't set struct drm_driver.lastclose
In reply to Thomas ZimmermannAm 20.10.22 um 12:37 schrieb Thomas Zimmermann:
Quoted 4 lines
Don't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as amdgpu uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to
drm_client_dev_restore()indrm_lastclose().
???
The commit message doesn't match what the patch is doing. You are removing output_poll_changed instead of lastclose here.
Did something got mixed up?
Cheers,
Christian.
Quoted 39 lines
Signed-off-by Thomas Zimmermann <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 1 - drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 -- 2 files changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-1@@ -1224,7 +1224,6 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev,const struct drm_mode_config_funcs amdgpu_mode_funcs = { .fb_create = amdgpu_display_user_framebuffer_create, - .output_poll_changed = drm_fb_helper_output_poll_changed, }; static const struct drm_prop_enum_list amdgpu_underscan_enum_list[] =drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-2@@ -82,7 +82,6 @@#include <drm/drm_atomic_uapi.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_blend.h> -#include <drm/drm_fb_helper.h> #include <drm/drm_fourcc.h> #include <drm/drm_edid.h> #include <drm/drm_vblank.h> @@ -2810,7 +2809,6 @@ const struct amdgpu_ip_block_version dm_ip_block =static const struct drm_mode_config_funcs amdgpu_dm_mode_funcs = { .fb_create = amdgpu_display_user_framebuffer_create, .get_format_info = amd_get_format_info, - .output_poll_changed = drm_fb_helper_output_poll_changed, .atomic_check = amdgpu_dm_atomic_check, .atomic_commit = drm_atomic_helper_commit, };
Thomas Zimmermann
maintainerRe: [PATCH 01/21] drm/amdgpu: Don't set struct drm_driver.lastclose
Hi
Am 20.10.22 um 13:48 schrieb Christian K?nig:
Quoted 6 lines
Am 20.10.22 um 12:37 schrieb Thomas Zimmermann:
Quoted 4 lines
Don't set struct drm_driver.lastclose. It's used to restore the fbdev console. But as amdgpu uses generic fbdev emulation, the console is being restored by the DRM client helpers already. See the call to
drm_client_dev_restore()indrm_lastclose().
Quoted 6 lines
???
The commit message doesn't match what the patch is doing. You are removing
output_poll_changedinstead of lastclose here.Did something got mixed up?
Arghh. There are patches for lastclose and output_poll_changed. The reason for removing them is the same, but thanks to copy and paste the names are wrong. So the patch is correct, but the description isn't. Will be fixed.
Best regards
Thomas
Quoted 45 lines
Cheers,
Christian.Quoted 40 lines
Signed-off-by Thomas Zimmermann <[email protected]>---
?drivers/gpu/drm/amd/amdgpu/amdgpu_display.c?????? | 1 - ?drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c| 2 -- ? 2 files changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +0
-1@@ -1224,7 +1224,6 @@ amdgpu_display_user_framebuffer_create(struct drm_device *dev, ? const struct drm_mode_config_funcs amdgpu_mode_funcs = { ????? .fb_create = amdgpu_display_user_framebuffer_create, -??? .output_poll_changed = drm_fb_helper_output_poll_changed, ? };? static const struct
drm_prop_enum_listamdgpu_underscan_enum_list[] =drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-0@@ -82,7 +82,6 @@? #include <
drm/drm_atomic_uapi.h>
? #include <drm/drm_atomic_helper.h>
? #include <drm/drm_blend.h>
-#include <drm/drm_fb_helper.h>
? #include <drm/drm_fourcc.h>
? #include <drm/drm_edid.h>
? #include <drm/drm_vblank.h>drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-1@@ -2810,7 +2809,6 @@ const struct amdgpu_ip_block_version dm_ip_block = ? static const struct drm_mode_config_funcs amdgpu_dm_mode_funcs = { ????? .fb_create = amdgpu_display_user_framebuffer_create, ????? .get_format_info = amd_get_format_info, -??? .output_poll_changed = drm_fb_helper_output_poll_changed, ????? .atomic_check = amdgpu_dm_atomic_check, ????? .atomic_commit = drm_atomic_helper_commit, ? };
Signature · 13 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N?rnberg, Germany (HRB 36809, AG N?rnberg) Gesch?ftsf?hrer: Ivo Totev -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20221020/9be1e88e/attachment-0001.sig>
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/fb-helper: Untangle fbdev emulation and helpers
In reply to Thomas Zimmermann== Series Details ==
== Series Details ==
Series: drm/fb-helper: Untangle fbdev emulation and helpers
URL : https://patchwork.freedesktop.org/series/109942/
State : failure
== Summary ==
Error: patch https://patchwork.freedesktop.org/api/1.0/series/109942/revisions/1/mbox/ not applied
Applying: drm/amdgpu: Don't set struct drm_driver.lastclose
Applying: drm/imx: Don't set struct drm_driver.lastclose
Applying: drm/ingenic: Don't set struct drm_driver.lastclose
Applying: drm/komeda: Don't set struct drm_driver.lastclose
Applying: drm/logicvc: Don't set struct drm_driver.lastclose
Applying: drm/mcde: Don't set struct drm_driver.lastclose
Applying: drm/rockchip: Don't set struct drm_driver.lastclose
Applying: drm/vboxvideo: Don't set struct drm_driver.lastclose
Applying: drm/panel-ili9341: Include <linux/backlight.h>
Applying: drm/tve200: Include <linux/of.h>
Applying: drm/fb-helper: Cleanup include statements in header file
Applying: drm/fb_helper: Rename field fbdev to info in struct drm_fb_helper
Applying: drm/fb-helper: Rename drm_fb_helper_alloc_fbi() to use _info postfix
error: sha1 information is lacking or useless (drivers/gpu/drm/i915/display/intel_fbdev.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0013 drm/fb-helper: Rename drm_fb_helper_alloc_fbi() to use _info postfix When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".