]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/powernv: Don't warn on PE init if unfreeze is unsupported
authorRussell Currey <ruscur@russell.cc>
Wed, 16 Nov 2016 01:12:26 +0000 (12:12 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:08 +0000 (20:18 +0100)
commit3083593700ddf653f765031189805fef56959281
tree8633ee1ae61c18599222975221934a39bff10677
parentdcd15c20c2088e7d0a910f74c706dd7870dc7f62
powerpc/powernv: Don't warn on PE init if unfreeze is unsupported

commit d4791db527bf397c84c9956c3ece9692ed5322ac upstream.

Whenever a PE is initialised in powernv, opal_pci_eeh_freeze_clear() is
called.  This is to remove any existing freeze, and has no negative side
effects if the PE is already in an unfrozen state.  On PHB backends that
don't support this operation and return OPAL_UNSUPPORTED, this creates a
scary and misleading warning message.

Skip the warning message on init if OPAL_UNSUPPORTED is returned.

As far as I'm aware, this currently only affects NPUs.

Fixes: 313483d ("powerpc/powernv: Unfreeze PE on allocation")
Signed-off-by: Russell Currey <ruscur@russell.cc>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/pci-ioda.c