Skip to content

Commit 6deef9b

Browse files
vsrini4mlankhorst
authored andcommitted
drm/i915: Enable Display WA 0528
Possible hang with NV12 plane surface formats. WA: When the plane source pixel format is NV12, the CHICKEN_PIPESL_* register bit 22 must be set to 1 and the render decompression must not be enabled on any of the planes in that pipe. v2: removed unnecessary POSTING_READ v3: Added RB from Maarten v4: Removed support for NV12 for BROXTON Credits-to: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/1526074397-10457-3-git-send-email-vidya.srinivas@intel.com
1 parent 8e02115 commit 6deef9b

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,22 @@ static const struct intel_limit intel_limits_bxt = {
488488
.p2 = { .p2_slow = 1, .p2_fast = 20 },
489489
};
490490

491+
static void
492+
skl_wa_528(struct drm_i915_private *dev_priv, int pipe, bool enable)
493+
{
494+
if (IS_SKYLAKE(dev_priv) || IS_BROXTON(dev_priv))
495+
return;
496+
497+
if (enable)
498+
I915_WRITE(CHICKEN_PIPESL_1(pipe), HSW_FBCQ_DIS);
499+
else
500+
I915_WRITE(CHICKEN_PIPESL_1(pipe), 0);
501+
}
502+
491503
static void
492504
skl_wa_clkgate(struct drm_i915_private *dev_priv, int pipe, bool enable)
493505
{
494-
if (IS_SKYLAKE(dev_priv))
506+
if (IS_SKYLAKE(dev_priv) || IS_BROXTON(dev_priv))
495507
return;
496508

497509
if (enable)
@@ -5193,8 +5205,10 @@ static void intel_post_plane_update(struct intel_crtc_state *old_crtc_state)
51935205

51945206
/* Display WA 827 */
51955207
if (needs_nv12_wa(dev_priv, old_crtc_state) &&
5196-
!needs_nv12_wa(dev_priv, pipe_config))
5208+
!needs_nv12_wa(dev_priv, pipe_config)) {
51975209
skl_wa_clkgate(dev_priv, crtc->pipe, false);
5210+
skl_wa_528(dev_priv, crtc->pipe, false);
5211+
}
51985212
}
51995213

52005214
static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state,
@@ -5231,8 +5245,10 @@ static void intel_pre_plane_update(struct intel_crtc_state *old_crtc_state,
52315245

52325246
/* Display WA 827 */
52335247
if (!needs_nv12_wa(dev_priv, old_crtc_state) &&
5234-
needs_nv12_wa(dev_priv, pipe_config))
5248+
needs_nv12_wa(dev_priv, pipe_config)) {
52355249
skl_wa_clkgate(dev_priv, crtc->pipe, true);
5250+
skl_wa_528(dev_priv, crtc->pipe, true);
5251+
}
52365252

52375253
/*
52385254
* Vblank time updates from the shadow to live plane control register

0 commit comments

Comments
 (0)