diff options
author | Michael Neuling <mikey@neuling.org> | 2017-05-02 13:23:06 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-05-10 16:58:18 +1000 |
commit | 5f67c1e253788691d376e4e639d4a6e7785efa55 (patch) | |
tree | afebf05ed7e6bb84120c8bd5d7306c39545066bd /.gitignore | |
parent | 4fbdcf6bd10b1c93977e789a42bb54b98458acd6 (diff) | |
download | skiboot-5f67c1e253788691d376e4e639d4a6e7785efa55.zip skiboot-5f67c1e253788691d376e4e639d4a6e7785efa55.tar.gz skiboot-5f67c1e253788691d376e4e639d4a6e7785efa55.tar.bz2 |
Add global physical memory map
This adds a global map for allocating physical memory address. This
centralises physical memory space allocations into one location rather
than spread through, PHB, XIVE, NX etc.
This adds a new call phys_map_get() which takes a chip, type and index
and returns a address and size for the region to be used.
An error in a call to this function crashes skiboot. This is done
since bogus calls here are going to be hit by developers not users and
they need to be fixed.
Currently only P9 is implemented but other chips should be easy to
add. On P9 BARs are generally set by skiboot. On P8 this was done by
hostboot so this is not needed there.
This just adds the infrastructure. User (PHB4, XIVE etc) will be
migrated in subsequent patches.
Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions