From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.48619.1643721798731952662 for ; Tue, 01 Feb 2022 05:23:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sw259Bqq; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C36E561515; Tue, 1 Feb 2022 13:23:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 599AFC340EB; Tue, 1 Feb 2022 13:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643721797; bh=5ymjRKL97ABQ8fv+MZum6qF9lQ7dAHVE6JiNWW7r6QM=; h=From:To:Cc:Subject:Date:From; b=sw259BqqDlKSor5Tkye/cXyE9fjPkEt7jcfWVhNLBakSk+q9EVHQrclDRKHGNBbRT QfDbhiXmhzBYCPzQqcctpEXbBnQmVVMMzCyJNkzyH8uU9MpFt7zK45Dclr5DPOfb3I 2bm4sfO7QKwkhfCn0Sp8vkoPnes/YrCweW3eSSphzjtsweZ/aVOvBczjdvAIs+e29Q 7oMaaFuj0wzfRB4z46IqY5x0GCC2NOpeXz8O89uZ2aX3sGo00JYor5SQa6BFGjqDdH QIdV1VZYTboLouVrF5ym6xOAzF9G5qFKzPS9tMmBcrrlNfbKexyU0DyfmbflMUE0mA I8gaNAt7FZ0ig== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [PATCH edk2-platforms] Platform/Overdrive: enable resizable BAR support Date: Tue, 1 Feb 2022 14:23:06 +0100 Message-Id: <20220201132306.631632-1-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Enable resizable BAR support so that BARs for, e.g., GPU cards that are sized conservatively by default, but can be resized to cover all of the GPU's VRAM, are resized by the firmware before handing over to the OS. This is a more appropriate time to perform the resize, as usually, the boot time GPU driver and the GOP will be up during PCI discovery of the OS. Tested on Overdrive B1 with an AMD GPU based on the Oland ASIC and the Linux radeon driver (which does not implement PCI BAR resizing in the first place) 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 af207391209c..01d320a6d0ef 100644 --- a/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc +++ b/Platform/AMD/OverdriveBoard/OverdriveBoard.dsc @@ -452,6 +452,8 @@ [PcdsFixedAtBuild.common] gAmdModulePkgTokenSpaceGuid.PcdPort0NetSpeed|1=0D gAmdModulePkgTokenSpaceGuid.PcdPort1NetSpeed|1=0D =0D + gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|TRUE=0D +=0D [PcdsDynamicDefault.common]=0D gAmdStyxTokenSpaceGuid.PcdEthMacA|{0x2,0xA1,0xA2,0xA3,0xA4,0xA5}=0D gAmdStyxTokenSpaceGuid.PcdEthMacB|{0x2,0xB1,0xB2,0xB3,0xB4,0xB5}=0D --=20 2.30.2