Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755531Ab2FFJoN (ORCPT ); Wed, 6 Jun 2012 05:44:13 -0400 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:37167 "EHLO mtaout02-winn.ispmail.ntl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403Ab2FFJoL (ORCPT ); Wed, 6 Jun 2012 05:44:11 -0400 From: Steven Newbury Reply-To: Steven Newbury To: Yinghai Lu , Bjorn Helgaas Cc: "H. Peter Anvin" , David Miller , Tony Luck , Linus Torvalds , Andrew Morton , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/11] PCI: Try to allocate mem64 above 4G at first X-Mailer: Modest 3.90.7 References: <1337754877-19759-1-git-send-email-yinghai@kernel.org> <20120525043651.GA1391@google.com> <20120525193716.GA8817@google.com> <4FC50E09.4000204@zytor.com> <4FC51D79.6010804@zytor.com> <4FC536A5.6020600@zytor.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-ID: <1338975851.5858.1.camel@Nokia-N900> Date: Wed, 06 Jun 2012 10:44:12 +0100 Message-Id: <1338975852.5858.2.camel@Nokia-N900> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=btQ-OHYhoqkA:10 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=VwQbUJbxAAAA:8 a=36jSYyUSviaCCpPEuTUA:9 a=QEXdDO2ut3YA:10 a=LI9Vle30uBYA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1391 Lines: 23 On Tue,  5 Jun 2012, 06:04:57 BST, Yinghai Lu wrote: > > Linux has a long history of allocating bottom-up.  Windows has a long > > history of allocating top-down.  You're proposing a third alternative, > > allocating bottom-up starting at 4GB for 64-bit BARs.  If we change > > this area, I would prefer something that follows Windows because I > > think it will be closer to what's been tested by Windows.  Do you > > think your alternative is better? > > hope we can figure out how windows is making it work. > > Steve, Can you check if Windows is working with your test case ? > > If it works, we may try do the same thing from Linux, so you will not > need to append "pci=nocrs pci=alloc_high"... > Unfortunately I don't have a 64 bit version of Windows to test with. Vista(32 bit) fails to even boot when docked, hot-plugging fails to allocate resources, but at least doesn't crash. >From what I've read about the (64 bit) Windows allocation stragegy it's closer to Yinghai's method than the Linux default, preferring 64 bit resources (>4G) when possible. I'll try to find the specification document again. -- 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/