mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
x86: backport Intel GUC support for N5105/N6005 in kernel 5.15
This commit is contained in:
parent
6bf0fbd526
commit
0303ac3d38
36
target/linux/x86/patches-5.15/991-fix-i915-guc-icl.patch
Normal file
36
target/linux/x86/patches-5.15/991-fix-i915-guc-icl.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff --git a/drivers/gpu/drm/i915/gt/intel_workarounds.c b/drivers/gpu/drm/i915/gt/intel_workarounds.c
|
||||
index c3211325c2d3..3113266c286e 100644
|
||||
--- a/drivers/gpu/drm/i915/gt/intel_workarounds.c
|
||||
+++ b/drivers/gpu/drm/i915/gt/intel_workarounds.c
|
||||
@@ -1224,6 +1224,15 @@ icl_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)
|
||||
GAMT_CHKN_BIT_REG,
|
||||
GAMT_CHKN_DISABLE_L3_COH_PIPE);
|
||||
|
||||
+ /* Wa_1407352427:icl,ehl */
|
||||
+ wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE2,
|
||||
+ PSDUNIT_CLKGATE_DIS);
|
||||
+
|
||||
+ /* Wa_1406680159:icl,ehl */
|
||||
+ wa_write_or(wal,
|
||||
+ SUBSLICE_UNIT_LEVEL_CLKGATE,
|
||||
+ GWUNIT_CLKGATE_DIS);
|
||||
+
|
||||
/* Wa_1607087056:icl,ehl,jsl */
|
||||
if (IS_ICELAKE(i915) ||
|
||||
IS_JSL_EHL_GRAPHICS_STEP(i915, STEP_A0, STEP_B0))
|
||||
@@ -2269,15 +2278,6 @@ rcs_engine_wa_init(struct intel_engine_cs *engine, struct i915_wa_list *wal)
|
||||
wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE,
|
||||
VSUNIT_CLKGATE_DIS | HSUNIT_CLKGATE_DIS);
|
||||
|
||||
- /* Wa_1407352427:icl,ehl */
|
||||
- wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE2,
|
||||
- PSDUNIT_CLKGATE_DIS);
|
||||
-
|
||||
- /* Wa_1406680159:icl,ehl */
|
||||
- wa_write_or(wal,
|
||||
- SUBSLICE_UNIT_LEVEL_CLKGATE,
|
||||
- GWUNIT_CLKGATE_DIS);
|
||||
-
|
||||
/*
|
||||
* Wa_1408767742:icl[a2..forever],ehl[all]
|
||||
* Wa_1605460711:icl[a0..c0]
|
11
target/linux/x86/patches-5.15/992-enable-intel-guc.patch
Normal file
11
target/linux/x86/patches-5.15/992-enable-intel-guc.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/drivers/gpu/drm/i915/gt/uc/intel_uc.c
|
||||
+++ b/drivers/gpu/drm/i915/gt/uc/intel_uc.c
|
||||
@@ -26,7 +26,7 @@ static void uc_expand_default_options(st
|
||||
return;
|
||||
|
||||
/* Don't enable GuC/HuC on pre-Gen12 */
|
||||
- if (GRAPHICS_VER(i915) < 12) {
|
||||
+ if (GRAPHICS_VER(i915) < 9) {
|
||||
i915->params.enable_guc = 0;
|
||||
return;
|
||||
}
|
Loading…
Reference in New Issue
Block a user