]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/omapdrm: Fix console with deferred ops
authorTony Lindgren <tony@atomide.com>
Wed, 28 Feb 2024 06:35:32 +0000 (08:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:32 +0000 (09:49 +0200)
commit3b54a2829a3e6bd6b1831fde83a70107c0fa924f
treecd4acdce3b5c02891cccdc83e6addf21e74f56f3
parent6221d845d6a713f92bc42a5463dc3a34ba2f370d
drm/omapdrm: Fix console with deferred ops

[ Upstream commit 01c0cce88c5480cc2505b79330246ef12eda938f ]

Commit 95da53d63dcf ("drm/omapdrm: Use regular fbdev I/O helpers")
stopped console from updating for command mode displays because there is
no damage handling in fb_sys_write() unlike we had earlier in
drm_fb_helper_sys_write().

Let's fix the issue by adding FB_GEN_DEFAULT_DEFERRED_DMAMEM_OPS and
FB_DMAMEM_HELPERS_DEFERRED as suggested by Thomas. We cannot use the
FB_DEFAULT_DEFERRED_OPS as fb_deferred_io_mmap() won't work properly
for write-combine.

Fixes: 95da53d63dcf ("drm/omapdrm: Use regular fbdev I/O helpers")
Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240228063540.4444-3-tony@atomide.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/omapdrm/Kconfig
drivers/gpu/drm/omapdrm/omap_fbdev.c
drivers/video/fbdev/core/Kconfig
include/linux/fb.h