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:
5bfbeac
)
drm/i915: Tidy error handling in i915_gem_init_hw
author
Michał Winiarski
<
[email protected]
>
Thu, 12 Jul 2018 12:48:10 +0000
(14:48 +0200)
committer
Chris Wilson
<
[email protected]
>
Thu, 12 Jul 2018 14:15:21 +0000
(15:15 +0100)
Let's reorder things so that we can do onion teardown rather than double
goto.
References:
b96f6ebfd024
("drm/i915: Correctly handle error path in i915_gem_init_hw")
Signed-off-by: Michał Winiarski <
[email protected]
>
Cc: Michal Wajdeczko <
[email protected]
>
Cc: Sagar Arun Kamble <
[email protected]
>
Reviewed-by: Chris Wilson <
[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 07a92ca61dbfcaea154c91c50d5eb0ba27d358f8..ed2be33ec58a3540190f679257d703e15d43c297 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-5313,13
+5313,17
@@
int i915_gem_init_hw(struct drm_i915_private *dev_priv)
ret = __i915_gem_restart_engines(dev_priv);
if (ret)
goto cleanup_uc;
-out:
+
intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);
- return ret;
+
+ return 0;
cleanup_uc:
intel_uc_fini_hw(dev_priv);
- goto out;
+out:
+ intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);
+
+ return ret;
}
static int __intel_engines_record_defaults(struct drm_i915_private *i915)