[PATCH] cxl: Rework the implementation of cxl_stop_trace_psl9()
christophe lombard
clombard at linux.vnet.ibm.com
Wed Oct 18 18:05:51 AEDT 2017
Le 11/10/2017 à 14:30, Vaibhav Jain a écrit :
> Presently the PSL9 specific cxl_stop_trace_psl9() only stops the RX0
> traces on the CXL adapter when a PSL error irq is triggered. The patch
> updates the function to stop all the traces arrays and move them to
> the FIN state. The implementation issues the mmio to TRACECFG register
> to stop the trace array iff it already not in FIN state. This prevents
> the issue of trace data being reset in case of multiple stop mmio
> issued for a single trace array.
>
> Also the patch does some refactoring of existing cxl_stop_trace_psl9()
> and cxl_stop_trace_psl8() functions by moving them to 'pci.c' from
> 'debugfs.c' file and marking them as static.
agree.
> Signed-off-by: Vaibhav Jain <vaibhav at linux.vnet.ibm.com>
> ---
> drivers/misc/cxl/cxl.h | 14 ++++----------
> drivers/misc/cxl/debugfs.c | 22 ----------------------
> drivers/misc/cxl/pci.c | 38 ++++++++++++++++++++++++++++++++++++++
> 3 files changed, 42 insertions(+), 32 deletions(-)
Thanks
Acked-by: Christophe Lombard<clombard at linux.vnet.ibm.com>
More information about the Linuxppc-dev
mailing list