History log of /spdk/lib/env_dpdk/init.c (Results 1 – 25 of 96)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v25.01-rc1
# b37db069 03-Dec-2024 XuQi <1530865185@qq.com>

replace strtok with strtok_r

The strtok function is not reentrant. To address this issue in a
multithreaded environment, the strtok_r function should be used,
which is the reentrant version of strto

replace strtok with strtok_r

The strtok function is not reentrant. To address this issue in a
multithreaded environment, the strtok_r function should be used,
which is the reentrant version of strtok.

Signed-off-by: XuQi <1530865185@qq.com>
Change-Id: I35c07c7cf4e20bacb7b1e7c7adaedfcd1a81f86e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25492
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeliu@tencent.com>
Reviewed-by: Jim Harris <jim.harris@nvidia.com>
Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>
Community-CI: Mellanox Build Bot

show more ...


Revision tags: v24.09, v25.01-pre, v24.09-rc1
# 41ff6dce 28-Jun-2024 Jim Harris <jim.harris@samsung.com>

env: add enforce_numa environment option

We have started to add some NUMA based memory allocations (specifically
NVMe SSD CQ memory). We will likely have more in the future.

Some configurations may

env: add enforce_numa environment option

We have started to add some NUMA based memory allocations (specifically
NVMe SSD CQ memory). We will likely have more in the future.

Some configurations may not have memory allocated across all NUMA
nodes, for example, setup.sh used to require special flags
to make sure memory was alllocated across NUMA nodes. setup.sh
has since been changed to allocate across NUMA nodes by default,
but other users may have their own scripts that have not yet
been adjusted.

So as a transition point, env layer currently tries to allocate from
DPDK based on user-specified numa_id, and if that fails, will revert
to SOCKET_ID_ANY instead. But specifying this new enforce_numa
flag will not do the fallback and will just return NULL to the user.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: Ieb346ac194fdd46c97e6fa77c117f637feb23b02
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23966
Reviewed-by: Ben Walker <ben@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>

show more ...


# 7c739692 09-Aug-2024 Jim Harris <jim.harris@samsung.com>

env_dpdk: restore opts_size after opts structure is zeroed

Fixes issue #3476.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: Id05775f934f33e20f5129e65df1ea238f81b45b6
Reviewed-on: ht

env_dpdk: restore opts_size after opts structure is zeroed

Fixes issue #3476.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: Id05775f934f33e20f5129e65df1ea238f81b45b6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24497
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Ben Walker <ben@nvidia.com>

show more ...


# 57fd99b9 28-Jun-2024 Jim Harris <jim.harris@samsung.com>

env: add opts_size to spdk_env_opts

This will help with ABI compatibility as new fields get added
to this structure.

User is responsible for setting opts_size. Major version has been
bumped, so use

env: add opts_size to spdk_env_opts

This will help with ABI compatibility as new fields get added
to this structure.

User is responsible for setting opts_size. Major version has been
bumped, so users will need to rebuild against latest code, if they
do not set opts_size we will just treat that as if the structure
ends right before opts_size. We will also print an ERRLOG to warn
user to set opts_size appropriately.

As part of this patch, update all in-tree callers of
spdk_env_opts_init() to set the opts_size.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: If2611eccc8b3c43e1dc1654028d000a8a12a544e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23940
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz@tzawadzki.com>

show more ...


# 3daf1f00 24-May-2024 Jim Harris <jim.harris@samsung.com>

dpdk_governor: use rte_power_set_env() to reduce noisy log messages

If an application doesn't set the power env explicitly, DPDK will
just iterate through them one at a time until it finds one that

dpdk_governor: use rte_power_set_env() to reduce noisy log messages

If an application doesn't set the power env explicitly, DPDK will
just iterate through them one at a time until it finds one that
works. This clutters the log with error messages about the ones that
didn't work. So use the rte_power_check_env_supported() API to
iterate through them ourselves (just like DPDK does) and set the
first one that we find.

From what I can see, only one can ever work. So SPDK iterates through
the DPDK enum in order, even though DPDK does them out of order when
it needs to find one because the user didn't set one.

While here, set the DPDK rte_power log level to WARNING, which also
eliminates a ton of noisy messages when enabling the governor. While
adding this, we noticed that cryptodev flag here is setting WARNING
but the comment says ERR, so fix that comment while here.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: I5cb2552d3b41235884577669bd574f88ca944f2a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23408
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>

show more ...


Revision tags: v24.05, v24.09-pre, v24.05-rc1
# 687da749 22-Mar-2024 Jim Harris <jim.harris@samsung.com>

lib/env_dpdk: put env_context last on DPDK command line

This gives user most flexibility to override default options specified
earlier in the command line by SPDK.

Signed-off-by: Jim Harris <jim.ha

lib/env_dpdk: put env_context last on DPDK command line

This gives user most flexibility to override default options specified
earlier in the command line by SPDK.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: I04e2a636cb659df265482db7415557d28cd854ce
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22475
Community-CI: Mellanox Build Bot
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 387dbedc 09-Feb-2024 Nathan Claudel <nathan.claudel@kalrayinc.com>

env_dpdk: fix build with OpenSSL < 3.0.0

`OPENSSL_INIT_set_config_file_flags` does not exist in OpenSSL < 3.0.0.
Remove this function call in incompatible versions of OpenSSL, using the OPENSSL_VERS

env_dpdk: fix build with OpenSSL < 3.0.0

`OPENSSL_INIT_set_config_file_flags` does not exist in OpenSSL < 3.0.0.
Remove this function call in incompatible versions of OpenSSL, using the OPENSSL_VERSION_NUMBER macro.

pkgdep scripts seem to indicate that SPDK should be compatible with OpenSSL 1.1.

Change-Id: Id8558cfd69d186bee85671926d48aa59b59fd30a
Signed-off-by: Nathan Claudel <nathan.claudel@kalrayinc.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21789
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


Revision tags: LTS, v24.01, v24.05-pre, v24.01-rc1
# 9e7217ab 22-Nov-2023 Krzysztof Karas <krzysztof.karas@intel.com>

env_dpdk: initialize OpenSSL library

Call OpenSSL library initialization explicitly.

Change-Id: I9c283bcd59cb0c1ebacaca0ac43db6024276acb5
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>

env_dpdk: initialize OpenSSL library

Call OpenSSL library initialization explicitly.

Change-Id: I9c283bcd59cb0c1ebacaca0ac43db6024276acb5
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20665
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


# a6658c54 03-Oct-2023 Sarvesh Lanke <sarvesh.lanke@nutanix.com>

env_dpdk: Add an option to run without huge pages.

This change adds a new SPDK commandline parameter "--no-huge", which
allows to run SPDK without huge pages. This is useful to run NVMf
with tcp/ip

env_dpdk: Add an option to run without huge pages.

This change adds a new SPDK commandline parameter "--no-huge", which
allows to run SPDK without huge pages. This is useful to run NVMf
with tcp/ip configuration.
Tested this by running a NVMf test over TCP between target and host.
Configured the NVMf target to run SPDK without hugepages by passing
the "no-huge" parameter. Then configured the NVMf host and connected
it to the target over TCP transport and verified that the subsystem
is getting exposed.
Modified existing NVMf tests to accept "--no-hugepages" parameter and
verified functionality by running those tests.

Fixes #2973

Change-Id: I68773bc6c818e5fc5173142213c3928fcbca96c8
Signed-off-by: Sarvesh Lanke <sarvesh.lanke@nutanix.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20171
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Michal Berger <michal.berger@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Abhineet Pandey <abhineet.pandey@nutanix.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 181143cc 18-Oct-2023 Konrad Sztyber <konrad.sztyber@intel.com>

env_dpdk: drop compatibility with DPDK < v21.11

The oldest, still supported, version of DPDK is v20.11 and it'll be
EOL-ed in December, before the next SPDK release, so let's just drop
compatibility

env_dpdk: drop compatibility with DPDK < v21.11

The oldest, still supported, version of DPDK is v20.11 and it'll be
EOL-ed in December, before the next SPDK release, so let's just drop
compatibility with anything older than v21.11 now. It was half-broken
anyway, as our copies of DPDK headers had an

#ifdef RTE_VERSION < RTE_VERSION_NUM(21, 11, 0, 0)

in one of the structure definitions, so the code built against v20.11
wouldn't work correctly under v21.11+.

Fixes #3153.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I3d3f45382f7858e60ca5f013d0c0e2fd5cd9959f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20331
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Michal Berger <michal.berger@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot

show more ...


Revision tags: v23.09, v24.01-pre, v23.09-rc1
# 441ad56e 10-Aug-2023 Tomasz Zawadzki <tomasz.zawadzki@intel.com>

env_dpdk: disable DPDK telemetry

No component in SPDK uses DPDK telemetry, but having it on
creates additional pthread and socket file:
/var/run/dpdk/spdk_pid*/dpdk_telemetry.v2

The DPDK telemetry

env_dpdk: disable DPDK telemetry

No component in SPDK uses DPDK telemetry, but having it on
creates additional pthread and socket file:
/var/run/dpdk/spdk_pid*/dpdk_telemetry.v2

The DPDK telemetry library still has to be compiled,
as many DPDK components have it as their dependency.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I50bbfb72ee637e235b8b307039c4cbe0dd75813e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19449
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


Revision tags: v23.05, v23.09-pre, v23.01.1
# b3a57634 29-Mar-2023 Marcin Spiewak <marcin.spiewak@intel.com>

app: use --lcores to map ids greater than 128

Fixes #2812

This patch adds support for '--lcores <map_list>'
parameter in spdk.
This parameter allow mapping of the lcores
to CPU IDs, if the system c

app: use --lcores to map ids greater than 128

Fixes #2812

This patch adds support for '--lcores <map_list>'
parameter in spdk.
This parameter allow mapping of the lcores
to CPU IDs, if the system contains CPUs with IDs
greater or equal to 128 (RTE_MAX_LCORE). Such CPUs
can not be directly included in core mask
specified in '-m <mask>' parameter, as the dpdk
rejects cores if IDs are greater than 127.
The only way to use them in spdk is to map lcore
to CPU using --lcores parameters specified
in command line.
--lcores and -m parameters are mutually
exclusive. Please use only one of them.
Examples:
build/bin/nvmf_tgt --lcores 0@130
build/bin/nvmf_tgt --lcores 0@150,1@151
build/bin/nvmf_tgt --lcores "(5-7)@(10-12)"
build/bin/nvmf_tgt --lcores "(5-7)@(136,138,140)"

Change-Id: Ia92be4499c8daaa936b1a4357d52ae303d6f3eb1
Signed-off-by: Marcin Spiewak <marcin.spiewak@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17403
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>

show more ...


# db6297b5 04-Apr-2023 Jim Harris <james.r.harris@intel.com>

env_dpdk: omit huge-related options when --no-huge specified

If user passes --no-huge as part of env_context, do
not add other huge-related options to the EAL command
line. Instead emit an error me

env_dpdk: omit huge-related options when --no-huge specified

If user passes --no-huge as part of env_context, do
not add other huge-related options to the EAL command
line. Instead emit an error message and return failure, if
any of them were specified explicitly.

Fixes c833f6aa ("env_dpdk: unlink hugepages if shm_id is not specified")
Fixes issue #2973.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I7aa49e4af5f3c333fa1e7dec4e3f5b4b92e7d414
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17483
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>

show more ...


Revision tags: v23.01, v23.05-pre, v23.01-rc1
# 41c16a6d 20-Dec-2022 Tomasz Zawadzki <tomasz.zawadzki@intel.com>

env_dpdk: clean up DPDK args print during init

When initializing SPDK, the used DPDK args are printed.
Unfortunately before each argument a timestamp is added.
Rather than use SPDK_PRINTF for each a

env_dpdk: clean up DPDK args print during init

When initializing SPDK, the used DPDK args are printed.
Unfortunately before each argument a timestamp is added.
Rather than use SPDK_PRINTF for each argument, bunch
up whole line to be printed and then print it in one go.

Please see before:
[2022-12-20 13:52:05.647131] [ DPDK EAL parameters: [2022-12-20
13:52:05.647145] spdk_tgt [2022-12-20 13:52:05.647159] --no-shconf
[2022-12-20 13:52:05.647170] -c 0x1 [2022-12-20 13:52:05.647185]
--huge-unlink [2022-12-20 13:52:05.647199] --log-level=lib.eal:6
[2022-12-20 13:52:05.647221] --log-level=lib.cryptodev:5 [2022-12-20
13:52:05.647232] --log-level=user1:6 [2022-12-20 13:52:05.647251]
--iova-mode=pa [2022-12-20 13:52:05.647261] --base-virtaddr=0x200000000000
[2022-12-20 13:52:05.647275] --match-allocations [2022-12-20
13:52:05.647286] --file-prefix=spdk_pid1352179 [2022-12-20 13:52:05.647307]
]

And after:
[2022-12-20 13:52:29.038353] [ DPDK EAL parameters: spdk_tgt --no-shconf -c
0x1 --huge-unlink --log-level=lib.eal:6 --log-level=lib.cryptodev:5
--log-level=user1:6 --iova-mode=pa --base-virtaddr=0x200000000000
--match-allocations --file-prefix=spdk_pid1358716 ]

