mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 13:51:52 +00:00
drm/i915: Disable trickle feed in ironlake_init_clock_gating()
We disable trickle feed in all the (relevant) clock gating functions, except ironlake_init_clock_gating(). Copy paste the same code there as well. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
20f949670f
commit
bdad2b2f31
1 changed files with 8 additions and 0 deletions
|
@ -4391,6 +4391,7 @@ static void ironlake_init_clock_gating(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||||
uint32_t dspclk_gate = ILK_VRHUNIT_CLOCK_GATE_DISABLE;
|
uint32_t dspclk_gate = ILK_VRHUNIT_CLOCK_GATE_DISABLE;
|
||||||
|
int pipe;
|
||||||
|
|
||||||
/* Required for FBC */
|
/* Required for FBC */
|
||||||
dspclk_gate |= ILK_DPFCRUNIT_CLOCK_GATE_DISABLE |
|
dspclk_gate |= ILK_DPFCRUNIT_CLOCK_GATE_DISABLE |
|
||||||
|
@ -4450,6 +4451,13 @@ static void ironlake_init_clock_gating(struct drm_device *dev)
|
||||||
I915_WRITE(CACHE_MODE_0,
|
I915_WRITE(CACHE_MODE_0,
|
||||||
_MASKED_BIT_ENABLE(CM0_PIPELINED_RENDER_FLUSH_DISABLE));
|
_MASKED_BIT_ENABLE(CM0_PIPELINED_RENDER_FLUSH_DISABLE));
|
||||||
|
|
||||||
|
for_each_pipe(pipe) {
|
||||||
|
I915_WRITE(DSPCNTR(pipe),
|
||||||
|
I915_READ(DSPCNTR(pipe)) |
|
||||||
|
DISPPLANE_TRICKLE_FEED_DISABLE);
|
||||||
|
intel_flush_display_plane(dev_priv, pipe);
|
||||||
|
}
|
||||||
|
|
||||||
ibx_init_clock_gating(dev);
|
ibx_init_clock_gating(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue