Page MenuHomeFreeBSD

[aacraid] Handle both AIF and SYNC interrupts
ClosedPublic

Authored by luporl on Feb 27 2020, 7:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 24 2024, 8:17 AM
Unknown Object (File)
Sep 22 2024, 3:30 AM
Unknown Object (File)
Sep 18 2024, 10:29 AM
Unknown Object (File)
Sep 16 2024, 3:22 AM
Unknown Object (File)
Sep 9 2024, 8:08 PM
Unknown Object (File)
Sep 9 2024, 11:03 AM
Unknown Object (File)
Sep 8 2024, 12:32 PM
Unknown Object (File)
Sep 4 2024, 11:23 PM
Subscribers

Details

Summary

Without this change, if an AIF interrupt comes at the same time a SYNC command is finished, the SYNC interrupt will be lost.
This happens because all interrupt bits (bellbits) are cleared, but only one of them is handled.

Debugging shows that, (at least) when !sc->msi_enabled and (sc->flags & AAC_FLAGS_SYNC_MODE) is true (sync mode), both bits may be set at the same time.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/aacraid/aacraid.c
930–931 ↗(On Diff #68903)

This is needed to avoid entering the if block below, that uses structure fields that are not initialized (and probably not needed) in sync mode.

This revision is now accepted and ready to land.Mar 9 2020, 6:24 PM
This revision was automatically updated to reflect the committed changes.