mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Alejandro Riveira Fernández" <ariveira@gmail.com>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	"Andrew Morton" <akpm@linux-foundation.org>
Subject: Re: Linux 2.6.26-rc5
Date: Thu, 5 Jun 2008 10:12:06 -0600	[thread overview]
Message-ID: <200806051012.07457.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <alpine.LFD.1.10.0806050749570.3473@woody.linux-foundation.org>

On Thursday 05 June 2008 08:54:24 am Linus Torvalds wrote:
> 
> On Thu, 5 Jun 2008, Alejandro Riveira Fernández wrote:
> >
> >  I got this on my dmesg; is this expected/harmaless?
> >  (btw The wireless driver oops that i reported is gone as it is the 
> >  bluetooth one ;)
> > 
> ..
> > [    0.233795] system 00:08: iomem range 0x0-0x0 could not be reserved
> > [    0.233795] system 00:08: iomem range 0x0-0x0 could not be reserved
> .. repeated a lot ..
> 
> It's harmless but obviously irritating. The PnP resource manager changes 
> need a few cleanups still - it's getting confused about IORESOURCE_UNSET 
> vs IORESOURCE_DISABLED.

Here's the patch.  I reproduced the problem and verified that this
fixes it.

This should not add conflicts with any of the PNP patches that are
currently in -mm (let me know if it does, of course).  After all
those patches, IORESOURCE_UNSET is never set by PNP, but it should
still be harmless to check for it.



PNP: skip UNSET MEM resources as well as DISABLED ones

We don't need to reserve "unset" resources.  Trying to reserve
them results in messages like this, which are ugly but harmless:

    system 00:08: iomem range 0x0-0x0 could not be reserved

Future PNP patches will remove use of IORESOURCE_UNSET, but
we still need it for now.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

Index: work11/drivers/pnp/system.c
===================================================================
--- work11.orig/drivers/pnp/system.c	2008-06-05 09:46:33.000000000 -0600
+++ work11/drivers/pnp/system.c	2008-06-05 09:48:09.000000000 -0600
@@ -81,7 +81,8 @@ static void reserve_resources_of_dev(str
 	}
 
 	for (i = 0; (res = pnp_get_resource(dev, IORESOURCE_MEM, i)); i++) {
-		if (res->flags & IORESOURCE_DISABLED)
+		if (res->flags & IORESOURCE_UNSET ||
+		    res->flags & IORESOURCE_DISABLED)
 			continue;
 
 		reserve_range(dev, res->start, res->end, 0);

  parent reply	other threads:[~2008-06-05 16:12 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05  3:36 Linus Torvalds
2008-06-05 11:24 ` Olaf Hering
2008-06-05 12:09   ` Linux 2.6.26-rc5 (G5 SATA broken) Hugh Dickins
2008-06-05 12:54     ` Alan Cox
2008-06-05 13:44       ` [PATCH] libata: fix G5 SATA broken on -rc5 Hugh Dickins
2008-06-05 14:45         ` Olaf Hering
2008-06-06  4:36     ` Linux 2.6.26-rc5 (G5 SATA broken) Benjamin Herrenschmidt
2008-06-05 12:42   ` Linux 2.6.26-rc5 Alan Cox
2008-06-05 13:03 ` Alejandro Riveira Fernández
2008-06-05 14:54   ` Linus Torvalds
2008-06-05 15:12     ` Bjorn Helgaas
2008-06-05 16:12     ` Bjorn Helgaas [this message]
2008-06-05 16:19       ` Linus Torvalds
2008-06-05 16:32         ` Bjorn Helgaas
2008-06-05 14:43 ` Ben Dooks
2008-06-06 18:35   ` Linus Torvalds
2008-06-10 12:57     ` ACPI pull for 2.6.26? Adrian Bunk
2008-06-10 15:23       ` Len Brown
2008-06-10 15:39         ` Adrian Bunk
2008-06-05 14:47 ` Linux 2.6.26-rc5 Alex Romosan
2008-06-07 19:44 ` Jesper Krogh
2008-06-07 21:50   ` Frans Pop
2008-06-09  3:39     ` Bjorn Helgaas
2008-06-09 10:01       ` Frans Pop
2008-06-07 19:52 ` Jesper Krogh
2008-06-05 15:04 Lior Dotan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200806051012.07457.bjorn.helgaas@hp.com \
    --to=bjorn.helgaas@hp.com \
    --cc=akpm@linux-foundation.org \
    --cc=ariveira@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®