From c9946eeb228ef39b8756970a19ec097a038a04df Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 27 Apr 2021 17:09:46 +0200 Subject: [kernel-vanilla] Add "Patch" for i915 on IVB_GT1 and Baytrail --- core/modules/kernel-vanilla/module.build | 1 + 1 file changed, 1 insertion(+) (limited to 'core/modules/kernel-vanilla') diff --git a/core/modules/kernel-vanilla/module.build b/core/modules/kernel-vanilla/module.build index f8d5f351..81eff22e 100644 --- a/core/modules/kernel-vanilla/module.build +++ b/core/modules/kernel-vanilla/module.build @@ -52,6 +52,7 @@ fetch_source() { git apply < "$patch" || perror "Could not apply $patch" echo "$patch" >> "patches-done" done + sed -i 's/batch_add(&cmds, 0xffff0000);/batch_add(\&cmds, 0xffff0000 | ((IS_IVB_GT1(i915) || IS_VALLEYVIEW(i915)) ? HIZ_RAW_STALL_OPT_DISABLE : 0));/' "drivers/gpu/drm/i915/gt/gen7_renderclear.c" || perror "Could not patch Ivybridge/Baytrail graphics." cd - # remember the current kernel version echo "${SYSTEM_KERNEL_LONG}" > ksrc/KVERSION -- cgit v1.2.3-55-g7522