kernel_optimize_test/arch/arc
Vladimir Isaev cb3e286f22 ARC: mm: Use max_high_pfn as a HIGHMEM zone border
commit 1d5e4640e5df15252398c1b621f6bd432f2d7f17 upstream.

Commit 4af22ded0e ("arc: fix memory initialization for systems
with two memory banks") fixed highmem, but for the PAE case it causes
bug messages:

| BUG: Bad page state in process swapper  pfn:80000
| page:(ptrval) refcount:0 mapcount:1 mapping:00000000 index:0x0 pfn:0x80000 flags: 0x0()
| raw: 00000000 00000100 00000122 00000000 00000000 00000000 00000000 00000000
| raw: 00000000
| page dumped because: nonzero mapcount
| Modules linked in:
| CPU: 0 PID: 0 Comm: swapper Not tainted 5.12.0-rc5-00003-g1e43c377a79f #1

This is because the fix expects highmem to be always less than
lowmem and uses min_low_pfn as an upper zone border for highmem.

max_high_pfn should be ok for both highmem and highmem+PAE cases.

Fixes: 4af22ded0e ("arc: fix memory initialization for systems with two memory banks")
Signed-off-by: Vladimir Isaev <isaev@synopsys.com>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: stable@vger.kernel.org  #5.8 onwards
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-19 10:13:10 +02:00
..
boot ARC: build: move symlink creation to arch/arc/Makefile to avoid race 2021-01-19 18:27:23 +01:00
configs
include ARC: mm: PAE: use 40-bit physical page mask 2021-05-19 10:13:10 +02:00
kernel ARC: entry: fix off-by-one error in syscall number validation 2021-05-19 10:13:10 +02:00
lib
mm ARC: mm: Use max_high_pfn as a HIGHMEM zone border 2021-05-19 10:13:10 +02:00
oprofile
plat-axs10x
plat-hsdk ARC: [plat-hsdk] Remap CCMs super early in asm boot trampoline 2020-11-02 11:45:09 -08:00
plat-sim
plat-tb10x
Kbuild
Kconfig
Kconfig.debug
Makefile ARC: build: move symlink creation to arch/arc/Makefile to avoid race 2021-01-19 18:27:23 +01:00