Skip to contentSkip to conversation

common/octeontx: enable build only on 64bit Linux

PATCH In review [email protected] 9 participants 45 messages Feb 25, 2021 – Oct 18, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/7 common/octeontx: enable build only on 64bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/common/octeontx/meson.build  | 6 ++++++
 drivers/common/octeontx2/meson.build | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
drivers/common/octeontx/meson.build +6 -0
index 203d1ef49..f29b58320 100644
@@ -2,4 +2,10 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('octeontx_mbox.c')
drivers/common/octeontx2/meson.build +2 -2
index 84fb11524..3ae106792 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/7 mempool/octeontx: enable build only on 64bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/mempool/octeontx2/meson.build | 9 ++-------
 2 files changed, 5 insertions(+), 9 deletions(-)
drivers/mempool/octeontx/meson.build +3 -2
index b5695a932..4607dfe23 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
 endif
 
 sources = files('octeontx_fpavf.c',
drivers/mempool/octeontx2/meson.build +2 -7
index 0586321ab..c67d8e2d2 100644
@@ -2,14 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
-	subdir_done()
-endif
-if not dpdk_conf.get('RTE_ARCH_64')
-	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/7 net/octeontx: enable build only on 64bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/net/octeontx/meson.build  |  4 ++--
 drivers/net/octeontx2/meson.build | 10 ++--------
 drivers/net/thunderx/meson.build  |  4 ++--
 3 files changed, 6 insertions(+), 12 deletions(-)
drivers/net/octeontx/meson.build +2 -2
index 4e784b948..a0d0fb80e 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
drivers/net/octeontx2/meson.build +2 -8
index e2c139a8b..6f639fa7e 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
-	subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
drivers/net/thunderx/meson.build +2 -2
index dad5c5924..97a84d587 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
Signature · 1 line
2.17.1
#3 lore raw

PATCH 4/7 crypto/octeontx: enable build only on 64bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/crypto/octeontx/meson.build | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/crypto/octeontx/meson.build +5 -2
index a353d37a1..2e5838641 100644
@@ -1,8 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
-if not is_linux
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'only supported on Linux'
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
 endif
 
 deps += ['bus_pci']
Signature · 1 line
2.17.1
#4 lore raw

PATCH 5/7 event/octeontx: enable build only on 64bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/event/octeontx/meson.build  | 6 ++++++
 drivers/event/octeontx2/meson.build | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
drivers/event/octeontx/meson.build +6 -0
index 41e367684..0e3b61044 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+        build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('ssovf_worker.c',
 		'ssovf_evdev.c',
 		'ssovf_evdev_selftest.c',
drivers/event/octeontx2/meson.build +2 -2
index 22e7e4cb6..c81950cef 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
Signature · 1 line
2.17.1
#5 lore raw

PATCH 6/7 raw/octeontx2: enable build only for 64bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/raw/octeontx2_dma/meson.build +6 -4
index 11f74680a..191035125 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-	extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
 	if cc.has_argument(flag)
Signature · 1 line
2.17.1
Acked-by Radha Mohan Chintakuntla on v1 6/7
#6 lore raw

Re: [dpdk-dev] [PATCH 6/7] raw/octeontx2: enable build only for 64bit Linux

Quoted 36 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/raw/octeontx2_dma/meson.build +6 -5
index 11f74680a..191035125 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+       build = false
+       reason = 'only supported on 64-bit Linux'
+       subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-       extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
        if cc.has_argument(flag)
--
Quoted 2 lines

2.17.1

#7 lore raw

PATCH 7/7 compress/octeontx: enable build only for 64bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/compress/octeontx/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed42..cd8687fde 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
Signature · 1 line
2.17.1
Acked-by on v1 7/7
#8 lore raw

Re: [dpdk-dev] [PATCH 7/7] compress/octeontx: enable build only for 64bit Linux

Quoted 35 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Thursday, February 25, 2021 10:33 PM
To: Jerin Jacob Kollanukkaran <[email protected]>; Ashish Gupta <[email protected]>; Fiona Trahe <[email protected]>
Cc: [email protected]; Pavan Nikhilesh Bhagavatula <[email protected]>
Subject: [dpdk-dev] [PATCH 7/7] compress/octeontx: enable build only for 64bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

---
 drivers/compress/octeontx/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed42..cd8687fde 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause  # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')  includes +=
Quoted 3 lines

include_directories('include') deps += ['mempool_octeontx', 'bus_pci'] --
2.17.1

#9 lore raw
In reply to [email protected]
Quoted 6 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

Quoted 39 lines
---
 drivers/common/octeontx/meson.build  | 6 ++++++
 drivers/common/octeontx2/meson.build | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)
drivers/common/octeontx/meson.build +6 -0
index 203d1ef49..f29b58320 100644
@@ -2,4 +2,10 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+       build = false
+       reason = 'only supported on 64-bit Linux'
+       subdir_done()
+endif
+
 sources = files('octeontx_mbox.c')
drivers/common/octeontx2/meson.build +2 -3
index 84fb11524..3ae106792 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
        build = false
-       reason = 'only supported on 64-bit'
+       reason = 'only supported on 64-bit Linux'
        subdir_done()
 endif
 
--

2.17.1

#10 lore raw

24/03/2021 11:55, Jerin Jacob:

Quoted 10 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

#11 lore raw

25/03/2021 11:42, Thomas Monjalon:

Quoted 15 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

Quoted 5 lines

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

#12 lore raw
Quoted 20 lines · Thomas Monjalon

25/03/2021 11:42, Thomas Monjalon:

Quoted 19 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

Quoted 8 lines
Quoted 1 line

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

#13 lore raw

25/03/2021 11:58, Kinsella, Ray:

Quoted 29 lines · Thomas Monjalon
Quoted 20 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 19 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

Quoted 8 lines
Quoted 1 line

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

#14 lore raw
Quoted 31 lines · Thomas Monjalon

25/03/2021 11:58, Kinsella, Ray:

Quoted 29 lines · Thomas Monjalon
Quoted 28 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 15 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

Quoted 5 lines

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

Quoted 7 lines
Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

@Ray Kinsella @Thomas Monjalon @McDaniel, Timothy @David Marchand @Neil Horman

Currently, I merged DLB v1 driver removal patch to next-eventdev. Is this ABI breakge[1]?

http://patches.dpdk.org/project/dpdk/patch/[email protected]/

[1]
From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

#15 lore raw
Quoted 47 lines · Jerin Jacob
Quoted 31 lines · Thomas Monjalon

25/03/2021 11:58, Kinsella, Ray:

Quoted 29 lines · Thomas Monjalon
Quoted 28 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 15 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

Quoted 5 lines

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

Quoted 7 lines
Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

@Ray Kinsella @Thomas Monjalon @McDaniel, Timothy @David Marchand @Neil Horman

Currently, I merged DLB v1 driver removal patch to next-eventdev. Is this ABI breakge[1]?

Quoted 7 lines

http://patches.dpdk.org/project/dpdk/patch/[email protected]/

[1]
From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

+1

#16 lore raw
Quoted 53 lines · Ray
Quoted 49 lines · Jerin Jacob
Quoted 31 lines · Thomas Monjalon

25/03/2021 11:58, Kinsella, Ray:

Quoted 29 lines · Thomas Monjalon
Quoted 28 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 15 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

Quoted 5 lines

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

Quoted 7 lines
Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

@Ray Kinsella @Thomas Monjalon @McDaniel, Timothy @David Marchand @Neil Horman

Currently, I merged DLB v1 driver removal patch to next-eventdev. Is this ABI breakge[1]?

http://patches.dpdk.org/project/dpdk/patch/[email protected]/

Quoted 7 lines
Quoted 5 lines

[1]
From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

+1

Is +1 for not to remove the dlb driver or remove it?

#17 lore raw
Quoted 60 lines · Jerin Jacob
Quoted 59 lines · Ray
Quoted 54 lines · Jerin Jacob
Quoted 31 lines · Thomas Monjalon

25/03/2021 11:58, Kinsella, Ray:

Quoted 29 lines · Thomas Monjalon
Quoted 28 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 15 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

Quoted 5 lines

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

Quoted 7 lines
Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

@Ray Kinsella @Thomas Monjalon @McDaniel, Timothy @David Marchand @Neil Horman

Currently, I merged DLB v1 driver removal patch to next-eventdev. Is this ABI breakge[1]?

http://patches.dpdk.org/project/dpdk/patch/[email protected]/

[1]
From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

Quoted 4 lines
Quoted 1 line

+1

Is +1 for not to remove the dlb driver or remove it?

You'll note the original reply pointing at the ABI Policy was from myself. So I would be in favor of retention until 21.11.

Thats said...

We should think about making the rules less strict for 32bit in future, from 21.11 onwards perhaps. How many OS Vendors are shipping 32bit OSs these days for example?

#18 lore raw
Quoted 69 lines · Ray
Quoted 60 lines · Jerin Jacob
Quoted 59 lines · Ray
Quoted 54 lines · Jerin Jacob
Quoted 31 lines · Thomas Monjalon

25/03/2021 11:58, Kinsella, Ray:

Quoted 29 lines · Thomas Monjalon
Quoted 28 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 15 lines

24/03/2021 11:55, Jerin Jacob:

Quoted 9 lines · On Thu, Feb 25, 2021 at 10:33 PM <[email protected]> wrote:
Quoted 6 lines

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64bit Linux.

Series Acked-by: Jerin Jacob <[email protected]>

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

Quoted 5 lines

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

Quoted 7 lines
Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

@Ray Kinsella @Thomas Monjalon @McDaniel, Timothy @David Marchand @Neil Horman

Currently, I merged DLB v1 driver removal patch to next-eventdev. Is this ABI breakge[1]?

http://patches.dpdk.org/project/dpdk/patch/[email protected]/

[1]
From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

Quoted 4 lines
Quoted 1 line

+1

Is +1 for not to remove the dlb driver or remove it?

Quoted 7 lines

You'll note the original reply pointing at the ABI Policy was from myself. So I would be in favor of retention until 21.11.

Thats said...

We should think about making the rules less strict for 32bit in future, from 21.11 onwards perhaps. How many OS Vendors are shipping 32bit OSs these days for example?

Agree on 32bit.

The DLB driver removal patch from @McDaniel, Timothy
http://patches.dpdk.org/project/dpdk/patch/[email protected]/
is deleting the complete driver. So it does not look like it is updating the minimum HW requirements
as mentioned in the policy.

So IMO, it is OK to accept his patch for 21.05(ie. remove the driver). Let me know if there is any objection on this?

#19 lore raw
In reply to Jerin Jacob

25/03/2021 13:46, Jerin Jacob:

Quoted 22 lines · Thomas Monjalon
Quoted 21 lines

25/03/2021 11:58, Kinsella, Ray:

Quoted 20 lines · Thomas Monjalon
Quoted 9 lines

25/03/2021 11:42, Thomas Monjalon:

Quoted 8 lines

I've reorganized the commits per family of drivers, so it makes more sense than grouping per driver class with "common/octeontx" for title for all:

net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

Quoted 8 lines
Quoted 1 line

and applied.

Actually not applied yet.
I'm not sure what to do for the ABI check which is broken because some drivers are not compiled anymore in 32-bit build. I've workarounded locally by removing the dump files in the reference build. Should we add an exception in libabigail.abignore?

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

The v2 is waiting in patchwork with the status "Deferred":
https://patches.dpdk.org/project/dpdk/list/?series=15885&state=*

#20 lore raw
Quoted 5 lines · Thomas Monjalon
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

In the past we said that depreciating HW support would be considered to be same as an ABI Breakage.

From the policy ...
"Updates to the minimum hardware requirements, which drop support for hardware which was previously supported, should be treated as an ABI change."

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

So the patches should wait 21.11.
Everybody agree?

Looks good to me to postpone.

The v2 is waiting in patchwork with the status "Deferred":
https://patches.dpdk.org/project/dpdk/list/?series=15885&state=*

We need a deprecation notice.

Signature · 1 line
David Marchand
#21 lore raw

v2 cover octeontx build only on 64-bit Linux

In reply to [email protected]

This is a reorg of the patches from Pavan.
It has been discussed that it should wait for DPDK 21.11 for ABI compatibility reason.

Pavan Nikhilesh (3):
net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

 drivers/common/octeontx/meson.build   |  6 ++++++
 drivers/common/octeontx2/meson.build  |  4 ++--
 drivers/compress/octeontx/meson.build |  6 ++++++
 drivers/crypto/octeontx/meson.build   |  7 +++++--
 drivers/event/octeontx/meson.build    |  6 ++++++
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx/meson.build  |  5 +++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx/meson.build      |  4 ++--
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/net/thunderx/meson.build      |  4 ++--
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 12 files changed, 44 insertions(+), 31 deletions(-)
Signature · 1 line
2.30.1
#22 lore raw

PATCH v2 1/3 net/thunderx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

---
 drivers/net/thunderx/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -2
index dad5c59242..97a84d5875 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
Signature · 1 line
2.30.1
#23 lore raw

PATCH v3 1/3 net/thunderx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

---
 drivers/net/thunderx/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -2
index 4bbcea7f93..da665bd76f 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
Signature · 1 line
2.17.1
#24 lore raw

PATCH v3 2/3 common/octeontx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx/meson.build   | 4 ++--
 drivers/compress/octeontx/meson.build | 6 ++++++
 drivers/crypto/octeontx/meson.build   | 7 +++++++
 drivers/event/octeontx/meson.build    | 6 ++++++
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/net/octeontx/meson.build      | 4 ++--
 6 files changed, 26 insertions(+), 6 deletions(-)
drivers/common/octeontx/meson.build +2 -2
index fcda0f6445..dc060dfea1 100644
@@ -2,9 +2,9 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed422..cd8687fde3 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
drivers/crypto/octeontx/meson.build +7 -0
index 244b16230e..bc6187e1cf 100644
@@ -1,5 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
 
 deps += ['bus_pci']
 deps += ['bus_vdev']
drivers/event/octeontx/meson.build +6 -0
index 0d9eec3f2e..eb17e059d8 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 sources = files(
         'ssovf_worker.c',
         'ssovf_evdev.c',
drivers/mempool/octeontx/meson.build +3 -2
index a57213e2d8..fb05928129 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
 endif
 
 sources = files(
drivers/net/octeontx/meson.build +2 -2
index 84cd4e1142..a5a6c9661c 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
Signature · 1 line
2.17.1
#25 lore raw

PATCH v3 3/3 common/octeontx2: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx2/meson.build  | 10 ++--------
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 5 files changed, 14 insertions(+), 29 deletions(-)
drivers/common/octeontx2/meson.build +2 -8
index dcfaa1e102..223ba5ef51 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/event/octeontx2/meson.build +2 -2
index 96ebb1f2e7..ce360af5f8 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/mempool/octeontx2/meson.build +2 -7
index 2a1dfddd4c..a4bea6d364 100644
@@ -2,14 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/net/octeontx2/meson.build +2 -8
index a355313120..ab15844cbc 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/raw/octeontx2_dma/meson.build +6 -4
index e744fccaae..6460bd8242 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-    extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
     if cc.has_argument(flag)
Signature · 1 line
2.17.1
#26 lore raw

Re: [dpdk-dev] [PATCH v3 1/3] net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]
Quoted 6 lines · On 8/23/2021 8:54 PM, [email protected] wrote:

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

patches looks good, but can you please add more details related to the dependency in the commit log?

#27 lore raw

PATCH v4 1/3 net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin fuction) driver dependency, only enable build for 64-bit Linux.

---
v4 Changes:
- Update commit message regarding dependency on AF driver.

 drivers/net/thunderx/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -2
index 4bbcea7f93..da665bd76f 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 

--
2.17.1

#28 lore raw

PATCH v4 2/3 common/octeontx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin fuction) driver dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx/meson.build   | 4 ++--
 drivers/compress/octeontx/meson.build | 6 ++++++
 drivers/crypto/octeontx/meson.build   | 7 +++++++
 drivers/event/octeontx/meson.build    | 6 ++++++
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/net/octeontx/meson.build      | 4 ++--
 6 files changed, 26 insertions(+), 6 deletions(-)
