public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pci_find_parent_resource patch
@ 2009-11-09 20:04 Yinghai Lu
  2009-11-10  8:23 ` Jesse Barnes
  0 siblings, 1 reply; 9+ messages in thread
From: Yinghai Lu @ 2009-11-09 20:04 UTC (permalink / raw)
  To: Jesse Barnes, Ivan Kokshaysky, Linus Torvalds, Ingo Molnar,
	Matthew Wilcox
  Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org

it seems this patch from Linus get lost ?

-----------------------------------------------------



from Linus

---
 drivers/pci/pci.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Index: linux-2.6/drivers/pci/pci.c
===================================================================
--- linux-2.6.orig/drivers/pci/pci.c
+++ linux-2.6/drivers/pci/pci.c
@@ -382,8 +382,12 @@ pci_find_parent_resource(const struct pc
 			continue;	/* Wrong type */
 		if (!((res->flags ^ r->flags) & IORESOURCE_PREFETCH))
 			return r;	/* Exact match */
-		if ((res->flags & IORESOURCE_PREFETCH) && !(r->flags & IORESOURCE_PREFETCH))
-			best = r;	/* Approximating prefetchable by non-prefetchable */
+		/* We can't insert a non-prefetch resource inside a prefetchable parent .. */
+		if (r->flags & IORESOURCE_PREFETCH)
+			continue;
+		/* .. but we can put a prefetchable resource inside a non-prefetchable one */
+		if (!best)
+			best = r;
 	}
 	return best;
 }

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: pci_find_parent_resource patch
@ 2009-11-25  0:22 Yinghai Lu
  2009-12-04 23:59 ` Jesse Barnes
  0 siblings, 1 reply; 9+ messages in thread
From: Yinghai Lu @ 2009-11-25  0:22 UTC (permalink / raw)
  To: Jesse Barnes
  Cc: Ivan Kokshaysky, Linus Torvalds, Ingo Molnar, Matthew Wilcox,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org

Jesse Barnes wrote:
> I don't remember seeing it, is it for 2.6.32?
I
http://lkml.org/lkml/2009/8/7/352

not sure. better to make it in pci-next for a while.

in my local tree for a while

YH


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

end of thread, other threads:[~2009-12-05  0:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 20:04 pci_find_parent_resource patch Yinghai Lu
2009-11-10  8:23 ` Jesse Barnes
2009-11-10 10:05   ` Yinghai Lu
2009-11-10 15:57     ` Linus Torvalds
2009-11-11  8:21       ` Jesse Barnes
  -- strict thread matches above, loose matches on Subject: below --
2009-11-25  0:22 Yinghai Lu
2009-12-04 23:59 ` Jesse Barnes
2009-12-05  0:24   ` Linus Torvalds
2009-12-05  0:30     ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox