summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_uc.c
diff options
context:
space:
mode:
authorOscar Mateo <oscar.mateo@intel.com>2017-03-22 20:39:45 +0300
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2017-03-23 15:57:26 +0300
commit73b055349c40ac721f4939263f173c2238524091 (patch)
tree4192022993acbd18b1b9d7ff4fac1676404be091 /drivers/gpu/drm/i915/intel_uc.c
parentabddffdf3620e3974061fa0715a1db2142b6b893 (diff)
downloadlinux-73b055349c40ac721f4939263f173c2238524091.tar.xz
drm/i915/guc: Keep the ctx_pool_vaddr mapped, for easy access
The GuC descriptor is big in size. If we use a local definition of guc_desc we have a chance to overflow stack, so avoid it. Also, Chris abhors scatterlists :) v2: Rebased, helper function to retrieve the context descriptor, s/ctx_pool_vma/ctx_pool/ v3: Zero out guc_context_desc before initialization v4: Do not do arithmetic on void pointers (Daniele) v5: Nicer than arithmetic on pointers (Chris, Joonas) Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_uc.c')
0 files changed, 0 insertions, 0 deletions