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 19D9F780091 for ; Wed, 3 Jan 2024 00:59:29 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qpyb87r9Xsr51Nqpr2oivlX1D5a0ssUrBUJDAdh23ek=; 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=1704243568; v=1; b=K7iaghOMaATDP3qwJgqrsoNUTCS7hBXRPPedpywvooLirCCItJDLBN6JloqmrRhkdExa29PU SaMbjbFA+b8Gai8OC2IbNAnK9SQyEGCk1OCVDcDrwsKaB5FD7OuiPSGL1joqASlOc9HCm8pgieu 7KW7dzjqD66ogTKJCLhaD/tI= X-Received: by 127.0.0.2 with SMTP id E6AyYY7687511xGJgMv5mYjG; Tue, 02 Jan 2024 16:59:28 -0800 X-Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by mx.groups.io with SMTP id smtpd.web10.115795.1703728758881744412 for ; Wed, 27 Dec 2023 17:59:20 -0800 X-Received: from prodtpl.icoremail.net (unknown [10.12.1.20]) by hzbj-icmmx-6 (Coremail) with SMTP id AQAAfwCXncl01oxlXLduAg--.22511S2; Thu, 28 Dec 2023 09:59:16 +0800 (CST) X-Received: from phytium.com.cn (unknown [218.76.62.144]) by mail (Coremail) with SMTP id AQAAfwAXnQtq1oxlqEoAAA--.182S3; Thu, 28 Dec 2023 09:59:07 +0800 (CST) From: "Xiong Yining" To: devel@edk2.groups.io Cc: Xiong Yining Subject: [edk2-devel] [PATCH v2 0/1] Support multi memory nodes Date: Thu, 28 Dec 2023 01:59:01 +0000 Message-Id: <20231228015902.1692317-1-xiongyining1480@phytium.com.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAfwAXnQtq1oxlqEoAAA--.182S3 X-CM-SenderInfo: x0lr0wp1lqx0bjrumio6sk53xlxphulrpou0/1tbiAQAHBmWMfGYBfQABsO X-Coremail-Antispam: 1Uk129KBjvdXoW7Xw4fCF18uw1rJry3CF4fAFb_yoWkXFc_uF 47ZrWSkr4vqan7KFWjy3y5XFyIvFW8Gr1xu3W3tF4xKFyUZr43GF4UJ3yUX348Aw4Ykr18 Cr4qqr1rtws29jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrnU Uv73VFW2AGmfu7jjvjm3AaLaJ3UjIYCTnIWjDUYxBIdaVFxhVjvjDU0xZFpf9x0zRUUUUU UUUU= 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: VjRnJhT3Afdzi1R2U2oXU6YVx7686176AA= 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=K7iaghOM; 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 When SaSbQemu platform is configured with multi memory nodes, like numa architecture, os will ignore any memory node in the device tree except the first one.The kernel reads UEFI memory map for memory information when booting via UEFI.However UEFI only allocates the first memory node memory space for SbsaQemu platform, in this scenario we can use the GCD services to add memory spaces for high memory node. Changes in v2: - get the information of memory via SMC rather than FdtClientDxe. - add a new driver rather than use HighMemDxe. Xiong Yining (1): SbsaQemu: add memory space for the high memory nodes Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 3 +- Platform/Qemu/SbsaQemu/SbsaQemu.fdf | 1 + .../SbsaQemuHighMemDxe/SbsaQemuHighMemDxe.inf | 43 ++++++ .../SbsaQemuHighMemDxe/SbsaQemuHighMemDxe.c | 133 ++++++++++++++++++ 4 files changed, 179 insertions(+), 1 deletion(-) create mode 100644 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuHighMemDxe/SbsaQemuHighMemDxe.inf create mode 100644 Silicon/Qemu/SbsaQemu/Drivers/SbsaQemuHighMemDxe/SbsaQemuHighMemDxe.c -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113049): https://edk2.groups.io/g/devel/message/113049 Mute This Topic: https://groups.io/mt/103494170/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-