mirror of
https://abf.rosa.ru/djam/kernel-6.6.git
synced 2025-02-25 11:52:46 +00:00
Added a patch to work around the issues with Intel HD 5xx GPUs
https://bugs.freedesktop.org/show_bug.cgi?id=97822 http://bugs.rosalinux.ru/show_bug.cgi?id=7533 Allows to specify i915.vbt_sdvo_panel_type=0 in the kernel command line at boot time as a workaround to the above issues.
This commit is contained in:
parent
72f5272106
commit
5b075ee3b7
2 changed files with 58 additions and 0 deletions
54
i915_hack_bug_97822.patch
Normal file
54
i915_hack_bug_97822.patch
Normal file
|
@ -0,0 +1,54 @@
|
|||
A hack used when investigating https://bugs.freedesktop.org/show_bug.cgi?id=97822.
|
||||
|
||||
From 8f6bd6297a9c62f03aa3ff3855ff4a159fddd55a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@linux.intel.com>
|
||||
Date: Thu, 6 Oct 2016 18:30:38 +0300
|
||||
Subject: [PATCH] drm/i915/hack: Abuse i915.vbt_sdvo_panel_type also for
|
||||
LVDS/eDP/DSI
|
||||
|
||||
---
|
||||
drivers/gpu/drm/i915/intel_bios.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c
|
||||
index 1f8af87..0404478 100644
|
||||
--- a/drivers/gpu/drm/i915/intel_bios.c
|
||||
+++ b/drivers/gpu/drm/i915/intel_bios.c
|
||||
@@ -218,19 +218,25 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv,
|
||||
|
||||
dev_priv->vbt.lvds_dither = lvds_options->pixel_dither;
|
||||
|
||||
- ret = intel_opregion_get_panel_type(dev_priv);
|
||||
- if (ret >= 0) {
|
||||
- WARN_ON(ret > 0xf);
|
||||
- panel_type = ret;
|
||||
- DRM_DEBUG_KMS("Panel type: %d (OpRegion)\n", panel_type);
|
||||
- } else {
|
||||
- if (lvds_options->panel_type > 0xf) {
|
||||
- DRM_DEBUG_KMS("Invalid VBT panel type 0x%x\n",
|
||||
- lvds_options->panel_type);
|
||||
- return;
|
||||
+ panel_type = i915.vbt_sdvo_panel_type;
|
||||
+ if (panel_type == -2)
|
||||
+ return;
|
||||
+
|
||||
+ if (panel_type < 0) {
|
||||
+ ret = intel_opregion_get_panel_type(dev_priv);
|
||||
+ if (ret >= 0) {
|
||||
+ WARN_ON(ret > 0xf);
|
||||
+ panel_type = ret;
|
||||
+ DRM_DEBUG_KMS("Panel type: %d (OpRegion)\n", panel_type);
|
||||
+ } else {
|
||||
+ if (lvds_options->panel_type > 0xf) {
|
||||
+ DRM_DEBUG_KMS("Invalid VBT panel type 0x%x\n",
|
||||
+ lvds_options->panel_type);
|
||||
+ return;
|
||||
+ }
|
||||
+ panel_type = lvds_options->panel_type;
|
||||
+ DRM_DEBUG_KMS("Panel type: %d (VBT)\n", panel_type);
|
||||
}
|
||||
- panel_type = lvds_options->panel_type;
|
||||
- DRM_DEBUG_KMS("Panel type: %d (VBT)\n", panel_type);
|
||||
}
|
||||
|
||||
dev_priv->vbt.panel_type = panel_type;
|
|
@ -210,6 +210,10 @@ Patch112: 0002-block-introduce-the-BFQ-v7r11-I-O-sched-to-be-ported.patch
|
|||
Patch113: 0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r11-to-.patch
|
||||
Patch114: 0004-Turn-BFQ-v7r11-into-BFQ-v8r4-for-4.8.0.patch
|
||||
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=97822
|
||||
# http://bugs.rosalinux.ru/show_bug.cgi?id=7533
|
||||
Patch200: i915_hack_bug_97822.patch
|
||||
|
||||
# Sanitizing kernel memory
|
||||
# We do not use "Patch:" here because apply_patched would always apply it
|
||||
# then, it seems, even if we place "Patch: <..>" under a conditional.
|
||||
|
|
Loading…
Add table
Reference in a new issue