aboutsummaryrefslogtreecommitdiff
path: root/platforms/astbmc/p8dtu.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-12-08 10:51:39 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-13 16:27:09 +1100
commit4a6d1a70f0fe50ceb8176f2d6d0fc612f8e32589 (patch)
tree71574708d32dbe972b9eeae6c9095f482bfddb66 /platforms/astbmc/p8dtu.c
parent7fe3de438b19545471d2fb72e54ed01a40b12706 (diff)
downloadskiboot-4a6d1a70f0fe50ceb8176f2d6d0fc612f8e32589.zip
skiboot-4a6d1a70f0fe50ceb8176f2d6d0fc612f8e32589.tar.gz
skiboot-4a6d1a70f0fe50ceb8176f2d6d0fc612f8e32589.tar.bz2
BMC/PCI: Check slot tables against detected devices
On BMC machines, we have slot tables of built in PHBs, slots and devices that are physically present in the system (such as the BMC itself). We can use these tables to check what we *detected* against what *should* be in the system and throw an error if they differ. We have seen this occur a couple of times while still booting, giving the user just an empty petitboot screen and not much else to go on. This patch helps in that we get a skiboot error message, and at some point in the future when we pump them up to the OS we could get a big friendly error message telling you you're having a bad day. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Acked-by: Russell Currey <ruscur@russell.cc> [stewart@linux.vnet.ibm.com: add barreleye] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/astbmc/p8dtu.c')
-rw-r--r--platforms/astbmc/p8dtu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/platforms/astbmc/p8dtu.c b/platforms/astbmc/p8dtu.c
index ac7a191..8d7f92f 100644
--- a/platforms/astbmc/p8dtu.c
+++ b/platforms/astbmc/p8dtu.c
@@ -240,6 +240,7 @@ DECLARE_PLATFORM(p8dtu1u) = {
.bmc = &astbmc_smc,
.init = astbmc_init,
.pci_get_slot_info = slot_table_get_slot_info,
+ .pci_probe_complete = check_all_slot_table,
.external_irq = astbmc_ext_irq_serirq_cpld,
.cec_power_down = astbmc_ipmi_power_down,
.cec_reboot = astbmc_ipmi_reboot,
@@ -256,6 +257,7 @@ DECLARE_PLATFORM(p8dtu2u) = {
.bmc = &astbmc_smc,
.init = astbmc_init,
.pci_get_slot_info = slot_table_get_slot_info,
+ .pci_probe_complete = check_all_slot_table,
.external_irq = astbmc_ext_irq_serirq_cpld,
.cec_power_down = astbmc_ipmi_power_down,
.cec_reboot = astbmc_ipmi_reboot,