drm/i915: Create a kernel context for GGTT updates
authorNirmoy Das <nirmoy.das@intel.com>
Tue, 26 Sep 2023 08:37:37 +0000 (10:37 +0200)
committerNirmoy Das <nirmoy.das@intel.com>
Sat, 30 Sep 2023 11:49:17 +0000 (13:49 +0200)
commitb352749936806c9d5ed6a6021d84c1df4d1df3da
tree6c2fe740608c03c003be5cd002029ac10e88bebd
parent4cd64e9d2c7206db05e7162d0258b455726b7ec5
drm/i915: Create a kernel context for GGTT updates

Create a separate kernel context if a platform requires
GGTT updates using MI_UPDATE_GTT blitter command.

Subsequent patch will introduce methods to update
GGTT using this bind context and MI_UPDATE_GTT blitter
command.

v2: fix context leak on err(Oak)
v3: improve err handling and improve function names(Andi)
    add docs for few functions.

Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Oak Zeng <oak.zeng@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230926083742.14740-3-nirmoy.das@intel.com
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_gt.h