From 9ee014a60e3ad01b02533e710cd9044ca470f72a Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Thu, 13 Jun 2024 22:02:20 +0530 Subject: [PATCH] sm8350-common: Disable UFFD GC Unable to determine UFFD GC flag for kernel version "5.4.268-qgki". You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true" or "false" based on the kernel version. 1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports userfaultfd(2) and MREMAP_DONTUNMAP. 2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise. Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03 --- common.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common.mk b/common.mk index 5b3ac8d..dcb09da 100644 --- a/common.mk +++ b/common.mk @@ -273,6 +273,9 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml +# Kernel +PRODUCT_ENABLE_UFFD_GC := false + # Keymaster PRODUCT_PACKAGES += \ android.hardware.keymaster@4.1.vendor