Dmitry Kozlyuk 9790fc2149 eal/freebsd: fix IOVA mode selection
FreeBSD EAL selected IOVA mode PA even in --no-huge mode
where PA are not available. Memory zones were created with IOVA
equal to RTE_BAD_IOVA with no indication this field is not usable.

Change IOVA mode detection:
1. Always allow to force --iova-mode=va.
2. In --no-huge mode, disallow forcing --iova-mode=pa, and select VA.
3. Otherwise select IOVA mode according to bus requests, default to PA.
In case contigmem is inaccessible, memory initialization will fail
with a message indicating the cause.

Fixes: c2361bab70c5 ("eal: compute IOVA mode based on PA availability")
Cc: stable@dpdk.org

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2021-11-03 18:32:19 +01:00
..
2021-08-17 08:37:52 +02:00
2021-10-22 23:32:00 +02:00
2021-11-03 18:32:19 +01:00
2021-10-08 14:58:11 +02:00
2021-10-24 13:37:43 +02:00
2021-09-30 17:38:13 +02:00
2021-08-17 08:37:52 +02:00
2021-10-25 19:08:16 +02:00
2021-08-17 08:37:52 +02:00
2021-10-13 22:14:59 +02:00
2021-10-31 23:25:02 +01:00
2021-10-29 15:25:34 +02:00
2021-10-25 19:13:12 +02:00
2021-10-25 15:14:22 +02:00
2021-08-17 08:37:52 +02:00