Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758478Ab0AOVeL (ORCPT ); Fri, 15 Jan 2010 16:34:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758466Ab0AOVeJ (ORCPT ); Fri, 15 Jan 2010 16:34:09 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:44045 "EHLO g1t0028.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758430Ab0AOVeI (ORCPT ); Fri, 15 Jan 2010 16:34:08 -0500 From: Bjorn Helgaas To: Yinghai Lu Subject: Re: [PATCH 08/14] pci: update bridge res to get more big range in pci assign unssign Date: Fri, 15 Jan 2010 14:34:02 -0700 User-Agent: KMail/1.9.10 Cc: Jesse Barnes , Ingo Molnar , Linus Torvalds , Ivan Kokshaysky , Kenji Kaneshige , Alex Chiang , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org References: <1261522954-12591-1-git-send-email-yinghai@kernel.org> <20100115111254.1f9d66a3@jbarnes-piketon> <4B50DA47.80800@kernel.org> In-Reply-To: <4B50DA47.80800@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001151434.03253.bjorn.helgaas@hp.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 15 January 2010 02:12:39 pm Yinghai Lu wrote: > On 01/15/2010 11:12 AM, Jesse Barnes wrote: > > On Tue, 22 Dec 2009 15:02:28 -0800 > > Yinghai Lu wrote: > > > >> BIOS separate IO range between several IOHs, and on some slots, BIOS > >> assign the resource to the bridge, but stop assigning resource to the > >> device under that bridge, because the device need big resource. > >> > >> 1. pci assign unassign and record the failed device resource. > >> 2. clear the BIOS assigned resource of the parent bridge of fail > >> device 3. go back and call pci assign unsigned > >> 4. if it still fail, will go up more bridges. and clear and try again. > >> > >> use pci_try_num to control back track bridge levels. > >> > >> -v2: update it with resource_list_x > >> -v3: make pci_try_num default to 1. and when pci_try_num is set to > >> more than 1 will check it with max_depth, and adjust that to make > >> sure it is bigger enough > > > > I really don't like the 'try' argument. Either we can assign the > > resource or not; 'try=' just makes the whole thing scarier, as if we > > expect problems if we release too many resources. If that's the case, > > then the whole approach must be flawed, since it means we're not taking > > into account some resources, or we're missing something about the > > system configuration. > > before this patchset, acctually try = 1, and will not touch pci bridge resource if that are assigned by BIOS. > > with this patchset, try = 1, will just like the old ways. > try = 2, it will find the deepest bridge, and increase the try. I think Jesse understands how this works. My opinion is that it's just an unacceptable user interface. We can't tell users "boot Linux, if it doesn't work boot with 'try=1', if *that* doesn't work boot with 'try=2', etc." That just makes us look stupid, IMHO. Bjorn -- 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/