1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>intel_execlists_submission</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="ch04s03.html#idp1128337188" title="Logical Rings, Logical Ring Contexts and Execlists"><link rel="prev" href="API-intel-lrc-irq-handler.html" title="intel_lrc_irq_handler"><link rel="next" href="API-intel-logical-ring-begin.html" title="intel_logical_ring_begin"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">intel_execlists_submission</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-intel-lrc-irq-handler.html">Prev</a>&#160;</td><th width="60%" align="center">Logical Rings, Logical Ring Contexts and Execlists</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-intel-logical-ring-begin.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-intel-execlists-submission"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>intel_execlists_submission &#8212; 
2     submit a batchbuffer for execution, Execlists style
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">intel_execlists_submission </b>(</code></td><td>struct drm_device * <var class="pdparam">dev</var>, </td></tr><tr><td>&#160;</td><td>struct drm_file * <var class="pdparam">file</var>, </td></tr><tr><td>&#160;</td><td>struct intel_engine_cs * <var class="pdparam">ring</var>, </td></tr><tr><td>&#160;</td><td>struct intel_context * <var class="pdparam">ctx</var>, </td></tr><tr><td>&#160;</td><td>struct drm_i915_gem_execbuffer2 * <var class="pdparam">args</var>, </td></tr><tr><td>&#160;</td><td>struct list_head * <var class="pdparam">vmas</var>, </td></tr><tr><td>&#160;</td><td>struct drm_i915_gem_object * <var class="pdparam">batch_obj</var>, </td></tr><tr><td>&#160;</td><td>u64 <var class="pdparam">exec_start</var>, </td></tr><tr><td>&#160;</td><td>u32 <var class="pdparam">dispatch_flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1128381092"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>dev</code></em></span></dt><dd><p>
4     DRM device.
5    </p></dd><dt><span class="term"><em class="parameter"><code>file</code></em></span></dt><dd><p>
6     DRM file.
7    </p></dd><dt><span class="term"><em class="parameter"><code>ring</code></em></span></dt><dd><p>
8     Engine Command Streamer to submit to.
9    </p></dd><dt><span class="term"><em class="parameter"><code>ctx</code></em></span></dt><dd><p>
10     Context to employ for this submission.
11    </p></dd><dt><span class="term"><em class="parameter"><code>args</code></em></span></dt><dd><p>
12     execbuffer call arguments.
13    </p></dd><dt><span class="term"><em class="parameter"><code>vmas</code></em></span></dt><dd><p>
14     list of vmas.
15    </p></dd><dt><span class="term"><em class="parameter"><code>batch_obj</code></em></span></dt><dd><p>
16     the batchbuffer to submit.
17    </p></dd><dt><span class="term"><em class="parameter"><code>exec_start</code></em></span></dt><dd><p>
18     batchbuffer start virtual address pointer.
19    </p></dd><dt><span class="term"><em class="parameter"><code>dispatch_flags</code></em></span></dt><dd><p>
20     translated execbuffer call flags.
21    </p></dd></dl></div></div><div class="refsect1"><a name="idp1128390940"></a><h2>Description</h2><p>
22   This is the evil twin version of i915_gem_ringbuffer_submission. It abstracts
23   away the submission details of the execbuffer ioctl call.
24</p></div><div class="refsect1"><a name="idp1128391684"></a><h2>Return</h2><p>
25   non-zero if the submission fails.
26</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-intel-lrc-irq-handler.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch04s03.html#idp1128337188">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-intel-logical-ring-begin.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">intel_lrc_irq_handler</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">intel_logical_ring_begin</span></td></tr></table></div></body></html>
27