summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/pseries/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/pseries/iommu.c')
-rw-r--r--arch/powerpc/platforms/pseries/iommu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c
index eec333dd2e59..5497b130e026 100644
--- a/arch/powerpc/platforms/pseries/iommu.c
+++ b/arch/powerpc/platforms/pseries/iommu.c
@@ -1769,10 +1769,8 @@ out_failed:
out_unlock:
mutex_unlock(&dma_win_init_mutex);
- /* If we have persistent memory and the window size is not big enough
- * to directly map both RAM and vPMEM, then we need to set DMA limit.
- */
- if (pmem_present && direct_mapping && len != MAX_PHYSMEM_BITS)
+ /* For pre-mapped memory, set bus_dma_limit to the max RAM */
+ if (direct_mapping)
dev->dev.bus_dma_limit = dev->dev.archdata.dma_offset +
(1ULL << max_ram_len);