]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
cxl: Allow the kernel to trust that an image won't change on PERST.
authorDaniel Axtens <dja@axtens.net>
Fri, 14 Aug 2015 07:41:25 +0000 (17:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Aug 2015 11:32:07 +0000 (21:32 +1000)
commit13e68d8bd05c998cae452a4f3400af1e8edd852e
treed17ff97c9f46a663b5cb4916fc333703b2cdfea4
parent4e1efb403c1c016ae831bd9988a7d2e5e0af41a0
cxl: Allow the kernel to trust that an image won't change on PERST.

Provide a kernel API and a sysfs entry which allow a user to specify
that when a card is PERSTed, it's image will stay the same, allowing
it to participate in EEH.

cxl_reset is used to reflash the card. In that case, we cannot safely
assert that the image will not change. Therefore, disallow cxl_reset
if the flag is set.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/ABI/testing/sysfs-class-cxl
drivers/misc/cxl/api.c
drivers/misc/cxl/cxl.h
drivers/misc/cxl/pci.c
drivers/misc/cxl/sysfs.c
include/misc/cxl.h