Skip to content

Commit 57e3697

Browse files
aikgregkh
authored andcommitted
powerpc/pseries/ddw: Revert "Extend upper limit for huge DMA window for persistent memory"
[ Upstream commit 2d33f55 ] 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 <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211108040320.3857636-2-aik@ozlabs.ru Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7b2b7e0 commit 57e3697

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • arch/powerpc/platforms/pseries

‎arch/powerpc/platforms/pseries/iommu.c‎

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

1037-
/*
1038-
* The "ibm,pmemory" can appear anywhere in the address space.
1039-
* Assuming it is still backed by page structs, set the upper limit
1040-
* for the huge DMA window as MAX_PHYSMEM_BITS.
1041-
*/
1042-
if (of_find_node_by_type(NULL, "ibm,pmemory"))
1043-
return (sizeof(phys_addr_t) * 8 <= MAX_PHYSMEM_BITS) ?
1044-
(phys_addr_t) -1 : (1ULL << MAX_PHYSMEM_BITS);
1045-
10461037
for_each_node_by_type(memory, "memory") {
10471038
unsigned long start, size;
10481039
int n_mem_addr_cells, n_mem_size_cells, len;

0 commit comments

Comments
 (0)