diff options
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 3 |
3 files changed, 3 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 0d53eacd293f..b46a3fd17746 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -3721,12 +3721,8 @@ i915_gem_load(struct drm_device *dev) | |||
3721 | 3721 | ||
3722 | /* On GEN3 we really need to make sure the ARB C3 LP bit is set */ | 3722 | /* On GEN3 we really need to make sure the ARB C3 LP bit is set */ |
3723 | if (IS_GEN3(dev)) { | 3723 | if (IS_GEN3(dev)) { |
3724 | u32 tmp = I915_READ(MI_ARB_STATE); | 3724 | I915_WRITE(MI_ARB_STATE, |
3725 | if (!(tmp & MI_ARB_C3_LP_WRITE_ENABLE)) { | 3725 | _MASKED_BIT_ENABLE(MI_ARB_C3_LP_WRITE_ENABLE)); |
3726 | /* arb state is a masked write, so set bit + bit in mask */ | ||
3727 | tmp = MI_ARB_C3_LP_WRITE_ENABLE | (MI_ARB_C3_LP_WRITE_ENABLE << MI_ARB_MASK_SHIFT); | ||
3728 | I915_WRITE(MI_ARB_STATE, tmp); | ||
3729 | } | ||
3730 | } | 3726 | } |
3731 | 3727 | ||
3732 | dev_priv->relative_constants_mode = I915_EXEC_CONSTANTS_REL_GENERAL; | 3728 | dev_priv->relative_constants_mode = I915_EXEC_CONSTANTS_REL_GENERAL; |
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index f1f4d8f1df6a..7bc407a87c0c 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -570,7 +570,6 @@ | |||
570 | #define LM_BURST_LENGTH 0x00000700 | 570 | #define LM_BURST_LENGTH 0x00000700 |
571 | #define LM_FIFO_WATERMARK 0x0000001F | 571 | #define LM_FIFO_WATERMARK 0x0000001F |
572 | #define MI_ARB_STATE 0x020e4 /* 915+ only */ | 572 | #define MI_ARB_STATE 0x020e4 /* 915+ only */ |
573 | #define MI_ARB_MASK_SHIFT 16 /* shift for enable bits */ | ||
574 | 573 | ||
575 | /* Make render/texture TLB fetches lower priorty than associated data | 574 | /* Make render/texture TLB fetches lower priorty than associated data |
576 | * fetches. This is not turned on by default | 575 | * fetches. This is not turned on by default |
@@ -635,7 +634,6 @@ | |||
635 | #define MI_ARB_DISPLAY_PRIORITY_B_A (1 << 0) /* display B > display A */ | 634 | #define MI_ARB_DISPLAY_PRIORITY_B_A (1 << 0) /* display B > display A */ |
636 | 635 | ||
637 | #define CACHE_MODE_0 0x02120 /* 915+ only */ | 636 | #define CACHE_MODE_0 0x02120 /* 915+ only */ |
638 | #define CM0_MASK_SHIFT 16 | ||
639 | #define CM0_IZ_OPT_DISABLE (1<<6) | 637 | #define CM0_IZ_OPT_DISABLE (1<<6) |
640 | #define CM0_ZR_OPT_DISABLE (1<<5) | 638 | #define CM0_ZR_OPT_DISABLE (1<<5) |
641 | #define CM0_STC_EVICT_DISABLE_LRA_SNB (1<<5) | 639 | #define CM0_STC_EVICT_DISABLE_LRA_SNB (1<<5) |
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 0552058a202f..e66330cc0934 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -2663,9 +2663,8 @@ static void gen6_init_clock_gating(struct drm_device *dev) | |||
2663 | I915_WRITE(WM2_LP_ILK, 0); | 2663 | I915_WRITE(WM2_LP_ILK, 0); |
2664 | I915_WRITE(WM1_LP_ILK, 0); | 2664 | I915_WRITE(WM1_LP_ILK, 0); |
2665 | 2665 | ||
2666 | /* clear masked bit */ | ||
2667 | I915_WRITE(CACHE_MODE_0, | 2666 | I915_WRITE(CACHE_MODE_0, |
2668 | CM0_STC_EVICT_DISABLE_LRA_SNB << CM0_MASK_SHIFT); | 2667 | _MASKED_BIT_DISABLE(CM0_STC_EVICT_DISABLE_LRA_SNB)); |
2669 | 2668 | ||
2670 | I915_WRITE(GEN6_UCGCTL1, | 2669 | I915_WRITE(GEN6_UCGCTL1, |
2671 | I915_READ(GEN6_UCGCTL1) | | 2670 | I915_READ(GEN6_UCGCTL1) | |