From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga02-in.huawei.com ([119.145.14.65]:40841 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753965Ab2FPJYX (ORCPT ); Sat, 16 Jun 2012 05:24:23 -0400 Message-ID: <4FDC5084.6090504@huawei.com> Date: Sat, 16 Jun 2012 17:23:16 +0800 From: Jiang Liu MIME-Version: 1.0 To: Yinghai Lu CC: Bjorn Helgaas , Taku Izumi , Kenji Kaneshige , Don Dutile , Yijing Wang , Keping Chen , , Jiang Liu Subject: Re: [PATCH v7 08/10] PCI, x86: add MMCFG information on demand References: <1338026043-3968-1-git-send-email-jiang.liu@huawei.com> <1338026043-3968-9-git-send-email-jiang.liu@huawei.com> <4FDB2192.5070709@huawei.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-pci-owner@vger.kernel.org List-ID: On 2012-6-16 0:51, Yinghai Lu wrote: > > still have some problem: > pci_mmcfg_check_reserved==>is_mmconf_reserved > > will update cfg->end_bus. Hi Yinghai, How about following patch for this issue? I guess we need to keep current behavior at boot time for backward compatibility, right? --- @@ -472,6 +472,14 @@ static int __devinit is_mmconf_reserved(check_reserved_t is_reserved, break; } + /* + * For backward compatibility, we will adjust the MMCONFIG region + * at boot time if it's only partially reserved by firmware. + * For PCI host bridge hotplug at runtime, just reject it. + */ + if (pci_mmcfg_running_state && old_size != size) + return 0; + if (size < (16UL<<20) && size != old_size) return 0; --- > > Thanks > > Yinghai > > . >