summaryrefslogtreecommitdiff
path: root/static/freebsd/man4/qat.4 3.html
blob: 5d4a0a9fbb62e50ce0d4aa66a83ba2aef19c0230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<table class="head">
  <tr>
    <td class="head-ltitle">QAT(4)</td>
    <td class="head-vol">Device Drivers Manual</td>
    <td class="head-rtitle">QAT(4)</td>
  </tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">qat</code> &#x2014; <span class="Nd">Intel
    QuickAssist Technology driver</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp">To load the driver call:</p>
<p class="Pp"></p>
<ul class="Bl-item Bl-compact">
  <li>kldload qat</li>
</ul>
<p class="Pp">In order to load the driver on boot add these lines to
    <a class="Xr">loader.conf(5)</a> selecting firmware(s) suitable for
    installed device(s)</p>
<p class="Pp"></p>
<ul class="Bl-item Bl-compact">
  <li>qat_200xx_fw_load=&quot;YES&quot;</li>
  <li>qat_c3xxx_fw_load=&quot;YES&quot;</li>
  <li>qat_c4xxx_fw_load=&quot;YES&quot;</li>
  <li>qat_c62x_fw_load=&quot;YES&quot;</li>
  <li>qat_dh895xcc_fw_load=&quot;YES&quot;</li>
  <li>qat_4xxx_fw_load=&quot;YES&quot;</li>
  <li>qat_load=&quot;YES&quot;</li>
</ul>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">qat</code> driver supports cryptography and
    compression acceleration of the Intel (R) QuickAssist Technology (QAT)
    devices.</p>
<p class="Pp">A complete API for offloading these operations is exposed in the
    kernel and may be used by any other entity directly. In addition to exposing
    a complete kernel API for offloading cryptography and compression
    operations, the <code class="Nm">qat</code> driver also integrates with
    <a class="Xr">crypto(4)</a>, allowing offloading supported operations to
    Intel QuickAssist Technology devices.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="HARDWARE"><a class="permalink" href="#HARDWARE">HARDWARE</a></h1>
<p class="Pp">The <code class="Nm">qat</code> driver supports the following
    Intel QuickAssist Technology Engines:</p>
<p class="Pp"></p>
<ul class="Bl-bullet Bl-compact">
  <li>Intel (R) C62x Chipset</li>
  <li>Intel (R) Atom C3000 processor product family</li>
  <li>Intel (R) QuickAssist Adapter 8960/Intel (R) QuickAssist Adapter 8970
      (formerly known as &quot;Lewis Hill&quot;)</li>
  <li>Intel (R) Communications Chipset 8925 to 8955 Series</li>
  <li>Intel (R) Atom P5300 processor product family</li>
  <li>Intel (R) QAT 4xxx Series</li>
</ul>
</section>
<section class="Sh">
<h1 class="Sh" id="SYSCTL_VARIABLES"><a class="permalink" href="#SYSCTL_VARIABLES">SYSCTL_VARIABLES</a></h1>
<p class="Pp">The following <a class="Xr">sysctl(8)</a> variables may be used to
    reconfigure the <code class="Nm">qat</code> device. For configuration
    persistence those variables may be set before loading the driver, either via
    <a class="Xr">kenv(1)</a> or <a class="Xr">loader.conf(5)</a>.</p>
<p class="Pp">The specific device needs to be in the &quot;down&quot; state
    before changing the configuration.</p>
<dl class="Bl-tag">
  <dt id="dev.qat.X.state"><var class="Va">dev.qat.X.state</var></dt>
  <dd>Show or set current state of the device. Possible values:
      &quot;down&quot;, &quot;up&quot;.
    <p class="Pp" id="qat_ocf">NOTE: If the symmetric services are used for
        device the
        <a class="permalink" href="#qat_ocf"><b class="Sy">qat_ocf</b></a>
        driver needs to be disabled prior the device reconfiguration.</p>
  </dd>
  <dt id="dev.qat_ocf.0.enable"><var class="Va">dev.qat_ocf.0.enable</var></dt>
  <dd>Enable/disable the QAT cryptographic framework connectivity. Enabled by
      default.</dd>
  <dt id="dev.qat.X.cfg_services"><var class="Va">dev.qat.X.cfg_services</var></dt>
  <dd>Override the device services enabled, may be one of: symmetric,
      asymmetric, data compression. Possible values: &quot;sym&quot;,
      &quot;asym&quot;, &quot;dc&quot;, &quot;sym;dc&quot;, &quot;asym;dc&quot;,
      &quot;sym;asym&quot;. Default services configured are &quot;sym;asym&quot;
      for even and &quot;dc&quot; for odd devices.</dd>
  <dt id="dev.qat.X.cfg_mode"><var class="Va">dev.qat.X.cfg_mode</var></dt>
  <dd>Override the device mode configuration for kernel space and user space
      instances. Possible values: &quot;ks&quot;, &quot;us&quot;,
      &quot;ks;us&quot;. Default value &quot;ks;us&quot;.</dd>
  <dt id="dev.qat.X.num_user_processes"><var class="Va">dev.qat.X.num_user_processes</var></dt>
  <dd>Override the number of uio user space processes that can connect to the
      QAT device. Default: 2</dd>
  <dt id="dev.qat.X.disable_safe_dc_mode"><var class="Va">dev.qat.X.disable_safe_dc_mode</var></dt>
  <dd>Override history buffer mitigation. Disabled by default. If enabled,
      decompression throughput increases but may result in a data leak if
      <var class="Va">dev.qat.X.num_user_processes</var> is more than 1. Enable
      this option only if your system is not prone to user data leaks.</dd>
