From 7cfde1e32f2ddff827d10f7ad21a0f6d82f3dbee Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 18 Feb 2021 12:23:49 -0800 Subject: [PATCH] linux-yocto-5.10: Remove 2GB physical memory rv32 patch this is not applied to linux-yocto upstream Signed-off-by: Khem Raj --- ...sn-t-support-2GB-physical-memory-yet.patch | 38 ------------------- recipes-kernel/linux/linux-yocto_5.%.bbappend | 1 - 2 files changed, 39 deletions(-) delete mode 100644 recipes-kernel/linux/files/0001-RV32-doesn-t-support-2GB-physical-memory-yet.patch diff --git a/recipes-kernel/linux/files/0001-RV32-doesn-t-support-2GB-physical-memory-yet.patch b/recipes-kernel/linux/files/0001-RV32-doesn-t-support-2GB-physical-memory-yet.patch deleted file mode 100644 index 830ca19..0000000 --- a/recipes-kernel/linux/files/0001-RV32-doesn-t-support-2GB-physical-memory-yet.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 9708d1e40d57b53487d7cffb8083f092db84fc44 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Fri, 5 Feb 2021 00:20:52 -0800 -Subject: [PATCH] RV32 doesn't support 2GB physical memory yet. - -There are compilation errors e.g. - -arch/riscv/include/asm/page.h:34:46: error: 'UL' undeclared (first use in this function) - #define PAGE_OFFSET _AC(CONFIG_PAGE_OFFSET, UL) - -can be fixed by not allowing MAXPHYSMEM_2GB for RV32 and -MAXPHYSMEM_1GB for RV64. - -Source: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2458683.html - -Signed-off-by: Khem Raj ---- - arch/riscv/Kconfig | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig -index 234a21d26f67..3474286e59db 100644 ---- a/arch/riscv/Kconfig -+++ b/arch/riscv/Kconfig -@@ -252,8 +252,10 @@ choice - default MAXPHYSMEM_128GB if 64BIT && CMODEL_MEDANY - - config MAXPHYSMEM_1GB -+ depends on 32BIT - bool "1GiB" - config MAXPHYSMEM_2GB -+ depends on 64BIT && CMODEL_MEDLOW - bool "2GiB" - config MAXPHYSMEM_128GB - depends on 64BIT && CMODEL_MEDANY --- -2.30.0 - diff --git a/recipes-kernel/linux/linux-yocto_5.%.bbappend b/recipes-kernel/linux/linux-yocto_5.%.bbappend index 5775b3f..7447539 100644 --- a/recipes-kernel/linux/linux-yocto_5.%.bbappend +++ b/recipes-kernel/linux/linux-yocto_5.%.bbappend @@ -4,5 +4,4 @@ COMPATIBLE_MACHINE_append = "|qemuriscv32" SRC_URI_append_riscv32 = "\ file://0001-perf-Alias-SYS_futex-with-SYS_futex_time64-on-32-bit.patch \ - file://0001-RV32-doesn-t-support-2GB-physical-memory-yet.patch \ "