[patch for-5.8 0/4] dma-direct: dma_direct_alloc_pages() fixes for AMD SEV

From: David Rientjes
Date: Thu Jun 11 2020 - 15:20:29 EST


While debugging recently reported issues concerning DMA allocation
practices when CONFIG_AMD_MEM_ENCRYPT is enabled, some curiosities arose
when looking at dma_direct_alloc_pages() behavior.

Fix these up. These are likely all stable material, so proposing for 5.8.
---
kernel/dma/direct.c | 42 ++++++++++++++++++++++++++++++++----------
1 file changed, 32 insertions(+), 10 deletions(-)