[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[308cbf9] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[a78da9f0] | 7 | <!--<!ENTITY intel-media-driver-version "23.2.4">-->
|
---|
[308cbf9] | 8 |
|
---|
[a80c832] | 9 | <!ENTITY intel-media-download-http "https://github.com/intel/media-driver/archive/intel-media-&intel-media-version;.tar.gz">
|
---|
[067e27f] | 10 | <!ENTITY intel-media-download-ftp " ">
|
---|
[02d9994f] | 11 | <!ENTITY intel-media-md5sum "c602d9a3ebebb2ad8a5239dc5951c65b">
|
---|
[37969973] | 12 | <!ENTITY intel-media-size "25 MB">
|
---|
[02d9994f] | 13 | <!ENTITY intel-media-buildsize "2.1 GB (360 MB installed with a single GPU model)">
|
---|
| 14 | <!ENTITY intel-media-time "3.8 SBU (with parallelism=4 and a single GPU model)">
|
---|
[308cbf9] | 15 |
|
---|
| 16 | ]>
|
---|
| 17 |
|
---|
[067e27f] | 18 | <sect1 id="intel-media" xreflabel="intel-media-&intel-media-version;">
|
---|
| 19 | <?dbhtml filename="intel-media.html"?>
|
---|
[308cbf9] | 20 |
|
---|
[9a612888] | 21 | <sect1info>
|
---|
[308cbf9] | 22 | <date>$Date$</date>
|
---|
[9a612888] | 23 | </sect1info>
|
---|
[308cbf9] | 24 |
|
---|
[067e27f] | 25 | <title>intel-media-&intel-media-version;</title>
|
---|
[308cbf9] | 26 |
|
---|
[067e27f] | 27 | <indexterm zone="intel-media">
|
---|
| 28 | <primary sortas="a-intel-media">intel-media</primary>
|
---|
[308cbf9] | 29 | </indexterm>
|
---|
| 30 |
|
---|
[9a612888] | 31 | <sect2 role="package">
|
---|
[067e27f] | 32 | <title>Introduction to intel-media</title>
|
---|
[308cbf9] | 33 |
|
---|
| 34 | <para>
|
---|
[067e27f] | 35 | The <application>intel-media</application> package provides a
|
---|
[308cbf9] | 36 | VA API driver for Intel GPUs that are provided with Broadwell CPUs and
|
---|
| 37 | higher. This includes support for a variety of codecs.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[d4dc5bae] | 40 | &lfs122_checked;
|
---|
[308cbf9] | 41 |
|
---|
[9a612888] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[308cbf9] | 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
[067e27f] | 46 | Download (HTTP): <ulink url="&intel-media-download-http;"/>
|
---|
[308cbf9] | 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
[067e27f] | 51 | Download (FTP): <ulink url="&intel-media-download-ftp;"/>
|
---|
[308cbf9] | 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
[067e27f] | 56 | Download MD5 sum: &intel-media-md5sum;
|
---|
[308cbf9] | 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
[067e27f] | 61 | Download size: &intel-media-size;
|
---|
[308cbf9] | 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
[067e27f] | 66 | Estimated disk space required: &intel-media-buildsize;
|
---|
[308cbf9] | 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
[067e27f] | 71 | Estimated build time: &intel-media-time;
|
---|
[308cbf9] | 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[7681c9a] | 75 | <!--
|
---|
[9a612888] | 76 | <bridgehead renderas="sect2">Additional Downloads</bridgehead>
|
---|
[7d52b116] | 77 | <itemizedlist spacing="compact">
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>
|
---|
| 80 | Required patch:
|
---|
[cf2d4a2a] | 81 | <ulink url="&patch-root;/intel-media-&intel-media-version;-gcc14_fixes-1.patch"/>
|
---|
[7d52b116] | 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
[7681c9a] | 85 | -->
|
---|
[308cbf9] | 86 | <note>
|
---|
| 87 | <para>
|
---|
[067e27f] | 88 | The tarball <filename>intel-media-&intel-media-version;.tar.gz</filename>
|
---|
[308cbf9] | 89 | will extract to the directory
|
---|
[067e27f] | 90 | <filename class="directory">media-driver-intel-media-&intel-media-version;</filename>.
|
---|
[308cbf9] | 91 | </para>
|
---|
| 92 | </note>
|
---|
| 93 |
|
---|
[067e27f] | 94 | <bridgehead renderas="sect3">intel-media Dependencies</bridgehead>
|
---|
[308cbf9] | 95 |
|
---|
[9a612888] | 96 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[308cbf9] | 97 | <para role="required">
|
---|
[25707aa7] | 98 | <xref linkend="cmake"/>,
|
---|
[32ed8002] | 99 | <xref linkend="intel-gmmlib"/>,
|
---|
| 100 | <xref linkend="libva"/>, and
|
---|
| 101 | <xref linkend="xorg-env"/>
|
---|
[308cbf9] | 102 | </para>
|
---|
| 103 |
|
---|
[9a612888] | 104 | </sect2>
|
---|
[308cbf9] | 105 |
|
---|
[067e27f] | 106 | <sect2 role="kernel" id='intel-media-kernel'>
|
---|
[4d17d1ae] | 107 | <title>Kernel Configuration</title>
|
---|
| 108 |
|
---|
| 109 | <para>
|
---|
| 110 | Enable the following options in the kernel configuration.
|
---|
| 111 | Recompile the kernel if necessary:
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[cddcdb14] | 114 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 115 | href="intel-media-kernel.xml"/>
|
---|
[4d17d1ae] | 116 |
|
---|
[067e27f] | 117 | <indexterm zone="intel-media intel-media-kernel">
|
---|
| 118 | <primary sortas="d-intel-media">intel-media</primary>
|
---|
[4d17d1ae] | 119 | </indexterm>
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
[ee763b6] | 122 | <!-- TODO: It's said Gen9+ (Skylake or later) may need some firmware files. -->
|
---|
[4d17d1ae] | 123 |
|
---|
[9a612888] | 124 | <sect2 role="installation">
|
---|
[067e27f] | 125 | <title>Installation of intel-media</title>
|
---|
[308cbf9] | 126 |
|
---|
| 127 | <note>
|
---|
| 128 | <para>
|
---|
| 129 | This package takes a long time to build because it compiles code
|
---|
| 130 | specific to each individual generation of Intel GPUs and for a
|
---|
| 131 | variety of media codecs.
|
---|
| 132 | </para>
|
---|
[6a7191e6] | 133 |
|
---|
| 134 | <!-- This reduce the size of iHD_drv_video.so from 319M to 157M
|
---|
| 135 | for me. -->
|
---|
[970a73c] | 136 | <!-- It seems ARL depends on MTL. We need to review once an Arrow
|
---|
| 137 | Lake CPU is launched. -->
|
---|
[c355675] | 138 | <!-- Support for ARL is completely broken, needs to be turned off to
|
---|
| 139 | complete the build -->
|
---|
[6a7191e6] | 140 | <para>
|
---|
| 141 | If you know the model of your Intel GPU, you can pass the
|
---|
[1d706cd2] | 142 | <option>-D{GEN{8,9,11,12},MTL,ARL}=OFF</option> option to the
|
---|
[6a7191e6] | 143 | <command>cmake</command> command but leaving the option for your
|
---|
| 144 | GPU out. Note that the <quote>GEN</quote> number here is the
|
---|
| 145 | generation of the GPU, not the CPU. For example, with an Intel
|
---|
| 146 | Core i7-1065G7 CPU shipping a 11th-generation Intel GPU, the
|
---|
[1d706cd2] | 147 | <option>-D{GEN{8,9,12},MTL,ARL}=OFF</option> option can be used
|
---|
[6a7191e6] | 148 | so the code specific to the other generations of Intel GPUs won't
|
---|
| 149 | be built.
|
---|
| 150 | </para>
|
---|
[9e51948] | 151 |
|
---|
| 152 | <para>
|
---|
[743d191a] | 153 | To determine the model of the Intel GPU, install
|
---|
| 154 | <xref linkend='pciutils'/> and run
|
---|
[9e51948] | 155 | <command>lspci -nn | grep -Ei 'VGA|DISPLAY'</command> first.
|
---|
| 156 | It will output some information about the GPU. If the output
|
---|
| 157 | contains <literal>Meteor Lake</literal>, the GPU model is
|
---|
| 158 | <literal>MTL</literal>. Otherwise, follow
|
---|
| 159 | <ulink url='https://dgpu-docs.intel.com/devices/hardware-table.html'/>
|
---|
| 160 | to find the entry for your GPU and the model of the GPU should
|
---|
[f1b36a7] | 161 | be in the <quote>Architecture</quote> column. The Xe and Xe-HPG
|
---|
[9e51948] | 162 | architectures are covered by the <literal>GEN12</literal> model.
|
---|
| 163 | </para>
|
---|
| 164 | <!-- TODO: The info about MTL is my best guess, the referred Intel
|
---|
| 165 | page does not contain Meteor Lake GPU PCI devicd ID as at Feb 2024.
|
---|
| 166 | XeHPC is not enabled by default but they are some data center GPUs.
|
---|
| 167 | Not sure if anyone will run LFS in a data center. -->
|
---|
[308cbf9] | 168 | </note>
|
---|
[7681c9a] | 169 | <!--
|
---|
[7d52b116] | 170 | <para>
|
---|
[cf2d4a2a] | 171 | First, fix a few build failures with GCC-14:
|
---|
[7d52b116] | 172 | </para>
|
---|
| 173 |
|
---|
[cf2d4a2a] | 174 | <screen><userinput remap="pre">patch -Np1 -i ../intel-media-&intel-media-version;-gcc14_fixes-1.patch</userinput></screen>
|
---|
[7681c9a] | 175 | -->
|
---|
[308cbf9] | 176 | <para>
|
---|
[067e27f] | 177 | Install <application>intel-media</application> by running the
|
---|
[308cbf9] | 178 | following commands:
|
---|
| 179 | </para>
|
---|
| 180 |
|
---|
| 181 | <screen><userinput>mkdir build &&
|
---|
| 182 | cd build &&
|
---|
| 183 |
|
---|
[7ef2fd34] | 184 | cmake -D CMAKE_INSTALL_PREFIX=$XORG_PREFIX \
|
---|
| 185 | -D INSTALL_DRIVER_SYSCONF=OFF \
|
---|
| 186 | -D BUILD_TYPE=Release \
|
---|
| 187 | -G Ninja \
|
---|
| 188 | -W no-dev .. &&
|
---|
[9848345e] | 189 | ninja</userinput></screen>
|
---|
[308cbf9] | 190 |
|
---|
[200a68b] | 191 |
|
---|
[308cbf9] | 192 | <para>
|
---|
| 193 | This package does not come with a test suite.
|
---|
| 194 | </para>
|
---|
| 195 |
|
---|
| 196 | <para>
|
---|
| 197 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
[9848345e] | 200 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[308cbf9] | 201 |
|
---|
[9a612888] | 202 | </sect2>
|
---|
[308cbf9] | 203 |
|
---|
[200a68b] | 204 | <!-- As of Oct 1 2023, the build is broken if MTL and ARL are turned on
|
---|
| 205 | hopefully this is fixed by the time they launch, in which
|
---|
| 206 | case we can remove the option and this section [rahul] -->
|
---|
[a907827] | 207 | <!-- As of October 31st, 2023, the build seems to be functional again! This
|
---|
| 208 | is with version 23.4.0. [renodr]
|
---|
[200a68b] | 209 | <sect2 role="commands">
|
---|
| 210 | <title>Command Explanations</title>
|
---|
| 211 |
|
---|
| 212 | <para>
|
---|
[b35512bc] | 213 | <parameter>-D{MTL,ARL}=OFF</parameter>: As of October 2023,
|
---|
| 214 | Meteor Lake and Arrow Lake iGPU support is broken but still
|
---|
| 215 | in intel-media. The build fails if support for either iGPU
|
---|
| 216 | is turned on. Since both of these have not been officially
|
---|
| 217 | released yet, it is safe to turn support for them off.
|
---|
[200a68b] | 218 | </para>
|
---|
| 219 |
|
---|
| 220 | </sect2>
|
---|
[a907827] | 221 | -->
|
---|
[200a68b] | 222 |
|
---|
[9a612888] | 223 | <sect2 role="content">
|
---|
[308cbf9] | 224 | <title>Contents</title>
|
---|
| 225 |
|
---|
| 226 | <segmentedlist>
|
---|
| 227 | <segtitle>Installed Programs</segtitle>
|
---|
| 228 | <segtitle>Installed Libraries</segtitle>
|
---|
| 229 | <segtitle>Installed Drivers</segtitle>
|
---|
| 230 | <segtitle>Installed Directories</segtitle>
|
---|
| 231 |
|
---|
| 232 | <seglistitem>
|
---|
| 233 | <seg>
|
---|
| 234 | None
|
---|
| 235 | </seg>
|
---|
| 236 | <seg>
|
---|
| 237 | libigfxcmrt.so
|
---|
| 238 | </seg>
|
---|
| 239 | <seg>
|
---|
| 240 | iHD_drv_video.so
|
---|
| 241 | </seg>
|
---|
| 242 | <seg>
|
---|
| 243 | /usr/include/igfxcmrt
|
---|
| 244 | </seg>
|
---|
| 245 | </seglistitem>
|
---|
| 246 | </segmentedlist>
|
---|
| 247 |
|
---|
| 248 | <variablelist>
|
---|
[9a612888] | 249 | <bridgehead renderas="sect2">Short Descriptions</bridgehead>
|
---|
[308cbf9] | 250 | <?dbfo list-presentation="list"?>
|
---|
| 251 | <?dbhtml list-presentation="table"?>
|
---|
| 252 |
|
---|
| 253 | <varlistentry id="libigfxcmrt">
|
---|
| 254 | <term><filename class="libraryfile">libigfxcmrt.so</filename></term>
|
---|
| 255 | <listitem>
|
---|
| 256 | <para>
|
---|
| 257 | provides API functions which allow running GPU kernels on the
|
---|
| 258 | render engine
|
---|
| 259 | </para>
|
---|
[067e27f] | 260 | <indexterm zone="intel-media libigfxcmrt">
|
---|
[308cbf9] | 261 | <primary sortas="c-libigfxcmrt">libigfxcmrt.so</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | </variablelist>
|
---|
| 267 |
|
---|
[9a612888] | 268 | </sect2>
|
---|
[308cbf9] | 269 |
|
---|
[9a612888] | 270 | </sect1>
|
---|