This series fixes a couple of issues we currently have with use of PHYS_OFFSET, introduces the ability to auto-detect a suitable value for it from the boot memory map & enables that for the generic platform. This allows generic kernels to run on systems where the base address of physical memory is higher than zero without wasting memory on book-keeping for the unused region between zero & that base address. Applies cleanly atop mips-next as of commit a999933db9ed ("MIPS: remove mips_swiotlb_ops"). Thanks, Paul Paul Burton (4): MIPS: Make (UN)CAC_ADDR() PHYS_OFFSET-agnostic MIPS: Fix ISA virt/bus conversion for non-zero PHYS_OFFSET MIPS: Allow auto-dection of ARCH_PFN_OFFSET & PHYS_OFFSET MIPS: generic: Select MIPS_AUTO_PFN_OFFSET arch/mips/Kconfig | 4 ++++ arch/mips/include/asm/io.h | 8 ++++---- arch/mips/include/asm/mach-ar7/spaces.h | 3 --- arch/mips/include/asm/mach-generic/spaces.h | 10 +++++++--- arch/mips/include/asm/mach-pic32/spaces.h | 1 - arch/mips/include/asm/page.h | 11 ++++++++--- arch/mips/jazz/jazzdma.c | 2 +- arch/mips/kernel/setup.c | 14 ++++++++++++-- arch/mips/mm/dma-noncoherent.c | 2 +- 9 files changed, 37 insertions(+), 18 deletions(-) -- 2.18.0