[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230206122016.1149373-1-elic@nvidia.com>
Date: Mon, 6 Feb 2023 14:20:16 +0200
From: Eli Cohen <elic@...dia.com>
To: <mst@...hat.com>, <jasowang@...hat.com>, <si-wei.liu@...cle.com>,
<eperezma@...hat.com>, <virtualization@...ts.linux-foundation.org>,
<linux-kernel@...r.kernel.org>
CC: Eli Cohen <elic@...dia.com>
Subject: [PATCH 2/2] vdpa/mlx5: Initialize CVQ iotlb spinlock
Initialize itolb spinlock.
Fixes: 5262912ef3cf ("vdpa/mlx5: Add support for control VQ and MAC setting")
Signed-off-by: Eli Cohen <elic@...dia.com>
---
drivers/vdpa/mlx5/core/resources.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/vdpa/mlx5/core/resources.c b/drivers/vdpa/mlx5/core/resources.c
index 45ad41287a31..d5a59c9035fb 100644
--- a/drivers/vdpa/mlx5/core/resources.c
+++ b/drivers/vdpa/mlx5/core/resources.c
@@ -233,6 +233,7 @@ static int init_ctrl_vq(struct mlx5_vdpa_dev *mvdev)
if (!mvdev->cvq.iotlb)
return -ENOMEM;
+ spin_lock_init(&mvdev->cvq.iommu_lock);
vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock);
return 0;
--
2.38.1
Powered by blists - more mailing lists