]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/fbc: Apply Wa_14025769978
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Thu, 27 Nov 2025 11:53:49 +0000 (13:53 +0200)
committerVinod Govindapillai <vinod.govindapillai@intel.com>
Thu, 4 Dec 2025 12:39:36 +0000 (14:39 +0200)
Disable cache read setting in the cacheability configuration
register as per the wa recommendation

Bspec: 79482, 74722, 68881
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patch.msgid.link/20251127115349.249120-4-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_display_wa.c
drivers/gpu/drm/i915/display/intel_display_wa.h
drivers/gpu/drm/i915/display/intel_fbc.c

index b2e71fa61c0abc90302554de23da7e0816ed46bf..a00af39f753805a7f3cfa15ff296d18bcf7d0fd8 100644 (file)
@@ -72,6 +72,8 @@ bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa,
                return IS_DISPLAY_VERx100(display, 1100, 1400);
        case INTEL_DISPLAY_WA_15018326506:
                return display->platform.battlemage;
+       case INTEL_DISPLAY_WA_14025769978:
+               return DISPLAY_VER(display) == 35;
        default:
                drm_WARN(display->drm, 1, "Missing Wa number: %s\n", name);
                break;
index f648b00cb97d3fc4a391833f727df34174ea12db..a68c0bb7e516cddf17f29acf963b0382e5716f87 100644 (file)
@@ -27,6 +27,7 @@ enum intel_display_wa {
        INTEL_DISPLAY_WA_14011503117,
        INTEL_DISPLAY_WA_22014263786,
        INTEL_DISPLAY_WA_15018326506,
+       INTEL_DISPLAY_WA_14025769978,
 };
 
 bool __intel_display_wa(struct intel_display *display, enum intel_display_wa wa, const char *name);
index 18ad621f4b8ac8e1b1c1de7fb08f16e3d3826aa6..155b308ed66f73adbb7c0bcf8d5a3d5b5e3a417d 100644 (file)
@@ -964,8 +964,14 @@ static void fbc_sys_cache_update_config(struct intel_display *display, u32 reg,
 
        lockdep_assert_held(&display->fbc.sys_cache.lock);
 
-       /* Cache read enable is set by default */
-       reg |= FBC_SYS_CACHE_READ_ENABLE;
+       /*
+        * Wa_14025769978:
+        * Fixes: SoC hardware issue in read caching
+        * Workaround: disable cache read setting which is enabled by default.
+        */
+       if (!intel_display_wa(display, 14025769978))
+               /* Cache read enable is set by default */
+               reg |= FBC_SYS_CACHE_READ_ENABLE;
 
        intel_de_write(display, XE3P_LPD_FBC_SYS_CACHE_USAGE_CFG, reg);