]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Fix MSIQ HV call ordering in pci_sun4v_msiq_build_irq().
authorDavid S. Miller <davem@davemloft.net>
Thu, 22 Dec 2011 21:23:59 +0000 (13:23 -0800)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:02:27 +0000 (13:02 -0800)
commit6317c12d915e8dcd852bc77cc3c5f43d0405a074
tree7640161249b23973be93ea8eff0ad85772843dab
parentd6cb1d7797ca13c199b5d9ff62a95409c9bbd990
sparc64: Fix MSIQ HV call ordering in pci_sun4v_msiq_build_irq().

[ Upstream commit 7cc8583372a21d98a23b703ad96cab03180b5030 ]

This silently was working for many years and stopped working on
Niagara-T3 machines.

We need to set the MSIQ to VALID before we can set it's state to IDLE.

On Niagara-T3, setting the state to IDLE first was causing HV_EINVAL
errors.  The hypervisor documentation says, rather ambiguously, that
the MSIQ must be "initialized" before one can set the state.

I previously understood this to mean merely that a successful setconf()
operation has been performed on the MSIQ, which we have done at this
point.  But it seems to also mean that it has been set VALID too.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/kernel/pci_sun4v.c