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:
7084b50
)
drm/i915/skl: Fail the flip if no FB for WM calculation
author
Kumar, Mahesh
<
[email protected]
>
Wed, 17 May 2017 11:58:24 +0000
(17:28 +0530)
committer
Matt Roper
<
[email protected]
>
Wed, 17 May 2017 21:32:44 +0000
(14:32 -0700)
Fail the flip if no FB is present but plane_state is set as visible.
Above is not a valid combination so instead of continue fail the flip.
Signed-off-by: Mahesh Kumar <
[email protected]
>
Reviewed-by: Matt Roper <
[email protected]
>
Reviewed-by: Maarten Lankhorst <
[email protected]
>
Signed-off-by: Matt Roper <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/intel_pm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_pm.c
b/drivers/gpu/drm/i915/intel_pm.c
index ab056952cfa475921e87abdc110801cf4d1fdf9e..f494af358874a17256b8177f9032e2ccf1ceae28 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_pm.c
+++ b/
drivers/gpu/drm/i915/intel_pm.c
@@
-4408,7
+4408,8
@@
skl_compute_wm_level(const struct drm_i915_private *dev_priv,
if (!intel_pstate)
intel_pstate = to_intel_plane_state(plane->state);
- WARN_ON(!intel_pstate->base.fb);
+ if (WARN_ON(!intel_pstate->base.fb))
+ return -EINVAL;
ddb_blocks = skl_ddb_entry_size(&ddb->plane[pipe][intel_plane->id]);