From mboxrd@z Thu Jan 1 00:00:00 1970 From: frog1120@gmail.com (J.Hwan Kim) Date: Sat, 07 Apr 2012 17:11:20 +0900 Subject: SRIOV memory allocation Message-ID: <4F7FF6A8.4080403@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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