Re: [RFC PATCH v3 3/5] dma-mapping: Decrypt memory on remap
From: Jason Gunthorpe
Date: Tue Apr 14 2026 - 08:22:21 EST
On Tue, Apr 14, 2026 at 03:01:15PM +0530, Aneesh Kumar K.V wrote:
> Mostafa Saleh <smostafa@xxxxxxxxxx> writes:
>
> > In case memory needs to be remapped on systems with
> > force_dma_unencrypted(), where this memory is not allocated
> > from a restricted-dma pool, this was currently ignored, while only
> > setting the decrypted pgprot in the remapped alias.
> >
> > The memory still needs to be decrypted in that case.
> >
>
> For ARM CCA, we cannot mark a vmap address as decrypted.
Why not? pgprot_decrypted is passed to vmap, why can't it work?
Jason