On Wed, 2008-03-26 at 22:47 +0000, Alan Cox wrote:There is IORESOURCE_UNSET... We could use that. I use it to some extent on powerpc but x86 doesn't. Though I remember spotting a code path in setup-res.c will not clear it when actually assigning the resource to a bus. I can't remember if that hits in practice tho. I have a patch anyway :-) ---- [PATCH] pci: Make pci_assign_resource always clear IORESOURCE_UNSET For bus resources pci_assign_resrouce() needs to also clear IORESOURCE_UNSET. (For device resources, it's handled by pci_update_resource). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> --- Index: linux-merge/drivers/pci/setup-res.c =================================================================== --- linux-merge.orig/drivers/pci/setup-res.c 2007-12-13 13:06:27.000000000 +1100 +++ linux-merge/drivers/pci/setup-res.c 2007-12-13 13:06:50.000000000 +1100 @@ -167,7 +167,8 @@ int pci_assign_resource(struct pci_dev * (unsigned long long)res->start, pci_name(dev)); } else if (resno < PCI_BRIDGE_RESOURCES) { pci_update_resource(dev, res, resno); - } + } else + res->flags &= ~IORESOURCE_UNSET; return ret; } --
| Lee Revell | Re: [RFC][PATCH] cpuidle: avoid singing capacitors |
| Ingo Molnar | [bug] latest -git boot hang |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Christoph Hellwig | Re: 2.6.24-rc6-mm1 |
git: | |
| Imran M Yousuf | Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins |
| Dan Zwell | [PATCH] Color support added to git-add--interactive. |
| Kyle Moffett | Using GIT to store /etc (Or: How to make GIT store all file permission bits) |
| Petr Vandrovec | Re: Fwd: [OT] Re: Git via a proxy server? |
| Lars Hansson | Re: Code signing in OpenBSD |
| Richard Stallman | Real men don't attack straw men |
| Pau | acer aspire one dmesg? |
| Henning Brauer | Re: About Xen: maybe a reiterative question but .. |
| Jarek Poplawski | Re: loaded router, excessive getnstimeofday in oprofile |
| Julius Volz | [PATCH RFC 20/24] IPVS: Add validity checks when adding/editing v6 services |
| Bruno | [PATCH 1/2] r8169: WoL fixes |
| Corey Hickey | [PATCH 01/10] Preparatory refactoring part 1. |