Change-Id: I4c6c25818ae99bad942bf61ab590f971d339ffc6
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16031
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 4f4bf8c4 15-Dec-2022 GangCao <gang.cao@intel.com>

lib/env_dpdk: add a valid check before fclose

Change-Id: I43fc46500aa95a1f34365d0ac269dc1aa4b4bfa6
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/

lib/env_dpdk: add a valid check before fclose

Change-Id: I43fc46500aa95a1f34365d0ac269dc1aa4b4bfa6
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15955
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>

show more ...


Revision tags: v22.01.2, v22.09, v23.01-pre, v22.09-rc1
# 86431df1 08-Sep-2022 Jun Zeng <jun1.zeng@intel.com>

lib/env_dpdk: Add support for vfio-vf-token parameter

The kernel vfio_pci driver module introduced vf_token checking
mechanism since kernel version 5.7, and has been supported by
DPDK. So add suppor

lib/env_dpdk: Add support for vfio-vf-token parameter

The kernel vfio_pci driver module introduced vf_token checking
mechanism since kernel version 5.7, and has been supported by
DPDK. So add support for it to deal with the scenario of VF.

Signed-off-by: Jun Zeng <jun1.zeng@intel.com>
Change-Id: Ie9700fa395327da4e847c6213167284c148a64e3
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14424
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 1473d3b8 13-Oct-2022 Michael Piszczek <mpiszczek@ddn.com>

env_dpdk: fix check for AMD iommu

Update code for read the virtual address width to use glob to locate the
Intel and AMD iommu capability registers. This code should work for all
AMD numa configurat

env_dpdk: fix check for AMD iommu

Update code for read the virtual address width to use glob to locate the
Intel and AMD iommu capability registers. This code should work for all
AMD numa configurations.

Fixes issue 2730

Signed-off-by: Michael Piszczek <mpiszczek@ddn.com>
Change-Id: Ibf5789087b7e372d892b53101e4c0231809053f0
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14961
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Mellanox Build Bot

show more ...


# a6dbe372 01-Nov-2022 paul luse <paul.e.luse@intel.com>

update Intel copyright notices

per Intel policy to include file commit date using git cmd
below. The policy does not apply to non-Intel (C) notices.

git log --follow -C90% --format=%ad --date defa

update Intel copyright notices

per Intel policy to include file commit date using git cmd
below. The policy does not apply to non-Intel (C) notices.

git log --follow -C90% --format=%ad --date default <file> | tail -1

and then pull just the 4 digit year from the result.

Intel copyrights were not added to files where Intel either had
no contribution ot the contribution lacked substance (ie license
header updates, formatting changes, etc). Contribution date used
"--follow -C95%" to get the most accurate date.

Note that several files in this patch didn't end the license/(c)
block with a blank comment line so these were added as the vast
majority of files do have this last blank line. Simply there for
consistency.

Signed-off-by: paul luse <paul.e.luse@intel.com>
Change-Id: Id5b7ce4f658fe87132f14139ead58d6e285c04d4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15192
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot

show more ...


# 52c674d2 22-Sep-2022 Jim Harris <james.r.harris@intel.com>

env_dpdk: make pci_env_init() return int

This allows it to return error codes. Have the
init code check the return value and fail the init
process when pci_env_init() returns error.

Signed-off-by:

env_dpdk: make pci_env_init() return int

This allows it to return error codes. Have the
init code check the return value and fail the init
process when pci_env_init() returns error.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I7c8a4f9a6da6b3438ed09a881153b7a4ceef3a83
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14635
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 9ffb0497 07-Sep-2022 Michael Piszczek <mpiszczek@ddn.com>

iommu: Read AMD iommu address width

Add code needed to read the virtual address width for AMD processors

Fixes issue 2686

Signed-off-by: Michael Piszczek <mpiszczek@ddn.com>
Change-Id: I44f988e60d

iommu: Read AMD iommu address width

Add code needed to read the virtual address width for AMD processors

Fixes issue 2686

Signed-off-by: Michael Piszczek <mpiszczek@ddn.com>
Change-Id: I44f988e60d7bbfb1cb137b3cbc4ac44dbb693d35
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14416
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>

show more ...


# 488570eb 03-Jun-2022 Jim Harris <james.r.harris@intel.com>

Replace most BSD 3-clause license text with SPDX identifier.

