mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
ixl: Set critical-error state bits independently
ixl_set_state() takes a bit index, not a bit mask. ORing the reset request and critical error indices produced the global reset index, so a critical interrupt could mask its cause without scheduling the intended PF reset. Set both state bits explicitly. MFC after: 2 weeks Sponsored by: BBOX.io
This commit is contained in:
1 parent
99eaf07a3c
commit
372803d65d
1 file changed
+2
-2
@@ -201,8 +201,8 @@ ixl_msix_adminq(void *arg)
|
||||
/* Checks against the conditions above */
|
||||
if (reg & IXL_ICR0_CRIT_ERR_MASK) {
|
||||
mask &= ~IXL_ICR0_CRIT_ERR_MASK;
|
||||
ixl_set_state(&pf->state,
|
||||
IXL_STATE_PF_RESET_REQ | IXL_STATE_PF_CRIT_ERR);
|
||||
ixl_set_state(&pf->state, IXL_STATE_PF_RESET_REQ);
|
||||
ixl_set_state(&pf->state, IXL_STATE_PF_CRIT_ERR);
|
||||
do_task = TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user