drivers/common/octeontx/meson.build +2 -2
index fcda0f6445..dc060dfea1 100644
@@ -2,9 +2,9 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed422..cd8687fde3 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
drivers/crypto/octeontx/meson.build +7 -0
index 244b16230e..bc6187e1cf 100644
@@ -1,5 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
 
 deps += ['bus_pci']
 deps += ['bus_vdev']
drivers/event/octeontx/meson.build +6 -0
index 0d9eec3f2e..eb17e059d8 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 sources = files(
         'ssovf_worker.c',
         'ssovf_evdev.c',
drivers/mempool/octeontx/meson.build +3 -2
index a57213e2d8..fb05928129 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
 endif
 
 sources = files(
drivers/net/octeontx/meson.build +2 -2
index 84cd4e1142..a5a6c9661c 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
Signature · 1 line
2.17.1
#29 lore raw

PATCH v4 3/3 common/octeontx2: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin Fuction) driver dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx2/meson.build  | 10 ++--------
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 5 files changed, 14 insertions(+), 29 deletions(-)
drivers/common/octeontx2/meson.build +2 -8
index dcfaa1e102..223ba5ef51 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/event/octeontx2/meson.build +2 -2
index 96ebb1f2e7..ce360af5f8 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/mempool/octeontx2/meson.build +2 -7
index 2a1dfddd4c..a4bea6d364 100644
@@ -2,14 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/net/octeontx2/meson.build +2 -8
index a355313120..ab15844cbc 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/raw/octeontx2_dma/meson.build +6 -4
index e744fccaae..6460bd8242 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-    extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
     if cc.has_argument(flag)
Signature · 1 line
2.17.1
#30 lore raw

PATCH v5 1/3 net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin function) driver dependency, only enable build for 64-bit Linux.

