aboutsummaryrefslogtreecommitdiff
path: root/core/vpd.c
AgeCommit message (Collapse)AuthorFilesLines
2016-09-14core/vpd: rename vpd to vpd_lidOliver O'Halloran1-16/+17
This file contains several helper functions which also take an argument named "vpd". Even at the best of times, the VPD parsing code is a soup of confusing terminology so lets not make a bad situation worse. This patch renames vpd to vpd_lid and vpd_size to vpd_lid_size to clarify the situation. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-09-14core/vpd: remove reallocOliver O'Halloran1-6/+0
When setting up the VPD lid preload a buffer of VPD_LID_MAX_SIZE bytes is allocated. Once the lid has been transferred from the FSP this buffer is shrunk with realloc. However, the contents of the buffer are copied into the devicetree and the buffer is freed making the shrinking pointless. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2016-09-14core/vpd: remove assert() when checking for VPDOliver O'Halloran1-2/+7
The VPD LID is used on FSP machines to discover hotpluggable PCI slots. Currently if we fail to load the LID skiboot will fail an assert() preventing the system from booting. This is excessive since this is an otherwise recoverable failure. This patch converts the assert() to an if-NULL-return check so we can continue to boot. Cc: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com> [stewart@linux.vnet.ibm.com: fix missing verb] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-05-07Preload VPD LID and set up fsp_lid_load() for async queued loadingStewart Smith1-30/+63
This means VPD LID is already loaded before we start preloading kernel and initramfs LIDs, thus ensuring VPD doesn't have to wait for them to finish being read from FSP. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2015-03-24Asynchronous LID/Resource loading for FSP systemsStewart Smith1-1/+1
This moves away from using fsp_sync_msg in fsp_fetch_data and instead using the platform hooks for start_preload_resource() to actually queue up a load and having the plumbing for checking if a resource is loaded yet. This gets rid of the "pollers called with locks held" warning we got heaps of previously. You can now boot some FSP systems without getting this warning at all. This also sets the stage for starting load of LIDs much earlier to when they're needed, improving boot time. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
2014-07-02Initial commit of Open Source releaseBenjamin Herrenschmidt1-0/+211
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>