[Bug 262146] IPMI SMIC mode broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 23 Feb 2022 11:32:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262146

            Bug ID: 262146
           Summary: IPMI SMIC mode broken
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: michael.tasche@ellerburg.de

I am just porting the IPMI SMIC stuff to QNX and had to find this nice BUG.
Here is the fix:
diff --git a/sys/dev/ipmi/ipmi_smic.c b/sys/dev/ipmi/ipmi_smic.c
index 4a515a37972..526750508e6 100644
--- a/sys/dev/ipmi/ipmi_smic.c
+++ b/sys/dev/ipmi/ipmi_smic.c
@@ -203,7 +203,7 @@ smic_read_byte(struct ipmi_softc *sc, u_char *data)
        u_char error, status;

        smic_wait_for_rx_okay(sc);
-       OUTB(sc, SMIC_CTL_STS, SMIC_SC_SMS_RD_NEXT);
+       OUTB(sc, SMIC_CTL_STS, SMIC_CC_SMS_RD_NEXT);
        smic_set_busy(sc);
        smic_wait_for_not_busy(sc);
        status = INB(sc, SMIC_CTL_STS);

Kind Regards
Michael

-- 
You are receiving this mail because:
You are the assignee for the bug.