---
v5 Changes
- s/fuction/function.

v4 Changes:
- Update commit message regarding dependency on AF driver.

 drivers/net/thunderx/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -2
index 4bbcea7f93..da665bd76f 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 

--
2.17.1

#31 lore raw

PATCH v5 2/3 common/octeontx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin function) driver dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx/meson.build   | 4 ++--
 drivers/compress/octeontx/meson.build | 6 ++++++
 drivers/crypto/octeontx/meson.build   | 7 +++++++
 drivers/event/octeontx/meson.build    | 6 ++++++
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/net/octeontx/meson.build      | 4 ++--
 6 files changed, 26 insertions(+), 6 deletions(-)
drivers/common/octeontx/meson.build +2 -2
index fcda0f6445..dc060dfea1 100644
@@ -2,9 +2,9 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed422..cd8687fde3 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
drivers/crypto/octeontx/meson.build +7 -0
index 244b16230e..bc6187e1cf 100644
@@ -1,5 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
 
 deps += ['bus_pci']
 deps += ['bus_vdev']
drivers/event/octeontx/meson.build +6 -0
index 0d9eec3f2e..eb17e059d8 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 sources = files(
         'ssovf_worker.c',
         'ssovf_evdev.c',
drivers/mempool/octeontx/meson.build +3 -2
index a57213e2d8..fb05928129 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
 endif
 
 sources = files(
drivers/net/octeontx/meson.build +2 -2
index 84cd4e1142..a5a6c9661c 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 

--
2.17.1

#32 lore raw

PATCH v5 3/3 common/octeontx2: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin Function) driver dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx2/meson.build  | 10 ++--------
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 5 files changed, 14 insertions(+), 29 deletions(-)
drivers/common/octeontx2/meson.build +2 -8
index dcfaa1e102..223ba5ef51 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/event/octeontx2/meson.build +2 -2
index 96ebb1f2e7..ce360af5f8 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/mempool/octeontx2/meson.build +2 -7
index 2a1dfddd4c..a4bea6d364 100644
@@ -2,14 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/net/octeontx2/meson.build +2 -8
index a355313120..ab15844cbc 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/raw/octeontx2_dma/meson.build +6 -4
index e744fccaae..6460bd8242 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-    extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
     if cc.has_argument(flag)

--
2.17.1

#33 lore raw

Re: [dpdk-dev] [PATCH v5 1/3] net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]
Quoted 5 lines · On 10/4/2021 6:56 AM, [email protected] wrote:

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel AF(Admin function) driver dependency, only enable build for 64-bit Linux.

