lp:~kerneltoast/ubuntu/+source/linux/+git/xenial

Owned by Sultan Alsawaf
Get this repository:
git clone https://git.launchpad.net/~kerneltoast/ubuntu/+source/linux/+git/xenial
Only Sultan Alsawaf can upload to this repository. If you are Sultan Alsawaf please log in for upload directions.

Branches

Name Last Modified Last Commit
lp1874503 2020-06-04 21:18:05 UTC 2020-06-04
IB/mlx5: Test write combining support

Author: Michael Guralnik
Author Date: 2019-06-10 12:21:24 UTC

IB/mlx5: Test write combining support

BugLink: https://bugs.launchpad.net/bugs/1874503

Linux can run in all sorts of physical machines and VMs where write
combining may or may not be supported. Currently there is no way to
reliably tell if the system supports WC, or not. The driver uses WC to
optimize posting work to the HCA, and getting this wrong in either
direction can cause a significant performance loss.

Add a test in mlx5_ib initialization process to test whether
write-combining is supported on the machine. The test will run as part of
the enable_driver callback to ensure that the test runs after the device
is setup and can create and modify the QP needed, but runs before the
device is exposed to the users.

The test opens UD QP and posts NOP WQEs, the WQE written to the BlueFlame
is different from the WQE in memory, requesting CQE only on the BlueFlame
WQE. By checking whether we received a completion on one of these WQEs we
can know if BlueFlame succeeded and this write-combining must be
supported.

Change reporting of BlueFlame support to be dependent on write-combining
support instead of the FW's guess as to what the machine can do.

Link: https://lore.kernel.org/r/20191027062234.10993-1-leon@kernel.org
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
(backported from commit 11f552e21755cb6f804572243a1502b6bbd008dd)
Signed-off-by: Sultan Alsawaf <sultan.alsawaf@canonical.com>

11 of 1 result
This repository contains Public information 
Everyone can see this information.

Subscribers