]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Add eeh_dev to the cache during boot
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Thu, 27 Jun 2013 21:00:10 +0000 (18:00 -0300)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 28 Jun 2013 02:02:07 +0000 (12:02 +1000)
commitdbc6e8b6d1091fa9590347e4905ec3fb4a9268bd
treef35952e50659cff1462f8352f937909fcea12011
parente6b1a3fa8f171239174cd6518525476223e4127e
powerpc/eeh: Add eeh_dev to the cache during boot

commit a882711d38978176e208708e0a37f3fd24481123 ("powerpc/eeh: Trace eeh
device from I/O cache") broke EEH on pseries for devices that were
present during boot and have not been hotplugged/DLPARed.

eeh_check_failure will get the eeh_dev from the cache, and will get
NULL. eeh_addr_cache_build adds the addresses to the cache, but eeh_dev
for the giving pci_device is not set yet. Just reordering the call to
eeh_addr_cache_insert_dev works fine. The ordering is similar to the one
in eeh_add_device_late.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@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/pseries/eeh_cache.c