From nobody Tue Feb 10 12:59:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+64614+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+64614+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1598362845; cv=none; d=zohomail.com; s=zohoarc; b=LBGkanH7rXsRjlnmD96kN1Yct4Dpqih+IoDuBmL/B1tP0Dpg6sJx9tWNkSPm9eEDJWXGns91+D+eroyC26D6VKu4K9pf2g9AGmx0diVVpsQQ8EE3tTfpJDy2Y5UCQNY5itLVtnFEG3UZJeKhjedJXdJbdz4u00WRyaR8dQUSiQE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1598362845; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=wbJBAo3+mf+hRZkLfF1BDNLy8VjQn7gQj1uwc0rdlts=; b=Bkm9eqjkfJ8Z8atQuOfngmQJjalr1act/JLKnCgxkpL+9MJS5pufs/mgNyATndCigrFaeit9zRysyleX3Q0vsIOrHSWW7lqCvW6ZfNsNrtI4xAoQ7hWEUB1YQlsI/wkKEg7xugxjJMtoz1odTrW8HWhM+bTTePQxPRSi7NJ49G4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+64614+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1598362845410580.8324356192518; Tue, 25 Aug 2020 06:40:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 794CYY1788612xUtW2EmJKGm; Tue, 25 Aug 2020 06:40:45 -0700 X-Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by mx.groups.io with SMTP id smtpd.web10.13839.1598362844525671270 for ; Tue, 25 Aug 2020 06:40:44 -0700 X-Received: by mail-pj1-f66.google.com with SMTP id j13so1252117pjd.4 for ; Tue, 25 Aug 2020 06:40:44 -0700 (PDT) X-Gm-Message-State: 0vLfoeQWDvYvBHG7DtIMZn6Vx1787277AA= X-Google-Smtp-Source: ABdhPJzo0I8GJGnqwRmIw05RspYi05aoJ1AMMU7fT93oBW6YBaNYfWH3+7Vp5Qz8qSAUh3GLOoR0UQ== X-Received: by 2002:a17:90a:f48e:: with SMTP id bx14mr1200524pjb.233.1598362844091; Tue, 25 Aug 2020 06:40:44 -0700 (PDT) X-Received: from bean-canyon.localdomain ([106.51.140.68]) by smtp.googlemail.com with ESMTPSA id z186sm3913768pfb.199.2020.08.25.06.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 06:40:43 -0700 (PDT) From: "Tanmay Jagdale" To: leif@nuviainc.com, graeme@nuviainc.com, devel@edk2.groups.io Cc: shashi.mallela@linaro.org, Tanmay Jagdale Subject: [edk2-devel] [PATCH v3 edk2-platforms 3/8] SbsaQemu: SbsaQemu.dsc: Move CoreCount and Fdtlib Date: Tue, 25 Aug 2020 19:09:53 +0530 Message-Id: <20200825133958.17372-4-tanmay.jagdale@linaro.org> In-Reply-To: <20200825133958.17372-1-tanmay.jagdale@linaro.org> References: <20200825133958.17372-1-tanmay.jagdale@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,tanmay.jagdale@linaro.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1598362845; bh=/IMMzAZ4ZvsjW673VXVT90zOsigmGNpE05zLirehFCU=; h=Cc:Date:From:Reply-To:Subject:To; b=JE/e3j8zcoW2NrLdqiUYMofNMRqdnSczTlRZuPJ+bJn8Jua+YK7NjclUZVcTwyY/UNN MovXNFFdhM+Qrro5BAHO/7k3aTZ70D+tPC8IYUXwMPnem/anElsZ1wj1Ur8UdkkcoJiQ0 E0ypsx9sNCI+pBMIj5rrRw8+w4kZMO5670E= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" - Since the core count is dynamic and controlled by Qemu, move the PcdCoreCount from [PcdsFixedAtBuild] to [PcdsDynamic] section. - Move FdtLib from [LibraryClasses.common.PEIM] to [LibraryClasses.common] section so that driver DXEs can use the device tree APIs. Signed-off-by: Tanmay Jagdale --- Silicon/Qemu/SbsaQemu/SbsaQemu.dec | 4 ++++ Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Silicon/Qemu/SbsaQemu/SbsaQemu.dec b/Silicon/Qemu/SbsaQemu/Sbs= aQemu.dec index 71ba55a082e2..ed87d15de003 100644 --- a/Silicon/Qemu/SbsaQemu/SbsaQemu.dec +++ b/Silicon/Qemu/SbsaQemu/SbsaQemu.dec @@ -35,3 +35,7 @@ [PcdsFixedAtBuild.common] gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciBase|0|UINT64|0x00= 000003 gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPlatformEhciSize|0x10000|UINT3= 2|0x00000004 gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x100000= 00000|UINT64|0x00000005 + +[PcdsDynamic.common] + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdCoreCount|0x1|UINT32|0x00000006 + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdClusterCount|0x1|UINT32|0x0000= 0007 diff --git a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc b/Platform/Qemu/SbsaQemu/S= bsaQemu.dsc index 4739443cae93..d42b9cd4de49 100644 --- a/Platform/Qemu/SbsaQemu/SbsaQemu.dsc +++ b/Platform/Qemu/SbsaQemu/SbsaQemu.dsc @@ -75,6 +75,7 @@ [LibraryClasses.common] ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf =20 + FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib= /BaseOrderedCollectionRedBlackTreeLib.inf =20 @@ -217,7 +218,6 @@ [LibraryClasses.common.PEIM] =20 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/Pei= ServicesTablePointerLib.inf =20 - FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf ArmPlatformLib|Silicon/Qemu/SbsaQemu/Library/SbsaQemuLib/SbsaQemuLib.inf =20 [LibraryClasses.common.DXE_CORE] @@ -376,7 +376,6 @@ [PcdsFixedAtBuild.common] # gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE =20 - gArmPlatformTokenSpaceGuid.PcdCoreCount|1 gArmTokenSpaceGuid.PcdVFPEnabled|1 =20 # System Memory Base -- fixed @@ -477,6 +476,9 @@ [PcdsFixedAtBuild.common] [PcdsDynamicDefault.common] gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3 =20 + # Core and Cluster Count + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdCoreCount|1 + gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdClusterCount|1 =20 # System Memory Size -- 128 MB initially, actual size will be fetched fr= om DT # TODO as no DT will be used we should pass this by some other method --=20 2.28.0 -=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 (#64614): https://edk2.groups.io/g/devel/message/64614 Mute This Topic: https://groups.io/mt/76406679/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-