]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[hermon] Perform clean MPT unmap on device shutdown
authorChristian Iversen <ci@iversenit.dk>
Tue, 26 Jan 2021 22:48:44 +0000 (23:48 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Jan 2021 00:46:53 +0000 (00:46 +0000)
commit43d72d0087c4d81354abfff26d6900047f56b0e4
tree01b89aaecfd046d3ae11a9f8f0da4f1cecec2af7
parent699b9f1d1b0338272dc4871ec3348ff3281784a3
[hermon] Perform clean MPT unmap on device shutdown

This change is ported from Flexboot sources.  When stopping a Hermon
device, perform hermon_unmap_mpt() which runs HERMON_HCR_HW2SW_MPT to
bring the Memory Protection Table (MPT) back to software control.

Signed-off-by: Christian Iversen <ci@iversenit.dk>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c
src/drivers/infiniband/hermon.h