All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Burton <paul.burton@mips.com>
To: linux-mips@linux-mips.org
Cc: Vladimir Kondratiev <vladimir.kondratiev@intel.com>,
	Paul Burton <paul.burton@mips.com>
Subject: [PATCH 0/4] MIPS: Support auto-detecting ARCH_PFN_OFFSET / PHYS_OFFSET
Date: Fri, 27 Jul 2018 18:23:17 -0700	[thread overview]
Message-ID: <20180728012321.29654-1-paul.burton@mips.com> (raw)

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

             reply	other threads:[~2018-07-28  1:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-28  1:23 Paul Burton [this message]
2018-07-28  1:23 ` [PATCH 1/4] MIPS: Make (UN)CAC_ADDR() PHYS_OFFSET-agnostic Paul Burton
2018-07-28  1:23 ` [PATCH 2/4] MIPS: Fix ISA virt/bus conversion for non-zero PHYS_OFFSET Paul Burton
2018-07-28  1:23 ` [PATCH 3/4] MIPS: Allow auto-dection of ARCH_PFN_OFFSET & PHYS_OFFSET Paul Burton
2018-07-28  1:23 ` [PATCH 4/4] MIPS: generic: Select MIPS_AUTO_PFN_OFFSET Paul Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180728012321.29654-1-paul.burton@mips.com \
    --to=paul.burton@mips.com \
    --cc=linux-mips@linux-mips.org \
    --cc=vladimir.kondratiev@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.