[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E0D62BD.5070405@hartkopp.net>
Date: Fri, 01 Jul 2011 08:01:33 +0200
From: Oliver Hartkopp <socketcan@...tkopp.net>
To: Ram Pai <linuxram@...ibm.com>
CC: jbarnes@...tuousgeek.org, torvalds@...ux-foundation.org,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
yinghai@...nel.org, bhutchings@...arflare.com, bhelgaas@...gle.com,
linux@...inikbrodowski.net
Subject: Re: [PATCH 3/5 v2] PCI: make SRIOV resources optional
On 01.07.2011 01:47, Ram Pai wrote:
> From: Yinghai Lu <yinghai@...nel.org>
>
> From: Yinghai Lu <yinghai@...nel.org>
>
> Allocate resources to SRIOV BARs only after all other required
> resource-requests are satisfied. Dont retry if resource allocation for SRIOV
> BARs fail.
>
> Signed-off-by: Ram Pai <linuxram@...ibm.com>
> Signed-off-by: Yinghai Lu <yinghai@...nel.org>
Tested-by: Oliver Hartkopp <socketcan@...tkopp.net>
I applied the whole patchset and it looks very similar to the dmsg output
before the problematic commit that caused the regression.
Tnx!
Oliver
> ---
> drivers/pci/setup-bus.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
> index 9f2f15f..a0555cb 100644
> --- a/drivers/pci/setup-bus.c
> +++ b/drivers/pci/setup-bus.c
> @@ -669,6 +669,16 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask,
> if (r->parent || (r->flags & mask) != type)
> continue;
> r_size = resource_size(r);
> +#ifdef CONFIG_PCI_IOV
> + /* put SRIOV requested res to the optional list */
> + if (add_head && i >= PCI_IOV_RESOURCES &&
> + i <= PCI_IOV_RESOURCE_END) {
> + r->end = r->start - 1;
> + add_to_list(add_head, dev, r, r_size, 1);
> + children_add_size += r_size;
> + continue;
> + }
> +#endif
> /* For bridges size != alignment */
> align = pci_resource_alignment(dev, r);
> order = __ffs(align) - 20;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists