Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH v2] Remove Spurious PnP Memory Reserved Warning

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


davidjon at xenontk

Jul 27, 2009, 9:06 PM

Post #1 of 5 (298 views)
Permalink
[PATCH v2] Remove Spurious PnP Memory Reserved Warning

Remove unnecessary complaints by the PnP sub-system about memory
ranges being reserved.

Signed-off-by: David John <davidjon [at] xenontk>

diff --git a/drivers/pnp/system.c b/drivers/pnp/system.c
index 59b9092..84ee297 100644
--- a/drivers/pnp/system.c
+++ b/drivers/pnp/system.c
@@ -48,10 +48,11 @@ static void reserve_range(struct pnp_dev *dev, resource_size_t start,
* example do reserve stuff they know about too, so we may well
* have double reservations.
*/
- dev_info(&dev->dev, "%s range 0x%llx-0x%llx %s reserved\n",
- port ? "ioport" : "iomem",
- (unsigned long long) start, (unsigned long long) end,
- res ? "has been" : "could not be");
+ if (res) {
+ dev_info(&dev->dev, "%s range 0x%llx-0x%llx has been "
+ "reserved\n", port ? "ioport" : "iomem",
+ (unsigned long long) start, (unsigned long long) end);
+ }
}

static void reserve_resources_of_dev(struct pnp_dev *dev)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


jbarnes at virtuousgeek

Jul 28, 2009, 9:31 AM

Post #2 of 5 (271 views)
Permalink
Re: [PATCH v2] Remove Spurious PnP Memory Reserved Warning [In reply to]

On Tue, 28 Jul 2009 09:36:23 +0530
David John <davidjon [at] xenontk> wrote:

> Remove unnecessary complaints by the PnP sub-system about memory
> ranges being reserved.
>
> Signed-off-by: David John <davidjon [at] xenontk>
>
> diff --git a/drivers/pnp/system.c b/drivers/pnp/system.c
> index 59b9092..84ee297 100644
> --- a/drivers/pnp/system.c
> +++ b/drivers/pnp/system.c
> @@ -48,10 +48,11 @@ static void reserve_range(struct pnp_dev *dev,
> resource_size_t start,
> * example do reserve stuff they know about too, so we may
> well
> * have double reservations.
> */
> - dev_info(&dev->dev, "%s range 0x%llx-0x%llx %s reserved\n",
> - port ? "ioport" : "iomem",
> - (unsigned long long) start, (unsigned long long) end,
> - res ? "has been" : "could not be");
> + if (res) {
> + dev_info(&dev->dev, "%s range 0x%llx-0x%llx has been
> "
> + "reserved\n", port ? "ioport" :
> "iomem",
> + (unsigned long long) start, (unsigned long
> long) end);
> + }
> }
>
> static void reserve_resources_of_dev(struct pnp_dev *dev)

I'm inclined to keep the message, since it's just a dev_info and does
provide interesting info sometimes. So unless Linus wants to kill
it...

Jesse

--
Jesse Barnes, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


davidjon at xenontk

Jul 28, 2009, 11:42 PM

Post #3 of 5 (256 views)
Permalink
Re: [PATCH v2] Remove Spurious PnP Memory Reserved Warning [In reply to]

On 07/28/2009 10:01 PM, Jesse Barnes wrote:
> On Tue, 28 Jul 2009 09:36:23 +0530
> David John <davidjon [at] xenontk> wrote:
>
>> Remove unnecessary complaints by the PnP sub-system about memory
>> ranges being reserved.
>>
>> Signed-off-by: David John <davidjon [at] xenontk>
>>
>> diff --git a/drivers/pnp/system.c b/drivers/pnp/system.c
>> index 59b9092..84ee297 100644
>> --- a/drivers/pnp/system.c
>> +++ b/drivers/pnp/system.c
>> @@ -48,10 +48,11 @@ static void reserve_range(struct pnp_dev *dev,
>> resource_size_t start,
>> * example do reserve stuff they know about too, so we may
>> well
>> * have double reservations.
>> */
>> - dev_info(&dev->dev, "%s range 0x%llx-0x%llx %s reserved\n",
>> - port ? "ioport" : "iomem",
>> - (unsigned long long) start, (unsigned long long) end,
>> - res ? "has been" : "could not be");
>> + if (res) {
>> + dev_info(&dev->dev, "%s range 0x%llx-0x%llx has been
>> "
>> + "reserved\n", port ? "ioport" :
>> "iomem",
>> + (unsigned long long) start, (unsigned long
>> long) end);
>> + }
>> }
>>
>> static void reserve_resources_of_dev(struct pnp_dev *dev)
>
> I'm inclined to keep the message, since it's just a dev_info and does
> provide interesting info sometimes. So unless Linus wants to kill
> it...
>
> Jesse
>

This patch doesn't remove the message, it just removes the 'could not reserve' messages,
which would be useful if they are actual errors, but they are not. It's pretty silly if
the left hand doesn't know what the right is doing... However in the interest of keeping
the code as is, I guess the patch isn't all that important.

Regards,
David.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


elendil at planet

Aug 1, 2009, 3:56 AM

Post #4 of 5 (254 views)
Permalink
Re: [PATCH v2] Remove Spurious PnP Memory Reserved Warning [In reply to]

On Tuesday 28 July 2009, Jesse Barnes wrote:
> I'm inclined to keep the message, since it's just a dev_info and does
> provide interesting info sometimes. So unless Linus wants to kill
> it...

Jesse, what do you think of the less invasive patch I suggested in
http://lkml.org/lkml/2009/7/24/16?

Cheers,
FJP
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


jbarnes at virtuousgeek

Aug 6, 2009, 2:41 PM

Post #5 of 5 (235 views)
Permalink
Re: [PATCH v2] Remove Spurious PnP Memory Reserved Warning [In reply to]

On Sat, 1 Aug 2009 12:56:10 +0200
Frans Pop <elendil [at] planet> wrote:

> On Tuesday 28 July 2009, Jesse Barnes wrote:
> > I'm inclined to keep the message, since it's just a dev_info and
> > does provide interesting info sometimes. So unless Linus wants to
> > kill it...
>
> Jesse, what do you think of the less invasive patch I suggested in
> http://lkml.org/lkml/2009/7/24/16?

I like it a bit better since it preserves the info in the case where a
resource was already reserved, so I'm fine if it goes upstream. We're
just talking about debug info here so most users shouldn't notice
either unless there's a real problem.

--
Jesse Barnes, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.