media/rpivid: Allow use of iommu in rpivid
authorJohn Cox <jc@kynesim.co.uk>
Mon, 2 Oct 2023 14:12:52 +0000 (15:12 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:05 +0000 (11:35 +0000)
commitdc66843d42e1a6a73480ccfe9225a2d2387bd43b
treed87df9173cc6851b49086ece8b4d624eea6644f3
parentfcb7a0304e016233128c1e5366912fc04e779075
media/rpivid: Allow use of iommu in rpivid

In order to use iommu on hevc set dma mask_and_coherent in probe.
I am assured dma_set_mask_and_coherent is benign on Pi4 (which has
no iommu) and it seems to be so in practice.
Also adds a bit of debug to make internal buffer allocation failure
easier to spot in future

Signed-off-by: John Cox <jc@kynesim.co.uk>
drivers/staging/media/rpivid/rpivid.c
drivers/staging/media/rpivid/rpivid_h265.c