summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-11-13 19:47:54 +0100
committerJan200101 <sentrycraft123@gmail.com>2022-11-13 19:47:54 +0100
commit72e8dde7f1778d25ae893480d28fd2beda6e6b7b (patch)
tree4a851dbc9a7f486d8ee7d00bfd918d61ba95bf87
parent7c198e9c22b4e40b320349103eb022a3e7e23b86 (diff)
downloadkernel-fsync-72e8dde7f1778d25ae893480d28fd2beda6e6b7b.tar.gz
kernel-fsync-72e8dde7f1778d25ae893480d28fd2beda6e6b7b.zip
kernel 6.0.7 i915 async patch
-rw-r--r--SOURCES/0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch87
-rwxr-xr-xSPECS/kernel.spec7
2 files changed, 93 insertions, 1 deletions
diff --git a/SOURCES/0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch b/SOURCES/0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch
new file mode 100644
index 0000000..418d6d1
--- /dev/null
+++ b/SOURCES/0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch
@@ -0,0 +1,87 @@
+From 9389b36b462bf2b467bdf3390039c51dfae376d1 Mon Sep 17 00:00:00 2001
+From: Jan200101 <sentrycraft123@gmail.com>
+Date: Sun, 13 Nov 2022 17:44:30 +0100
+Subject: [PATCH] drm/i915/quirks: disable async flipping on specific devices
+
+Signed-off-by: Jan200101 <sentrycraft123@gmail.com>
+---
+ drivers/gpu/drm/i915/display/intel_display.c | 2 +-
+ drivers/gpu/drm/i915/display/intel_quirks.c | 20 ++++++++++++++++++++
+ drivers/gpu/drm/i915/i915_drv.h | 3 ++-
+ 3 files changed, 23 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
+index fc5d94862ef3..a6aa0d4342d9 100644
+--- a/drivers/gpu/drm/i915/display/intel_display.c
++++ b/drivers/gpu/drm/i915/display/intel_display.c
+@@ -8615,7 +8615,7 @@ static void intel_mode_config_init(struct drm_i915_private *i915)
+
+ mode_config->funcs = &intel_mode_funcs;
+
+- mode_config->async_page_flip = HAS_ASYNC_FLIPS(i915);
++ mode_config->async_page_flip = (DISPLAY_VER(i915) >= 5);
+
+ /*
+ * Maximum framebuffer dimensions, chosen to match
+diff --git a/drivers/gpu/drm/i915/display/intel_quirks.c b/drivers/gpu/drm/i915/display/intel_quirks.c
+index e415cd7c0b84..3e4cd1d0f175 100644
+--- a/drivers/gpu/drm/i915/display/intel_quirks.c
++++ b/drivers/gpu/drm/i915/display/intel_quirks.c
+@@ -9,6 +9,12 @@
+ #include "intel_display_types.h"
+ #include "intel_quirks.h"
+
++static void quirk_async_flips_force_disable(struct drm_i915_private *i915)
++{
++ i915->drm.mode_config.async_page_flip = false;
++ drm_info(&i915->drm, "applying async flip disable quirk\n");
++}
++
+ /*
+ * Some machines (Lenovo U160) do not work with SSC on LVDS for some reason
+ */
+@@ -131,6 +137,20 @@ static const struct intel_dmi_quirk intel_dmi_quirks[] = {
+ },
+ .hook = quirk_no_pps_backlight_power_hook,
+ },
++ {
++ .dmi_id_list = &(const struct dmi_system_id[]) {
++ {
++ .callback = NULL,
++ .ident = "ASUS TUF DASH F15",
++ .matches = {
++ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
++ DMI_MATCH(DMI_PRODUCT_NAME, "ASUS TUF Dash F15 FX516PC_FX516PC"),
++ },
++ },
++ { }
++ },
++ .hook = quirk_async_flips_force_disable,
++ },
+ };
+
+ static struct intel_quirk intel_quirks[] = {
+diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
+index 086bbe8945d6..3d976a892728 100644
+--- a/drivers/gpu/drm/i915/i915_drv.h
++++ b/drivers/gpu/drm/i915/i915_drv.h
+@@ -200,6 +200,7 @@ struct drm_i915_display_funcs {
+ #define QUIRK_INCREASE_T12_DELAY (1<<6)
+ #define QUIRK_INCREASE_DDI_DISABLED_TIME (1<<7)
+ #define QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK (1<<8)
++#define QUIRK_ASYNC_FLIPS_DISABLE (1<<9)
+
+ struct i915_suspend_saved_registers {
+ u32 saveDSPARB;
+@@ -1341,7 +1342,7 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
+
+ #define HAS_VRR(i915) (DISPLAY_VER(i915) >= 11)
+
+-#define HAS_ASYNC_FLIPS(i915) (DISPLAY_VER(i915) >= 5)
++#define HAS_ASYNC_FLIPS(i915) (i915->drm.mode_config.async_page_flip)
+
+ /* Only valid when HAS_DISPLAY() is true */
+ #define INTEL_DISPLAY_ENABLED(dev_priv) \
+--
+2.38.1
+
diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec
index a2e3712..4e6673d 100755
--- a/SPECS/kernel.spec
+++ b/SPECS/kernel.spec
@@ -130,7 +130,7 @@ Summary: The Linux kernel
# This is needed to do merge window version magic
%define patchlevel 0
# This allows pkg_release to have configurable %%{?dist} tag
-%define specrelease 201%{?buildid}%{?dist}
+%define specrelease 202%{?buildid}%{?dist}
# This defines the kabi tarball version
%define kabiversion 6.0.7
@@ -883,6 +883,7 @@ Patch401: 0001-Revert-PCI-Add-a-REBAR-size-quirk-for-Sapphire-RX-56.patch
Patch403: v3-1-7-acpi-x86-s2idle-Move-_HID-handling-for-AMD-systems-into-structures.patch
Patch405: mt76:-mt7921:-Disable-powersave-features-by-default.patch
Patch408: 0001-acpi-proc-idle-skip-dummy-wait.patch
+Patch409: 0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch
%endif
@@ -1475,6 +1476,7 @@ ApplyOptionalPatch 0001-Revert-PCI-Add-a-REBAR-size-quirk-for-Sapphire-RX-56.pat
ApplyOptionalPatch v3-1-7-acpi-x86-s2idle-Move-_HID-handling-for-AMD-systems-into-structures.patch
ApplyOptionalPatch mt76:-mt7921:-Disable-powersave-features-by-default.patch
ApplyOptionalPatch 0001-acpi-proc-idle-skip-dummy-wait.patch
+ApplyOptionalPatch 0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch
%endif
@@ -3219,6 +3221,9 @@ fi
#
#
%changelog
+* Sun Nov 13 2022 Jan Drögehoff <sentrycraft123@gmail.com> - 6.0.7-202.fsync
+- Add intel async flipping patch
+
* Sat Nov 05 2022 Jan Drögehoff <sentrycraft123@gmail.com> - 6.0.7-201.fsync
- kernel-fsync v6.0.7