linux/arch/powerpc/mm
Bharata B Rao 2f7d03e051 powerpc/mm/drmem: Fix unexpected flag value in ibm,dynamic-memory-v2
Memory addtion and removal by count and indexed-count methods
temporarily mark the LMBs that are being added/removed by a special
flag value DRMEM_LMB_RESERVED. Accessing flags value directly at a few
places without proper accessor method is causing two unexpected
side-effects:

- DRMEM_LMB_RESERVED bit is becoming part of the flags word of
  drconf_cell_v2 entries in ibm,dynamic-memory-v2 DT property.
- This results in extra drconf_cell entries in ibm,dynamic-memory-v2.
  For example if 1G memory is added, it leads to one entry for 3 LMBs
  and 1 separate entry for the last LMB. All the 4 LMBs should be
  defined by one entry here.

Fix this by always accessing the flags by its accessor method
drmem_lmb_flags().

Fixes: 2b31e3aec1 ("powerpc/drmem: Add support for ibm, dynamic-memory-v2 property")
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-02-23 16:45:51 +11:00
..
8xx_mmu.c
40x_mmu.c
44x_mmu.c
copro_fault.c
dma-noncoherent.c
drmem.c powerpc/mm/drmem: Fix unexpected flag value in ibm,dynamic-memory-v2 2018-02-23 16:45:51 +11:00
dump_hashpagetable.c
dump_linuxpagetables.c
fault.c
fsl_booke_mmu.c
hash64_4k.c powerpc/mm/hash64: Store the slot information at the right offset for hugetlb 2018-02-13 22:37:48 +11:00
hash64_64k.c powerpc/mm/hash64: Store the slot information at the right offset for hugetlb 2018-02-13 22:37:48 +11:00
hash_low_32.S
hash_native_64.c
hash_utils_64.c powerpc/mm: Fix crashes with 16G huge pages 2018-02-13 22:37:47 +11:00
highmem.c
hugepage-hash64.c
hugetlbpage-book3e.c
hugetlbpage-hash64.c powerpc/mm/hash64: Store the slot information at the right offset for hugetlb 2018-02-13 22:37:48 +11:00
hugetlbpage-radix.c
hugetlbpage.c
init_32.c
init_64.c libnvdimm for 4.16 2018-02-06 10:41:33 -08:00
init-common.c powerpc/mm: Fix crashes with 16G huge pages 2018-02-13 22:37:47 +11:00
Makefile
mem.c libnvdimm for 4.16 2018-02-06 10:41:33 -08:00
mmap.c
mmu_context_book3s64.c
mmu_context_hash32.c
mmu_context_iommu.c
mmu_context_nohash.c
mmu_context.c powerpc, membarrier: Skip memory barrier in switch_mm() 2018-02-05 21:34:02 +01:00
mmu_decl.h
numa.c powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove 2018-02-08 23:56:10 +11:00
pgtable_32.c
pgtable_64.c powerpc/mm: Fix crashes with 16G huge pages 2018-02-13 22:37:47 +11:00
pgtable-book3e.c
pgtable-book3s64.c
pgtable-hash64.c
pgtable-radix.c powerpc/mm: Fix crashes with 16G huge pages 2018-02-13 22:37:47 +11:00
pgtable.c
pkeys.c
ppc_mmu_32.c
slb_low.S
slb.c
slice.c
subpage-prot.c
tlb_hash32.c
tlb_hash64.c powerpc/mm/hash64: Store the slot information at the right offset for hugetlb 2018-02-13 22:37:48 +11:00
tlb_low_64e.S
tlb_nohash_low.S
tlb_nohash.c
tlb-radix.c
vphn.c
vphn.h