vc_mem: Add the DMA memcpy support from bcm2708_fb
authorPhil Elwell <phil@raspberrypi.com>
Sat, 14 Oct 2023 13:57:49 +0000 (14:57 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:06 +0000 (11:35 +0000)
commit503d11050f6590af03a140f2df5684d5a7254d83
tree70d9eadebb9ed69c3facf66d4ba8b9bc51b1d992
parent69d1eb32f131f84452af8bbdec81f856b3e74bf5
vc_mem: Add the DMA memcpy support from bcm2708_fb

bcm2708_fb is disabled by the vc4-kms-v3d overlay, which means that the
DMA memcpy support it provides is not available to allow vclog to read
the VC logs from the top 16MB on Pi 2 and Pi 3. Add the code to the
vc_mem driver, which will still be enabled.

It ought to be possible to do a proper DMA_MEM_TO_MEM copy via the
generic DMA customer API, but that can be a later step.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/char/broadcom/vc_mem.c