From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.76087.1673575454390768334 for ; Thu, 12 Jan 2023 18:04:14 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: lixianglai@loongson.cn) Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8DxDesavMBjUl4BAA--.4275S3; Fri, 13 Jan 2023 10:04:10 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxzr4ZvMBjOboYAA--.55658S2; Fri, 13 Jan 2023 10:04:10 +0800 (CST) From: "xianglai" To: devel@edk2.groups.io Subject: [edk2-platforms][PATCH V3 0/8] loongarch add flash device. Date: Fri, 13 Jan 2023 10:04:01 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Bxzr4ZvMBjOboYAA--.55658S2 X-CM-SenderInfo: 5ol0xt5qjotxo6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7AF15tFWxXrWrtw15WryfJFb_yoW8ur1kpr WUZF9akr1UJFWIyw13Aa4UWF45AayfKwn8JrsIgw15CasxXr1Uu34FvFW8Ar47Z343Ja40 q3y0kw4DCFsxZ3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b0kFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4 AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1I6r4UM28EF7xvwVC0I7IYx2IY6xkF 7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVCY1x 0267AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE 44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E74AGY7Cv6cx26rWlOx8S6xCaFVCjc4 AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxAIw28IcxkI7VAKI48JMxAIw28IcVCjz48v1sIE Y20_WwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E74 80Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jr0_JrylIxkGc2Ij64vIr41lIxAIcVC0 I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04 k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7Cj xVAFwI0_Jr0_GrUvcSsGvfC2KfnxnUUI43ZEXa7xRE6wZ7UUUUU== Content-Transfer-Encoding: 8bit This is a patch series that contains: 1.loongarch add flash device driver. 2.loongarch add nvme device driver. 3.Optimize the mmu lib of loongarch. 4.Enable zero address protection. v3 changes: - split flash driver patch. v2 changes: - Split the MMU lib-related patches further. - Remove the for loop of flash information lookup in VirtNorFlashPlatformLib Because the Loongarch virtual machine only emulates one flash . - Add the necessary comments in VirtNorFlashPlatformLib. - Remove the hard coding associated with the Flash base address. - Optimize the process of converting huge pages to page table entries in MMU lib. xianglai li (8): Platform/Loongson: add bootmode support. Platform/Loongson:add nvme device driver for loongarch. Platform/Loongson: Add pflash driver. Platform/Loongson: Support pflash for loongarch. Platform/Loongson: Modify the page table entry access priority. Platform/Loongson: Optimize page table entry null determination. Platform/Loongson: Optimize the huge page and page entry conversion. Platform/Loongson: Enable zero address protection. .../Library/MmuLib/MmuBaseLibPei.inf | 2 + .../Library/MmuLib/MmuLibCore.c | 119 +++++++++++---- .../Library/MmuLib/MmuLibCorePei.c | 5 + .../LoongArchQemuPkg/Library/MmuLib/page.h | 5 +- .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 141 ++++++++++++++++++ .../NorFlashQemuLib/NorFlashQemuLib.inf | 43 ++++++ .../Loongson/LoongArchQemuPkg/Loongson.dsc | 22 ++- .../Loongson/LoongArchQemuPkg/Loongson.fdf | 8 +- .../LoongArchQemuPkg/PlatformPei/Platform.c | 5 + .../LoongArchQemuPkg/VarStore.fdf.inc | 67 +++++++++ 10 files changed, 375 insertions(+), 42 deletions(-) create mode 100644 Platform/Loongson/LoongArchQemuPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c create mode 100644 Platform/Loongson/LoongArchQemuPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf create mode 100644 Platform/Loongson/LoongArchQemuPkg/VarStore.fdf.inc -- 2.31.1