Many open source projects have moved to using SPDX identifiers
to specify license information, reducing the amount of
boilerplate code in

Replace most BSD 3-clause license text with SPDX identifier.

Many open source projects have moved to using SPDX identifiers
to specify license information, reducing the amount of
boilerplate code in every source file. This patch replaces
the bulk of SPDK .c, .cpp and Makefiles with the BSD-3-Clause
identifier.

Almost all of these files share the exact same license text,
and this patch only modifies the files that contain the
most common license text. There can be slight variations
because the third clause contains company names - most say
"Intel Corporation", but there are instances for Nvidia,
Samsung, Eideticom and even "the copyright holder".

Used a bash script to automate replacement of the license text
with SPDX identifier which is checked into scripts/spdx.sh.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Iaa88ab5e92ea471691dc298cfe41ebfb5d169780
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12904
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: <qun.wan@intel.com>

show more ...


Revision tags: v22.05, v22.09-pre, v22.05-rc1, v22.01.1, v22.01, v22.01-rc1
# c833f6aa 06-Jan-2022 Jim Harris <james.r.harris@intel.com>

env_dpdk: unlink hugepages if shm_id is not specified

The only release to not unlink hugepages after mmaping
them is for multiprocess. But if shm_id is not
specified, then we aren't using multiproc

env_dpdk: unlink hugepages if shm_id is not specified

The only release to not unlink hugepages after mmaping
them is for multiprocess. But if shm_id is not
specified, then we aren't using multiprocess. This
ensures that all hugepages get released when the
process exits, even if there is memory in those
hugepages that was not freed during process shutdown.

Make sure we don't enable both huge-unlink and
single-file-segments at the same time though, DPDK doesn't
support that.

Note that even when using multi-process, if hugepages
aren't released, they aren't really leaked. DPDK will
clean them up next time the application runs.

Fixes issue #2267.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I017bd4f7ed9cf6aaa141879539b099fb48f357f4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10991
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>

show more ...


# af6fd29f 13-Jan-2022 Jim Harris <james.r.harris@intel.com>

env_dpdk: ensure that cleanup destructor runs last

The bdev fio plugin has a destructor function that
cleans up the initialization thread, and we can't
have it run after we've cleaned up DPDK or we

env_dpdk: ensure that cleanup destructor runs last

The bdev fio plugin has a destructor function that
cleans up the initialization thread, and we can't
have it run after we've cleaned up DPDK or we get
seg faults.

The toolchains reserve priorities 1 to 100 for
internal usage, meaning 101 is the highest usable
priority level. We'll use this for the env_dpdk
destructor priority, meaning it would be the last
destructor to execute.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I36718f9413267192d1c1dcec983a0f51b5d5b798
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11085
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 8b81801e 05-Jan-2022 Jim Harris <james.r.harris@intel.com>

env_dpdk: do rte_eal_cleanup() at process exit

We already use destructor functions in env_dpdk to do
some cleanup at process exit, so let's also add one
to call rte_eal_cleanup. This ensures all hu

env_dpdk: do rte_eal_cleanup() at process exit

We already use destructor functions in env_dpdk to do
some cleanup at process exit, so let's also add one
to call rte_eal_cleanup. This ensures all hugepage
files are freed before the process exits.

Fixes issue #2267.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I8c93f503d77f35717b3d18a63ea49b31789dbc00
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10983
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


Revision tags: v21.10, v21.10-rc1
# 7fed70f1 20-Aug-2021 Changpeng Liu <changpeng.liu@intel.com>

env/dpdk: revert 8f7d9ec "env/dpdk: Use the DPDK device count for IOMMU mapping"

This patch revert commit 8f7d9ec. In function vtophys_iommu_init(), we
can use `dev->drvier` in RTE_DEV_FOREACH() lo

env/dpdk: revert 8f7d9ec "env/dpdk: Use the DPDK device count for IOMMU mapping"

This patch revert commit 8f7d9ec. In function vtophys_iommu_init(), we
can use `dev->drvier` in RTE_DEV_FOREACH() loop to count number of devices
probed by device driver using vfio APIs, or we will count all the PCI devices
that bind to vfio-pci driver, only the probed device's IOMMU group is added
to vfio container.

The original implementation is correct to count `g_vfio.device_ref` in
vtophys_pci_device_added(), we don't need to count it in
vtophys_iommu_device_event() callback.

Fix issue #2086.

Change-Id: Ib1502a67960a49e9a2f93823cc8ceab2e8303134
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9236
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


1234