Ignore:
Timestamp:
Apr 18, 2017, 8:47:31 AM (6 weeks ago)
Author:
brainslayer
Message:

update kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.4/drivers/gpu/drm/i915/intel_pm.c

    r31662 r31884  
    43774377        }
    43784378
     4379        /* When byt can survive without system hang with dynamic
     4380         * sw freq adjustments, this restriction can be lifted.
     4381         */
     4382        if (IS_VALLEYVIEW(dev_priv))
     4383                goto skip_hw_write;
     4384
    43794385        I915_WRITE(GEN6_RP_UP_EI,
    43804386                GT_INTERVAL_FROM_US(dev_priv, ei_up));
     
    43954401                    GEN6_RP_DOWN_IDLE_AVG);
    43964402
     4403skip_hw_write:
    43974404        dev_priv->rps.power = new_power;
    43984405        dev_priv->rps.up_threshold = threshold_up;
     
    44054412        u32 mask = 0;
    44064413
     4414        /* We use UP_EI_EXPIRED interupts for both up/down in manual mode */
    44074415        if (val > dev_priv->rps.min_freq_softlimit)
    4408                 mask |= GEN6_PM_RP_DOWN_EI_EXPIRED | GEN6_PM_RP_DOWN_THRESHOLD | GEN6_PM_RP_DOWN_TIMEOUT;
     4416                mask |= GEN6_PM_RP_UP_EI_EXPIRED | GEN6_PM_RP_DOWN_THRESHOLD | GEN6_PM_RP_DOWN_TIMEOUT;
    44094417        if (val < dev_priv->rps.max_freq_softlimit)
    44104418                mask |= GEN6_PM_RP_UP_EI_EXPIRED | GEN6_PM_RP_UP_THRESHOLD;
     
    45104518        mutex_lock(&dev_priv->rps.hw_lock);
    45114519        if (dev_priv->rps.enabled) {
    4512                 if (dev_priv->pm_rps_events & (GEN6_PM_RP_DOWN_EI_EXPIRED | GEN6_PM_RP_UP_EI_EXPIRED))
     4520                if (dev_priv->pm_rps_events & GEN6_PM_RP_UP_EI_EXPIRED)
    45134521                        gen6_rps_reset_ei(dev_priv);
    45144522                I915_WRITE(GEN6_PMINTRMSK,
Note: See TracChangeset for help on using the changeset viewer.