video: bcm2708_fb: Try allocating on the ARM and passing to VPU
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Wed, 27 Feb 2019 17:30:33 +0000 (17:30 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:22 +0000 (00:08 +0100)
commit402c183b75ca5f886c8721e0b2a80ddc33718c18
treed923def84ed45fe2cf30d4a96d4794d7c871e9db
parentb8a8e5729e2df23d436ff904add6ea3b88f96a18
video: bcm2708_fb: Try allocating on the ARM and passing to VPU

Currently the VPU allocates the contiguous buffer for the
framebuffer.
Try an alternate path first where we use dma_alloc_coherent
and pass the buffer to the VPU. Should the VPU firmware not
support that path, then free the buffer and revert to the
old behaviour of using the VPU allocation.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/video/fbdev/bcm2708_fb.c
include/soc/bcm2835/raspberrypi-firmware.h