[Intel-gfx] [PATCH 16/19] drm/i915: Fix l3 parity buffer offset
Rodrigo Vivi
rodrigo.vivi at gmail.com
Wed Sep 11 00:36:45 CEST 2013
From: Ben Widawsky <benjamin.widawsky at intel.com>
The buf pointer used during l3_write is just char *, therefore it does
not require the silly /4.
Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at gmail.com>
---
drivers/gpu/drm/i915/i915_sysfs.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_sysfs.c b/drivers/gpu/drm/i915/i915_sysfs.c
index 05195c0..70de7a9 100644
--- a/drivers/gpu/drm/i915/i915_sysfs.c
+++ b/drivers/gpu/drm/i915/i915_sysfs.c
@@ -184,9 +184,7 @@ i915_l3_write(struct file *filp, struct kobject *kobj,
if (temp)
dev_priv->l3_parity.remap_info = temp;
- memcpy(dev_priv->l3_parity.remap_info + (offset/4),
- buf + (offset/4),
- count);
+ memcpy(dev_priv->l3_parity.remap_info + (offset/4), buf, count);
i915_gem_l3_remap(drm_dev);
--
1.8.1.4
More information about the Intel-gfx
mailing list