aboutsummaryrefslogtreecommitdiff
path: root/SOURCES
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES')
-rw-r--r--SOURCES/0001-drm-i915-quirks-disable-async-flipping-on-specific-d.patch47
1 files changed, 4 insertions, 43 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
index 418d6d1..c2d0697 100644
--- 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
@@ -1,28 +1,13 @@
-From 9389b36b462bf2b467bdf3390039c51dfae376d1 Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jan200101 <sentrycraft123@gmail.com>
-Date: Sun, 13 Nov 2022 17:44:30 +0100
+Date: Mon, 14 Nov 2022 20:13:53 +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(-)
+ drivers/gpu/drm/i915/display/intel_quirks.c | 20 ++++++++++++++++++++
+ 1 file changed, 20 insertions(+)
-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
@@ -61,27 +46,3 @@ index e415cd7c0b84..3e4cd1d0f175 100644
};
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
-