OSDN Git Service

drm/i915: Make GuC GGTT reservation work on ggtt
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 11 Jun 2019 12:23:50 +0000 (13:23 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 11 Jun 2019 13:40:15 +0000 (14:40 +0100)
commit09a32cb7b45f7431e824b4778c89e4614dd841d0
tree5c1e76f5cae49ea7c6f16f6f73bde90177f26544
parent9937e16b2820d141df2ba9845c19d3b7bc31fd7b
drm/i915: Make GuC GGTT reservation work on ggtt

These functions operate on ggtt so make them take that directly as
parameter.

At the same time move the USES_GUC conditional down to
intel_guc_reserve_ggtt_top for symmetry with
intel_guc_reserved_gtt_size.

v2:
 * Rename and move functions to be static in i915_gem_gtt.c (Michal)

v3:
 * Add comment explaining reason for reservation, add assert and fix
   error message. (Michal)

v4:
 * Fix checkpatch error.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190611122350.15060-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/intel_guc.c
drivers/gpu/drm/i915/intel_guc.h