Skip to content

Commit

Permalink
astbmc: Don't do P8 PSI or DT fixups on P9
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
oohal authored and stewartsmith committed Jan 15, 2017
1 parent 690f9da commit ab65a96
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions platforms/astbmc/common.c
Expand Up @@ -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);
Expand Down

0 comments on commit ab65a96

Please sign in to comment.