summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/qemuboot.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-10-06 12:21:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-09 15:51:13 +0100
commita4857688c395f6baf93f20e44cec6d1ed6745d0b (patch)
tree64404df11c2d4bece7c94d133567ed60b9e1129e /meta/classes-recipe/qemuboot.bbclass
parent68b54a02d5ba8a00bb91c38308381ceca2870e38 (diff)
downloadpoky-a4857688c395f6baf93f20e44cec6d1ed6745d0b.tar.gz
qemuboot: reduce default size of software I/O translation buffer
With 6.5+ (specifically, if DMA_BOUNCE_UNALIGNED_KMALLOC is set) the SWIOTLB is used, and it defaults to 64MB. This is too much when there's only 256MB of RAM, so request 0 slabs and lets the kernel round up to the appropriate minimum (1MB on aarch64, typically). In virtual hardware there's very little need for these bounce buffers, so the 64MB would be mostly wasted. (From OE-Core rev: 369e768d87b80be9efe76937bfafeddabc35f559) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/qemuboot.bbclass')
-rw-r--r--meta/classes-recipe/qemuboot.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass
index e30b380c3d..5c4bbd6737 100644
--- a/meta/classes-recipe/qemuboot.bbclass
+++ b/meta/classes-recipe/qemuboot.bbclass
@@ -107,6 +107,13 @@ QB_ROOTFS_EXTRA_OPT ?= ""
107QB_GRAPHICS ?= "" 107QB_GRAPHICS ?= ""
108QB_NFSROOTFS_EXTRA_OPT ?= "" 108QB_NFSROOTFS_EXTRA_OPT ?= ""
109 109
110# With 6.5+ (specifically, if DMA_BOUNCE_UNALIGNED_KMALLOC is set) the SW IO TLB
111# is used, and it defaults to 64MB. This is too much when there's only 256MB of
112# RAM, so request 0 slabs and lets the kernel round up to the appropriate minimum
113# (1MB, typically). In virtual hardware there's very little need for these bounce
114# buffers, so the 64MB would be mostly wasted.
115QB_KERNEL_CMDLINE_APPEND:append = " swiotlb=0"
116
110# This should be kept align with ROOT_VM 117# This should be kept align with ROOT_VM
111QB_DRIVE_TYPE ?= "/dev/sd" 118QB_DRIVE_TYPE ?= "/dev/sd"
112 119