From nobody Fri May 17 02:42:01 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+86278+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86278+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1643721800; cv=none; d=zohomail.com; s=zohoarc; b=KILf5l7Gn0zARUP38C4Wt/wSrW0WyczXcRJzVNKVhgAtKVcH51kDBvTjdaDnHxQTFi+5HDdZuBQ0X26LPpuVsYCd9X6+ZuFfYJxwQzQoMx1CvwDqr3f/zPjJCUUvWJ+6DX6yw2bkmYw8JhuER5ZQFHqaGv20xj0j1XsyVvMdV8Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643721800; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=vkjyaO1fzjvnRyablUBlJCktI/UVp63J6BAdD9E7IZY=; b=mFSPj36vJXjv1NGigou7Isnw2yclRZ0x2wEjvsWJQ3D6xo14SzJ0rvhsFUZPXJWUkrjrYRAW06/kMIP+SS47WYCRiJrhwCxPixu6RMutC2HTLYPhh1sasxVpYQtpI6WKE9GAhLo6CeMlN+1gzRxa/TRoOJocMKQvZnIv6+iuYNw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86278+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1643721800133304.13238700056706; Tue, 1 Feb 2022 05:23:20 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id LM8OYY1788612xlXQw49AWeC; Tue, 01 Feb 2022 05:23:19 -0800 X-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 X-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) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 599AFC340EB; Tue, 1 Feb 2022 13:23:16 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif@nuviainc.com, Ard Biesheuvel Subject: [edk2-devel] [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> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: bewcPohrSQAZ6JqiLYwWlKXwx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1643721799; bh=ZtiOhaTNprTEMAIBfBbj9hjIZ3QC4OdKWlC3mAsUYys=; h=Cc:Date:From:Reply-To:Subject:To; b=WNeRopGbQ92kceda1sHHbfMRE8nQ7jr97ZkkCoMIv227NXRBZfrvm6/C25hwbnkCI3G J+gcBN0+G07XvfRxNZWJpRm8p8lzNmbZya780DqmujAR5wQCOy/Pn8d+tcWHo1NmqMJr/ l1hg6SLRunKPRnZrt/tutv1m1Q3OSCgtQrk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1643721801739100001 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Leif Lindholm --- 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 gAmdModulePkgTokenSpaceGuid.PcdPort1NetSpeed|1 =20 + gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|TRUE + [PcdsDynamicDefault.common] gAmdStyxTokenSpaceGuid.PcdEthMacA|{0x2,0xA1,0xA2,0xA3,0xA4,0xA5} gAmdStyxTokenSpaceGuid.PcdEthMacB|{0x2,0xB1,0xB2,0xB3,0xB4,0xB5} --=20 2.30.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86278): https://edk2.groups.io/g/devel/message/86278 Mute This Topic: https://groups.io/mt/88831646/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-