From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9F6791A1E18 for ; Mon, 12 Sep 2016 03:01:34 -0700 (PDT) Received: by mail-wm0-x236.google.com with SMTP id a6so44969037wmc.0 for ; Mon, 12 Sep 2016 03:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Yc66xd/dxbRMgKQ2+fEjcWZhptjiARJ+JjMM/+fFggk=; b=e5KbHtZjIvD6Z7DEHG4EVPMj2q1Oi0srmx6+hr1qV2Fr2uykJ10epPVctspP3rcOlV XbQ1iEDTG++fm64lkVmKNqq7FM+zKOY5CXVeA/5qULFRiwoRB31xOR64iWEMy1kJC9z1 /4h+K2bvV/7jmWisnfSg7KhivKc2IwH8pujIU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Yc66xd/dxbRMgKQ2+fEjcWZhptjiARJ+JjMM/+fFggk=; b=LwOuWR83dCxaQOViyRxSP6LdIS+DqvXXRVy+eCKX9kKS5DGIO7QPRcWuaH/5oIo2hV KTHHoFS788akJxswdFtA92cuNib6Eu1Hw7jZpHVethfvaK3UYHfpHebdM1X1epjVVl8I eY+fQWSDAp1D3YjJlmi69dKPLoo/+qjPstZeD+kK5kC+F6pv8pOBF+mQJcsJTVwmV8Hi ACCBS3z13gdasLQrsaqpHzYwxkeWohDWowuYftGCK1KnQkwAZnvcdIeEIi6yA6rgSlVr j4v1401s3uJiaHMzGH9JjzJYJGFzRtnIKVW4mCpp5+BxZxCfu1G+DrmsiXBOFnnO5Lep LTTg== X-Gm-Message-State: AE9vXwOsPYgrWm+cbQaCFtiGpQJGP9ILr3ByLPRG9H8SfZYfKc2CU3RsENzv2bqmDDB5jq3q X-Received: by 10.194.125.208 with SMTP id ms16mr6651452wjb.163.1473674493085; Mon, 12 Sep 2016 03:01:33 -0700 (PDT) Received: from localhost.localdomain ([197.128.106.42]) by smtp.gmail.com with ESMTPSA id ce6sm17092706wjc.27.2016.09.12.03.01.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 03:01:32 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, lersek@redhat.com Cc: Ard Biesheuvel Date: Mon, 12 Sep 2016 11:01:19 +0100 Message-Id: <1473674479-20207-4-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473674479-20207-1-git-send-email-ard.biesheuvel@linaro.org> References: <1473674479-20207-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [PATCH 3/3] ArmVirtPkg/ArmVirtQemu: add IncompatiblePciDeviceSupportDxe X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2016 10:01:35 -0000 To prevent the generic PCI bus driver from allocating 64-bit MMIO BARs in the 32-bit region for no good reason (since no good reasons exist on ARM), add the IncompatiblePciDeviceSupportDxe driver to the build, which will force override the policy to do so in the presence of a ROM BAR. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/ArmVirtQemu.dsc | 4 ++++ ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc | 1 + ArmVirtPkg/ArmVirtQemuKernel.dsc | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/ArmVirtPkg/ArmVirtQemu.dsc b/ArmVirtPkg/ArmVirtQemu.dsc index fa2b547ac486..47a77aaf87fa 100644 --- a/ArmVirtPkg/ArmVirtQemu.dsc +++ b/ArmVirtPkg/ArmVirtQemu.dsc @@ -370,6 +370,10 @@ [Components.common] NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf } + ArmPkg/Drivers/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf { + + NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf + } OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf OvmfPkg/Virtio10Dxe/Virtio10.inf diff --git a/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc b/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc index 2571884b20ac..18350d83b90d 100644 --- a/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc +++ b/ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc @@ -159,6 +159,7 @@ [FV.FvMain] INF ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf + INF ArmPkg/Drivers/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf INF OvmfPkg/Virtio10Dxe/Virtio10.inf diff --git a/ArmVirtPkg/ArmVirtQemuKernel.dsc b/ArmVirtPkg/ArmVirtQemuKernel.dsc index d80079c45c28..b6a54b81aa34 100644 --- a/ArmVirtPkg/ArmVirtQemuKernel.dsc +++ b/ArmVirtPkg/ArmVirtQemuKernel.dsc @@ -359,6 +359,10 @@ [Components.common] NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf } + ArmPkg/Drivers/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf { + + NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf + } OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf OvmfPkg/Virtio10Dxe/Virtio10.inf -- 2.7.4