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

* SRIOV memory allocation
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Teoh @ 2012-04-09 16:15 UTC (permalink / raw)
  To: kernelnewbies

Is your system 32bit or 64bit?   Before putting the card, there was no
memory problem right?

And after putting in the card, memory resources all get used up right (by
IOV)?   It looked like it is similar to this problem:

http://communities.intel.com/thread/23318

>From above and here:

http://www.mjmwired.net/kernel/Documentation/PCI/pci-iov-howto.txt

it seemed that this hardware feature requires BIOS support, and so if ur
hardware does not have it, SR-IOV is not possible, thus giving rise to
those errors u have seen.

On Sat, Apr 7, 2012 at 4:11 PM, J.Hwan Kim <frog1120@gmail.com> wrote:

> 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
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120410/08d6124a/attachment.html 

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

* SRIOV memory allocation
  2012-04-09 16:15 ` Peter Teoh
@ 2012-04-09 16:17   ` Peter Teoh
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Teoh @ 2012-04-09 16:17 UTC (permalink / raw)
  To: kernelnewbies

More info:

http://communities.intel.com/community/wired/blog/2011/01/19/come-and-get-it-sr-iov-primer-document-updated

as indicated from here:

http://communities.intel.com/message/132184#132184

On Tue, Apr 10, 2012 at 12:15 AM, Peter Teoh <htmldeveloper@gmail.com>wrote:

> Is your system 32bit or 64bit?   Before putting the card, there was no
> memory problem right?
>
> And after putting in the card, memory resources all get used up right (by
> IOV)?   It looked like it is similar to this problem:
>
> http://communities.intel.com/thread/23318
>
> From above and here:
>
> http://www.mjmwired.net/kernel/Documentation/PCI/pci-iov-howto.txt
>
> it seemed that this hardware feature requires BIOS support, and so if ur
> hardware does not have it, SR-IOV is not possible, thus giving rise to
> those errors u have seen.
>
> On Sat, Apr 7, 2012 at 4:11 PM, J.Hwan Kim <frog1120@gmail.com> wrote:
>
>> 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
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
> --
> Regards,
> Peter Teoh
>



-- 
Regards,
Peter Teoh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120410/ff6088dd/attachment.html 

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