From: Michael Brown Date: Fri, 10 Jul 2026 15:29:52 +0000 (+0100) Subject: [hermon] Add missing write barrier after initiating reset X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84ac70ef8e8663213159bf1128633cfd08cfd9b0;p=thirdparty%2Fipxe.git [hermon] Add missing write barrier after initiating reset Ensure that the reset register write does not get reordered behind the first PCI configuration space read that checks to see if the reset has completed. Debugged-by: Jaroslav Svoboda Tested-by: Jaroslav Svoboda Signed-off-by: Michael Brown --- diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index 70e9e4d54..1f2bf66f5 100644 --- a/src/drivers/infiniband/hermon.c +++ b/src/drivers/infiniband/hermon.c @@ -2843,6 +2843,7 @@ static int hermon_reset ( struct hermon *hermon ) { pci_backup ( pci, &backup, PCI_CONFIG_BACKUP_ALL, backup_exclude ); writel ( HERMON_RESET_MAGIC, ( hermon->config + HERMON_RESET_OFFSET ) ); + wmb(); /* Wait until device starts responding to configuration cycles */ for ( i = 0 ; i < HERMON_RESET_MAX_WAIT_MS ; i++ ) {