From nobody Sun May 5 12:34:38 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+77810+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+77810+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1626352180; cv=none; d=zohomail.com; s=zohoarc; b=kuqIauYTOlOab3IWWP0KwXAxk2xW/pMoq5aeGGLeFEoPm2W5GoJwelapgiwp75CzmwEj5Kl4vRP/C5LZ0TFHEXslyo22f+Npi4HNq6wJrrHXgdp/qEMbfMtd6tQ+eDUOIwpg+STYrvqqIQuMcsw/60MntMcG5mmkIEFWI1yhz2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626352180; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=70K6T8I5VABDh4shPcrklfoGJXtfO8Qxn84g1pvRML8=; b=eGn6twPbreGwa9Gvo+qDVnRJGXZjpzFnpFEZRgJZzZr0p6zsNupAEc5jFPPA+w+qbpHQ0zaNR67/4Cmn8Ezd50TnifJMh6rX5OHA6zxQODokJD36ZquNahPBgKwshMYh5lExO/Skb9l4S2ABDrrdIpHvgsP+7SLmet+eNKdg35U= 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+77810+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1626352180674862.3827240424857; Thu, 15 Jul 2021 05:29:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id GJJ6YY1788612x07oEre34OD; Thu, 15 Jul 2021 05:29:40 -0700 X-Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mx.groups.io with SMTP id smtpd.web09.7127.1626352179361388234 for ; Thu, 15 Jul 2021 05:29:39 -0700 X-Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4GQYV91f18z7tYj for ; Thu, 15 Jul 2021 20:25:05 +0800 (CST) X-Received: from dggpemm000003.china.huawei.com (7.185.36.128) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Jul 2021 20:29:35 +0800 X-Received: from HGH1000039998.huawei.com (10.184.68.188) by dggpemm000003.china.huawei.com (7.185.36.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 15 Jul 2021 20:29:34 +0800 From: "wenyi,xie via groups.io" To: , , CC: , , Subject: [edk2-devel] [PATCH EDK2 v1 1/1] MdeModulePkg: Modify PCD default value Date: Thu, 15 Jul 2021 20:24:55 +0800 Message-ID: <1626351895-21064-2-git-send-email-xiewenyi2@huawei.com> In-Reply-To: <1626351895-21064-1-git-send-email-xiewenyi2@huawei.com> References: <1626351895-21064-1-git-send-email-xiewenyi2@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.184.68.188] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm000003.china.huawei.com (7.185.36.128) X-CFilter-Loop: Reflected 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,xiewenyi2@huawei.com X-Gm-Message-State: oN2YuJXrKERMhOHqe6svUDQkx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1626352180; bh=U1D+qGcSmc/CS1VZnid2jBg3Wjne3H1yvZEVcU83/BU=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=nSE4JyYDh1Gv5pBd2zPgzuDKUsz7GIwwZGVBdwkgNEZ5pl0cLJYBB55tfOjOb0kT3gu YtV/56eaQeLwjvt/JW8ZrKn2oMFr76fA9RnDes3rsLLQIafQa3Vp1pK/ciFNFItsn8XBE d62NaUwXo+AZ/ATfB8/tdqCOhLptG6WwsDw= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1626352181795100004 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "wenyi.xie" The default value of PcdSrIovSystemPageSize is 0x1, it means the memory BAR is 4KB alignment. When page size of OS is set to 64KB, as the resource partitions are different between OS and BIOS, it will cause pcie failture. And if 52 bit physical address need to be supported, page size should also be set to 64KB alignment. So modify the default vaule of PcdSrIovSystemPageSize to 0x10 can meet the requirement above. And even if the OS is 4KB alignment, new value of PCD is compatible for this situation. Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Wenyi Xie --- MdeModulePkg/MdeModulePkg.dec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index ad84421cf3..426ea1b6cc 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -1853,7 +1853,7 @@ # BIT0 set indicates 4KB alignment
# BIT1 set indicates 8KB alignment
# @Prompt SRIOV system page size. - gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize|0x1|UINT32|0x10000= 047 + gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize|0x10|UINT32|0x1000= 0047 =20 ## SMBIOS version. # @Prompt SMBIOS version. --=20 2.20.1.windows.1 -=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 (#77810): https://edk2.groups.io/g/devel/message/77810 Mute This Topic: https://groups.io/mt/84223844/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-