drm/i915: Limit Wa_22010178259 to affected platforms
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 13 Jul 2021 00:38:53 +0000 (17:38 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 13 Jul 2021 17:06:23 +0000 (10:06 -0700)
This workaround is not needed for platforms with display 13.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210713003854.143197-5-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c

index 285380079aab279a926ef935a0ddfc12f28d3d7b..6fc766da660547bbd8a70c783e94b10ee9114912 100644 (file)
@@ -5822,10 +5822,11 @@ static void tgl_bw_buddy_init(struct drm_i915_private *dev_priv)
                        intel_de_write(dev_priv, BW_BUDDY_PAGE_MASK(i),
                                       table[config].page_mask);
 
-                       /* Wa_22010178259:tgl,rkl */
-                       intel_de_rmw(dev_priv, BW_BUDDY_CTL(i),
-                                    BW_BUDDY_TLB_REQ_TIMER_MASK,
-                                    BW_BUDDY_TLB_REQ_TIMER(0x8));
+                       /* Wa_22010178259:tgl,dg1,rkl,adl-s */
+                       if (DISPLAY_VER(dev_priv) == 12)
+                               intel_de_rmw(dev_priv, BW_BUDDY_CTL(i),
+                                            BW_BUDDY_TLB_REQ_TIMER_MASK,
+                                            BW_BUDDY_TLB_REQ_TIMER(0x8));
                }
        }
 }