<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/vdpa/mlx5, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/vdpa/mlx5?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/vdpa/mlx5?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-09-27T22:32:45Z</updated>
<entry>
<title>vdpa/mlx5: Fix MQ to support non power of two num queues</title>
<updated>2022-09-27T22:32:45Z</updated>
<author>
<name>Eli Cohen</name>
<email>elic@nvidia.com</email>
</author>
<published>2022-09-12T12:50:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a43ae8057cc154fd26a3a23c0e8643bef104d995'/>
<id>urn:sha1:a43ae8057cc154fd26a3a23c0e8643bef104d995</id>
<content type='text'>
RQT objects require that a power of two value be configured for both
rqt_max_size and rqt_actual size.

For create_rqt, make sure to round up to the power of two the value of
given by the user who created the vdpa device and given by
ndev-&gt;rqt_size. The actual size is also rounded up to the power of two
using the current number of VQs given by ndev-&gt;cur_num_vqs.

Same goes with modify_rqt where we need to make sure act size is power
of two based on the new number of QPs.

Without this patch, attempt to create a device with non power of two QPs
would result in error from firmware.

Fixes: 52893733f2c5 ("vdpa/mlx5: Add multiqueue support")
Signed-off-by: Eli Cohen &lt;elic@nvidia.com&gt;
Message-Id: &lt;20220912125019.833708-1-elic@nvidia.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Fix possible uninitialized return value</title>
<updated>2022-08-11T14:00:36Z</updated>
<author>
<name>Eli Cohen</name>
<email>elic@nvidia.com</email>
</author>
<published>2022-08-11T13:40:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=93e530d2a1c4c0fcce45e01ae6c5c6287a08d3e3'/>
<id>urn:sha1:93e530d2a1c4c0fcce45e01ae6c5c6287a08d3e3</id>
<content type='text'>
Initialize err local variable to return -EAGAIN if the asid cannot be
found thus avoiding returning uninitialized value.

Fixes: 8fcd20c30704 ("vdpa/mlx5: Support different address spaces for control and data")
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Eli Cohen &lt;elic@nvidia.com&gt;
Message-Id: &lt;20220811134010.952291-1-elic@nvidia.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Support different address spaces for control and data</title>
<updated>2022-08-11T08:26:08Z</updated>
<author>
<name>Eli Cohen</name>
<email>elic@nvidia.com</email>
</author>
<published>2022-07-14T11:39:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=8fcd20c307042b0bb4fd3aee7fc23c94080306ad'/>
<id>urn:sha1:8fcd20c307042b0bb4fd3aee7fc23c94080306ad</id>
<content type='text'>
Partition virtqueues to two different address spaces: one for control
virtqueue which is implemented in software, and one for data virtqueues.

Based-on: &lt;20220526124338.36247-1-eperezma@redhat.com&gt;
Signed-off-by: Eli Cohen &lt;elic@nvidia.com&gt;
Message-Id: &lt;20220714113927.85729-3-elic@nvidia.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Implement susupend virtqueue callback</title>
<updated>2022-08-11T08:26:08Z</updated>
<author>
<name>Eli Cohen</name>
<email>elic@nvidia.com</email>
</author>
<published>2022-07-14T11:39:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=cae15c2ed8e6e058bd5e32de292ab7982640161e'/>
<id>urn:sha1:cae15c2ed8e6e058bd5e32de292ab7982640161e</id>
<content type='text'>
Implement the suspend callback allowing to suspend the virtqueues so
they stop processing descriptors. This is required to allow to query a
consistent state of the virtqueue while live migration is taking place.

