diff options
| author | Yishai Hadas <yishaih@nvidia.com> | 2024-02-05 14:48:25 +0200 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2024-02-22 12:17:32 -0700 |
| commit | f886473071d6c0c98857eb5d7871a5e5ac26e950 (patch) | |
| tree | 1e03efbd3693cac7a92565767e759fff1e3b43b4 /drivers/vfio/pci/mlx5/cmd.h | |
| parent | 1cbcb564f5b67cee2fc2f78132b9733118a79c6d (diff) | |
| download | linux-f886473071d6c0c98857eb5d7871a5e5ac26e950.tar.gz linux-f886473071d6c0c98857eb5d7871a5e5ac26e950.tar.bz2 linux-f886473071d6c0c98857eb5d7871a5e5ac26e950.zip | |
vfio/mlx5: Add support for tracker object change event
Add support for tracker object change event by referring to its
MLX5_EVENT_TYPE_OBJECT_CHANGE event when occurs.
This lets the driver recognize whether the firmware moved the tracker
object to an error state.
In that case, the driver will skip/block any usage of that object
including an early exit in case the object was previously marked with an
error.
This functionality also covers the case when no CQE is delivered as of
the error state.
The driver was adapted to the device specification to handle the above.
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Leon Romanovsky <leon@kernel.org>
Link: https://lore.kernel.org/r/20240205124828.232701-3-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/mlx5/cmd.h')
| -rw-r--r-- | drivers/vfio/pci/mlx5/cmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vfio/pci/mlx5/cmd.h b/drivers/vfio/pci/mlx5/cmd.h index f2c7227fa683..0d6a2db3d801 100644 --- a/drivers/vfio/pci/mlx5/cmd.h +++ b/drivers/vfio/pci/mlx5/cmd.h @@ -162,6 +162,7 @@ struct mlx5_vhca_page_tracker { u32 id; u32 pdn; u8 is_err:1; + u8 object_changed:1; struct mlx5_uars_page *uar; struct mlx5_vhca_cq cq; struct mlx5_vhca_qp *host_qp; |
