common/mlx5: enable opration in iova virtual address mode
Subsystems (3)
PATCH 1/1 common/mlx5: enable opration in iova virtual address mode
The ConnectX NIC series hardware provides the advanced internal MMU option and can operate directly ob virtual addresses, host software should not do any virtual-to-physical address translations. It means the mlx5 PMDs can operate in DPDK IOVA VA (virtual address) mode transparently.
To force IOVA VA mode the DPDK should be built with meson option:
enable_iova_as_pa=false
With this option only drivers supporting IOVA VA mode are enabled. This patch marks mlx5 drivers with require_iova_in_mbuf flag, thus allowing their compilation for IOVA VA mode.
--- drivers/common/mlx5/meson.build | 2 ++ drivers/compress/mlx5/meson.build | 2 ++ drivers/crypto/mlx5/meson.build | 2 ++ drivers/net/mlx5/meson.build | 2 ++ drivers/regex/mlx5/meson.build | 2 ++ 5 files changed, 10 insertions(+)
drivers/common/mlx5/meson.build +2 -0
@@ -42,6 +42,8 @@ else cflags += [ '-UPEDANTIC' ] endif +require_iova_in_mbuf = false + mlx5_config = configuration_data() subdir(exec_env) configure_file(output: 'mlx5_autoconf.h', configuration: mlx5_config)
drivers/compress/mlx5/meson.build +2 -0
@@ -28,3 +28,5 @@ foreach option:cflags_options cflags += option endif endforeach + +require_iova_in_mbuf = false
drivers/crypto/mlx5/meson.build +2 -0
@@ -30,3 +30,5 @@ foreach option:cflags_options cflags += option endif endforeach + +require_iova_in_mbuf = false
drivers/net/mlx5/meson.build +2 -0
@@ -77,6 +77,8 @@ else cflags += [ '-UPEDANTIC' ] endif +require_iova_in_mbuf = false + testpmd_sources += files('mlx5_testpmd.c') subdir(exec_env)
drivers/regex/mlx5/meson.build +2 -0
@@ -32,3 +32,5 @@ foreach option:cflags_options cflags += option endif endforeach + +require_iova_in_mbuf = false
Signature · 1 line
2.18.1
Quoted 11 lines
From: Viacheslav Ovsiienko [mailto:[email protected]]
Sent: Wednesday, 12 April 2023 14.53The ConnectX NIC series hardware provides the advanced internal MMU option and can operate directly ob virtual addresses, host software should not do any virtual-to-physical address translations. It means the mlx5 PMDs can operate in DPDK IOVA VA (virtual address) mode transparently.
To force IOVA VA mode the DPDK should be built with meson option:
Quoted 8 lines
enable_iova_as_pa=false
With this option only drivers supporting IOVA VA mode are enabled. This patch marks mlx5 drivers with
require_iova_in_mbufflag, thus allowing their compilation for IOVA VA mode.Signed-off-by Viacheslav Ovsiienko <[email protected]>---
Excellent.
PATCH v2 1/1 common/mlx5: enable operation in iova virtual address mode
In reply to Viacheslav OvsiienkoThe ConnectX NIC series hardware provides advanced internal MMU option and can operate directly over virtual addresses, the host software should not care about any virtual-to-physical address translations. It means the mlx5 PMDs can operate in DPDK IOVA VA (virtual address) mode transparently.
To force IOVA VA mode the DPDK should be built with meson option:
enable_iova_as_pa=false
With this option only drivers supporting IOVA VA mode are enabled. This patch marks mlx5 drivers with require_iova_in_mbuf flag false value, thus allowing their compilation for IOVA VA mode.
---
v1: http://patches.dpdk.org/project/dpdk/patch/[email protected]/
v2: fixed typos in commit message, reworded a little bit
--- drivers/common/mlx5/meson.build | 2 ++ drivers/compress/mlx5/meson.build | 2 ++ drivers/crypto/mlx5/meson.build | 2 ++ drivers/net/mlx5/meson.build | 2 ++ drivers/regex/mlx5/meson.build | 2 ++ 5 files changed, 10 insertions(+)
drivers/common/mlx5/meson.build +2 -0
@@ -42,6 +42,8 @@ else cflags += [ '-UPEDANTIC' ] endif +require_iova_in_mbuf = false + mlx5_config = configuration_data() subdir(exec_env) configure_file(output: 'mlx5_autoconf.h', configuration: mlx5_config)
drivers/compress/mlx5/meson.build +2 -0
@@ -28,3 +28,5 @@ foreach option:cflags_options cflags += option endif endforeach + +require_iova_in_mbuf = false
drivers/crypto/mlx5/meson.build +2 -0
@@ -30,3 +30,5 @@ foreach option:cflags_options cflags += option endif endforeach + +require_iova_in_mbuf = false
drivers/net/mlx5/meson.build +2 -0
@@ -77,6 +77,8 @@ else cflags += [ '-UPEDANTIC' ] endif +require_iova_in_mbuf = false + testpmd_sources += files('mlx5_testpmd.c') subdir(exec_env)
drivers/regex/mlx5/meson.build +2 -0
@@ -32,3 +32,5 @@ foreach option:cflags_options cflags += option endif endforeach + +require_iova_in_mbuf = false
Signature · 1 line
2.18.1
RE: [PATCH v2] common/mlx5: enable operation in iova virtual address mode
Quoted 11 lines
From: Viacheslav Ovsiienko [mailto:[email protected]]
Sent: Wednesday, 12 April 2023 19.07The ConnectX NIC series hardware provides advanced internal MMU option and can operate directly over virtual addresses, the host software should not care about any virtual-to-physical address translations. It means the mlx5 PMDs can operate in DPDK IOVA VA (virtual address) mode transparently.
To force IOVA VA mode the DPDK should be built with meson option:
Quoted 7 lines
enable_iova_as_pa=false
With this option only drivers supporting IOVA VA mode are enabled. This patch marks mlx5 drivers with
require_iova_in_mbufflag false value, thus allowing their compilation for IOVA VA mode.Signed-off-by Viacheslav Ovsiienko <[email protected]>
RE: [PATCH v2] common/mlx5: enable operation in iova virtual address mode
In reply to Viacheslav OvsiienkoHi,
Quoted 22 lines
-----Original Message-----
From: Slava Ovsiienko <[email protected]>
Sent: Wednesday, April 12, 2023 8:07 PM
To: [email protected]
Cc: Matan Azrad <[email protected]>; Raslan Darawsheh <[email protected]>; Ori Kam <[email protected]>
Subject: [PATCH v2] common/mlx5: enable operation in iova virtual address modeThe ConnectX NIC series hardware provides advanced internal MMU option and can operate directly over virtual addresses, the host software should not care about any virtual-to-physical address translations. It means the mlx5 PMDs can operate in DPDK IOVA VA (virtual address) mode transparently.
To force IOVA VA mode the DPDK should be built with meson option:
enable_iova_as_pa=false
With this option only drivers supporting IOVA VA mode are enabled. This patch marks mlx5 drivers with
require_iova_in_mbufflag false value, thus allowing their compilation for IOVA VA mode.
Quoted 6 lines
Signed-off-by Viacheslav Ovsiienko <[email protected]>---
v1: http://patches.dpdk.org/project/dpdk/patch/20230412125320.8585-1-
[email protected]/
v2: fixed typos in commit message, reworded a little bit
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh