FreeBSD/sys/dev/bxe/bxe.c
/*
 * Previous driver DMAE transaction may have occurred when pre-boot stage
 * ended and boot began. This would invalidate the addresses of the
 * transaction, resulting in was-error bit set in the PCI causing all
 * hw-to-host PCIe transactions to timeout. If this happened we want to clear
 * the interrupt which detected this from the pglueb and the was-done bit
 */
Previous driver DMAE transaction may have occurred when pre-boot stage
ended and boot began. This would invalidate the addresses of the
transaction, resulting in was-error bit set in the PCI causing all
hw-to-host PCIe transactions to timeout. If this happened we want to clear
the interrupt which detected this from the pglueb and the was-done bit
Previous driver DMAE transaction may have occurred when pre - boot stage ended and boot began . This would invalidate the addresses of the transaction resulting in was - error bit set in the PCI causing all hw - to - host PCIe transactions to timeout . If this happened we want to clear the interrupt which detected this from the pglueb and the was - done bit
static void
bxe_prev_interrupted_dmae(struct bxe_softc *sc)
{
    uint32_t val;
    if (!CHIP_IS_E1x(sc)) {
        val = REG_RD(sc, PGLUE_B_REG_PGLUE_B_INT_STS);
        if (val & PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN) {
            BLOGD(sc, DBG_LOAD,
                  "Clearing 'was-error' bit that was set in pglueb");
            REG_WR(sc, PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR, 1 << SC_FUNC(sc));
        }
    }
}
static void bxe_prev_interrupted_dmae ( struct bxe_softc * sc ) { uint32_t val ; if ( ! CHIP_IS_E1x ( sc ) ) { val = REG_RD ( sc , PGLUE_B_REG_PGLUE_B_INT_STS ) ; if ( val & PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN ) { BLOGD ( sc , DBG_LOAD , " " ) ; REG_WR ( sc , PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR , 1 << SC_FUNC ( sc ) ) ; } } }
Previous driver DMAE transaction may have occurred when pre-boot stage
 ended and boot began.
Previous driver DMAE transaction may have occurred when pre - boot stage ended and boot began .