]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove unnecessary ggtt_offset_bias from i915_gem_context
authorJakub Bartmiński <jakub.bartminski@intel.com>
Fri, 27 Jul 2018 14:11:46 +0000 (16:11 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jul 2018 15:07:37 +0000 (16:07 +0100)
commit496bcce3c9bf50ccf74b3050669600631cbf8138
treef342f97fda41dffae610fd0f844dbcff0021ce6a
parentdd18cedfa36fbbc19903aed12d6d94c06f5e6dea
drm/i915: Remove unnecessary ggtt_offset_bias from i915_gem_context

Since ggtt_offset_bias is now stored in ggtt.pin_bias, it is duplicated
inside i915_gem_context, and can instead be accessed directly from ggtt.

v3:
Added a helper function to retrieve the ggtt.pin_bias from the vma.

v4:
Moved the helper function to the previous patch in the series.
Dropped the bias from intel_ring_pin. This introduces a slight functional
change since we are always pinning the ring a bit higher if GuC is present
even though we don't really need to.

v8:
Fixed patch not applying on the most recent upstream.

Signed-off-by: Jakub Bartmiński <jakub.bartminski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180727141148.30874-4-jakub.bartminski@intel.com
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_context.h
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h