Skip to content

Commit 54a58eb

Browse files
committed
tools headers UAPI: Sync drm/i915_drm.h with the kernel sources
To pick the change in: 88be76c ("drm/i915: Allow userspace to specify ringsize on construction") That don't result in any changes in tooling, just silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs from latest version at 'include/uapi/drm/i915_drm.h' diff -u tools/include/uapi/drm/i915_drm.h include/uapi/drm/i915_drm.h Cc: Adrian Hunter <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 0719bdf commit 54a58eb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tools/include/uapi/drm/i915_drm.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,6 +1619,27 @@ struct drm_i915_gem_context_param {
16191619
* By default, new contexts allow persistence.
16201620
*/
16211621
#define I915_CONTEXT_PARAM_PERSISTENCE 0xb
1622+
1623+
/*
1624+
* I915_CONTEXT_PARAM_RINGSIZE:
1625+
*
1626+
* Sets the size of the CS ringbuffer to use for logical ring contexts. This
1627+
* applies a limit of how many batches can be queued to HW before the caller
1628+
* is blocked due to lack of space for more commands.
1629+
*
1630+
* Only reliably possible to be set prior to first use, i.e. during
1631+
* construction. At any later point, the current execution must be flushed as
1632+
* the ring can only be changed while the context is idle. Note, the ringsize
1633+
* can be specified as a constructor property, see
1634+
* I915_CONTEXT_CREATE_EXT_SETPARAM, but can also be set later if required.
1635+
*
1636+
* Only applies to the current set of engine and lost when those engines
1637+
* are replaced by a new mapping (see I915_CONTEXT_PARAM_ENGINES).
1638+
*
1639+
* Must be between 4 - 512 KiB, in intervals of page size [4 KiB].
1640+
* Default is 16 KiB.
1641+
*/
1642+
#define I915_CONTEXT_PARAM_RINGSIZE 0xc
16221643
/* Must be kept compact -- no holes and well documented */
16231644

16241645
__u64 value;

0 commit comments

Comments
 (0)