linux/drivers/gpu/drm/i915/pxp/intel_pxp_cmd.c

// SPDX-License-Identifier: MIT
/*
 * Copyright(c) 2020, Intel Corporation. All rights reserved.
 */

#include "gt/intel_context.h"
#include "gt/intel_engine_pm.h"
#include "gt/intel_gpu_commands.h"
#include "gt/intel_ring.h"

#include "i915_trace.h"

#include "intel_pxp.h"
#include "intel_pxp_cmd.h"
#include "intel_pxp_session.h"
#include "intel_pxp_types.h"

/* stall until prior PXP and MFX/HCP/HUC objects are cmopleted */
#define MFX_WAIT_PXP

static u32 *pxp_emit_session_selection(u32 *cs, u32 idx)
{}

static u32 *pxp_emit_inline_termination(u32 *cs)
{}

static u32 *pxp_emit_session_termination(u32 *cs, u32 idx)
{}

static u32 *pxp_emit_wait(u32 *cs)
{}

/*
 * if we ever need to terminate more than one session, we can submit multiple
 * selections and terminations back-to-back with a single wait at the end
 */
#define SELECTION_LEN
#define TERMINATION_LEN
#define SESSION_TERMINATION_LEN(x)
#define WAIT_LEN

static void pxp_request_commit(struct i915_request *rq)
{}

int intel_pxp_terminate_session(struct intel_pxp *pxp, u32 id)
{}