mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
With "zpcictl --reset DDDD:BB:FF.F" now causing a fully Linux driven reset where the Linux kernel does an explicit device driver unbind, disable and re-enable, let's also expose a way to instead have firmware perform a device reset by issuing an SCLP with SCLP_ERRNOTIFY_RESET. When firmware is done resetting the device it will then issue an error notification with PCI Error Code 0x3a indicating successful reset, which will subsequently cause the new kernel based automatic recovery mechanism to perform recovery in coordination with the device driver. This allows resetting devices without unbinding them from their device driver and thus without losing related block devices or network interfaces. This may also be used to test the automatic recovery mechanism. Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>