diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2022-08-06 19:44:02 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2022-09-24 23:53:53 +0200 |
commit | e2f0821b5a26bd7ee9d9db93358fa515eca98d1b (patch) | |
tree | 01927b5b4ec59f0e73a36682f1597ddca5338df1 /target/linux/uml/patches-5.15/104-um-increase-default-virtual-physical-memory-to-64.patch | |
parent | 8bea5edf89e57c32b98620540a457441f5f8ddeb (diff) | |
download | upstream-e2f0821b5a26bd7ee9d9db93358fa515eca98d1b.tar.gz upstream-e2f0821b5a26bd7ee9d9db93358fa515eca98d1b.tar.bz2 upstream-e2f0821b5a26bd7ee9d9db93358fa515eca98d1b.zip |
uml: add Kernel 5.15 support via testing
Add the latest default Kernel for testing.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/uml/patches-5.15/104-um-increase-default-virtual-physical-memory-to-64.patch')
-rw-r--r-- | target/linux/uml/patches-5.15/104-um-increase-default-virtual-physical-memory-to-64.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/uml/patches-5.15/104-um-increase-default-virtual-physical-memory-to-64.patch b/target/linux/uml/patches-5.15/104-um-increase-default-virtual-physical-memory-to-64.patch new file mode 100644 index 0000000000..3a67a7dbd0 --- /dev/null +++ b/target/linux/uml/patches-5.15/104-um-increase-default-virtual-physical-memory-to-64.patch @@ -0,0 +1,40 @@ +From d7936f11aded13f03871c0d6502d611d6a1e2dc5 Mon Sep 17 00:00:00 2001 +Message-Id: <d7936f11aded13f03871c0d6502d611d6a1e2dc5.1659815468.git.chunkeey@gmail.com> +In-Reply-To: <53b5c5f559cc95fc676cb4cc9e5a8d9f0cb8f58c.1659815468.git.chunkeey@gmail.com> +References: <53b5c5f559cc95fc676cb4cc9e5a8d9f0cb8f58c.1659815468.git.chunkeey@gmail.com> +From: Christian Lamparter <chunkeey@gmail.com> +Date: Sat, 6 Aug 2022 19:27:20 +0200 +Subject: [PATCH v1 2/2] um: increase default virtual physical memory to 64 MiB +To: linux-um@lists.infradead.org +Cc: Richard Weinberger <richard@nod.at>, + Anton Ivanov <anton.ivanov@cambridgegreys.com>, + Johannes Berg <johannes@sipsolutions.net> + +The current 32 MiB of RAM causes OOMs to appear shortly after +booting in a minimal OpenWrt 22.03 configuration with a +5.10.134 kernel. + +Of course, passing a "mem=64M" (from the --help text) parameter +works too, but it produces the following (info) message: + +| [ 0.000000] Unknown kernel command line parameters "mem=64M", will be passed to user space. + +That's why, I think it would be nicer, if this is working out +of the box again :). + +Signed-off-by: Christian Lamparter <chunkeey@gmail.com> +--- + arch/um/kernel/um_arch.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/um/kernel/um_arch.c ++++ b/arch/um/kernel/um_arch.c +@@ -130,7 +130,7 @@ static int have_root __initdata; + static int have_console __initdata; + + /* Set in uml_mem_setup and modified in linux_main */ +-long long physmem_size = 32 * 1024 * 1024; ++long long physmem_size = 64 * 1024 * 1024; + EXPORT_SYMBOL(physmem_size); + + static const char *usage_string = |