Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] Netlist storage card
Date: Tue, 21 Feb 2017 16:56:04 +0000	[thread overview]
Message-ID: <1487696162.38737.24.camel@intel.com> (raw)
In-Reply-To: CAGcKcXQzq+0cv+NjLF=qxNbp9+9dJ0_V4HiGi1v_YJnHD-o4_A@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

On Sat, 2017-02-18 at 18:03 +1300, Dale Corlett wrote:
> Hi,
> 
> For DMA, do I need to give the card physical addresses or are the
> virtual addresses I get from spdk_malloc allowed due to the vfio
> virtualization?

Note that spdk_malloc returns the virtual address and the physical
address of the memory. Which one you need depends on your device. The
vast majority of PCI devices operate on physical/bus addresses. The
Netlist card should have defined this in its hardware specification.

> If I need to use physical address, should I use the spdk_vtophys
> function?
> I have tried using the spdk_vtophys function but I get the "could not
> find 2MB 0x*somenumber* in DPDK mem config" error, does this mean
> that I need to some how configure DPDK?

Again, spdk_malloc returned the physical address when you called it in
the phys_addr parameter.

> 
> Thanks,
> Dale

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3274 bytes --]

             reply	other threads:[~2017-02-21 16:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-21 16:56 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-02-18  5:03 [SPDK] Netlist storage card Dale Corlett
2017-01-30 19:55 Walker, Benjamin
2017-01-29 21:20 Dale Corlett
2017-01-11  0:38 Dale Corlett
2017-01-09 19:37 Dale Corlett
2017-01-09 18:38 Verkamp, Daniel
2017-01-07 22:48 Dale Corlett
2016-12-19  4:59 Dileep Sharma
2016-12-18  3:57 Dale Corlett
2016-12-01 21:55 Dale Corlett
2016-12-01  4:39 Dale Corlett
2016-12-01  4:06 Kumaraparameshwaran Rathnavel
2016-12-01  3:53 Dale Corlett
2016-11-30 16:46 Walker, Benjamin
2016-11-30  1:07 Harris, James R
2016-11-29 22:38 Dale Corlett
2016-11-29 21:41 Daniel Verkamp
2016-11-29 21:40 Harris, James R
2016-11-29 21:15 Dale Corlett
2016-11-29 16:01 Harris, James R
2016-11-29 15:56 skinnyM
2016-11-29  6:28 Yang, Ziye
2016-11-29  6:05 Dale Corlett

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=1487696162.38737.24.camel@intel.com \
    --to=spdk@lists.01.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