DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] common/mlx5: enable opration in iova virtual address mode
@ 2023-04-12 12:53 Viacheslav Ovsiienko
  2023-04-12 13:25 ` Morten Brørup
  2023-04-12 17:07 ` [PATCH v2] common/mlx5: enable operation " Viacheslav Ovsiienko
  0 siblings, 2 replies; 5+ messages in thread
From: Viacheslav Ovsiienko @ 2023-04-12 12:53 UTC (permalink / raw)
  To: dev; +Cc: matan, rasland, orika

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.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
---
 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(+)

diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build
index 9dc809f192..26c6d80fe1 100644
--- a/drivers/common/mlx5/meson.build
+++ b/drivers/common/mlx5/meson.build
@@ -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)
diff --git a/drivers/compress/mlx5/meson.build b/drivers/compress/mlx5/meson.build
index c906f2d7a2..26a0e0cd09 100644
--- a/drivers/compress/mlx5/meson.build
+++ b/drivers/compress/mlx5/meson.build
@@ -28,3 +28,5 @@ foreach option:cflags_options
         cflags += option
     endif
 endforeach
+
+require_iova_in_mbuf = false
diff --git a/drivers/crypto/mlx5/meson.build b/drivers/crypto/mlx5/meson.build
index a830a4c7b9..a2691ec0f0 100644
--- a/drivers/crypto/mlx5/meson.build
+++ b/drivers/crypto/mlx5/meson.build
@@ -30,3 +30,5 @@ foreach option:cflags_options
         cflags += option
     endif
 endforeach
+
+require_iova_in_mbuf = false
diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build
index dba911693e..fde7241f7e 100644
--- a/drivers/net/mlx5/meson.build
+++ b/drivers/net/mlx5/meson.build
@@ -77,6 +77,8 @@ else
     cflags += [ '-UPEDANTIC' ]
 endif
 
+require_iova_in_mbuf = false
+
 testpmd_sources += files('mlx5_testpmd.c')
 
 subdir(exec_env)
diff --git a/drivers/regex/mlx5/meson.build b/drivers/regex/mlx5/meson.build
index 87404101b9..0f4ca46f44 100644
--- a/drivers/regex/mlx5/meson.build
+++ b/drivers/regex/mlx5/meson.build
@@ -32,3 +32,5 @@ foreach option:cflags_options
         cflags += option
     endif
 endforeach
+
+require_iova_in_mbuf = false
-- 
2.18.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] common/mlx5: enable opration in iova virtual address mode
  2023-04-12 12:53 [PATCH] common/mlx5: enable opration in iova virtual address mode Viacheslav Ovsiienko
@ 2023-04-12 13:25 ` Morten Brørup
  2023-04-12 17:07 ` [PATCH v2] common/mlx5: enable operation " Viacheslav Ovsiienko
  1 sibling, 0 replies; 5+ messages in thread
From: Morten Brørup @ 2023-04-12 13:25 UTC (permalink / raw)
  To: Viacheslav Ovsiienko, dev; +Cc: matan, rasland, orika

> From: Viacheslav Ovsiienko [mailto:viacheslavo@nvidia.com]
> Sent: Wednesday, 12 April 2023 14.53
> 
> 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.
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> ---

Excellent.

Acked-by: Morten Brørup <mb@smartsharesystems.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] common/mlx5: enable operation in iova virtual address mode
  2023-04-12 12:53 [PATCH] common/mlx5: enable opration in iova virtual address mode Viacheslav Ovsiienko
  2023-04-12 13:25 ` Morten Brørup
@ 2023-04-12 17:07 ` Viacheslav Ovsiienko
  2023-04-12 19:15   ` Morten Brørup
  2023-05-24 14:04   ` Raslan Darawsheh
  1 sibling, 2 replies; 5+ messages in thread
From: Viacheslav Ovsiienko @ 2023-04-12 17:07 UTC (permalink / raw)
  To: dev; +Cc: matan, rasland, orika

The 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.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

---
v1: http://patches.dpdk.org/project/dpdk/patch/20230412125320.8585-1-viacheslavo@nvidia.com/
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(+)

