Rev 6296 | Rev 6660 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6296 | Rev 6320 | ||
---|---|---|---|
Line 1892... | Line 1892... | ||
1892 | * Queue the timer to fire a long time from now (relative to the power |
1892 | * Queue the timer to fire a long time from now (relative to the power |
1893 | * down delay) to keep the panel power up across a sequence of |
1893 | * down delay) to keep the panel power up across a sequence of |
1894 | * operations. |
1894 | * operations. |
1895 | */ |
1895 | */ |
1896 | delay = msecs_to_jiffies(intel_dp->panel_power_cycle_delay * 5); |
1896 | delay = msecs_to_jiffies(intel_dp->panel_power_cycle_delay * 5); |
1897 | // schedule_delayed_work(&intel_dp->panel_vdd_work, delay); |
1897 | schedule_delayed_work(&intel_dp->panel_vdd_work, delay); |
1898 | } |
1898 | } |
Line 1899... | Line 1899... | ||
1899 | 1899 | ||
1900 | /* |
1900 | /* |
1901 | * Must be paired with edp_panel_vdd_on(). |
1901 | * Must be paired with edp_panel_vdd_on(). |
Line 5754... | Line 5754... | ||
5754 | enum pipe pipe; |
5754 | enum pipe pipe; |
Line 5755... | Line 5755... | ||
5755 | 5755 | ||
5756 | if (dev_priv->drrs.type == DRRS_NOT_SUPPORTED) |
5756 | if (dev_priv->drrs.type == DRRS_NOT_SUPPORTED) |
Line 5757... | Line 5757... | ||
5757 | return; |
5757 | return; |
Line 5758... | Line 5758... | ||
5758 | 5758 | ||
5759 | // cancel_delayed_work(&dev_priv->drrs.work); |
5759 | cancel_delayed_work(&dev_priv->drrs.work); |
5760 | 5760 | ||
5761 | mutex_lock(&dev_priv->drrs.mutex); |
5761 | mutex_lock(&dev_priv->drrs.mutex); |
Line 5774... | Line 5774... | ||
5774 | if (frontbuffer_bits && dev_priv->drrs.refresh_rate_type == DRRS_LOW_RR) |
5774 | if (frontbuffer_bits && dev_priv->drrs.refresh_rate_type == DRRS_LOW_RR) |
5775 | intel_dp_set_drrs_state(dev_priv->dev, |
5775 | intel_dp_set_drrs_state(dev_priv->dev, |
5776 | dev_priv->drrs.dp->attached_connector->panel. |
5776 | dev_priv->drrs.dp->attached_connector->panel. |
5777 | fixed_mode->vrefresh); |
5777 | fixed_mode->vrefresh); |
Line -... | Line 5778... | ||
- | 5778 | ||
- | 5779 | /* |
|
- | 5780 | * flush also means no more activity hence schedule downclock, if all |
|
- | 5781 | * other fbs are quiescent too |
|
- | 5782 | */ |
|
- | 5783 | if (!dev_priv->drrs.busy_frontbuffer_bits) |
|
- | 5784 | schedule_delayed_work(&dev_priv->drrs.work, |
|
5778 | 5785 | msecs_to_jiffies(1000)); |
|
5779 | mutex_unlock(&dev_priv->drrs.mutex); |
5786 | mutex_unlock(&dev_priv->drrs.mutex); |
Line 5780... | Line 5787... | ||
5780 | } |
5787 | } |
5781 | 5788 |