projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c28ff2
)
drm/i915: Handle cdclk limits on broadwell.
author
Maarten Lankhorst
<
[email protected]
>
Tue, 24 Nov 2015 10:29:03 +0000
(11:29 +0100)
committer
Maarten Lankhorst
<
[email protected]
>
Thu, 3 Dec 2015 15:10:11 +0000
(16:10 +0100)
As the comment indicates this can only fail gracefully when
called from compute_config. Fortunately this is now what's happening,
so the fixme can be removed and the DRM_ERROR downgraded.
Link:
http://patchwork.freedesktop.org/patch/msgid/1448360945-5723-3-git-send-email-maarten.lankhorst@linux.intel.com
Signed-off-by: Maarten Lankhorst <
[email protected]
>
Reviewed-by: Chris Wilson <
[email protected]
>
drivers/gpu/drm/i915/intel_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_display.c
b/drivers/gpu/drm/i915/intel_display.c
index 01aae086b53287bab7108507671dc00521faa100..3a13a498722ac9495610941fd0460005fc1cd5b7 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_display.c
+++ b/
drivers/gpu/drm/i915/intel_display.c
@@
-9719,14
+9719,10
@@
static int broadwell_modeset_calc_cdclk(struct drm_atomic_state *state)
else
cdclk = 337500;
- /*
- * FIXME move the cdclk caclulation to
- * compute_config() so we can fail gracegully.
- */
if (cdclk > dev_priv->max_cdclk_freq) {
- DRM_
ERROR
("requested cdclk (%d kHz) exceeds max (%d kHz)\n",
- cdclk, dev_priv->max_cdclk_freq);
-
cdclk = dev_priv->max_cdclk_freq
;
+ DRM_
DEBUG_KMS
("requested cdclk (%d kHz) exceeds max (%d kHz)\n",
+
cdclk, dev_priv->max_cdclk_freq);
+
return -EINVAL
;
}
to_intel_atomic_state(state)->cdclk = cdclk;