HomeFreeBSD

Add support for device surprise removal and other PCI errors.

Description

Add support for device surprise removal and other PCI errors.

  • When device disappears from PCI indicate error device state and:
    1. Trigger command completion for all pending commands
    2. Prevent new commands from executing and return:
      • success for modify and remove/cleanup commands
      • failure for create/query commands
    3. When reclaiming pages for a device in error state don't ask FW to return all given pages, just release the allocated memory

MFC after: 1 week
Sponsored by: Mellanox Technologies

Details

Provenance
hselaskyAuthored on
Parents
rS312880: Wait for all VFs pages to be reclaimed before closing EQ pages.
Branches
Unknown
Tags
Unknown