Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v4] test: dmafwd: implement DMA poll mode #1906

Merged
merged 8 commits into from
Sep 27, 2023

Conversation

TuomasTaipale
Copy link
Collaborator

@TuomasTaipale TuomasTaipale commented Sep 18, 2023

This patchset implements DMA poll mode support to odp_dmafwd.

Additionally, a few improvements related to pool cache and element count configuration are introduced which may improve performance when DMA copy scenarios are used.

v2:

  • Matias' comments

v3:

  • Refactored stash capability checking

v4:

  • Added reviewed-by tag

@odpbuild odpbuild changed the title test: dmafwd: implement DMA poll mode [PATCH v1] test: dmafwd: implement DMA poll mode Sep 18, 2023
test/performance/odp_dmafwd.c Show resolved Hide resolved
test/performance/odp_dmafwd.c Show resolved Hide resolved
test/performance/odp_dmafwd.c Outdated Show resolved Hide resolved
test/performance/odp_dmafwd.c Show resolved Hide resolved
test/performance/odp_dmafwd.c Show resolved Hide resolved
@odpbuild odpbuild changed the title [PATCH v1] test: dmafwd: implement DMA poll mode [PATCH v2] test: dmafwd: implement DMA poll mode Sep 21, 2023
@odpbuild odpbuild changed the title [PATCH v2] test: dmafwd: implement DMA poll mode [PATCH v3] test: dmafwd: implement DMA poll mode Sep 21, 2023
Configure cache sizes for transfer buffer and completion event pools
based on the cache size command line option. These are utilized in
fast path and caching may improve performance in DMA copy case.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Remove trailing periods to match existing tester logging style.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Use suitable log wording in capability checks depending on the error
condition (not supported vs. failure).

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
In preparation for DMA poll mode support, add parsing skeleton for the
new mode. The mode itself is not yet supported and will fail with "not
yet implemented" error if chosen.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
In preparation for DMA poll mode support, restructure how transfers are
initialized and sent in DMA copy case. This makes it easier to plug-in
poll mode (and potentially others in the future) handling logic.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
In addition to event completion mode, DMA copy performance can now also
be benchmarked with poll completion mode.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Transfer buffer and DMA completion event pools should be able to
accommodate maximum inflight DMA transfer count of buffers/events.
Change relevant pool creations accordingly.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Add test run for new DMA poll mode.

Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
@odpbuild odpbuild changed the title [PATCH v3] test: dmafwd: implement DMA poll mode [PATCH v4] test: dmafwd: implement DMA poll mode Sep 25, 2023
@MatiasElo MatiasElo merged commit 0248805 into OpenDataPlane:master Sep 27, 2023
174 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants