diff options
author | Chris Wilson | 2016-11-02 18:50:47 +0100 |
---|---|---|
committer | Chris Wilson | 2016-11-03 20:57:43 +0100 |
commit | 72aa0d899a3ea7e14436ac0b869cf3333277b92e (patch) | |
tree | 944cb3590227e8ac658ae754b950cff3fe855735 /drivers/gpu/drm/i915/intel_guc.h | |
parent | drm/i915: Tidy slab cache allocations (diff) | |
download | kernel-qcow2-linux-72aa0d899a3ea7e14436ac0b869cf3333277b92e.tar.gz kernel-qcow2-linux-72aa0d899a3ea7e14436ac0b869cf3333277b92e.tar.xz kernel-qcow2-linux-72aa0d899a3ea7e14436ac0b869cf3333277b92e.zip |
drm/i915/guc: Cache the client mapping
Use i915_gem_object_pin_map() for the guc client's lifetime to replace
the peristent kmap + frequent kmap_atomic with a permanent vmapping.
This avoids taking the obj->mm.lock mutex whilst inside irq context
later.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98571
Fixes: 96d776345277 ("drm/i915: Use a radixtree for random access...");
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20161102175051.29163-9-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_guc.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_guc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_guc.h b/drivers/gpu/drm/i915/intel_guc.h index 49ced0bad0f5..0053258e03d3 100644 --- a/drivers/gpu/drm/i915/intel_guc.h +++ b/drivers/gpu/drm/i915/intel_guc.h @@ -64,7 +64,7 @@ struct drm_i915_gem_request; */ struct i915_guc_client { struct i915_vma *vma; - void *client_base; /* first page (only) of above */ + void *vaddr; struct i915_gem_context *owner; struct intel_guc *guc; |