From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.858.1610628381114348566 for ; Thu, 14 Jan 2021 04:46:21 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B54FB1042; Thu, 14 Jan 2021 04:46:20 -0800 (PST) Received: from e123331-lin.nice.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E5D8A3F719; Thu, 14 Jan 2021 04:46:19 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [PATCH edk2-platforms 2/2] Platform/Overdrive: enable BAR resizing Date: Thu, 14 Jan 2021 13:46:15 +0100 Message-Id: <20210114124615.8132-2-ard.biesheuvel@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210114124615.8132-1-ard.biesheuvel@arm.com> References: <20210114124615.8132-1-ard.biesheuvel@arm.com> Add support for BAR resizing at PCI resource allocation time: this removes the need for the OS to grow BARs of PCIe devices such as GPU controllers, which typically use small BARs by default for compatibility with 32-bit systems with small PCI resource windows, but perform better when the BAR can cover all of its onboard memory. Usually, the OS should be capable of performing the BAR resize as well, but it is more constrained, and so doing this earlier is better on systems such as Overdrive where the MMIO root window is huge. Signed-off-by: Ard Biesheuvel --- Platform/AMD/OverdriveBoard/OverdriveBoard.dsc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc index adc92af080f1..17600a58112d 100644 --- a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc +++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc @@ -404,6 +404,8 @@ [PcdsFixedAtBuild.common] gArmTokenSpaceGuid.PcdPciMmio64Size|0x7F00000000 gArmTokenSpaceGuid.PcdPciMmio64Translation|0x0 + gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|TRUE + ## ACPI (no tables < 4GB) gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 -- 2.17.1