drm/i915/pxp: allocate a vcs context for pxp usage
The context is required to send the session termination commands to the VCS, which will be implemented in a follow-up patch. We can also use the presence of the context as a check of pxp initialization completion. v2: use perma-pinned context (Chris) v3: rename pinned_context functions (Chris) v4: split export of pinned_context functions to a separate patch (Rodrigo) v10: remove inclusion of intel_gt_types.h from intel_pxp.h (Jani) v13: fixed for loop pointer dereference (Vinay) Signed-off-by:Alan Previn <alan.previn.teres.alexis@intel.com> Signed-off-by:
Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by:
Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210924191452.1539378-5-alan.previn.teres.alexis@intel.com
Showing
- drivers/gpu/drm/i915/Makefile 4 additions, 0 deletionsdrivers/gpu/drm/i915/Makefile
- drivers/gpu/drm/i915/gt/intel_engine.h 2 additions, 0 deletionsdrivers/gpu/drm/i915/gt/intel_engine.h
- drivers/gpu/drm/i915/gt/intel_gt.c 5 additions, 0 deletionsdrivers/gpu/drm/i915/gt/intel_gt.c
- drivers/gpu/drm/i915/gt/intel_gt_types.h 3 additions, 0 deletionsdrivers/gpu/drm/i915/gt/intel_gt_types.h
- drivers/gpu/drm/i915/pxp/intel_pxp.c 70 additions, 0 deletionsdrivers/gpu/drm/i915/pxp/intel_pxp.c
- drivers/gpu/drm/i915/pxp/intel_pxp.h 30 additions, 0 deletionsdrivers/gpu/drm/i915/pxp/intel_pxp.h
- drivers/gpu/drm/i915/pxp/intel_pxp_types.h 17 additions, 0 deletionsdrivers/gpu/drm/i915/pxp/intel_pxp_types.h
Loading
Please register or sign in to comment