Skip to content

Have TTM support SEV encryption with coherent memory

Thomas Hellström (VMware) dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 37 repliesIn review

Changes in v2 from the cover letter

- Use force_dma_unencrypted() rather than sev_active() to catch also the special SME encryption cases.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86/mm: Export force_dma_unencryptedarch/x86/mm/mem_encrypt.c+1 -011 replies
2/4s390/mm: Export force_dma_unencryptedarch/s390/mm/init.c+1 -01 reply
3/4drm/ttm, drm/vmwgfx: Correctly support support AMD memory encryptiondrivers/gpu/drm/ttm/ttm_bo_util.c drivers/gpu/drm/ttm/ttm_bo_vm.c drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +3 more+37 -2023 replies
4/4drm/ttm: Cache dma pool decrypted pages when AMD SEV is activedrivers/gpu/drm/ttm/ttm_page_alloc_dma.c+14 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Have TTM support SEV encryption with coherent memory

With SEV memory encryption and in some cases also with SME memory encryption, coherent memory is unencrypted. In those cases, TTM doesn't set up the correct page protection. Fix this by having the TTM coherent page allocator call into the platform code to determine whether coherent memory is encrypted or not, and modify the page protection if it is not.

v2:
- Use force_dma_unencrypted() rather than sev_active() to catch also the special SME encryption cases.