Re: [RFC PATCH v3 3/5] dma-mapping: Decrypt memory on remap

Jason Gunthorpe
2026-04-14T12:22:09Z

On Tue, Apr 14, 2026 at 03:01:15PM +0530, Aneesh Kumar K.V wrote:
> Mostafa Saleh <smostafa@google.com> 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