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:
c24f0c1
)
drm/i915/guc : GEM_BUG_ON on invoking GuC reset function
author
Sujaritha Sundaresan
<
[email protected]
>
Tue, 2 Jan 2018 21:20:25 +0000
(13:20 -0800)
committer
Chris Wilson
<
[email protected]
>
Wed, 3 Jan 2018 14:02:12 +0000
(14:02 +0000)
Instead of returning -EINVAL, GEM_BUG_ON when GuC reset is invoked for
platforms not supporting as we don't expect to invoke it.
v2: re-wording commit message and subject (Sagar)
Signed-off-by: Sujaritha Sundaresan <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Cc: Michal Wajdeczko <
[email protected]
>
Cc: Sagar Arun Kamble <
[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/intel_uncore.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_uncore.c
b/drivers/gpu/drm/i915/intel_uncore.c
index 89547b614aa6db389d9abfb56d8703ef79d42dd9..94e1fb3a2936d9fa0da7a96a0560588af1d51d86 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_uncore.c
+++ b/
drivers/gpu/drm/i915/intel_uncore.c
@@
-1936,8
+1936,7
@@
int intel_reset_guc(struct drm_i915_private *dev_priv)
{
int ret;
- if (!HAS_GUC(dev_priv))
- return -EINVAL;
+ GEM_BUG_ON(!HAS_GUC(dev_priv));
intel_uncore_forcewake_get(dev_priv, FORCEWAKE_ALL);
ret = gen6_hw_domain_reset(dev_priv, GEN9_GRDOM_GUC);