Set CONFIG_CMA_SIZE_MBYTES=256 (libcamera)
Read the fine manual, please :)
-
I have read https://postmarketos.org/kconfig-adjust-multiple
What benefit does the change have?
Video recording does not crash on edge, as reported by cosmo in the testing chat:
Camera works now on fairphone-fp5, but CMA buffer is still fixed at 16MB (see https://wiki.postmarketos.org/wiki/Camera#Testing). It should probably be set to 256MB as per wiki instructions linked.
Snapshot video recording used to crash because of this on edge, but seems to work on v24.12 (to my surprise). Still, should probably be changed in the kernel config.
Which option(s) would you like to change?
diff --git a/kconfigcheck.toml b/kconfigcheck.toml
index ad54ce6d7c..1d4b0602d8 100644
--- a/kconfigcheck.toml
+++ b/kconfigcheck.toml
@@ -332,6 +332,7 @@ EFI_ZBOOT = true
["category:libcamera".">=0.0.0"."aarch64"]
UDMABUF = true
+CONFIG_CMA_SIZE_MBYTES=256
["category:input".">=0.0.0"."all"]
BT_HIDP = true # Bluetooth HID
Did you already test that this works as expected?
Cosmo tested it, as reported above.
For which kernel configs would you do the change?
-
all in main and community -
certain SoC(s): -
other (please specify): category:libcamera
CC: @lucaweiss
Edited by Oliver Smith