Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6082148ybe; Tue, 10 Sep 2019 13:14:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXYk2exK1/09TtYtsWvBykFxF+iwAKlh5gUMfqrghC52XUaxF8tj/FtiXSndTbSmTRSx+X X-Received: by 2002:a17:906:3293:: with SMTP id 19mr26463314ejw.265.1568146458285; Tue, 10 Sep 2019 13:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568146458; cv=none; d=google.com; s=arc-20160816; b=IyAP01e+cuSmM1OiY6g0wnMN11zdVw6Q3mO9+A5TfWPB1Wj3J4UFiZULX44vQ1d72+ iSK87zzKgLGu0PALla9+CWKnO6YLE9MWaTMLeC/ucJiPwk5+LJW0AGWpIipx1+jVWMnc 1l9DzaMogLhqO/Pd+r3nE4AaRPhvYD2Ck6pyVwT9n0jlGzY4jyFuNiTTIiDGNoQdXRnu fiDfFEj2xgInIEn0qpPLhOWRdKFq+2c3VMoaSRxOIZKFnimuBU/KqU5oGl0w/wpHolxB HLbr4g0v+kByDF8FaXNSCLGgXQhBUMp4oAhzy2TW1AMkQNq8vzQcNrzAP7MtynfiH3w6 CWsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr :dkim-signature; bh=qq9NsTumyW5uiX0I4aKSjZaGFYpcRwGj/s8IjtQjg9I=; b=JyKRxytyuJnSP8InffYlVX3wERrTZfmKjNacUMa0pruqojyyV+Rga3zB+xcdMoSbN4 Zw8moMOs38/+bdJz7jXffWxyNBZqUIkmiukiUTI3HcOT5oDLBFqaKyzcLz4nChks2gQZ 7Lu5rN9Dmz8iPC5w5kT82D3aVVb35Oe2wEluHd9qFI1dtt5cO1yiL2ypCgmtBJyS9lY+ AOPQlyK9Vi6MFZahhhekic7h982d0hT15/gdCzJKyEZhYIX2eHdtDrGwAulMNKFeqLF4 fYh+PNTKawQDLQlE7v2ilWk0ns4bDXodLN4yR07gGb0PwaKuFhPeYo1lZTndKGbt6YRd VJag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=IbiowjFd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h8si10242182ejf.254.2019.09.10.13.13.10; Tue, 10 Sep 2019 13:14:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=IbiowjFd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405727AbfIJKJI (ORCPT + 99 others); Tue, 10 Sep 2019 06:09:08 -0400 Received: from esa2.hc3370-68.iphmx.com ([216.71.145.153]:1324 "EHLO esa2.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388625AbfIJKJI (ORCPT ); Tue, 10 Sep 2019 06:09:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1568110147; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=pBz+UuMi9t93ue09GBBv3yYtxQyJZrHCSoPQj54RG68=; b=IbiowjFdvCrTET/hnp4FUOF9fNzxF/u3FKqSu4XIMxpyRD4G2agsTYEb XpJlVuPYMkIzi0+ApdTYpRMClcIGueSpFVbj/lDbKOrIhINakPr/IXJwK ivznr0ChUo0x3kOCbb9RtPVoOF8uFAmhQHqa/T5IZPYbKo+MXVuoZ5uEY A=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=igor.druzhinin@citrix.com; spf=Pass smtp.mailfrom=igor.druzhinin@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of igor.druzhinin@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="igor.druzhinin@citrix.com"; x-sender="igor.druzhinin@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of igor.druzhinin@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="igor.druzhinin@citrix.com"; x-sender="igor.druzhinin@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="igor.druzhinin@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: TBU9T7jchkQ1P6Nrhbf6mhdO6bD+/m42BsdXyRYJtPpVp/Rs3BiRhYYuEDtYOV+OYR0sXCTfV3 i9xCXGd7TleNz75eYywzvFE9JqvxK+Avt2qtc2hWfvBvzVOcVwbohM15EKXFGzitdShIprtrJK tmAk/VYBahVFLE1fRtlTuyEo0c8uMtiDP/nqz4L1UD6xaERdMa1SfhX2dc8mk6jEeeANJTDgrj 6DA51xzX8DCoggt7+BSzLGh8d/VkQVUuu8T50AI0xpZ8LYO2EMD6Fm25u46HxewvhDOFFtfsXi Bck= X-SBRS: 2.7 X-MesageID: 5361133 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,489,1559534400"; d="scan'208";a="5361133" Subject: Re: [Xen-devel] [PATCH] xen/pci: try to reserve MCFG areas earlier To: Jan Beulich , Boris Ostrovsky , CC: , Juergen Gross References: <1567556431-9809-1-git-send-email-igor.druzhinin@citrix.com> <5054ad91-5b87-652c-873a-b31758948bd7@oracle.com> <43b7da04-5c42-80d8-898b-470ee1c91ed2@oracle.com> <1695c88d-e5ad-1854-cdef-3cd95c812574@oracle.com> <4d3bf854-51de-99e4-9a40-a64c581bdd10@citrix.com> <43e492ff-f967-7218-65c4-d16581fabea3@oracle.com> <416ff4b7-3186-f61a-75fa-bcfc968f8117@citrix.com> <64d52960-28d5-fb23-8892-35c9d4ed9d90@suse.com> From: Igor Druzhinin Message-ID: <8fa50f93-bc83-3474-8bca-3437f3b47a6e@citrix.com> Date: Tue, 10 Sep 2019 11:08:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <64d52960-28d5-fb23-8892-35c9d4ed9d90@suse.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/09/2019 10:55, Jan Beulich wrote: > On 10.09.2019 11:46, Igor Druzhinin wrote: >> On 10/09/2019 02:47, Boris Ostrovsky wrote: >>> On 9/9/19 5:48 PM, Igor Druzhinin wrote: >>>> Actually, pci_mmcfg_late_init() that's called out of acpi_init() - >>>> that's where MCFG areas are properly sized. >>> >>> pci_mmcfg_late_init() reads the (static) MCFG, which doesn't need DSDT parsing, does it? setup_mcfg_map() OTOH does need it as it uses data from _CBA (or is it _CRS?), and I think that's why we can't parse MCFG prior to acpi_init(). So what I said above indeed won't work. >>> >> >> No, it uses is_acpi_reserved() (it's called indirectly so might be well >> hidden) to parse DSDT to find a reserved resource in it and size MCFG >> area accordingly. setup_mcfg_map() is called for every root bus >> discovered and indeed tries to evaluate _CBA but at this point >> pci_mmcfg_late_init() has already finished MCFG registration for every >> cold-plugged bus (which information is described in MCFG table) so those >> calls are dummy. > > I don't think they're strictly dummy. Even for boot time available devices > iirc there's no strict requirement for there to be respective data in MCFG. > Such a requirement exists only for devices which are actually needed to > start the OS (disk or network, perhaps video or alike), or maybe even just > its loader. > This was my interpretation of 4.1.3 of "PCI Frimware specification": "Memory mapped configuration base addresses for non-hot pluggable host bridges must be described using MCFG table." Although, I admit that "non-hot pluggable" might mean available at boot as well. Igor