Hi Pavan,

Isn't it possible to provide a commit log in the kernel side etc, that let others to verify why only 64 bit is required, or if someone want to support 32bit that may help them to investigate the source of the restriction.

Quoted 31 lines

---
v5 Changes
- s/fuction/function.

v4 Changes:
- Update commit message regarding dependency on AF driver.

 drivers/net/thunderx/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -3
index 4bbcea7f93..da665bd76f 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
--

2.17.1

#34 lore raw

PATCH v6 1/3 net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on thunderx family, only enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only enable build for Linux.

---
v6 Changes:
- Update commit log to describe why 32bit is not supported. v5 Changes:
- s/fuction/function.
v4 Changes:
- Update commit message regarding dependency on AF driver.

 drivers/net/thunderx/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -2
index 4bbcea7f93..da665bd76f 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 

--
2.17.1

#35 lore raw

PATCH v6 2/3 common/octeontx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on octeontx family, only enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx/meson.build   | 4 ++--
 drivers/compress/octeontx/meson.build | 6 ++++++
 drivers/crypto/octeontx/meson.build   | 7 +++++++
 drivers/event/octeontx/meson.build    | 6 ++++++
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/net/octeontx/meson.build      | 4 ++--
 6 files changed, 26 insertions(+), 6 deletions(-)
