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:
67b7f33
)
drm/i915/gvt: Return -EIO if host enable_execlists not enabled when loading GVT-g
author
Chuanxiao Dong
<
[email protected]
>
Sat, 27 May 2017 09:44:18 +0000
(17:44 +0800)
committer
Joonas Lahtinen
<
[email protected]
>
Tue, 30 May 2017 12:59:56 +0000
(15:59 +0300)
GVT-g relies on the enable_execlists parameter in i915. If this option
is not enabled for GVT-g, should return -EIO to make i915 driver loading
failed.
v2:
- Use DMR_ERROR as it is a fatal message. (Chris)
Suggested-by: Joonas Lahtinen <
[email protected]
>
Signed-off-by: Chuanxiao Dong <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Reviewed-by: Chris Wilson <
[email protected]
>
Signed-off-by: Joonas Lahtinen <
[email protected]
>
drivers/gpu/drm/i915/intel_gvt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_gvt.c
b/drivers/gpu/drm/i915/intel_gvt.c
index dde9c78325e436284b8ce3dacf581a7de49abcc7..e2a3f0af1418fedf84bc6ebbbf1e22ef367d3a61 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_gvt.c
+++ b/
drivers/gpu/drm/i915/intel_gvt.c
@@
-96,8
+96,8
@@
int intel_gvt_init(struct drm_i915_private *dev_priv)
}
if (!i915.enable_execlists) {
- DRM_
INFO("GPU guest virtualisation [GVT-g] disabled due to disabled execlist submission [i915.enable_execlists module parameter]
\n");
-
goto bail
;
+ DRM_
ERROR("i915 GVT-g loading failed due to disabled execlists mode
\n");
+
return -EIO
;
}
/*