]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fbdev/ps3fb: Set FBINFO_VIRTFB flag
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Nov 2023 13:15:47 +0000 (14:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 29 Nov 2023 11:20:32 +0000 (12:20 +0100)
The ps3fb driver operates on system memory. Mark the framebuffer
accordingly. Helpers operating on the framebuffer memory will test
for the presence of this flag.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: linuxppc-dev@lists.ozlabs.org
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-19-tzimmermann@suse.de
drivers/video/fbdev/ps3fb.c

index 64d291d6b1532eab1d605056dab77e94df126c83..de81ad3a5d1ed6cef814438659bf20118d510964 100644 (file)
@@ -1145,7 +1145,7 @@ static int ps3fb_probe(struct ps3_system_bus_device *dev)
        info->fix.smem_len = ps3fb_videomemory.size - GPU_FB_START;
 
        info->pseudo_palette = par->pseudo_palette;
-       info->flags = FBINFO_READS_FAST |
+       info->flags = FBINFO_VIRTFB | FBINFO_READS_FAST |
                      FBINFO_HWACCEL_XPAN | FBINFO_HWACCEL_YPAN;
 
        retval = fb_alloc_cmap(&info->cmap, 256, 0);