From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 163BE7803CE for ; Wed, 31 Jan 2024 13:24:42 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=9aMpIqnGPrG+4lWwSw2boQoLuK0hO8BXMShBL4q7RRM=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706707481; v=1; b=tCz2bljJ7xRsdF+MAMlVOzbE2Z6/YEwQUMTaZAXv9lOWv3AiKPwQ9Kwzh1udA1DVn64YyJ99 BWDZacHEVHHC8BMiYpYPHJsNYKiEWqA5vsaDKAgRIADwAvda7n4ei/RUpeG4KHsFtrdDl2QSLBz ttzwEWKyjrj/ubGxGJ41FamI= X-Received: by 127.0.0.2 with SMTP id eYGRYY7687511xmH4H3yG5Lh; Wed, 31 Jan 2024 05:24:41 -0800 X-Received: from zg8tmtu5ljg5lje1ms4xmtka.icoremail.net (zg8tmtu5ljg5lje1ms4xmtka.icoremail.net [159.89.151.119]) by mx.groups.io with SMTP id smtpd.web10.13672.1706707480149152538 for ; Wed, 31 Jan 2024 05:24:41 -0800 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-7 (Coremail) with SMTP id AQAAfwCHjUUTSrpljyLuBw--.23781S2; Wed, 31 Jan 2024 21:24:35 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwCnlmwMSrplli0DAA--.2590S3; Wed, 31 Jan 2024 21:24:28 +0800 (CST) From: "Xiong Yining" To: devel@edk2.groups.io Cc: Xiong Yining Subject: [edk2-devel] [PATCH v5 0/7] get rid of DeviceTree from SbsaQemu Date: Wed, 31 Jan 2024 13:24:00 +0000 Message-Id: <20240131132400.3022662-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwCnlmwMSrplli0DAA--.2590S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQABBmW5T2UInQAAsl X-Coremail-Antispam: 1Uk129KBjvJXoWxGw1UCFW7AF45AF1DCryfWFg_yoW5Ar1rpF W8ArZYkr4UJry2yw4xJayrXrW5CF1fJw45GFsFvr1qvwsxWFykXr4UJrn3Zr15Jr9rWw4D Wr48ta4UZF1DKFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj DUYxn0WfASr-VFAU7a7-sFnT9fnUUIcSsGvfJ3UbIYCTnIWIevJa73UjIFyTuYvj4RJUUU UUUUU Precedence: Bulk 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,xiongyining1480@phytium.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: P7QHRvlqtSmCQQxMEM6DYrJDx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=tCz2bljJ; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Many thanks to Marcin Juszkiewicz for his previous work on get rid of DeviceTree from SbsaQemu https://openfw.io/edk2-devel/20240124-no-dt-for-cpu-v3-0-5375fcf09037@linaro.org/. To stop the use of DeviceTree on the EDK2 , we add the support for getting the memory information via SMC calls based on his patch. TF-A part: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/25891. To be compatible with old TF-A, if the SMC calls failed, we can pase DeviceTree data directly. Changes in v4: -patch 6 add the support for getting the hardware information of memory via SMC calls. -patch 7 add the fallbacks of DeviceTree when SMC calls defined on patch 6 failled. -replace FdtHelperGetMpidr() with SbsaQemuGetMpidr() on patch 4 to compile successfully. Changes in v5: -add the patch "Platform/SbsaQemu: add SbsaQemuHardwareInfoLib" provided by Marcin Juszkiewicz. Marcin Juszkiewicz (5): Platform/SbsaQemu: add SbsaQemuHardwareInfoLib Platform/SbsaQemu: read amount of cpus during init Platform/SbsaQemu: use PcdCoreCount directly Platform/SbsaQemu: move FdtHandlerLib to SbsaQemuHardwareInfoLib Platform/SbsaQemu: hang if there is no cpu information Xiong Yining (2): Platform/SbsaQemu: get the information of memory via SMC calls Platform/SbsaQemu: add DeviceTree fallbacks to parse memory information Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 4 +- .../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf | 6 +- .../SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf | 4 +- .../SbsaQemuPlatformDxe.inf | 4 +- .../Library/FdtHelperLib/FdtHelperLib.inf | 33 -- .../SbsaQemuHardwareInfoLib.inf | 34 ++ .../Library/SbsaQemuLib/SbsaQemuLib.inf | 2 +- .../Include/IndustryStandard/SbsaQemuSmc.h | 17 +- .../SbsaQemu/Include/Library/FdtHelperLib.h | 36 -- .../Include/Library/SbsaQemuHardwareInfoLib.h | 73 ++++ .../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c | 10 +- .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 15 +- .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c | 9 +- .../Library/FdtHelperLib/FdtHelperLib.c | 98 ----- .../SbsaQemuHardwareInfoLib.c | 354 ++++++++++++++++++ .../Library/SbsaQemuLib/SbsaQemuMem.c | 54 +-- 16 files changed, 511 insertions(+), 242 deletions(-) delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.inf create mode 100644 Silicon/Qemu/SbsaQemu/Library/SbsaQemuHardwareInfoLib/SbsaQemuHardwareInfoLib.inf delete mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/FdtHelperLib.h create mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/SbsaQemuHardwareInfoLib.h delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.c create mode 100644 Silicon/Qemu/SbsaQemu/Library/SbsaQemuHardwareInfoLib/SbsaQemuHardwareInfoLib.c -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114896): https://edk2.groups.io/g/devel/message/114896 Mute This Topic: https://groups.io/mt/104074475/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-