drivers/common/octeontx/meson.build +2 -2
index fcda0f6445..dc060dfea1 100644
@@ -2,9 +2,9 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed422..cd8687fde3 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
drivers/crypto/octeontx/meson.build +7 -0
index 244b16230e..bc6187e1cf 100644
@@ -1,5 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
 
 deps += ['bus_pci']
 deps += ['bus_vdev']
drivers/event/octeontx/meson.build +6 -0
index 0d9eec3f2e..eb17e059d8 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 sources = files(
         'ssovf_worker.c',
         'ssovf_evdev.c',
drivers/mempool/octeontx/meson.build +3 -2
index a57213e2d8..fb05928129 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
 endif
 
 sources = files(
drivers/net/octeontx/meson.build +2 -2
index 84cd4e1142..a5a6c9661c 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
Signature · 1 line
2.17.1
Acked-by on v6 2/3
#36 lore raw

Re: [dpdk-dev] [PATCH v6 2/3] common/octeontx: enable build only on 64-bit Linux

Quoted 16 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, October 15, 2021 1:27 AM
To: [email protected]; Jerin Jacob Kollanukkaran <[email protected]>; Harman Kalra <[email protected]>; Ashish Gupta <[email protected]>; Fiona Trahe <[email protected]>; Anoob Joseph <[email protected]>
Cc: [email protected]; Pavan Nikhilesh Bhagavatula <[email protected]>
Subject: [dpdk-dev] [PATCH v6 2/3] common/octeontx: enable build only on 64-bit Linux

From: Pavan Nikhilesh <[email protected]>

Quoted 8 lines

Since AARCH32 extension is not implemented on octeontx family, only enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only enable build for 64-bit Linux.

---

Thanks
Harman

Quoted 110 lines
 drivers/common/octeontx/meson.build   | 4 ++--
 drivers/compress/octeontx/meson.build | 6 ++++++
 drivers/crypto/octeontx/meson.build   | 7 +++++++
 drivers/event/octeontx/meson.build    | 6 ++++++
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/net/octeontx/meson.build      | 4 ++--
 6 files changed, 26 insertions(+), 6 deletions(-)
drivers/common/octeontx/meson.build +2 -2
index fcda0f6445..dc060dfea1 100644
@@ -2,9 +2,9 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed422..cd8687fde3 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause  # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')  includes +=

include_directories('include') deps += ['mempool_octeontx', 'bus_pci'] diff -- git a/drivers/crypto/octeontx/meson.build b/drivers/crypto/octeontx/meson.build
index 244b16230e..bc6187e1cf 100644

drivers/crypto/octeontx/meson.build +7 -0
@@ -1,5 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause  # Copyright(c) 2018 Cavium, Inc
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
 
 deps += ['bus_pci']
 deps += ['bus_vdev']
drivers/event/octeontx/meson.build +6 -0
index 0d9eec3f2e..eb17e059d8 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause  # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 sources = files(
         'ssovf_worker.c',
         'ssovf_evdev.c',
drivers/mempool/octeontx/meson.build +3 -2
index a57213e2d8..fb05928129 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause  # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
 endif
 
 sources = files(
drivers/net/octeontx/meson.build +2 -3
index 84cd4e1142..a5a6c9661c 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause  # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
--

2.17.1

#37 lore raw

PATCH v6 3/3 common/octeontx2: enable build only on 64-bit Linux

In reply to [email protected]

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on octeontx2 family, only enable build for 64bit.
Due to Linux kernel AF(Admin Function) driver dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx2/meson.build  | 10 ++--------
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 5 files changed, 14 insertions(+), 29 deletions(-)
drivers/common/octeontx2/meson.build +2 -8
index dcfaa1e102..223ba5ef51 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/event/octeontx2/meson.build +2 -2
index 96ebb1f2e7..ce360af5f8 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/mempool/octeontx2/meson.build +2 -7
index 2a1dfddd4c..a4bea6d364 100644
@@ -2,14 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/net/octeontx2/meson.build +2 -8
index a355313120..ab15844cbc 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
     build = false
-    reason = 'not supported on Windows'
-    subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-    build = false
-    reason = 'only supported on 64-bit'
+    reason = 'only supported on 64-bit Linux'
     subdir_done()
 endif
 
drivers/raw/octeontx2_dma/meson.build +6 -4
index e744fccaae..6460bd8242 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+    build = false
+    reason = 'only supported on 64-bit Linux'
+    subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-    extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
     if cc.has_argument(flag)
Signature · 1 line
2.17.1
#38 lore raw

Re: [dpdk-dev] [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]
Quoted 7 lines · On 10/14/2021 8:56 PM, [email protected] wrote:

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on thunderx family, only enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only enable build for Linux.

Hi Pavan,

Perhaps this patch took more time than it should, but according Jerin's description the problem is SoC can't run 32bit applications.

Why do you still mention from the kernel driver dependency? It looks like that dependency is not reason to not compile 32 bit app, am I missing something?

Quoted 32 lines

---
v6 Changes:
- Update commit log to describe why 32bit is not supported. v5 Changes:
- s/fuction/function.
v4 Changes:
- Update commit message regarding dependency on AF driver.

  drivers/net/thunderx/meson.build | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/thunderx/meson.build +2 -3
index 4bbcea7f93..da665bd76f 100644
@@ -1,9 +1,9 @@
  # SPDX-License-Identifier: BSD-3-Clause
  # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
      build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
      subdir_done()
  endif
 
--

2.17.1

#39 lore raw

Re: [dpdk-dev] [EXT] Re: [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux

Quoted 28 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Ferruh Yigit
Sent: Friday, October 15, 2021 4:09 PM
To: Pavan Nikhilesh Bhagavatula <[email protected]>; Jerin Jacob Kollanukkaran <[email protected]>; Maciej Czekaj [C] <[email protected]>
Cc: [email protected]
Subject: [EXT] Re: [dpdk-dev] [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux

External Email

----------------------------------------------------------------------

Quoted 3 lines · On 10/14/2021 8:56 PM, [email protected] wrote:

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on thunderx family,

only

Quoted 2 lines

enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only

enable

Quoted 2 lines

build for Linux.

Hi Pavan,

Quoted 8 lines

Perhaps this patch took more time than it should, but according Jerin's description the problem is SoC can't run 32bit applications.

Why do you still mention from the kernel driver dependency? It looks like
that dependency is not reason to not compile 32 bit app, am I missing something?

Since DPDK runs on FreeBSD and Windows and AF driver is absent for those We are disabling this driver non-Linux compilations too.

Quoted 33 lines
Quoted 10 lines

---
v6 Changes:
- Update commit log to describe why 32bit is not supported. v5 Changes:
- s/fuction/function.
v4 Changes:
- Update commit message regarding dependency on AF driver.

Review

Quoted 4 lines
  drivers/net/thunderx/meson.build | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/net/thunderx/meson.build

Quoted 18 lines

index 4bbcea7f93..da665bd76f 100644

drivers/net/thunderx/meson.build +2 -3
@@ -1,9 +1,9 @@
  # SPDX-License-Identifier: BSD-3-Clause
  # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
      build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
      subdir_done()
  endif
 
--

2.17.1

#40 lore raw

Re: [dpdk-dev] [EXT] Re: [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux

Quoted 31 lines · Pavan Nikhilesh Bhagavatula
Quoted 31 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Ferruh Yigit
Sent: Friday, October 15, 2021 4:09 PM
To: Pavan Nikhilesh Bhagavatula <[email protected]>; Jerin Jacob Kollanukkaran <[email protected]>; Maciej Czekaj [C] <[email protected]>
Cc: [email protected]
Subject: [EXT] Re: [dpdk-dev] [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux

External Email

----------------------------------------------------------------------

Quoted 3 lines · On 10/14/2021 8:56 PM, [email protected] wrote:

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on thunderx family,

only

Quoted 2 lines

enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only

enable

Quoted 2 lines

build for Linux.

Hi Pavan,

Perhaps this patch took more time than it should, but according Jerin's description the problem is SoC can't run 32bit applications.

Quoted 9 lines
Quoted 5 lines

Why do you still mention from the kernel driver dependency? It looks like
that dependency is not reason to not compile 32 bit app, am I missing something?

Since DPDK runs on FreeBSD and Windows and AF driver is absent for those We are disabling this driver non-Linux compilations too.

Ah, it doesn't only add 'RTE_ARCH_64' requirement, also reduces the support to Linux, so commit log makes sense. Thanks.

Quoted 34 lines
Quoted 33 lines
Quoted 10 lines

---
v6 Changes:
- Update commit log to describe why 32bit is not supported. v5 Changes:
- s/fuction/function.
v4 Changes:
- Update commit message regarding dependency on AF driver.

Review

Quoted 4 lines
   drivers/net/thunderx/meson.build | 4 ++--
   1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/net/thunderx/meson.build

Quoted 18 lines

index 4bbcea7f93..da665bd76f 100644

drivers/net/thunderx/meson.build +2 -3
@@ -1,9 +1,9 @@
   # SPDX-License-Identifier: BSD-3-Clause
   # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
       build = false
-    reason = 'not supported on Windows'
+    reason = 'only supported on 64-bit Linux'
       subdir_done()
   endif
 
--

2.17.1

#41 lore raw

Re: [dpdk-dev] [PATCH v6 1/3] net/thunderx: enable build only on 64-bit Linux

In reply to [email protected]
Quoted 9 lines · On 10/14/2021 8:56 PM, [email protected] wrote:

From: Pavan Nikhilesh <[email protected]>

Since AARCH32 extension is not implemented on thunderx family, only enable build for 64bit.
Due to Linux kernel AF(Admin function) driver dependency, only enable build for Linux.

Series applied to dpdk-next-net/main, thanks.

#42 lore raw

PATCH v2 2/3 common/octeontx: enable build only on 64-bit Linux

In reply to Thomas Monjalon

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx/meson.build   | 6 ++++++
 drivers/compress/octeontx/meson.build | 6 ++++++
 drivers/crypto/octeontx/meson.build   | 7 +++++--
 drivers/event/octeontx/meson.build    | 6 ++++++
 drivers/mempool/octeontx/meson.build  | 5 +++--
 drivers/net/octeontx/meson.build      | 4 ++--
 6 files changed, 28 insertions(+), 6 deletions(-)
drivers/common/octeontx/meson.build +6 -0
index 203d1ef496..f29b583204 100644
@@ -2,4 +2,10 @@
 # Copyright(c) 2018 Cavium, Inc
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('octeontx_mbox.c')
drivers/compress/octeontx/meson.build +6 -0
index e1b7bed422..cd8687fde3 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('otx_zip.c', 'otx_zip_pmd.c')
 includes += include_directories('include')
 deps += ['mempool_octeontx', 'bus_pci']
drivers/crypto/octeontx/meson.build +5 -2
index a353d37a10..2e5838641d 100644
@@ -1,8 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Cavium, Inc
-if not is_linux
+#
+
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'only supported on Linux'
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
 endif
 
 deps += ['bus_pci']
drivers/event/octeontx/meson.build +6 -0
index 41e367684c..63c7f793a6 100644
@@ -1,6 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 sources = files('ssovf_worker.c',
 		'ssovf_evdev.c',
 		'ssovf_evdev_selftest.c',
drivers/mempool/octeontx/meson.build +3 -2
index b5695a9329..4607dfe23d 100644
@@ -1,9 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
 endif
 
 sources = files('octeontx_fpavf.c',
drivers/net/octeontx/meson.build +2 -2
index 4e784b9484..a0d0fb80e6 100644
@@ -1,9 +1,9 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Cavium, Inc
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
Signature · 1 line
2.30.1
#43 lore raw

PATCH v2 3/3 common/octeontx2: enable build only on 64-bit Linux

In reply to Thomas Monjalon

From: Pavan Nikhilesh <[email protected]>

Due to Linux kernel dependency, only enable build for 64-bit Linux.

---
 drivers/common/octeontx2/meson.build  |  4 ++--
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 5 files changed, 14 insertions(+), 23 deletions(-)
drivers/common/octeontx2/meson.build +2 -2
index 84fb11524d..3ae1067921 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
drivers/event/octeontx2/meson.build +2 -2
index 22e7e4cb63..c81950cefe 100644
@@ -2,9 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if not dpdk_conf.get('RTE_ARCH_64')
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
drivers/mempool/octeontx2/meson.build +2 -7
index 0586321abe..c67d8e2d20 100644
@@ -2,14 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
-	subdir_done()
-endif
-if not dpdk_conf.get('RTE_ARCH_64')
-	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
drivers/net/octeontx2/meson.build +2 -8
index 779a75b5d0..5dbe002e3f 100644
@@ -2,15 +2,9 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
-if is_windows
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
 	build = false
-	reason = 'not supported on Windows'
-	subdir_done()
-endif
-
-if not dpdk_conf.get('RTE_ARCH_64')
-	build = false
-	reason = 'only supported on 64-bit'
+	reason = 'only supported on 64-bit Linux'
 	subdir_done()
 endif
 
drivers/raw/octeontx2_dma/meson.build +6 -4
index 11f74680a5..1910351253 100644
@@ -2,14 +2,16 @@
 # Copyright(C) 2019 Marvell International Ltd.
 #
 
+if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
+	build = false
+	reason = 'only supported on 64-bit Linux'
+	subdir_done()
+endif
+
 deps += ['bus_pci', 'common_octeontx2', 'rawdev']
 sources = files('otx2_dpi_rawdev.c', 'otx2_dpi_msg.c', 'otx2_dpi_test.c')
 
 extra_flags = []
-# This integrated controller runs only on a arm64 machine, remove 32bit warnings
-if not dpdk_conf.get('RTE_ARCH_64')
-	extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
-endif
 
 foreach flag: extra_flags
 	if cc.has_argument(flag)
Signature · 1 line
2.30.1
#44 lore raw

Re: [dpdk-dev] [PATCH 21.11 v2 0/3] octeontx build only on 64-bit Linux

In reply to Thomas Monjalon
Quoted 10 lines · Thomas Monjalon

This is a reorg of the patches from Pavan.
It has been discussed that it should wait for DPDK 21.11 for ABI compatibility reason.

Pavan Nikhilesh (3):
net/thunderx: enable build only on 64-bit Linux common/octeontx: enable build only on 64-bit Linux common/octeontx2: enable build only on 64-bit Linux

Quoted 13 lines
 drivers/common/octeontx/meson.build   |  6 ++++++
 drivers/common/octeontx2/meson.build  |  4 ++--
 drivers/compress/octeontx/meson.build |  6 ++++++
 drivers/crypto/octeontx/meson.build   |  7 +++++--
 drivers/event/octeontx/meson.build    |  6 ++++++
 drivers/event/octeontx2/meson.build   |  4 ++--
 drivers/mempool/octeontx/meson.build  |  5 +++--
 drivers/mempool/octeontx2/meson.build |  9 ++-------
 drivers/net/octeontx/meson.build      |  4 ++--
 drivers/net/octeontx2/meson.build     | 10 ++--------
 drivers/net/thunderx/meson.build      |  4 ++--
 drivers/raw/octeontx2_dma/meson.build | 10 ++++++----
 12 files changed, 44 insertions(+), 31 deletions(-)

There were a couple of cleanups (indent etc..) and changes in meson files. This series does not apply cleanly on the main branch.
Could you rebase it?

I noticed that the net/cnxk driver does not have this check, but it is disabled anyway since it depends on common/cnxk.
Is it worth adding the check for consistency?

Signature · 1 line
David Marchand