Skip to content

Commit d435376

Browse files
committed
drm/i915: skip the first 4k of stolen memory on everything >= gen8
BSpec got updated and this workaround is now listed as standard required programming for all subsequent projects. This is confirmed to fix Skylake screen flickering issues (probably caused by the fact that we initialized a ring in the first page of stolen, but I didn't 100% confirm this theory). v2: this is the patch that fixes the screen flickering, document it. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94605 Cc: stable@vger.kernel.org Tested-by: Dominik Klementowski <dominik232@gmail.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1481727338-9901-1-git-send-email-paulo.r.zanoni@intel.com
1 parent c2dc6cc commit d435376

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/i915/i915_gem_stolen.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ int i915_gem_stolen_insert_node_in_range(struct drm_i915_private *dev_priv,
5555
return -ENODEV;
5656

5757
/* See the comment at the drm_mm_init() call for more about this check.
58-
* WaSkipStolenMemoryFirstPage:bdw,chv,kbl (incomplete)
58+
* WaSkipStolenMemoryFirstPage:bdw+ (incomplete)
5959
*/
60-
if (start < 4096 && (IS_GEN8(dev_priv) ||
61-
IS_KBL_REVID(dev_priv, 0, KBL_REVID_A0)))
60+
if (start < 4096 && INTEL_GEN(dev_priv) >= 8)
6261
start = 4096;
6362

6463
mutex_lock(&dev_priv->mm.stolen_lock);

0 commit comments

Comments
 (0)