diff --git a/drivers/common/mlx5/meson.build b/drivers/common/mlx5/meson.build
index 9dc809f192..26c6d80fe1 100644
--- a/drivers/common/mlx5/meson.build
+++ b/drivers/common/mlx5/meson.build
@@ -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)
diff --git a/drivers/compress/mlx5/meson.build b/drivers/compress/mlx5/meson.build
index c906f2d7a2..26a0e0cd09 100644
--- a/drivers/compress/mlx5/meson.build
+++ b/drivers/compress/mlx5/meson.build
@@ -28,3 +28,5 @@ foreach option:cflags_options
         cflags += option
     endif
 endforeach
+
+require_iova_in_mbuf = false
diff --git a/drivers/crypto/mlx5/meson.build b/drivers/crypto/mlx5/meson.build
index a830a4c7b9..a2691ec0f0 100644
--- a/drivers/crypto/mlx5/meson.build
+++ b/drivers/crypto/mlx5/meson.build
@@ -30,3 +30,5 @@ foreach option:cflags_options
         cflags += option
     endif
 endforeach
+
+require_iova_in_mbuf = false
diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build
index dba911693e..fde7241f7e 100644
--- a/drivers/net/mlx5/meson.build
+++ b/drivers/net/mlx5/meson.build
@@ -77,6 +77,8 @@ else
     cflags += [ '-UPEDANTIC' ]
 endif
 
+require_iova_in_mbuf = false
+
 testpmd_sources += files('mlx5_testpmd.c')
 
 subdir(exec_env)
diff --git a/drivers/regex/mlx5/meson.build b/drivers/regex/mlx5/meson.build
index 87404101b9..0f4ca46f44 100644
--- a/drivers/regex/mlx5/meson.build
+++ b/drivers/regex/mlx5/meson.build
@@ -32,3 +32,5 @@ foreach option:cflags_options
         cflags += option
     endif
 endforeach
+
+require_iova_in_mbuf = false
-- 
2.18.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH v2] common/mlx5: enable operation in iova virtual address mode
  2023-04-12 17:07 ` [PATCH v2] common/mlx5: enable operation " Viacheslav Ovsiienko
@ 2023-04-12 19:15   ` Morten Brørup
  2023-05-24 14:04   ` Raslan Darawsheh
  1 sibling, 0 replies; 5+ messages in thread
From: Morten Brørup @ 2023-04-12 19:15 UTC (permalink / raw)
  To: Viacheslav Ovsiienko, dev; +Cc: matan, rasland, orika

> From: Viacheslav Ovsiienko [mailto:viacheslavo@nvidia.com]
> Sent: Wednesday, 12 April 2023 19.07
> 
> The 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.
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>

Acked-by: Morten Brørup <mb@smartsharesystems.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH v2] common/mlx5: enable operation in iova virtual address mode
  2023-04-12 17:07 ` [PATCH v2] common/mlx5: enable operation " Viacheslav Ovsiienko
  2023-04-12 19:15   ` Morten Brørup
@ 2023-05-24 14:04   ` Raslan Darawsheh
  1 sibling, 0 replies; 5+ messages in thread
From: Raslan Darawsheh @ 2023-05-24 14:04 UTC (permalink / raw)
  To: Slava Ovsiienko, dev; +Cc: Matan Azrad, Ori Kam

Hi,

> -----Original Message-----
> From: Slava Ovsiienko <viacheslavo@nvidia.com>
> Sent: Wednesday, April 12, 2023 8:07 PM
> To: dev@dpdk.org
> Cc: Matan Azrad <matan@nvidia.com>; Raslan Darawsheh
> <rasland@nvidia.com>; Ori Kam <orika@nvidia.com>
> Subject: [PATCH v2] common/mlx5: enable operation in iova virtual address
> mode
> 
> The 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.
> 
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> 
> ---
> v1: http://patches.dpdk.org/project/dpdk/patch/20230412125320.8585-1-
> viacheslavo@nvidia.com/
> v2: fixed typos in commit message, reworded a little bit

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-24 14:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12 12:53 [PATCH] common/mlx5: enable opration in iova virtual address mode Viacheslav Ovsiienko
2023-04-12 13:25 ` Morten Brørup
2023-04-12 17:07 ` [PATCH v2] common/mlx5: enable operation " Viacheslav Ovsiienko
2023-04-12 19:15   ` Morten Brørup
2023-05-24 14:04   ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).