powerpc/eeh: Fix wrong printed PE number
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 12 May 2015 07:05:22 +0000 (17:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 21 Jul 2015 01:38:46 +0000 (11:38 +1000)
On LE kernel, the non-existing PE number in BE format derived from
skiboot firmware isn't converted to LE format properly as following
kernel log indicates:

   EEH: Clear non-existing PHB#4-PE#200000000000000

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/eeh-powernv.c

index 5cf5e6ea213baaeee1b6e017636eae95aba6b0c6..b357cdc3f4726d493b13ab0e724d4e5591dd28ff 100644 (file)
@@ -1396,7 +1396,7 @@ static int pnv_eeh_next_error(struct eeh_pe **pe)
                                be64_to_cpu(frozen_pe_no), pe)) {
                                /* Try best to clear it */
                                pr_info("EEH: Clear non-existing PHB#%x-PE#%llx\n",
-                                       hose->global_number, frozen_pe_no);
+                                       hose->global_number, be64_to_cpu(frozen_pe_no));
                                pr_info("EEH: PHB location: %s\n",
                                        eeh_pe_loc_get(phb_pe));
                                opal_pci_eeh_freeze_clear(phb->opal_id,