Intel iris xe graphics driver linux

IntelВ® IrisВ® Xe MAX Graphics with Linux*

Laptops are now available in market to purchase that provide both a discrete IntelВ® IrisВ® Xe MAX graphics processor and an integrated IntelВ® IrisВ® Xe Graphics processor. You can find more information about those systems here.

While support for the Intel Iris Xe Graphics processor has already been integrated into Linux* and integrated into Linux-based distributions such as Ubuntu 20.04.1, enabling work for the Intel Iris Xe MAX graphics processor in Linux* is ongoing.

In the meantime, we are excited to provide early access to that software and instructions to configure an Ubuntu 20.04.1 system so you can take advantage of both graphics adapters today. By following these instructions, your system’s display will be using the Intel Iris Xe Graphics processor and the Intel Iris Xe MAX graphics processor can then be used for 3D, media, and compute processing.

Overview

To use both the Intel Iris Xe graphics and Intel Iris Xe MAX graphics processors at the same time currently requires two different kernels. To isolate the two required kernel versions, virtualization will be used.

The virtual machine (VM) host will have direct control of the display through the Intel Iris Xe graphics processor (via the kernel provided by Ubuntu.) The VM host will also be configured to use PCI passthrough to provide the Intel Iris Xe MAX graphics processor to the VM guest. The VM guest will be running the custom Linux kernel.

Once the host is configured, instructions are provided to to configure and use a VM guest for compute and media offload. Using the standard QEMU virtualization machine manager, you can setup a local compute node using the Intel Iris Xe MAX graphics for executing media and compute applications while you continue using the Intel Iris Xe graphics adapter for your display.

Configure the host

These instructions begin with the laptop having the Desktop image for Ubuntu 20.04.1 LTS]1 (or newer) successfully installed and booting. This can be done either as the sole operating system, configuring as a dual boot environment, or by using external storage. As the specific steps for installing Linux onto a laptop is very platform specific, we do not provide those instructions here. Please refer to your platform or operating system supplier for information.

Prior to starting this guide, ensure that you have enabled virtualization in your system’s BIOS. Please refer to your platform supplier for information on configuring the BIOS. On some systems, you may also need to enable Secure Boot.

Prior to running the instructions below, activate sudo in your session by running sudo -l . This will allow you to copy/paste the instructions which use sudo without being prompted for your password.

Configure the host to bind vfio-pci to Intel Iris Xe MAX graphics adapter

Binding the Intel Iris Xe MAX graphics adapter to the vfio-pci driver detaches it from the host operating system, freeing it for use by the virtual machine. The PCI device and vendor ID for the Intel Iris Xe MAX graphics adapter is 8086:4905. Edit your system’s /etc/default/grub configuration to append intel_iommu=on vfio-pci.ids=8086:4905. The following shell script will check if those two parameters are set in /etc/default/grub, and set them if not.

The above should display the GRUB_CMDLINE_LINUX_DEFAULT including both intel_iommu=on and vfio-pci.ids=8086:4905.

Install the linux-oem-20.04 kernel

The default kernel provided in Ubuntu 20.04.1 does not provide a kernel driver for the Intel Iris Xe graphics adapter. To enable that graphics adapter, you need to configure the system to use the linux-oem-20.04 kernel.

Reboot

At this point, the system is configured to:

Enable Intel Iris Xe Graphics adapter for the host using linux-oem-20.04 kernel.

Читайте также:  Windows full client v876

Bind the vfio-pci driver to the Intel Iris Xe MAX graphics adapter so it can be passed through to the VM.

Reboot into the new configuration. The next section provides steps to verify the devices enumerate correctly.

Identify PCI device bound to the vfio-pci driver

After rebooting, verify the changes worked. The following will output the PCI information as well as the kernel driver bound to those devices:

The output of the above command should look similar to the following, listing two devices. One will be bound to the i915 driver and the other to vfio-pci.

Make a note of the address of the PCI device that is bound to the vfio-pci driver, 03:00.0 in this case. This is the PCI address that will be provided to the VM, giving it access to the Intel Iris Xe MAX graphics adapter.

Configuring the VM guest

