aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes
diff options
context:
space:
mode:
authorGuy Levi <guyle@mellanox.com>2016-04-27 16:49:50 +0300
committerDoug Ledford <dledford@redhat.com>2016-05-13 19:40:03 -0400
commit37aa5c36aa70c9fc5f633b89cce990f04aaa3cd4 (patch)
tree92fd915425ba4a3979a8a4cd86804ed0e6ba443a /drivers/infiniband/hw/nes
parentIB/mlx5: Allow mapping the free running counter on PROT_EXEC (diff)
downloadlinux-dev-37aa5c36aa70c9fc5f633b89cce990f04aaa3cd4.tar.xz
linux-dev-37aa5c36aa70c9fc5f633b89cce990f04aaa3cd4.zip
IB/mlx5: Add UARs write-combining and non-cached mapping
By this patch, the user space library will be able to improve performance using appropriate ringing DoorBell method according to the memory type it asked for. Currently only one mapping command is allowed for UARs: MLX5_IB_MMAP_REGULAR_PAGE. Using this mapping, the kernel maps the UARs to write-combining (WC) if the system supports it. If the system is not supporting WC the UARs are mapped to non-cached(NC). In this case the user space library can't tell which mapping is applied. This patch adds 2 new mapping commands: MLX5_IB_MMAP_WC_PAGE and MLX5_IB_MMAP_NC_PAGE. For these commands the kernel maps exactly as requested and fails if it can't. Since there is no generic way to check if the requested memory region can be mapped as WC, driver enables conclusive WC mapping only for x86, PowerPC and ARM which support WC for the device's memory region. Signed-off-by: Guy Levy <guyle@mellanox.com> Signed-off-by: Moshe Lazer <moshel@mellanox.com> Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/nes')
0 files changed, 0 insertions, 0 deletions