drm/i915: PPGTT Cacheability Override
Subsystems (2)
Rodrigo Vivi
maintainerPATCH 1/2 drm/i915: PPGTT Cacheability Override
Override Cacheability to WB in LLC/eLLC - Aged 3 1000 for better performance.
--- drivers/gpu/drm/i915/intel_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +2 -1
@@ -6186,7 +6186,8 @@ static void broadwell_init_clock_gating(struct drm_device *dev)ilk_init_lp_watermarks (dev);/* WaSwitchSolVfFArbitrationPriority:bdw */ -I915_WRITE (GAM_ECOCHK ,I915_READ (GAM_ECOCHK ) |HSW_ECOCHK_ARB_PRIO_SOL ); +I915_WRITE (GAM_ECOCHK ,I915_READ (GAM_ECOCHK ) |HSW_ECOCHK_ARB_PRIO_SOL | +ECOCHK_PPGTT_WB_HSW );/* WaPsrDPAMaskVBlankInSRD:bdw */ I915_WRITE(CHICKEN_PAR1_1,
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Rodrigo Vivi
maintainerPATCH 2/2 drm/i915/bdw: WaGttCachingOffByDefault: bdw
Due to RTL Bug, GAM does not support enabling GTT cache when big pages are also turned on. This leads to GAM reporting incorrect data and address.
For A0 let the register GTT_CACHE_EN use the default value[0x00000000]. For B0 onwards enable the GTT cache by setting the GTT_CACHE_EN[04024h] to value 0xF0007FFF instead of default value[0x000000].
--- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu/drm/i915/intel_pm.c | 3 +++ 2 files changed, 6 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +3 -0
@@ -157,6 +157,9 @@#define GEN8_RPCS_EU_MIN_SHIFT 0#define GEN8_RPCS_EU_MIN_MASK (0xf << GEN8_RPCS_EU_MIN_SHIFT) +#define GEN8_GTT_CACHE_EN 0x4024 +#define GEN8_GTT_CACHE_DEFAULT 0xf0007fff +#define GAM_ECOCHK 0x4090#define BDW_DISABLE_HDC_INVALIDATION (1<<25)#define ECOCHK_SNB_BIT (1<<10)
drivers/gpu/drm/i915/intel_pm.c +3 -0
@@ -6285,6 +6285,9 @@ static void haswell_init_clock_gating(struct drm_device *dev)I915_WRITE (CHICKEN_PAR1_1 ,I915_READ (CHICKEN_PAR1_1 ) |FORCE_ARB_IDLE_PLANES ); +/* WaGttCachingOffByDefault:bdw */ +I915_WRITE (GEN8_GTT_CACHE_EN ,GEN8_GTT_CACHE_DEFAULT ); +lpt_init_clock_gating (dev); }
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/bdw: WaGttCachingOffByDefault: bdw
Task id: 6548 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 276/276 276/276 ILK 303/303 303/303 SNB 312/312 312/312 IVB 343/343 343/343 BYT 287/287 287/287 BDW 321/321 321/321
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/bdw: WaGttCachingOffByDefault: bdw
In reply to Rodrigo ViviQuoted 3 lines · Rodrigo Vivi
Due to RTL Bug, GAM does not support enabling GTT cache when big pages are also turned on. This leads to GAM reporting incorrect data and address.
We don't use big pages, so we can leave GTT caching enabled until we support them (which may be never?).
Signature · 1 line
Damien
Quoted 42 lines
Signed-off-by Rodrigo Vivi <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 3 +++ drivers/gpu/drm/i915/intel_pm.c | 3 +++ 2 files changed, 6 insertions(+)drivers/gpu/drm/i915/i915_reg.h +3
-0@@ -157,6 +157,9 @@#define GEN8_RPCS_EU_MIN_SHIFT 0#define GEN8_RPCS_EU_MIN_MASK (0xf << GEN8_RPCS_EU_MIN_SHIFT) +#define GEN8_GTT_CACHE_EN 0x4024 +#define GEN8_GTT_CACHE_DEFAULT 0xf0007fff +#define GAM_ECOCHK 0x4090#define BDW_DISABLE_HDC_INVALIDATION (1<<25)#define ECOCHK_SNB_BIT (1<<10)drivers/gpu/drm/i915/intel_pm.c +3
-0@@ -6285,6 +6285,9 @@ static void haswell_init_clock_gating(struct drm_device *dev)I915_WRITE (CHICKEN_PAR1_1 ,I915_READ (CHICKEN_PAR1_1 ) |FORCE_ARB_IDLE_PLANES ); +/* WaGttCachingOffByDefault:bdw */ +I915_WRITE (GEN8_GTT_CACHE_EN ,GEN8_GTT_CACHE_DEFAULT ); +lpt_init_clock_gating (dev); }Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915/bdw: WaGttCachingOffByDefault: bdw
Quoted 8 lines · Damien Lespiau
Quoted 3 lines · Rodrigo Vivi
Due to RTL Bug, GAM does not support enabling GTT cache when big pages are also turned on. This leads to GAM reporting incorrect data and address.
We don't use big pages, so we can leave GTT caching enabled until we support them (which may be never?).
Also useful to leave a clue here for our future selves. -Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx