From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.groups.io with SMTP id smtpd.web11.160.1610651242938320168 for ; Thu, 14 Jan 2021 11:07:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CVe2eTl4; spf=pass (domain: redhat.com, ip: 63.128.21.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610651242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x+ro8Kux6P+IxteF/nDZuKp30AcWUrQKTyJgg9GSvfQ=; b=CVe2eTl4iWDNEIf2MkM4s+KSNp0hOGDmEt2KPj4DlcVpbrLOoOGh/52yrrHwJb7qUCJJO0 hizX2YuCSgQX/nLYWmU8BOmei0SLGspmzCeX7v2qz3V2wRy6Z04tsmoiZL9BhoUItH7coh eWAIVlZkyfYeNIeGbh3B7QaPT2K4Sck= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-368-5GbE9Pa6PA2JBn3y8SSFAA-1; Thu, 14 Jan 2021 14:07:18 -0500 X-MC-Unique: 5GbE9Pa6PA2JBn3y8SSFAA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2BD08107ACF8; Thu, 14 Jan 2021 19:07:17 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-194.ams2.redhat.com [10.36.112.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id 60253100AE41; Thu, 14 Jan 2021 19:07:16 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH edk2-platforms 2/2] Platform/Overdrive: enable BAR resizing To: devel@edk2.groups.io, ard.biesheuvel@arm.com Cc: leif@nuviainc.com References: <20210114124615.8132-1-ard.biesheuvel@arm.com> <20210114124615.8132-2-ard.biesheuvel@arm.com> From: "Laszlo Ersek" Message-ID: Date: Thu, 14 Jan 2021 20:07:15 +0100 MIME-Version: 1.0 In-Reply-To: <20210114124615.8132-2-ard.biesheuvel@arm.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 01/14/21 13:46, Ard Biesheuvel wrote: > 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 > > ... this is exactly the kind of documentation that I wished for (in retrospect) in the original edk2 feature addition.