At this point the host is configured in a way which allow the Intel Iris Xe MAX graphics adapter to be passed to a VM guest. Next, you will compile a custom kernel to boot inside of that VM guest, with support for the Intel Iris Xe MAX graphics adapter.

On the host, we recommend you continue using the kernel supplied by the operating system vendor.

Prepare kernel for Intel Iris Xe MAX graphics

Install packages necessary for building the Linux kernel from source:

The following will clone the kernel sources from GitHub, configure it, and compile it in the $/kernel-xe-max directory. This path is also used later when copying the built kernel to the VM guest.

NOTE: Cloning and building the kernel can take a while, varying on Internet connection and hardware.

At the end of the build, a tarball will be ready in $/kernel-xe-max:

Create an Ubuntu virtual machine

The following steps will install the required packages to manage and configure a VM, create an initial disk image, download the Ubuntu 20.04.1 live server image, and boot the VM with that image.

We will be using QEMU directly from the command line, but you could use a graphical configuration tool such as virt-manager as well.

Install packages to manage the VM

Check that virtualization is enabled

You can now run the utility ‘kvm-ok’ to determine VT-d is enabled on your system:

You should see a message similar to:

If you do not see that, make sure that virtualization is enabled in your system’s BIOS. Please refer to your platform supplier for information on configuring the BIOS. On some systems, you may also need to enable Secure Boot.

Create a disk image file for the VM

The following will create disk image file for the VM with 50G. If you don’t want to place the disk image in /opt you can place it wherever you have write access on the host.

Install Ubuntu 20.04.1 LTS image into VM

You can install either Ubuntu Server or Ubuntu Desktop within the VM. Because the graphics display is not required for GPU offloading, you may chose to install the server image to reduce disk usage.

Since you just installed the Desktop image on the host platform, you may wish to re-use the ISO image you already downloaded, instead of downloading the Server image.

If you wish to download a new image, you can do so with the following command:

The above will download the file ubuntu-20.04.1-live-server-amd64.iso, which you will pass to QEMU below. We set those values into the BOOT_MEDIA environment variable:

Install OS into VM

The following will start the VM with 4G of RAM. The CPU configuration will be copied from the host CPU. The VM will boot the OS image specified in the BOOT_MEDIA variable declared previously.

A window will open and after several seconds the Ubuntu installer will start.

NOTE: During the package installation, make sure to configure network and install openssh-server when prompted. ssh will be used later to connect to the VM.

If the installation asks how to partition the disk:

You do not need to use volume management (deselect LVM)

Add a 2G partition mounted to /boot, formatted as ext4. This will allow plenty of space for changing kernels. The default is closer to

Set the remaining space on / (approximately 47G)

After the installation has completed, shut down the VM during reboot.

Log into the VM guest and configure it

The disk image now includes an installed operating system, so you no longer need to pass the boot media to the VM, so start the VM without $.

On the host, launch the VM:

Читайте также:  Windows не удалось загрузить все файлы для установки windows

Once the virtual machine starts, it will boot the Ubuntu operating system you just installed.

If you didn’t install openssh-server when you installed the OS into the VM, you will need to do it from the virtual machine window launched when you started qemu-system-x86_64.

In the VM, run the following:

When the VM is started above, port 10022 on the host is forwarded to port 22 in the guest. The next command will use that local port forward to copy the built kernel from the host system into the guest. You can then ssh into the VM to run the commands to install that kernel.

Now you can ssh into the guest VM to install the kernel:

On the host, connect to the VM:

OPTIONAL: If you installed the Server OS version, you may want to disable ‘cloud-init’ inside the VM to improve boot times:

OPTIONAL: If you installed the Desktop OS version, you may want to disable the graphics display to reduce memory usage and improve performance:

Prior to installing the custom kernel, you need to install the firmware files required by the Intel Iris Xe MAX graphics adapter. The following will download an archive of the latest firmware files and decompress them into /lib/firmware/i915, where the kernel will look for them while booting:

You can now install the custom kernel. This is done after the firmware files are installed to make sure that the firmware files are available while the initial ramdisk is created during the kernel installation:

