]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for device surprise removal and other PCI errors.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 27 Jan 2017 11:29:33 +0000 (11:29 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 27 Jan 2017 11:29:33 +0000 (11:29 +0000)
commit30dfc0518a7bcb54e22e38d074be779890bfe58f
treee3094a35d52cdcaa9c0c6cb0d108e0cbb8496eef
parent44a03e91f3f1d660a3baaf00dce6f05dd1fb3ebf
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
sys/dev/mlx5/driver.h
sys/dev/mlx5/mlx5_core/mlx5_cmd.c
sys/dev/mlx5/mlx5_core/mlx5_health.c
sys/dev/mlx5/mlx5_core/mlx5_main.c
sys/dev/mlx5/mlx5_core/mlx5_pagealloc.c