Skip to content

Commit bd2553d

Browse files
author
pswbuild
committed
Synchronize code for OnePlus PLK110_16.0.0.204(CN01)
1 parent a8f88ad commit bd2553d

File tree

22 files changed

+180
-56
lines changed

22 files changed

+180
-56
lines changed

BUILD.bazel

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fail_rule(
9292

9393
write_file(
9494
name = "gki_system_dlkm_modules_arm64",
95-
out = "gki/aarch64/system_dlkm_modules",
95+
out = "android/gki_system_dlkm_modules_arm64",
9696
# Do not built kunit modules into system_dlkm
9797
content = get_gki_modules_list("arm64") + [
9898
# Ensure new line at the end.
@@ -113,7 +113,7 @@ write_file(
113113

114114
write_file(
115115
name = "gki_system_dlkm_modules_x86_64",
116-
out = "gki/x86_64/system_dlkm_modules",
116+
out = "android/gki_system_dlkm_modules_x86_64",
117117
# Do not built kunit modules into system_dlkm
118118
content = get_gki_modules_list("x86_64") + [
119119
# Ensure new line at the end.
@@ -246,7 +246,7 @@ common_kernel(
246246
":tests_zip_arm64",
247247
],
248248
gki_boot_img_sizes = _GKI_AARCH64_BOOT_IMAGE_SIZES,
249-
gki_system_dlkm_modules = ":gki_system_dlkm_modules_arm64",
249+
gki_system_dlkm_modules = "android/gki_system_dlkm_modules_arm64",
250250
kcflags = COMMON_KCFLAGS,
251251
kmi_enforced = True,
252252
kmi_symbol_list = "gki/aarch64/symbols/base",
@@ -274,7 +274,7 @@ common_kernel(
274274
":tests_zip_arm64",
275275
],
276276
gki_boot_img_sizes = _GKI_AARCH64_BOOT_IMAGE_SIZES,
277-
gki_system_dlkm_modules = ":gki_system_dlkm_modules_arm64",
277+
gki_system_dlkm_modules = "android/gki_system_dlkm_modules_arm64",
278278
kcflags = COMMON_KCFLAGS,
279279
# We don't guarantee ABI stability for 16k target
280280
kmi_enforced = False,
@@ -378,7 +378,7 @@ common_kernel(
378378
":tests_zip_x86_64",
379379
],
380380
gki_boot_img_sizes = _GKI_X86_64_BOOT_IMAGE_SIZES,
381-
gki_system_dlkm_modules = ":gki_system_dlkm_modules_x86_64",
381+
gki_system_dlkm_modules = "android/gki_system_dlkm_modules_x86_64",
382382
kcflags = COMMON_KCFLAGS,
383383
make_goals = _GKI_X86_64_MAKE_GOALS,
384384
makefile = ":Makefile",

arch/arm64/include/asm/memory.h

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
#define _KASAN_SHADOW_START(va) (KASAN_SHADOW_END - (UL(1) << ((va) - KASAN_SHADOW_SCALE_SHIFT)))
105105
#define KASAN_SHADOW_START _KASAN_SHADOW_START(vabits_actual)
106106
#define PAGE_END KASAN_SHADOW_START
107-
#define KASAN_THREAD_SHIFT 1
107+
#define KASAN_THREAD_SHIFT 2
108108
#else
109109
#define KASAN_THREAD_SHIFT 0
110110
#define PAGE_END (_PAGE_END(VA_BITS_MIN))

arch/arm64/mm/mmu.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,8 +1169,11 @@ int __meminit vmemmap_check_pmd(pmd_t *pmdp, int node,
11691169
unsigned long addr, unsigned long next)
11701170
{
11711171
vmemmap_verify((pte_t *)pmdp, node, addr, next);
1172-
1172+
#ifdef CONFIG_QCOM_VM_MEMORY_FEATURES_NONGKI
1173+
return pmd_sect(*pmdp);
1174+
#else
11731175
return pmd_sect(READ_ONCE(*pmdp));
1176+
#endif
11741177
}
11751178

11761179
int __meminit vmemmap_populate(unsigned long start, unsigned long end, int node,

build.config.common

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ echo 'WARNING: Do not source build.config.common. Instead:
77

88
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.constants
99

10+
CLANG_PREBUILT_BIN=prebuilts/clang/host/linux-x86/clang-${CLANG_VERSION}/bin
11+
BUILDTOOLS_PREBUILT_BIN=build/kernel/build-tools/path/linux-x86
12+
1013
KCFLAGS="${KCFLAGS} -D__ANDROID_COMMON_KERNEL__"

drivers/soc/qcom/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,15 @@ config QCOM_INLINE_CRYPTO_ENGINE
286286
tristate
287287
select QCOM_SCM
288288

289+
config QCOM_VM_MEMORY_FEATURES_NONGKI
290+
bool "NONGKI Memory Features"
291+
depends on ARCH_QCOM || COMPILE_TEST
292+
help
293+
This enables memory-related features which are not compatible with
294+
GKI. Currently this fixes edge-cases with the memremap_pages() API
295+
which have not been accepted upstream.
296+
If you are not building a QCOM VM, or are unsure, say 'N' here.
297+
289298
config QCOM_PBS
290299
tristate "PBS trigger support for Qualcomm Technologies, Inc. PMICS"
291300
depends on SPMI

drivers/ufs/core/ufshcd.c

100644100755
File mode changed.

fs/fuse/backing.c

100644100755
File mode changed.

gki/aarch64/symbols/oplus

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
do_traversal_all_lruvec
3636
arm64_mismatched_32bit_el0
3737
d_rehash
38+
driver_create_file
3839
drm_crtc_vblank_waitqueue
3940
d_set_d_op
4041
filp_close

include/linux/dma-buf.h

100644100755
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ struct dma_buf {
536536
struct dma_buf *dmabuf;
537537
} *sysfs_entry;
538538
#endif
539-
540539
ANDROID_KABI_RESERVE(1);
541540
ANDROID_KABI_RESERVE(2);
542541
ANDROID_BACKPORT_RESERVE(1);

include/linux/iova.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ struct iova_domain {
4141
struct hlist_node cpuhp_dead;
4242

4343
ANDROID_VENDOR_DATA(1);
44+
#if IS_ENABLED(CONFIG_QTVM_IOMMU_TRACE_HOOKS) && !defined(CONFIG_ANDROID_VENDOR_OEM_DATA)
45+
u64 android_vendor_data1;
46+
#endif
4447
};
4548

4649
static inline unsigned long iova_size(struct iova *iova)

0 commit comments

Comments
 (0)