kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: frog1120@gmail.com (J.Hwan Kim)
To: kernelnewbies@lists.kernelnewbies.org
Subject: SRIOV memory allocation
Date: Sat, 07 Apr 2012 17:11:20 +0900	[thread overview]
Message-ID: <4F7FF6A8.4080403@gmail.com> (raw)

Hi, everyone

I'd like to know what routine of the PCIe allocates SR-IOV BAR memory.

When I put into the network card supporting SR-IOV in my system,
it returns error indicating "MMIO resource" is insufficient when sriov 
is enabled.

The routine is in iov.c

for (i = 0; i < PCI_SRIOV_NUM_BARS/*6*/; i++) {
         res = dev->resource + PCI_IOV_RESOURCES + i;
         if (res->parent)
             nres++;
}
if (nres != iov->nres) {
       dev_err(&dev->dev, "not enough MMIO resources for SR-IOV\n");
       return -ENOMEM;
}

So, I hope to know where the resources of IOV is assigned the parent 
pointer.

Thanks in advance.

Best Regards,
J.Hwan Kim

             reply	other threads:[~2012-04-07  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-07  8:11 J.Hwan Kim [this message]
2012-04-09 16:15 ` SRIOV memory allocation Peter Teoh
2012-04-09 16:17   ` Peter Teoh

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=4F7FF6A8.4080403@gmail.com \
    --to=frog1120@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).