diff options
| -rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 3fadb5358858..748ed50c55ca 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
| @@ -2005,7 +2005,21 @@ static void igd_enable_cxsr(struct drm_device *dev, unsigned long clock, | |||
| 2005 | return; | 2005 | return; |
| 2006 | } | 2006 | } |
| 2007 | 2007 | ||
| 2008 | const static int latency_ns = 3000; /* default for non-igd platforms */ | 2008 | /* |
| 2009 | * Latency for FIFO fetches is dependent on several factors: | ||
| 2010 | * - memory configuration (speed, channels) | ||
| 2011 | * - chipset | ||
| 2012 | * - current MCH state | ||
| 2013 | * It can be fairly high in some situations, so here we assume a fairly | ||
| 2014 | * pessimal value. It's a tradeoff between extra memory fetches (if we | ||
| 2015 | * set this value too high, the FIFO will fetch frequently to stay full) | ||
| 2016 | * and power consumption (set it too low to save power and we might see | ||
| 2017 | * FIFO underruns and display "flicker"). | ||
| 2018 | * | ||
| 2019 | * A value of 5us seems to be a good balance; safe for very low end | ||
| 2020 | * platforms but not overly aggressive on lower latency configs. | ||
| 2021 | */ | ||
| 2022 | const static int latency_ns = 5000; | ||
| 2009 | 2023 | ||
| 2010 | static int intel_get_fifo_size(struct drm_device *dev, int plane) | 2024 | static int intel_get_fifo_size(struct drm_device *dev, int plane) |
| 2011 | { | 2025 | { |
