powerpc/powernv: Add PCI error injection debugfs entry
authorMike Qiu <qiudayu@linux.vnet.ibm.com>
Tue, 30 Sep 2014 02:38:57 +0000 (12:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 30 Sep 2014 07:15:10 +0000 (17:15 +1000)
commit7a062782295a896f697137aacbe23400fbbafa94
tree1b854d6b7720e31dad154a345aab4b19a46bd826
parent131c123abec375afc819da89925dbce97590278e
powerpc/powernv: Add PCI error injection debugfs entry

The patch adds debugfs file (/sys/kernel/debug/powerpc/PCIxxxx/
err_injct), which accepts following formated string, to support
error injection. It will be used to support userland utility
"errinjct" in future.

  "pe_no:0:function:address:mask" - 32-bits PCI errors
  "pe_no:1:function:address:mask" - 64-bits PCI errors

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