</dl>
<p class="Pp">The following <a class="Xr">sysctl(8)</a> variables are
  read-only:</p>
<dl class="Bl-tag">
  <dt id="dev.qat.X.frequency"><var class="Va">dev.qat.X.frequency</var></dt>
  <dd>QAT device frequency value.</dd>
  <dt id="dev.qat.X.mmp_version"><var class="Va">dev.qat.X.mmp_version</var></dt>
  <dd>QAT MMP Library revision number.</dd>
  <dt id="dev.qat.X.hw_version"><var class="Va">dev.qat.X.hw_version</var></dt>
  <dd>QAT hardware revision number.</dd>
  <dt id="dev.qat.X.fw_version"><var class="Va">dev.qat.X.fw_version</var></dt>
  <dd>QAT firmware revision number.</dd>
  <dt id="dev.qat.X.dev_cfg"><var class="Va">dev.qat.X.dev_cfg</var></dt>
  <dd>Summary of device specific configuration.</dd>
  <dt id="dev.qat.X.heartbeat"><var class="Va">dev.qat.X.heartbeat</var></dt>
  <dd>QAT device heartbeat status. Value '1' indicates that the device is
      operational. Value '0' means that the device is not responsive. Device
      requires restart.</dd>
  <dt id="dev.qat.X.heartbeat_failed"><var class="Va">dev.qat.X.heartbeat_failed</var></dt>
  <dd>Number of QAT heartbeat failures received.</dd>
  <dt id="dev.qat.X.heartbeat_sent"><var class="Va">dev.qat.X.heartbeat_sent</var></dt>
  <dd>Number of QAT heartbeat requests sent.</dd>
</dl>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
  ALSO</a></h1>
<p class="Pp"><a class="Xr">crypto(4)</a>, <a class="Xr">ipsec(4)</a>,
    <a class="Xr">pci(4)</a>, <a class="Xr">crypto(7)</a>,
    <a class="Xr">crypto(9)</a></p>
<p class="Pp">For details of usage and supported operations and algorithms refer
    to the following documentation available from Intel Download Center
    <a class="Lk" href="https://downloadcenter.intel.com">https://downloadcenter.intel.com</a>:</p>
<p class="Pp"></p>
<ul class="Bl-bullet Bl-compact">
  <li>
    <p class="Pp"><cite class="Rs"><span class="RsA">Intel (R)</span>,
        <span class="RsT">QuickAssist Technology API Programmer's
        Guide</span>.</cite></p>
  </li>
  <li>
    <p class="Pp"><cite class="Rs"><span class="RsA">Intel (R)</span>,
        <span class="RsT">QuickAssist Technology Cryptographic API Reference
        Manual</span>.</cite></p>
  </li>
  <li>
    <p class="Pp"><cite class="Rs"><span class="RsA">Intel (R)</span>,
        <span class="RsT">QuickAssist Technology Data Compression API Reference
        Manual</span>.</cite></p>
  </li>
  <li>
    <p class="Pp"><cite class="Rs"><span class="RsA">Intel (R)</span>,
        <span class="RsT">QuickAssist Technology Performance Optimization
        Guide</span>.</cite></p>
  </li>
</ul>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">A <code class="Nm">qat</code> driver appeared in
    <span class="Ux">FreeBSD 13.0</span>. It was superseded in
    <span class="Ux">FreeBSD 14.0</span> by the upstream driver.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
<p class="Pp">The <code class="Nm">qat</code> driver was written by
    <span class="An">Intel (R) Corporation</span>.</p>
</section>
</div>
<table class="foot">
  <tr>
    <td class="foot-date">June 2, 2025</td>
    <td class="foot-os">FreeBSD 15.0</td>
  </tr>
</table>