Skip to content

Commit 5ad315c

Browse files
author
Thomas Zimmermann
committed
drm/exynos: Set fbdev FBINFO_VIRTFB flag
Mark the framebuffer with FBINFO_VIRTFB. The framebuffer range is in DMA-able memory and should be accessed with the CPU's regular memory ops. v2: * drop FBINFO_FLAG_DEFAULT Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Acked-by : Inki Dae <[email protected]> Acked-by: Maxime Ripard <[email protected]> Cc: Inki Dae <[email protected]> Cc: Seung-Woo Kim <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Alim Akhtar <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b1d69bf commit 5ad315c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/exynos/exynos_drm_fbdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
7979
offset = fbi->var.xoffset * fb->format->cpp[0];
8080
offset += fbi->var.yoffset * fb->pitches[0];
8181

82+
fbi->flags |= FBINFO_VIRTFB;
8283
fbi->screen_buffer = exynos_gem->kvaddr + offset;
8384
fbi->screen_size = size;
8485
fbi->fix.smem_len = size;

0 commit comments

Comments
 (0)