Skip to content

Commit 2d33f55

Browse files
aikmpe
authored andcommitted
powerpc/pseries/ddw: Revert "Extend upper limit for huge DMA window for persistent memory"
This reverts commit 54fc3c6 which does not allow 1:1 mapping even for the system RAM which is usually possible. Signed-off-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 3020394 commit 2d33f55

File tree

1 file changed

+0
-9
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+0
-9
lines changed

arch/powerpc/platforms/pseries/iommu.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,15 +1094,6 @@ static phys_addr_t ddw_memory_hotplug_max(void)
10941094
phys_addr_t max_addr = memory_hotplug_max();
10951095
struct device_node *memory;
10961096

1097-
/*
1098-
* The "ibm,pmemory" can appear anywhere in the address space.
1099-
* Assuming it is still backed by page structs, set the upper limit
1100-
* for the huge DMA window as MAX_PHYSMEM_BITS.
1101-
*/
1102-
if (of_find_node_by_type(NULL, "ibm,pmemory"))
1103-
return (sizeof(phys_addr_t) * 8 <= MAX_PHYSMEM_BITS) ?
1104-
(phys_addr_t) -1 : (1ULL << MAX_PHYSMEM_BITS);
1105-
11061097
for_each_node_by_type(memory, "memory") {
11071098
unsigned long start, size;
11081099
int n_mem_addr_cells, n_mem_size_cells, len;

0 commit comments

Comments
 (0)