#include "gem/i915_gem_internal.h"
#include "gt/intel_context.h"
#include "gt/intel_gt.h"
#include "gt/uc/intel_gsc_fw.h"
#include "gt/uc/intel_gsc_uc_heci_cmd_submit.h"
#include "i915_drv.h"
#include "intel_pxp.h"
#include "intel_pxp_cmd_interface_42.h"
#include "intel_pxp_cmd_interface_43.h"
#include "intel_pxp_gsccs.h"
#include "intel_pxp_types.h"
static bool
is_fw_err_platform_config(struct intel_pxp *pxp, u32 type)
{ … }
static const char *
fw_err_to_string(u32 type)
{ … }
static int
gsccs_send_message(struct intel_pxp *pxp,
void *msg_in, size_t msg_in_size,
void *msg_out, size_t msg_out_size_max,
size_t *msg_out_len,
u64 *gsc_msg_handle_retry)
{ … }
static int
gsccs_send_message_retry_complete(struct intel_pxp *pxp,
void *msg_in, size_t msg_in_size,
void *msg_out, size_t msg_out_size_max,
size_t *msg_out_len)
{ … }
bool intel_pxp_gsccs_is_ready_for_sessions(struct intel_pxp *pxp)
{ … }
int intel_pxp_gsccs_create_session(struct intel_pxp *pxp,
int arb_session_id)
{ … }
void intel_pxp_gsccs_end_arb_fw_session(struct intel_pxp *pxp, u32 session_id)
{ … }
static void
gsccs_cleanup_fw_host_session_handle(struct intel_pxp *pxp)
{ … }
static void
gsccs_destroy_execution_resource(struct intel_pxp *pxp)
{ … }
static int
gsccs_create_buffer(struct intel_gt *gt,
const char *bufname, size_t size,
struct i915_vma **vma, void **map)
{ … }
static int
gsccs_allocate_execution_resource(struct intel_pxp *pxp)
{ … }
void intel_pxp_gsccs_fini(struct intel_pxp *pxp)
{ … }
int intel_pxp_gsccs_init(struct intel_pxp *pxp)
{ … }