Star64_linux/arch/powerpc/mm/book3s64
Aneesh Kumar K.V 9984b6ee7f powerpc/book3s64/mm: Fix DirectMap stats in /proc/meminfo
[ Upstream commit 0da90af431 ]

On memory unplug reduce DirectMap page count correctly.
root@ubuntu-guest:# grep Direct /proc/meminfo
DirectMap4k:           0 kB
DirectMap64k:           0 kB
DirectMap2M:    115343360 kB
DirectMap1G:           0 kB

Before fix:
root@ubuntu-guest:# ndctl disable-namespace all
disabled 1 namespace
root@ubuntu-guest:# grep Direct /proc/meminfo
DirectMap4k:           0 kB
DirectMap64k:           0 kB
DirectMap2M:    115343360 kB
DirectMap1G:           0 kB

After fix:
root@ubuntu-guest:# ndctl disable-namespace all
disabled 1 namespace
root@ubuntu-guest:# grep Direct /proc/meminfo
DirectMap4k:           0 kB
DirectMap64k:           0 kB
DirectMap2M:    104857600 kB
DirectMap1G:           0 kB

Fixes: a2dc009afa ("powerpc/mm/book3s/radix: Add mapping statistics")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tested-by: Sachin Sant <sachinp@linux.ibm.com <mailto:sachinp@linux.ibm.com>>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230616110826.344417-4-aneesh.kumar@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-20 15:24:35 +08:00
..
hash_4k.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_64k.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_hugepage.c powerpc/book3s64/kuap: Use Key 3 for kernel mapping with hash translation 2020-12-04 01:01:25 +11:00
hash_hugetlbpage.c powerpc/mm: Move hpte_insert_repeating() prototype 2021-01-30 11:39:29 +11:00
hash_native.c powerpc/kexec: blacklist functions called in real mode for kprobe 2021-07-26 20:38:51 +10:00
hash_pgtable.c powerpc/mm/64s/hash: Add real-mode change_memory_range() for hash LPAR 2021-04-08 21:17:43 +10:00
hash_tlb.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
hash_utils.c powerpc/64s/hash: Make hash faults work in NMI context 2023-04-19 17:47:38 +08:00
internal.h powerpc/mm/64s: Fix no previous prototype warning 2021-02-11 23:28:51 +11:00
iommu_api.c powerpc/mm/book3s64/iommu: fix some RCU-list locks 2021-01-31 22:35:49 +11:00
Makefile powerpc/book3s64/kuap/kuep: Add PPC_PKEY config on book3s64 2020-12-04 01:01:24 +11:00
mmu_context.c powerpc/mm/book3s64: Fix a typo in mmu_context.c 2021-03-29 13:22:12 +11:00
pgtable.c powerpc: rename powerpc_debugfs_root to arch_debugfs_dir 2021-08-13 22:04:26 +10:00
pkeys.c powerpc/64s: Fold update_current_thread_[i]amr() into their only callers 2021-03-29 13:22:14 +11:00
radix_hugetlbpage.c powerpc/book3s64/mm: update flush_tlb_range to flush page walk cache 2021-07-08 11:48:23 -07:00
radix_pgtable.c powerpc/book3s64/mm: Fix DirectMap stats in /proc/meminfo 2023-08-20 15:24:35 +08:00
radix_tlb.c powerpc/mm: Rearrange if-else block to avoid clang warning 2023-04-19 17:59:36 +08:00
slb.c powerpc: Refactor verification of MSR_RI 2021-08-26 21:21:07 +10:00
subpage_prot.c mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00