linux/drivers/misc/cxl
Ian Munsie d6a6af2c18 cxl: Disable AFU debug flag
Upon inspection of the implementation specific registers, it was
discovered that the high bit of the implementation specific RXCTL
register was enabled, which enables the DEADB00F debug feature.

The debug feature causes MMIO reads to a disabled AFU to respond with
0xDEADB00F instead of all Fs. In general this should not be visible as
the kernel will only allow MMIO access to enabled AFUs, but there may be
some circumstances where an AFU may become disabled while it is use.
One such case would be an AFU designed to only be used in the dedicated
process mode and to disable itself after it has completed it's work
(however even in that case the effects of this debug flag would be
limited as the userspace application must have completed any required
MMIO accesses before the AFU disables itself with or without the flag).

This patch removes the debug flag and replaces the magic value
programmed into this register with a preprocessor define so it is
clearer what the rest of this initialisation does.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-12-29 15:45:43 +11:00
..
base.c
context.c cxl: Unmap MMIO regions when detaching a context 2014-12-12 13:06:48 +11:00
cxl.h cxl: Disable AFU debug flag 2014-12-29 15:45:43 +11:00
debugfs.c
fault.c cxl: Early return from cxl_handle_fault for a shut down context 2014-12-29 15:45:43 +11:00
file.c cxl: Fix leaking interrupts if attach process fails 2014-12-29 15:45:43 +11:00
irq.c cxl: Name interrupts in /proc/interrupt 2014-11-18 13:01:39 +11:00
Kconfig cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
main.c
Makefile cxl: Add driver to Kbuild and Makefiles 2014-10-08 20:15:58 +11:00
native.c cxl: Add timeout to process element commands 2014-12-12 13:06:47 +11:00
pci.c cxl: Disable AFU debug flag 2014-12-29 15:45:43 +11:00
sysfs.c cxl: Change contexts_lock to a mutex to fix sleep while atomic bug 2014-12-12 13:06:47 +11:00