DPDK usage discussions
 help / color / mirror / Atom feed
From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: "Wieckowski, Jacob" <Jacob.Wieckowski@vector.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: DMA Transfers to PCIe Bar Memory
Date: Wed, 6 Nov 2024 20:46:04 +0300	[thread overview]
Message-ID: <20241106204604.444529d5@sovereign> (raw)
In-Reply-To: <AS4PR01MB10408FAF649A51468A49D9B34FD532@AS4PR01MB10408.eurprd01.prod.exchangelabs.com>

2024-11-06 15:50 (UTC+0000), Wieckowski, Jacob:
> Is DMA access to the bar memory of a PCIe device with DPDK possible?
> If so, which example project could be used as a reference to gain a better understanding of this topic?

Hi,

BAR (base address register) is a place in PCI configuration space,
so one really doesn't "DMA transfers to PCIe BAR memory" to be precise.
Read https://wiki.osdev.org/PCI_Express to explore the topic.

DPDK drivers write to BARs to configure devices,
specifically to setup memory-mapped IO which is used for DMA.
Take a look at this project, which is a toy version of DPDK,
and thus it is easier to grasp:
https://github.com/ixy-languages/ixy-languages

  reply	other threads:[~2024-11-06 17:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-06 15:50 Wieckowski, Jacob
2024-11-06 17:46 ` Dmitry Kozlyuk [this message]
2024-11-07  9:16   ` Wieckowski, Jacob
2024-11-07  9:42     ` Dmitry Kozlyuk
2024-11-07 13:09       ` Wieckowski, Jacob
2024-11-07 16:13         ` Stephen Hemminger
2024-11-07 16:11       ` Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241106204604.444529d5@sovereign \
    --to=dmitry.kozliuk@gmail.com \
    --cc=Jacob.Wieckowski@vector.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).