[Intel-gfx] [PATCH] drm/i915/display: Fixed kernel taint in audio codec init

Uma Shankar uma.shankar at intel.com
Mon Apr 20 13:34:25 UTC 2020


This patch fixes a kernel taint on non DSC DP monitors.

Fixes: 48b8b04c7 ("drm/i915/display: Enable DP Display Audio WA")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1750
Signed-off-by: Uma Shankar <uma.shankar at intel.com>
---
 drivers/gpu/drm/i915/display/intel_audio.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_audio.c b/drivers/gpu/drm/i915/display/intel_audio.c
index 2663e71059af..0ff7c3f07fa5 100644
--- a/drivers/gpu/drm/i915/display/intel_audio.c
+++ b/drivers/gpu/drm/i915/display/intel_audio.c
@@ -606,7 +606,7 @@ static void enable_audio_dsc_wa(struct intel_encoder *encoder,
 	h_active = crtc_state->hw.adjusted_mode.hdisplay;
 
 	if (!(h_active && crtc_state->port_clock && crtc_state->lane_count &&
-	      crtc_state->dsc.compressed_bpp && i915->cdclk.hw.cdclk)) {
+	      i915->cdclk.hw.cdclk)) {
 		drm_err(&i915->drm, "Null Params rcvd for hblank early enabling\n");
 		WARN_ON(1);
 		return;
@@ -620,8 +620,9 @@ static void enable_audio_dsc_wa(struct intel_encoder *encoder,
 		val |= HBLANK_EARLY_ENABLE_TGL(pipe);
 
 	if (crtc_state->dsc.compression_enable &&
+	    crtc_state->dsc.compressed_bpp &&
 	    (crtc_state->hw.adjusted_mode.hdisplay >= 3840 &&
-	    crtc_state->hw.adjusted_mode.vdisplay >= 2160)) {
+	     crtc_state->hw.adjusted_mode.vdisplay >= 2160)) {
 		/* Get hblank early enable value required */
 		hblank_early_prog = get_hblank_early_enable_config(encoder,
 								   crtc_state);
-- 
2.22.0



More information about the Intel-gfx mailing list