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.92195.1673313397229579068 for ; Mon, 09 Jan 2023 17:16:37 -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 _____8Bxa+pxvLxjzqYAAA--.1889S3; Tue, 10 Jan 2023 09:16:33 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxHuRxvLxjAR0XAA--.3346S2; Tue, 10 Jan 2023 09:16:33 +0800 (CST) From: "xianglai" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Bibo Mao , Chao Li , Leif Lindholm , Liming Gao , Michael D Kinney Subject: [edk2-platforms][PATCH V2 0/7] loongarch add flash device. Date: Tue, 10 Jan 2023 09:16:12 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxHuRxvLxjAR0XAA--.3346S2 X-CM-SenderInfo: 5ol0xt5qjotxo6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7AF15tFWxXF13GrykZw47urg_yoW8tw18pr WUZFZakr1UJFWIyw1fAa4UWr45AFyfKwn8JrsFqw15CasIqr1UW34jvFW0yr43Z343ta40 q3y0kw4UuFs3Z3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b0xFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4 AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF 7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv6xkF7I 0E14v26r4j6r4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCF FI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VCjz48v1sIEY20_WwAm72CE4IkC6x0Yz7 v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l42xK82IY6x8ErcxFaVAv 8VWrMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7 xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xII jxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw2 0EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvj4RC_MaUUUUU 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. 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. Cc: Ard Biesheuvel Cc: Bibo Mao Cc: Chao Li Cc: Leif Lindholm Cc: Liming Gao Cc: Michael D Kinney Bibo Mao (2): Platform/Loongson: add bootmode support. Platform/Loongson:add nvme device driver for loongarch. xianglai li (5): 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