All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V1 vfio 0/5] Improve mlx5 driver to better handle some error cases
@ 2024-02-05 12:48 Yishai Hadas
  2024-02-05 12:48 ` [PATCH V1 vfio 1/5] net/mlx5: Add the IFC related bits for query tracker Yishai Hadas
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Yishai Hadas @ 2024-02-05 12:48 UTC (permalink / raw)
  To: alex.williamson, jgg
  Cc: kvm, kevin.tian, joao.m.martins, leonro, yishaih, maorg

This series improves the mlx5 driver to better handle some error cases
as of below.

The first two patches let 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.

The next two patches (#3, #4), improve the driver to better include the
proper firmware syndrome in dmesg upon a failure in some firmware
commands.

The last patch follows the device specification to let the firmware know
upon leaving PRE_COPY back to RUNNING. (e.g. error in the target,
migration cancellation, etc.).

This will let the firmware clean its internal resources that were turned
on upon PRE_COPY.

Note:
As the first patch should go to net/mlx5, we may need to send it as a
pull request format to vfio before acceptance of the series, to avoid
conflicts.

Changes from V0: https://lore.kernel.org/kvm/20240130170227.153464-1-yishaih@nvidia.com/
Patch #2:
- Rename to use 'object changed' in some places to make it clearer.
- Enhance the commit log to better clarify the usage/use case.

The above was suggested by Tian, Kevin <kevin.tian@intel.com>.

Yishai

Yishai Hadas (5):
  net/mlx5: Add the IFC related bits for query tracker
  vfio/mlx5: Add support for tracker object change event
  vfio/mlx5: Handle the EREMOTEIO error upon the SAVE command
  vfio/mlx5: Block incremental query upon migf state error
  vfio/mlx5: Let firmware knows upon leaving PRE_COPY back to RUNNING

 drivers/vfio/pci/mlx5/cmd.c   | 74 ++++++++++++++++++++++++++++++++---
 drivers/vfio/pci/mlx5/cmd.h   |  5 ++-
 drivers/vfio/pci/mlx5/main.c  | 39 ++++++++++++++----
 include/linux/mlx5/mlx5_ifc.h |  5 +++
 4 files changed, 110 insertions(+), 13 deletions(-)

-- 
2.18.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-02-22 21:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 12:48 [PATCH V1 vfio 0/5] Improve mlx5 driver to better handle some error cases Yishai Hadas
2024-02-05 12:48 ` [PATCH V1 vfio 1/5] net/mlx5: Add the IFC related bits for query tracker Yishai Hadas
2024-02-05 12:48 ` [PATCH V1 vfio 2/5] vfio/mlx5: Add support for tracker object change event Yishai Hadas
2024-02-05 12:48 ` [PATCH V1 vfio 3/5] vfio/mlx5: Handle the EREMOTEIO error upon the SAVE command Yishai Hadas
2024-02-05 12:48 ` [PATCH V1 vfio 4/5] vfio/mlx5: Block incremental query upon migf state error Yishai Hadas
2024-02-05 12:48 ` [PATCH V1 vfio 5/5] vfio/mlx5: Let firmware knows upon leaving PRE_COPY back to RUNNING Yishai Hadas
2024-02-06  7:35 ` [PATCH V1 vfio 0/5] Improve mlx5 driver to better handle some error cases Tian, Kevin
2024-02-06  8:06   ` Yishai Hadas
2024-02-08  8:16     ` Yishai Hadas
2024-02-21  7:45       ` Yishai Hadas
2024-02-22 18:04         ` Alex Williamson
2024-02-22 18:33           ` Leon Romanovsky
2024-02-22 21:37 ` Alex Williamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.