Commit 2f523f29 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

tools headers UAPI: Update i915_drm.h with the kernel sources

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 88e52051
Loading
Loading
Loading
Loading
+28 −3
Original line number Diff line number Diff line
@@ -806,6 +806,12 @@ typedef struct drm_i915_irq_wait {
 */
#define I915_PARAM_PXP_STATUS		 58

/*
 * Query if kernel allows marking a context to send a Freq hint to SLPC. This
 * will enable use of the strategies allowed by the SLPC algorithm.
 */
#define I915_PARAM_HAS_CONTEXT_FREQ_HINT	59

/* Must be kept compact -- no holes and well documented */

/**
@@ -2148,6 +2154,15 @@ struct drm_i915_gem_context_param {
 * -EIO: The firmware did not succeed in creating the protected context.
 */
#define I915_CONTEXT_PARAM_PROTECTED_CONTENT    0xd

/*
 * I915_CONTEXT_PARAM_LOW_LATENCY:
 *
 * Mark this context as a low latency workload which requires aggressive GT
 * frequency scaling. Use I915_PARAM_HAS_CONTEXT_FREQ_HINT to check if the kernel
 * supports this per context flag.
 */
#define I915_CONTEXT_PARAM_LOW_LATENCY		0xe
/* Must be kept compact -- no holes and well documented */

	/** @value: Context parameter value to be set or queried */
@@ -2623,19 +2638,29 @@ struct drm_i915_reg_read {
 *
 */

/*
 * struct drm_i915_reset_stats - Return global reset and other context stats
 *
 * Driver keeps few stats for each contexts and also global reset count.
 * This struct can be used to query those stats.
 */
struct drm_i915_reset_stats {
	/** @ctx_id: ID of the requested context */
	__u32 ctx_id;

	/** @flags: MBZ */
	__u32 flags;

	/* All resets since boot/module reload, for all contexts */
	/** @reset_count: All resets since boot/module reload, for all contexts */
	__u32 reset_count;

	/* Number of batches lost when active in GPU, for this context */
	/** @batch_active: Number of batches lost when active in GPU, for this context */
	__u32 batch_active;

	/* Number of batches lost pending for execution, for this context */
	/** @batch_pending: Number of batches lost pending for execution, for this context */
	__u32 batch_pending;

	/** @pad: MBZ */
	__u32 pad;
};