Re: [OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump

2015-06-02 Thread John Crispin
Hi,

do you plan to send the fixed version of this series ?

John




On 07/05/2015 04:25, wengbj wrote:
 Signed-off-by: wengbj fl.serv...@t-firefly.com
 ---
  .../patches-3.18/305-mips_module_reloc.patch   |7 ++-
  1 file changed, 6 insertions(+), 1 deletion(-)
 
 diff --git a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch 
 b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
 index 41cf806..fd31f9f 100644
 --- a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
 +++ b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
 @@ -1,6 +1,6 @@
  --- a/arch/mips/Makefile
  +++ b/arch/mips/Makefile
 -@@ -90,8 +90,13 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
 +@@ -90,8 +90,18 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
   cflags-y+= -G 0 -mno-abicalls -fno-pic -pipe 
 -mno-branch-likely
   cflags-y+= -msoft-float
   LDFLAGS_vmlinux += -G 0 -static -n -nostdlib 
 --gc-sections
 @@ -8,9 +8,14 @@
   KBUILD_AFLAGS_MODULE+= -mlong-calls
   KBUILD_CFLAGS_MODULE+= -mlong-calls
  +else
 ++ifdef CONFIG_HIGHMEM
 ++KBUILD_AFLAGS_MODULE+= -mlong-calls
 ++KBUILD_CFLAGS_MODULE+= -mlong-calls
 ++else
  +KBUILD_AFLAGS_MODULE+= -mno-long-calls
  +KBUILD_CFLAGS_MODULE+= -mno-long-calls
  +endif
 ++endif
   
   ifndef CONFIG_FUNCTION_TRACER
   KBUILD_CFLAGS_KERNEL+= -ffunction-sections -fdata-sections
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump

2015-05-07 Thread Felix Fietkau
On 2015-05-07 04:25, wengbj wrote:
 Signed-off-by: wengbj fl.serv...@t-firefly.com
This will make the code less efficient, I don't like that. Can't we just
change the kernel code in the mips_module_reloc patch to enforce
allocation within the lowmem memory space?

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump

2015-05-06 Thread wengbj
Signed-off-by: wengbj fl.serv...@t-firefly.com
---
 .../patches-3.18/305-mips_module_reloc.patch   |7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch 
b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
index 41cf806..fd31f9f 100644
--- a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
+++ b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/Makefile
 +++ b/arch/mips/Makefile
-@@ -90,8 +90,13 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
+@@ -90,8 +90,18 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
  cflags-y  += -G 0 -mno-abicalls -fno-pic -pipe 
-mno-branch-likely
  cflags-y  += -msoft-float
  LDFLAGS_vmlinux   += -G 0 -static -n -nostdlib 
--gc-sections
@@ -8,9 +8,14 @@
  KBUILD_AFLAGS_MODULE  += -mlong-calls
  KBUILD_CFLAGS_MODULE  += -mlong-calls
 +else
++ifdef CONFIG_HIGHMEM
++KBUILD_AFLAGS_MODULE  += -mlong-calls
++KBUILD_CFLAGS_MODULE  += -mlong-calls
++else
 +KBUILD_AFLAGS_MODULE  += -mno-long-calls
 +KBUILD_CFLAGS_MODULE  += -mno-long-calls
 +endif
++endif
  
  ifndef CONFIG_FUNCTION_TRACER
  KBUILD_CFLAGS_KERNEL  += -ffunction-sections -fdata-sections
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump

2015-05-06 Thread John Crispin
Hi,

what is the difference between this and the previous version ?

Johnn

On 07/05/2015 04:25, wengbj wrote:
 Signed-off-by: wengbj fl.serv...@t-firefly.com
 ---
  .../patches-3.18/305-mips_module_reloc.patch   |7 ++-
  1 file changed, 6 insertions(+), 1 deletion(-)
 
 diff --git a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch 
 b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
 index 41cf806..fd31f9f 100644
 --- a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
 +++ b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
 @@ -1,6 +1,6 @@
  --- a/arch/mips/Makefile
  +++ b/arch/mips/Makefile
 -@@ -90,8 +90,13 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
 +@@ -90,8 +90,18 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
   cflags-y+= -G 0 -mno-abicalls -fno-pic -pipe 
 -mno-branch-likely
   cflags-y+= -msoft-float
   LDFLAGS_vmlinux += -G 0 -static -n -nostdlib 
 --gc-sections
 @@ -8,9 +8,14 @@
   KBUILD_AFLAGS_MODULE+= -mlong-calls
   KBUILD_CFLAGS_MODULE+= -mlong-calls
  +else
 ++ifdef CONFIG_HIGHMEM
 ++KBUILD_AFLAGS_MODULE+= -mlong-calls
 ++KBUILD_CFLAGS_MODULE+= -mlong-calls
 ++else
  +KBUILD_AFLAGS_MODULE+= -mno-long-calls
  +KBUILD_CFLAGS_MODULE+= -mno-long-calls
  +endif
 ++endif
   
   ifndef CONFIG_FUNCTION_TRACER
   KBUILD_CFLAGS_KERNEL+= -ffunction-sections -fdata-sections
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/4] kernel: mips jump only works with memory less then 256mb. when enable HIGHMEM use long jump

2015-04-28 Thread wengbj
Signed-off-by: wengbj fl.serv...@t-firefly.com
---
 .../patches-3.18/305-mips_module_reloc.patch   |7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch 
b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
index 41cf806..fd31f9f 100644
--- a/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
+++ b/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/Makefile
 +++ b/arch/mips/Makefile
-@@ -90,8 +90,13 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
+@@ -90,8 +90,18 @@ all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlin
  cflags-y  += -G 0 -mno-abicalls -fno-pic -pipe 
-mno-branch-likely
  cflags-y  += -msoft-float
  LDFLAGS_vmlinux   += -G 0 -static -n -nostdlib 
--gc-sections
@@ -8,9 +8,14 @@
  KBUILD_AFLAGS_MODULE  += -mlong-calls
  KBUILD_CFLAGS_MODULE  += -mlong-calls
 +else
++ifdef CONFIG_HIGHMEM
++KBUILD_AFLAGS_MODULE  += -mlong-calls
++KBUILD_CFLAGS_MODULE  += -mlong-calls
++else
 +KBUILD_AFLAGS_MODULE  += -mno-long-calls
 +KBUILD_CFLAGS_MODULE  += -mno-long-calls
 +endif
++endif
  
  ifndef CONFIG_FUNCTION_TRACER
  KBUILD_CFLAGS_KERNEL  += -ffunction-sections -fdata-sections
-- 
1.7.9.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel