Re: PNP: increase the maximum number of resources

From: Olivier Galibert
Date: Wed Mar 12 2008 - 13:08:19 EST


On Wed, Mar 12, 2008 at 11:14:52AM -0400, Dave Jones wrote:
> In commit a7839e960675b549f06209d18283d5cee2ce9261 the number of PNP resources
> was increased. In testing, we've found that the 'exceeded' warnings still get
> hit with quite high frequency. See https://bugzilla.redhat.com/show_bug.cgi?id=436589
> for examples.
>
> I added the debug patch below, which yielded an interesting output.
>
> pnpacpi: exceeded the max number of mem resources. Max:12 Found:12
>
> off by one somewhere ?

No, your patch is just not giving out any additional information. 'i'
is the number of currently allocated resources, not the number asked
for. That number does not exist anywhere at that point as far as I
can see, you'll have to add a counter for it.

That looks valid for every resource type btw.

OG.

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