Skip to content

Commit ef28231

Browse files
author
Thomas Zimmermann
committed
drm/tegra: Store pointer to vmap'ed framebuffer in screen_buffer
Tegra uses DMA-able memory, which has to be acessed with CPU ops for system-memory. Store the framebuffer's vmap address in struct fb_info.screen_buffer. The currently used field 'screen_base' is for I/O memory. Suggested-by: Thierry Reding <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Mikko Perttunen <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Acked-by: Thierry Reding <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7a9e28a commit ef28231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/tegra/fbdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int tegra_fbdev_probe(struct drm_fb_helper *helper,
133133
}
134134

135135
info->flags |= FBINFO_VIRTFB;
136-
info->screen_base = (void __iomem *)bo->vaddr + offset;
136+
info->screen_buffer = bo->vaddr + offset;
137137
info->screen_size = size;
138138
info->fix.smem_start = (unsigned long)(bo->iova + offset);
139139
info->fix.smem_len = size;

0 commit comments

Comments
 (0)