Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752717AbYCLRqW (ORCPT ); Wed, 12 Mar 2008 13:46:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751230AbYCLRqM (ORCPT ); Wed, 12 Mar 2008 13:46:12 -0400 Received: from hera.kernel.org ([140.211.167.34]:57180 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751188AbYCLRqL (ORCPT ); Wed, 12 Mar 2008 13:46:11 -0400 From: Len Brown Organization: Intel Open Source Technology Center To: Dave Jones , linux-acpi@vger.kernel.org, Adam M Belay Subject: Re: PNP: increase the maximum number of resources Date: Wed, 12 Mar 2008 13:45:20 -0400 User-Agent: KMail/1.9.9 Cc: Zhao Yakui , Li Shaohua , Bjorn Helgaas , Thomas Renninger , Linux Kernel References: <20080312151452.GA4523@codemonkey.org.uk> In-Reply-To: <20080312151452.GA4523@codemonkey.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803121345.21297.lenb@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1801 Lines: 43 On Wednesday 12 March 2008, 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 In 2.6.23 we had: #define PNP_MAX_PORT 8 #define PNP_MAX_MEM 4 And the kernel silently ignored a BIOS exceeding these limits In 2.6.24 we have: #define PNP_MAX_PORT 40 #define PNP_MAX_MEM 12 And the kernel complains with KERN_ERR when a BIOS has more resources than the kernel can describe within these limits. We know that there are cases where these static limits will be exceeded but refrained from making these numbers larger due to concern about data structure size and expectation that the majory of systems will fit within these limits. (eg. there was one box with about 96 IO resources) I agree that having a KERN_ERR that you know is going to fire is not a good situation. We can either delete or KERN_DEBUG the message if it causes support issues -- for we know that <= 2.6.23 did worse by being silent. Thomas worked on a patch to make resource allocation dynamic and do away with these limits. Unfortunately it was rather large and it wasn't in time for the 2.6.25-rc1 window. So right now we are on a trajectory for 2.6.25 to behave exactly like 2.6.24. Indeed, I don't think that patch made it into the test tree, so unless we revive that patch, it will miss 2.6.26 as well. thanks, -Len -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/