Cédric Le Goater 273fef83f6 spapr/irq: Add XIVE sanity checks on non-P9 machines
On non-P9 machines, the XIVE interrupt mode is not advertised, see
spapr_dt_ov5_platform_support(). Add a couple of checks on the machine
configuration to filter bogus setups and prevent OS failures :

                     Interrupt modes

  CPU/Compat      XICS    XIVE                dual

   P8/P8          OK      QEMU failure (1)    OK (3)
   P9/P8          OK      QEMU failure (2)    OK (3)
   P9/P9          OK      OK                  OK

  (1) CPU exception model is incompatible with XIVE and the presenters
      will fail to realize.

  (2) CPU exception model is compatible with XIVE, but the XIVE CAS
      advertisement is dropped when in POWER8 mode. So we could ended up
      booting with the XIVE DT properties but without the HCALLs. Avoid
      confusing Linux with such settings and fail under QEMU.

  (3) force XICS in machine init

Remove the check on XIVE-only machines in spapr_machine_init(), which
has now become redundant.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20190328100044.11408-1-clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2019-03-29 10:38:20 +11:00
..
2019-03-12 14:33:04 +11:00
2019-03-12 14:33:04 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00
2019-03-12 14:33:05 +11:00