aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-01-13 17:56:21 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-16 10:55:11 +1100
commitab65a967e814eb11016b96228ff991127dfd13c1 (patch)
treeddc2a87cba0784a89a33d627b436717c83f2c92c
parent690f9da985b5f40d4f87ff161d43fd6989f6495c (diff)
downloadskiboot-ab65a967e814eb11016b96228ff991127dfd13c1.zip
skiboot-ab65a967e814eb11016b96228ff991127dfd13c1.tar.gz
skiboot-ab65a967e814eb11016b96228ff991127dfd13c1.tar.bz2
astbmc: Don't do P8 PSI or DT fixups on P9
We do some P8 specific hacks on BMC platforms to work around Hostboot not initialising the PSI BAR and to fix some problems in the hostboot provided device tree. These shouldn't be done on P9. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--platforms/astbmc/common.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index ce8edea..e78b5fa 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -321,11 +321,17 @@ static void astbmc_fixup_psi_bar(void)
void astbmc_early_init(void)
{
- /* Hostboot's device-tree isn't quite right yet */
- astbmc_fixup_dt();
+ /*
+ * On P9 we don't have a HB supplied devicetree and we have a
+ * different PSI BAR hack here is P8 specific.
+ */
+ if (proc_gen == proc_gen_p8) {
+ /* Hostboot's device-tree isn't quite right yet */
+ astbmc_fixup_dt();
- /* Hostboot forgets to populate the PSI BAR */
- astbmc_fixup_psi_bar();
+ /* Hostboot forgets to populate the PSI BAR */
+ astbmc_fixup_psi_bar();
+ }
/* Send external interrupts to me */
psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_SKIBOOT);