]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa/mlx5: should not activate virtq object when suspended
authorSi-Wei Liu <si-wei.liu@oracle.com>
Wed, 15 Feb 2023 01:30:40 +0000 (17:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:43 +0000 (13:33 +0100)
commitaccbcc5c816fa5893108cef10ea6feddd2660f67
tree6340d489c38ee52151955c938837c2bd41fb19f4
parente3eb57f44070bd500579b8adf20070c4bc4d9944
vdpa/mlx5: should not activate virtq object when suspended

[ Upstream commit 8a1ca2ae0074bd037f5e2bae84b6f0ae5c18b209 ]

Otherwise the virtqueue object to instate could point to invalid address
that was unmapped from the MTT:

  mlx5_core 0000:41:04.2: mlx5_cmd_out_err:782:(pid 8321):
  CREATE_GENERAL_OBJECT(0xa00) op_mod(0xd) failed, status
  bad parameter(0x3), syndrome (0x5fa1c), err(-22)

Fixes: 3b75f588d29a ("vdpa/mlx5: Implement susupend virtqueue callback")
Cc: Eli Cohen <elic@nvidia.com>
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Message-Id: <1676424640-11673-1-git-send-email-si-wei.liu@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/vdpa/mlx5/core/mlx5_vdpa.h
drivers/vdpa/mlx5/net/mlx5_vnet.c