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 2931E740051 for ; Wed, 31 Jan 2024 10:01:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=MVzdm1qkpvkBKnjymEQsKj6lSVwBh1ItN6L/dtKJchA=; 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=1706695281; v=1; b=wA0LGHwLO9rt5WOwdllpLq6gFsxNSaSiwL5q21d4Xd9NI4gOknL7Np3TBF+4PVeyPrWf9Xqq 84hajaayodNxVoeCA+KXuDhIuYM0wM/DrCY4rHQQ7zVvybW/+V0/VU4q8/IJbdZowHjSKpKRyWn xJmgp0a51/83VZCrtuoUbviw= X-Received: by 127.0.0.2 with SMTP id c4MjYY7687511xBkAkGGritR; Wed, 31 Jan 2024 02:01:21 -0800 X-Received: from sgoci-sdnproxy-4.icoremail.net (sgoci-sdnproxy-4.icoremail.net [129.150.39.64]) by mx.groups.io with SMTP id smtpd.web11.10715.1706695278936318478 for ; Wed, 31 Jan 2024 02:01:20 -0800 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-7 (Coremail) with SMTP id AQAAfwAnLERqGrplIibqBw--.45277S2; Wed, 31 Jan 2024 18:01:14 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwAXA2lhGrplG5kCAA--.1801S3; Wed, 31 Jan 2024 18:01:06 +0800 (CST) From: "Xiong Yining" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, ardb+tianocore@kernel.org, graeme@xora.org.uk, marcin.juszkiewicz@linaro.org, chenbaozi@phytium.com.cn, Xiong Yining Subject: [edk2-devel] [PATCH v4 0/6] get rid of DeviceTree from SbsaQemu Date: Wed, 31 Jan 2024 10:00:21 +0000 Message-Id: <20240131100027.2538549-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwAXA2lhGrplG5kCAA--.1801S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQAABmW3-fcHXQAPsK X-Coremail-Antispam: 1Uk129KBjvJXoW7Cw4rury8trWfuFW5WFWxJFb_yoW8Kw48pF W8ArZ5Cr1UGrW2vw4fX3yrXr45CF1fJw45GFsFvr1qkwsxWF18XrW0y3sa9r15Jr97Xw4D ur48ta4UZ3WDKFJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj 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: 2uBp9wmjzeL1QpPxgrHLr1h3x7686176AA= 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=wA0LGHwL; 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 in v4. 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 callback of DeviceTree when SMC calls defined on patch 6 failled. -replace FdtHelperGetMpidr() with SbsaQemuGetMpidr() on patch 4 to compile successfully. Marcin Juszkiewicz (4): 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 .../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.c | 10 +- .../Qemu/SbsaQemu/OemMiscLib/OemMiscLib.inf | 6 +- Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 1 - .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 15 +- .../SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.inf | 4 +- .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c | 9 +- .../SbsaQemuPlatformDxe.inf | 4 +- .../Include/IndustryStandard/SbsaQemuSmc.h | 2 + .../SbsaQemu/Include/Library/FdtHelperLib.h | 36 --- .../Include/Library/SbsaQemuHardwareInfoLib.h | 28 ++ .../Library/FdtHelperLib/FdtHelperLib.c | 98 ------- .../Library/FdtHelperLib/FdtHelperLib.inf | 33 --- .../SbsaQemuHardwareInfoLib.c | 256 ++++++++++++++++++ .../SbsaQemuHardwareInfoLib.inf | 2 + .../Library/SbsaQemuLib/SbsaQemuLib.inf | 2 +- .../Library/SbsaQemuLib/SbsaQemuMem.c | 52 +--- 16 files changed, 321 insertions(+), 237 deletions(-) delete mode 100644 Silicon/Qemu/SbsaQemu/Include/Library/FdtHelperLib.h delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.c delete mode 100644 Silicon/Qemu/SbsaQemu/Library/FdtHelperLib/FdtHelperLib.inf -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114870): https://edk2.groups.io/g/devel/message/114870 Mute This Topic: https://groups.io/mt/104072176/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-