HomeFreeBSD

MFC r344441: Fix few issues in ioat(4) driver.

Description

MFC r344441: Fix few issues in ioat(4) driver.

  • Do not explicitly count active descriptors. It allows hardware reset

to happen while device is still referenced, plus simplifies locking.

  • Do not stop/start callout each time the queue becomes empty. Let it

run to completion and rearm if needed, that is much cheaper then to touch
it every time, plus also simplifies locking.

  • Decouple submit and cleanup locks, making driver reentrant.
  • Avoid memory mapped status register read on every interrupt.
  • Improve locking during device attach/detach.
  • Remove some no longer used variables.

Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on
Parents
rS344649: MFC r344441: Fix few issues in ioat(4) driver.
Branches
Unknown
Tags
Unknown