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:
83d317a
)
drm/i915: Correctly handle error path in i915_gem_init_hw
author
Michal Wajdeczko
<
[email protected]
>
Tue, 5 Jun 2018 12:24:43 +0000
(12:24 +0000)
committer
Chris Wilson
<
[email protected]
>
Tue, 5 Jun 2018 14:16:08 +0000
(15:16 +0100)
In function gem_init_hw() we are calling uc_init_hw() but in case
of error later in function, we missed to call matching uc_fini_hw()
v2: pulled out from the series
Signed-off-by: Michal Wajdeczko <
[email protected]
>
Cc: Sagar Arun Kamble <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Reviewed-by: Sagar Arun Kamble <
[email protected]
>
Signed-off-by: Chris Wilson <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 2a51a2b6d22cfc23bf5da43813eddf46a186c96d..c41997595183685fed958c989d090d94587d9e8d 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-5286,9
+5286,15
@@
int i915_gem_init_hw(struct drm_i915_private *dev_priv)
/* Only when the HW is re-initialised, can we replay the requests */
ret = __i915_gem_restart_engines(dev_priv);
+ if (ret)
+ goto cleanup_uc;
out:
intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);
return ret;
+
+cleanup_uc:
+ intel_uc_fini_hw(dev_priv);
+ goto out;
}
static int __intel_engines_record_defaults(struct drm_i915_private *i915)