Next, modify grub to enable serial output so console output can be seen from the virtual machine manager (VMM). This will allow you to launch the VM later without a virtual display.

The two lines you want to modify are the GRUB_CMDLINE_LINUX_DEFAULT and GRUB_TERMINAL as follows. You can use ‘nano’ to edit the file:

Finally, update the bootloader with the additional grub configuation and power off the VM.

Start a VM with GPU passthrough

Now that the VM is configured to boot the kernel containing support for the Intel Iris Xe MAX graphics adapter, we will re-start QEMU kvm using the disk image we created using and passthrough the GPU to the guest OS.

In the below example, the address 03:00.0 used with the vfio-pci option corresponds to the PCI address for xe-max that we got from running lspci on the host.

Since this will now be passing in physical hardware, you need to run it as root:

It may take several seconds before you see any output from the VM.

Connection to the VM

As part of launching the VM, the above command forwards connections to port 10022 on the host to port 22 in the guest. This is then used for connecting to the guest:

It is recommended to login into the guest via SSH to execute below commands and to run demos requiring terminal output.

Verify the Intel Iris Xe MAX graphics driver is initialized

Use lspci to verify the PCI device was passed through and initialized by the i915 kernel driver:

Output should look similar to the following:

Install user space media and compute packages

The following is taken from the installation guides, and should be executed on the guest VM:

First, activate a sudo session so you are not prompted for a password while copy/pasting instructions to the terminal:

Configure the package repository

Install the compute and media packages

The following will install the latest versions of the OpenCL* runtime, Level Zero, Media SDK, and Media driver:

Configure permissions to access GPU

In order to access GPU capabilities, a user needs to have the correct permissions on the system. The following will add the user to the render group owning /dev/dri/render*:

Tests

Verify the kernel is the version you built

This should report ‘Linux 5.4.48-xe-max’.

Verify the graphics platform name

Verify ‘platform: DG1’ is listed in i915_capabilities:

Verify Open CL

To verify that the intel-opencl packages have installed correctly, you can use the clinfo program:

Verify media

To verify that media driver have installed correctly, you can use the vainfo program:

Additional guides

We have the following guides you can follow to demonstrate how to user the Intel Iris Xe MAX graphics adapter within the VM environment:

Feedback on this page?

If you have feedback on this page, please visit the community documentation project project on GitHub and file an issue.

Источник

Обновление Intel Graphics Drivers – поддержка Intel Iris Xe Max и HITMAN 3

Компания Intel выпустила новую версию драйвера Intel Graphics Drivers версии 27.20.100.9168 DCH. В новой версии драйвера добавлена поддержка новой графики Intel Iris Xe Max.

Читайте также:  Linux который поддерживает оперативную память

Также, в обновлении драйвера исправлена проблема, когда монитор 4K подключённый к ноутбуку через DisplayPort мерцал после закрытия крышки и выхода из спящего режима или перезапуска на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe.

Для любителей компьютерных игр были выполнены некоторые игровые оптимизации и исправления ошибок в различных играх, а также добавлена поддержка новинки HITMAN 3, релиз которой состоялся 20 января 2021 года.

Игровые оптимизации

  • Поддержка игры HITMAN 3 для графики Iris Xe или выше.
  • Исправлены искажения в играх Atelier Ryza 2: Lost Legends & The Secret Fairy и Nioh 2.
  • Исправлен вылет при запуске Cyberpunk 2077.
  • Исправлены незначительные графические аномалии, наблюдаемые в играх Atelier Ryza 2: Lost Legends & the Secret Fairy, Nioh 2, Atelier Ryza: Ever Darkness & the Secret Hideout, Shadow of the Tomb Raider (с включенной тесселяцией), Rise of the Tomb Raider (с включенной тесселяцией), Star Wars Battlefront 2 (DX12) и One Piece Pirate Warriors 4 на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe.
  • Исправлены незначительные графические аномалии, наблюдаемые в Shadow of the Tomb Raider и Star Wars Battlefront 2, на графике Intel Iris Xe Max.

Несмотря на регулярные выпуски новых версий драйвера, список известных проблем не уменьшается, а наоборот продолжает увеличиваться.

