]> git.baikalelectronics.ru Git - kernel.git/commit
powernv/eeh: Add buffer for P7IOC hub error data
authorBrian W Hart <hartb@linux.vnet.ibm.com>
Fri, 20 Dec 2013 19:06:01 +0000 (13:06 -0600)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 30 Dec 2013 03:02:32 +0000 (14:02 +1100)
commit35a7cf19e6964a551f15a8d2d13a84dea1adf3a6
tree120e017d57b84e6dfc162ed927369e6bc38f6471
parent67cf4fac4b9550b802f7addd7cae1ecf1baa99b8
powernv/eeh: Add buffer for P7IOC hub error data

Prevent ioda_eeh_hub_diag() from clobbering itself when called by supplying
a per-PHB buffer for P7IOC hub diagnostic data.  Take care to inform OPAL of
the correct size for the buffer.

[Small style change to the use of sizeof -- BenH]

Signed-off-by: Brian W Hart <hartb@linux.vnet.ibm.com>
Acked-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/eeh-ioda.c
arch/powerpc/platforms/powernv/pci.h