Signed-off-by: Eli Cohen &lt;elic@nvidia.com&gt;
Message-Id: &lt;20220714113927.85729-2-elic@nvidia.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Use eth_broadcast_addr() to assign broadcast address</title>
<updated>2022-08-11T08:26:07Z</updated>
<author>
<name>Xu Qiang</name>
<email>xuqiang36@huawei.com</email>
</author>
<published>2022-07-04T02:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=71aa95a69c765bd0ec1c6d9d6263e6fefa1f5072'/>
<id>urn:sha1:71aa95a69c765bd0ec1c6d9d6263e6fefa1f5072</id>
<content type='text'>
Using eth_broadcast_addr() to assign broadcast address instead
of memset().

Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Xu Qiang &lt;xuqiang36@huawei.com&gt;
Message-Id: &lt;20220704021405.64545-1-xuqiang36@huawei.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Initialize CVQ vringh only once</title>
<updated>2022-06-24T06:49:47Z</updated>
<author>
<name>Eli Cohen</name>
<email>elic@nvidia.com</email>
</author>
<published>2022-06-13T07:59:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ace9252446ec615cd79a5f77d90edb25c0b9d024'/>
<id>urn:sha1:ace9252446ec615cd79a5f77d90edb25c0b9d024</id>
<content type='text'>
Currently, CVQ vringh is initialized inside setup_virtqueues() which is
called every time a memory update is done. This is undesirable since it
resets all the context of the vring, including the available and used
indices.

Move the initialization to mlx5_vdpa_set_status() when
VIRTIO_CONFIG_S_DRIVER_OK is set.

Signed-off-by: Eli Cohen &lt;elic@nvidia.com&gt;
Message-Id: &lt;20220613075958.511064-2-elic@nvidia.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;
Acked-by: Eugenio Pérez &lt;eperezma@redhat.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Update Control VQ callback information</title>
<updated>2022-06-24T06:49:47Z</updated>
<author>
<name>Eli Cohen</name>
<email>elic@nvidia.com</email>
</author>
<published>2022-06-13T07:59:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=40f2f3e94178d45e4ee6078effba2dfc76f6f5ba'/>
<id>urn:sha1:40f2f3e94178d45e4ee6078effba2dfc76f6f5ba</id>
<content type='text'>
The control VQ specific information is stored in the dedicated struct
mlx5_control_vq. When the callback is updated through
mlx5_vdpa_set_vq_cb(), make sure to update the control VQ struct.

Fixes: 5262912ef3cf ("vdpa/mlx5: Add support for control VQ and MAC setting")
Signed-off-by: Eli Cohen &lt;elic@nvidia.com&gt;
Message-Id: &lt;20220613075958.511064-1-elic@nvidia.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Jason Wang &lt;jasowang@redhat.com)
</content>
</entry>
<entry>
<title>vdpa/mlx5: clean up indenting in handle_ctrl_vlan()</title>
<updated>2022-06-08T12:56:03Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2022-06-07T06:50:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=f38b3c6a788f75da151b46c7da61ff26649e1843'/>
<id>urn:sha1:f38b3c6a788f75da151b46c7da61ff26649e1843</id>
<content type='text'>
These lines were supposed to be indented.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Message-Id: &lt;Yp71IYMP+QfuCJ8t@kili&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Eli Cohen &lt;elic@nvidia.com&gt;
Acked-by: Si-Wei Liu &lt;si-wei.liu@oracle.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: fix error code for deleting vlan</title>
<updated>2022-06-08T12:56:03Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2022-06-07T06:49:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=f766c409fcb33cfd0f511e8251831520e089eb89'/>
<id>urn:sha1:f766c409fcb33cfd0f511e8251831520e089eb89</id>
<content type='text'>
Return success if we were able to delete a vlan.  The current code
always returns failure.

Fixes: baf2ad3f6a98 ("vdpa/mlx5: Add RX MAC VLAN filter support")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Message-Id: &lt;Yp709f1g9NcMBCHg@kili&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Eli Cohen &lt;elic@nvidia.com&gt;
Acked-by: Si-Wei Liu &lt;si-wei.liu@oracle.com&gt;
</content>
</entry>
<entry>
<title>vdpa/mlx5: Fix syntax errors in comments</title>
<updated>2022-06-08T12:56:03Z</updated>
<author>
<name>Xiang wangx</name>
<email>wangxiang@cdjrlc.com</email>
</author>
<published>2022-06-04T14:38:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2f72b2262d317093596c72bd5b27b9880be7611e'/>
<id>urn:sha1:2f72b2262d317093596c72bd5b27b9880be7611e</id>
<content type='text'>
Delete the redundant word 'is'.

Signed-off-by: Xiang wangx &lt;wangxiang@cdjrlc.com&gt;
Message-Id: &lt;20220604143858.16073-1-wangxiang@cdjrlc.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Jason Wang &lt;jasowang@redhat.com&gt;
</content>
</entry>
</feed>
