Skip to content

Commit

Permalink
drm/i915: Add missing doc for drm_i915_reset_stats
Browse files Browse the repository at this point in the history
Add missing doc for struct drm_i915_reset_stats.

Cc: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240229132918.10205-1-nirmoy.das@intel.com
  • Loading branch information
Nirmoy Das committed Mar 1, 2024
1 parent 1cca19b commit d10612f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions include/uapi/drm/i915_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -2623,19 +2623,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;
};

Expand Down

0 comments on commit d10612f

Please sign in to comment.