diff options
author | Ben Widawsky <benjamin.widawsky@intel.com> | 2013-09-18 04:12:44 (GMT) |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-19 18:38:00 (GMT) |
commit | c3787e2eac816a597a7f92daa5d0629a85e77d56 (patch) | |
tree | 7d9231ee10caed1a7d07c7fff04c03d8855bd033 /drivers/gpu/drm/i915/i915_sysfs.c | |
parent | 35a85ac60618521d41cfdb14f3fbfc8ad7329e9e (diff) | |
download | linux-c3787e2eac816a597a7f92daa5d0629a85e77d56.tar.xz |
drm/i915: Make l3 remapping use the ring
Using LRI for setting the remapping registers allows us to stream l3
remapping information. This is necessary to handle per context remaps as
we'll see implemented in an upcoming patch.
Using the ring also means we don't need to frob the DOP clock gating
bits.
v2: Add comment about lack of worry for concurrent register access
(Daniel)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
[danvet: Bikeshed the comment a bit by doing a s/XXX/Note - there's
nothing to fix.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_sysfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c index 3a8bf0c..b07bdfb 100644 --- a/drivers/gpu/drm/i915/i915_sysfs.c +++ b/drivers/gpu/drm/i915/i915_sysfs.c @@ -204,7 +204,8 @@ i915_l3_write(struct file *filp, struct kobject *kobj, memcpy(dev_priv->l3_parity.remap_info[slice] + (offset/4), buf, count); - i915_gem_l3_remap(drm_dev, slice); + if (i915_gem_l3_remap(&dev_priv->ring[RCS], slice)) + count = 0; mutex_unlock(&drm_dev->struct_mutex); |