ocxl: control via sysfs whether the FPGA is reloaded on a link reset
authorPhilippe Bergheaud <felix@linux.ibm.com>
Fri, 19 Jun 2020 14:04:39 +0000 (16:04 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Jul 2020 01:07:19 +0000 (11:07 +1000)
commit87db7579ebd5ded337056eb765542eb2608f16e3
treec57c5124e686993625127553f9f92f3b4a56f4bc
parentacccc984c1f2e49225b40f1d0d20d383ec27d4d0
ocxl: control via sysfs whether the FPGA is reloaded on a link reset

Some opencapi FPGA images allow to control if the FPGA should be reloaded
on the next adapter reset. If it is supported, the image specifies it
through a Vendor Specific DVSEC in the config space of function 0.

Signed-off-by: Philippe Bergheaud <felix@linux.ibm.com>
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200619140439.153962-1-fbarrat@linux.ibm.com
Documentation/ABI/testing/sysfs-class-ocxl
drivers/misc/ocxl/config.c
drivers/misc/ocxl/ocxl_internal.h
drivers/misc/ocxl/sysfs.c
include/misc/ocxl-config.h