cxl: Dump PSL_FIR register on PSL9 error irq
authorVaibhav Jain <vaibhav@linux.vnet.ibm.com>
Wed, 11 Oct 2017 06:14:41 +0000 (11:44 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Oct 2017 08:41:57 +0000 (19:41 +1100)
commit990f19ae6feefb4a6e718355719cde5f6ba18ff6
tree6013fbf69dba39976eb2370756df9f777801891b
parent89aca4753eb451a48f65a12b02640365dba3d4ea
cxl: Dump PSL_FIR register on PSL9 error irq

For PSL9 currently we aren't dumping the PSL FIR register when a
PSL error interrupt is triggered. Contents of this register are useful
in debugging AFU issues.

This patch fixes issue by adding a new service_layer_ops callback
cxl_native_err_irq_dump_regs_psl9() to dump the PSL_FIR registers on a
PSL error interrupt thereby bringing the behavior in line with PSL on
POWER-8. Also the existing service_layer_ops callback
for PSL8 has been renamed to cxl_native_err_irq_dump_regs_psl8().

Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/cxl.h
drivers/misc/cxl/native.c
drivers/misc/cxl/pci.c