gtt-cache-enable
Subsystems (2)
PATCH 1/1 gtt-cache-enable
--- drivers/gpu/drm/i915/i915_gem_gtt.c | 12 ++++++++++++ drivers/gpu/drm/i915/intel_pm.c | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/i915_gem_gtt.c +12 -0
@@ -2154,6 +2154,18 @@ static void gtt_write_workarounds(struct drm_i915_private *dev_priv)I915_WRITE (GEN8_GAMW_ECO_DEV_RW_IA ,I915_READ (GEN8_GAMW_ECO_DEV_RW_IA ) |GAMW_ECO_ENABLE_64K_IPS_FIELD ); + +if (INTEL_GEN (dev_priv) >=8 ) { +bool can_use_gtt_cache = true; + +if (HAS_PAGE_SIZES (dev_priv,I915_GTT_PAGE_SIZE_2M ) && +IS_BROADWELL (dev_priv)) + can_use_gtt_cache = false; + +/* WaGttCachingOffByDefault */ +I915_WRITE (HSW_GTT_CACHE_EN , can_use_gtt_cache ?GTT_CACHE_EN_ALL :0 ); +WARN_ON_ONCE (can_use_gtt_cache &&I915_READ (HSW_GTT_CACHE_EN ) ==0 ); + } }int i915_ppgtt_init_hw (struct drm_i915_private *dev_priv)
drivers/gpu/drm/i915/intel_pm.c +0 -12
@@ -8453,9 +8453,6 @@ static void skl_init_clock_gating(struct drm_i915_private *dev_priv)static void bdw_init_clock_gating (struct drm_i915_private *dev_priv) { -/* The GTT cache must be disabled if the system is using 2M pages. */ -bool can_use_gtt_cache = !HAS_PAGE_SIZES (dev_priv, -I915_GTT_PAGE_SIZE_2M );enum pipe pipe;ilk_init_lp_watermarks (dev_priv);
@@ -8490,9 +8487,6 @@ static void bdw_init_clock_gating(struct drm_i915_private *dev_priv)/* WaProgramL3SqcReg1Default:bdw */ gen8_set_l3sqc_credits (dev_priv,30 ,2 ); -/* WaGttCachingOffByDefault:bdw */ -I915_WRITE (HSW_GTT_CACHE_EN , can_use_gtt_cache ?GTT_CACHE_EN_ALL :0 ); -/* WaKVMNotificationOnConfigChange:bdw */ I915_WRITE (CHICKEN_PAR2_1 ,I915_READ (CHICKEN_PAR2_1 ) |KVM_CONFIG_CHANGE_NOTIFICATION_SELECT );
@@ -8765,12 +8759,6 @@ static void chv_init_clock_gating(struct drm_i915_private *dev_priv)* LSQC Setting Recommendations. */ gen8_set_l3sqc_credits (dev_priv,38 ,2 ); - -/* -* GTT cache may not work with big pages, so if those -* are ever enabled GTT cache may need to be disabled. -*/ -I915_WRITE (HSW_GTT_CACHE_EN ,GTT_CACHE_EN_ALL ); }static void g4x_init_clock_gating (struct drm_i915_private *dev_priv)
Signature · 6 lines
2.13.6 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: warning for gtt-cache-enable
== Series Details ==
== Series Details ==
Series: gtt-cache-enable
URL : https://patchwork.freedesktop.org/series/31669/
State : warning
== Summary ==
Series 31669v1 gtt-cache-enable
https://patchwork.freedesktop.org/api/1.0/series/31669/revisions/1/mbox/
Test chamelium:
Subgroup dp-crc-fast:
fail -> PASS (fi-kbl-7500u) fdo#102514
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-varying-size:
pass -> SKIP (fi-ivb-3770)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
incomplete -> PASS (fi-kbl-7560u) fdo#102846fdo#102514 https://bugs.freedesktop.org/show_bug.cgi?id=102514
fdo#102846 https://bugs.freedesktop.org/show_bug.cgi?id=102846
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:452s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:471s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:390s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:558s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:283s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:519s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:521s fi-byt-j1900 total:289 pass:253 dwarn:1 dfail:0 fail:0 skip:35 time:534s fi-cfl-s total:289 pass:253 dwarn:4 dfail:0 fail:0 skip:32 time:558s fi-cnl-y total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:619s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:433s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:598s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:437s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:418s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:458s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:502s fi-ivb-3770 total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:477s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:501s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:581s fi-kbl-7567u total:289 pass:265 dwarn:4 dfail:0 fail:0 skip:20 time:487s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:592s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:655s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:469s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:656s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:537s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:549s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:468s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:583s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:428s
fi-byt-n2820 failed to connect after reboot
cc58e6d2bc38542af8f8031d4b79f4069bba6afc drm-tip: 2017y-10m-10d-15h-40m-22s UTC integration manifest f046e02a1e2b gtt-cache-enable
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_5981/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx