Skip to content

Commit 7a9e28a

Browse files
author
Thomas Zimmermann
committed
drm/tegra: 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_DEFAULT Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Acked-by: Maxime Ripard <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Mikko Perttunen <[email protected]> Acked-by: Thierry Reding <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f9400b1 commit 7a9e28a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/tegra/fbdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,
132132
}
133133
}
134134

135+
info->flags |= FBINFO_VIRTFB;
135136
info->screen_base = (void __iomem *)bo->vaddr + offset;
136137
info->screen_size = size;
137138
info->fix.smem_start = (unsigned long)(bo->iova + offset);

0 commit comments

Comments
 (0)