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:
93ffbe8
)
drm/i915/uc: Don't fetch GuC firmware if no plan to use GuC
author
Michal Wajdeczko
<
[email protected]
>
Wed, 6 Dec 2017 13:53:13 +0000
(13:53 +0000)
committer
Chris Wilson
<
[email protected]
>
Wed, 6 Dec 2017 14:41:51 +0000
(14:41 +0000)
If we don't plan to use GuC then we should not try to fetch GuC and
HuC firmwares. We can save memory and avoid possible dmesg noise.
Signed-off-by: Michal Wajdeczko <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Cc: Joonas Lahtinen <
[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/intel_uc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_uc.c
b/drivers/gpu/drm/i915/intel_uc.c
index ed2dd764fed77b341022bbcf59d312ae1638a567..c3981aa4fb28b7f44b309406effcd492bec0c6e4 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_uc.c
+++ b/
drivers/gpu/drm/i915/intel_uc.c
@@
-86,12
+86,18
@@
void intel_uc_init_early(struct drm_i915_private *dev_priv)
void intel_uc_init_fw(struct drm_i915_private *dev_priv)
{
+ if (!USES_GUC(dev_priv))
+ return;
+
intel_uc_fw_fetch(dev_priv, &dev_priv->huc.fw);
intel_uc_fw_fetch(dev_priv, &dev_priv->guc.fw);
}
void intel_uc_fini_fw(struct drm_i915_private *dev_priv)
{
+ if (!USES_GUC(dev_priv))
+ return;
+
intel_uc_fw_fini(&dev_priv->guc.fw);
intel_uc_fw_fini(&dev_priv->huc.fw);
}