]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r312881:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Aug 2017 12:45:26 +0000 (12:45 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 7 Aug 2017 12:45:26 +0000 (12:45 +0000)
commit8f6818b7e92e3aab567174caf194690c80479d22
tree7d497a87f97bfb400e1f7c72623735a5d2ed110f
parent5c3e6933a4c99b07621c8cafe0f3d9b00c3ba975
MFC r312881:
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

Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@322149 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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