Re: [PATCH 1/4] media: venus: use dma_iova_size() to check the reserved IOVA size
From: Jason Gunthorpe
Date: Wed Dec 02 2026 - 10:39:05 EST
On Wed, Dec 02, 2026 at 04:16:18PM +0100, Marek Szyprowski wrote:
> >> /*
> >> * We're using some static addresses that are not accessible by VDE
> >> * to trap invalid memory accesses.
> >> */
> >> shift = iova_shift(&vde->iova);
> >> iova = reserve_iova(&vde->iova, 0x60000000 >> shift,
> >> 0x70000000 >> shift);
> > Is this HW or software that is motivating this carve out? I was never
> > clear on that..
> If I got it right, the addresses below 600M have special meaning for the hw,
> so it is the driver role to avoid putting generic buffers there. IMHO it is
> not strictly a HW limitation and I'm not sure if the early mentioned
> device-tree based approach is the right way of solving this.
Is it a special meaning the driver setup and programmed in or a
special meaning hard wired into the HW
And what is the special meaning anyhow?
Answering those questions will be important if asking Robin to add a
reserved allocation to dma-iommu.c
Who builds HW that should work with Linux and gives special meaning to
IOVA anyhow :( :(
Jason