projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c148e0
)
drm/i915/guc: Add GuC ADS - enabling ADS
author
Alex Dai
<yu.dai@intel.com>
Fri, 18 Dec 2015 20:00:12 +0000
(12:00 -0800)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 5 Jan 2016 10:34:49 +0000
(11:34 +0100)
Set ADS enabling flag during GuC init.
Signed-off-by: Alex Dai <yu.dai@intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/1450468812-4882-6-git-send-email-yu.dai@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_guc_loader.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_guc_loader.c
b/drivers/gpu/drm/i915/intel_guc_loader.c
index 550921f2ef7d5073f73d26481a44ebb1b4bbfb4d..d20788ffd3417e28234366b7af5278b2a2a186fd 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_guc_loader.c
+++ b/
drivers/gpu/drm/i915/intel_guc_loader.c
@@
-165,6
+165,13
@@
static void set_guc_init_params(struct drm_i915_private *dev_priv)
i915.guc_log_level << GUC_LOG_VERBOSITY_SHIFT;
}
+ if (guc->ads_obj) {
+ u32 ads = (u32)i915_gem_obj_ggtt_offset(guc->ads_obj)
+ >> PAGE_SHIFT;
+ params[GUC_CTL_DEBUG] |= ads << GUC_ADS_ADDR_SHIFT;
+ params[GUC_CTL_DEBUG] |= GUC_ADS_ENABLED;
+ }
+
/* If GuC submission is enabled, set up additional parameters here */
if (i915.enable_guc_submission) {
u32 pgs = i915_gem_obj_ggtt_offset(dev_priv->guc.ctx_pool_obj);