Известные проблемы

  • Периодические сбои или зависания в Cyberpunk 2077 (DX12) при запуске игрового процесса, Call of Duty: Black Ops Cold War (DX12), Call of Duty: Modern Warfare (DX12), Tom Clancy’s Rainbow Six Siege ( DX11), Hunt: Showdown, Dark Souls III, Destiny 2 (с включенным античитом), Horizon Zero Dawn (DX12), Dirt 5 (DX12), Watch Dogs: Legion (DX12) (при запуске новой кампании), Tom Clancy’s Ghost Recon Breakpoint (DX11), Total War Warhammer 2 (DX12) (при загрузке режима кампании / теста), Metro Exodus (DX12) при изменении настроек графики.
  • Небольшие графические аномалии могут наблюдаться в Assassin’s Creed Valhalla (DX12), Baldur’s Gate 3 (Vulkan), Wolfenstein: Youngblood (Vulkan), Gears of War Ultimate Edition (DX12), Far Cry: New Dawn (при запуске из файла сохранения), Tom Clancy’s Ghost Recon Breakpoint (DX11), MechWarrior 5: Mercenaries (DX12), Valorant (на высоких настройках), Sekiro: Shadows Die Twice, Watch Dogs: Legion (DX12), Hitman 2 (DX12).
  • Незначительные графические аномалии могут быть замечены в ARK: Survival Evolved* (DX11) и Call of Duty: Modern Warfare (DX12) при включении повышения резкости изображения в Intel Graphics Command Center.
  • При воспроизведении видео 4K / 2K / Full HD в мозаичном режиме 8K60 с максимальным окном приложения на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe может наблюдаться задержка.
  • Яркость может не обновляться правильным образом при настройке яркости в режиме работы от батареи на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe.
  • ЖК-дисплей может отображать мусор во время воспроизведения фильмов WMV при высокой загрузке ЦП на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe.
  • Монитор HDR может отображаться серым цветом, когда док-станции TBT Gen2 или USBC Gen2 используют порт HDMI с параметром «Использовать HDR» на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe.
  • Мерцание может наблюдаться в режиме экрана ПК на процессорах Intel Core 11-го поколения с графикой Intel Iris Xe.

Загрузка и установка драйвера

Новая версия пакета драйверов Intel Graphics Driver 27.20.100.9168 DCH доступна только для 64-битных систем Windows 10 под управлением поддерживаемых процессоров:

  • Intel Iris Xe Max Graphics (DG1).
  • Intel Core 11-го поколения с графикой Intel Iris Xe.
  • Intel Core 10-го поколения с графикой Intel Iris Plus и UHD.
  • Intel Core 9-го поколения, аналогичные процессоры Pentium/Celeron и Intel Xeon, с графикой Intel UHD Graphics 630
  • Intel Core 8-го поколения, аналогичные процессоры Pentium/Celeron и Intel Xeon, с графикой Intel Iris Plus 655 и Intel UHD 610, 620, 630, P630.
  • Intel Core 7-го поколения, аналогичные процессоры Pentium/Celeron и Intel Xeon, с графикой Intel Iris Plus 640, 650 и Intel HD 610, 615, 620, 630, P630.
  • Intel Core 6-го поколения, Intel Core M и аналогичные процессоры Pentium, с графикой Intel Iris 540, Intel Iris 550, Intel Iris Pro 580 и Intel HD Graphics 510, 515, 520, 530.
  • Intel Xeon семейства E3-1500M v5 с графикой Intel HD P530.
  • Pentium/ Celeron с графикой Intel HD 500, 505 и Intel UHD 600, 605.
  • Процессоры Intel Core с технологией Intel Hybrid Technology.

Поддерживаемые операционные системы:

Для обновления драйвера сохраните и запустите установочный файл, а затем следуйте инструкциям на экране.

Не забудьте выполнить перезагрузку системы. Если перезагрузка не начнется автоматически, то запустите ее принудительно, чтобы применить изменения.

Последнюю версию драйвера также можно установить с помощью приложения Intel Driver & Support Assistant. Запустите утилиту и проверьте наличие последних версий драйверов для продуктов Intel.

Источник

Оцените статью