kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* SRIOV memory allocation
@ 2012-04-07  8:11 J.Hwan Kim
  2012-04-09 16:15 ` Peter Teoh
  0 siblings, 1 reply; 3+ messages in thread
From: J.Hwan Kim @ 2012-04-07  8:11 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-09 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-07  8:11 SRIOV memory allocation J.Hwan Kim
2012-04-09 16:15 ` Peter Teoh
2012-04-09 16:17   ` Peter Teoh

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).