diff options
author | Ian Munsie <imunsie@au1.ibm.com> | 2014-11-14 17:37:50 +1100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 19:29:36 -0800 |
commit | 27bbcef20a47c1b0f1ec6cc6b0d27470dbcaa05a (patch) | |
tree | 14c43635afc07079027d6faa4f7d286700bbac80 /lib/bitmap.c | |
parent | ac610cd7c2b13d7f916ebb73c2ae6b91c1d53a61 (diff) | |
download | blackbird-op-linux-27bbcef20a47c1b0f1ec6cc6b0d27470dbcaa05a.tar.gz blackbird-op-linux-27bbcef20a47c1b0f1ec6cc6b0d27470dbcaa05a.zip |
CXL: Return error to PSL if IRQ demultiplexing fails & print clearer warning
If an AFU has a hardware bug that causes it to acknowledge a context
terminate or remove while that context has outstanding transactions, it
is possible for the kernel to receive an interrupt for that context
after we have removed it from the context list.
The kernel will not be able to demultiplex the interrupt (or worse - if
we have already reallocated the process handle we could mis-attribute it
to the new context), and printed a big scary warning.
It did not acknowledge the interrupt, which would effectively halt
further translation fault processing on the PSL.
This patch makes the warning clearer about the likely cause of the issue
(i.e. hardware bug) to make it obvious to future AFU designers of what
needs to be fixed. It also prints out the process handle which can then
be matched up with hardware and software traces for debugging.
It also acknowledges the interrupt to the PSL with either an address
error or acknowledge, so that the PSL can continue with other
translations.
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions