[PATCH] kexec: Enable CMA based contiguous allocation
David Woodhouse
dwmw2 at infradead.org
Sat May 24 03:16:03 PDT 2025
On Mon, 2025-05-12 at 22:57 +0000, Alexander Graf wrote:
>
> --- a/include/uapi/linux/kexec.h
> +++ b/include/uapi/linux/kexec.h
> @@ -27,6 +27,7 @@
> #define KEXEC_FILE_ON_CRASH 0x00000002
> #define KEXEC_FILE_NO_INITRAMFS 0x00000004
> #define KEXEC_FILE_DEBUG 0x00000008
> +#define KEXEC_FILE_NO_CMA 0x00000010
>
Gives me EINVAL when I try to use it. This helps (but should it be
permitted only on architectures which implement it?):
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -385,7 +385,7 @@ extern int kexec_load_disabled;
/* List of defined/legal kexec file flags */
#define KEXEC_FILE_FLAGS (KEXEC_FILE_UNLOAD | KEXEC_FILE_ON_CRASH | \
KEXEC_FILE_NO_INITRAMFS | \
- KEXEC_FILE_COOPERATIVE)
+ KEXEC_FILE_COOPERATIVE | KEXEC_FILE_NO_CMA)
/* Location of a reserved region to hold the crash kernel.
*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5069 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/kexec/attachments/20250524/fedd2aca/attachment.p7s>
More information about the kexec
mailing list