Difference between revisions of "R-Car/Tests:igt"

From eLinux.org
Jump to: navigation, search
(Created page with "Instructions on how to run the Intel GPU Tools test suite on R-Car platforms, using the R-Car M3-W Salvator-X board as an example. = Test setup = To run the test suite, it is...")
 
 
Line 35: Line 35:
 
<li>Run the IGT test suite:
 
<li>Run the IGT test suite:
 
<pre>./scripts/run-tests.sh -x drv_module_reload  -x drv_suspend -x @gem_concurrent -s</pre>
 
<pre>./scripts/run-tests.sh -x drv_module_reload  -x drv_suspend -x @gem_concurrent -s</pre>
Note that this command excludes driver reloading tests (which are not supported when using a statically compiled driver) as well as all tests starting with "gem_concurrent". These tests are very numerous (more than 50000) and are all not applicable to the DU device, so excluding them from the outset saves a lot of time.</li>
+
Note that this command excludes driver reloading tests (which are not supported when using a statically compiled driver) as well as all tests starting with "<tt>gem_concurrent</tt>". These tests are very numerous (more than 50000) and are all not applicable to the DU device, so excluding them from the outset saves a lot of time.</li>
 
</ol>
 
</ol>
 
A <tt>renesas-drivers</tt> kernel (<tt>renesas-drivers-2018-01-30-v4.15-1</tt>) has been used during development, configured with the default configuration (<tt>renesas_defconfig</tt>), and with the option <tt>CONFIG_SW_SYNC</tt> enabled.
 
A <tt>renesas-drivers</tt> kernel (<tt>renesas-drivers-2018-01-30-v4.15-1</tt>) has been used during development, configured with the default configuration (<tt>renesas_defconfig</tt>), and with the option <tt>CONFIG_SW_SYNC</tt> enabled.

Latest revision as of 01:57, 7 May 2018

Instructions on how to run the Intel GPU Tools test suite on R-Car platforms, using the R-Car M3-W Salvator-X board as an example.

Test setup

To run the test suite, it is necessary to create an ARM64 NFS root file system, install additional distribution packages as well as clone two git repositories for intel-­gpu-­tools and piglit. The individual steps are as follows:

On the engineer's workstation

  1. Create an ARM64 Debian root file system:
    sudo qemu-­debootstrap ­­arch arm64 sid /tmp/repro_root http://deb.debian.org/debian/
  2. Copy File:Igt selections.txt as igt_selections to the file system just created in /tmp/repro_root.

On the target platform

The file system created in the previous step should now be booted on the target platform as an NFS root file system. The following steps should then be performed on the target platform:

  1. Connect an HDMI display to port HDMI0 on the M3-W Salvator-X board.
  2. Run apt-get install dselect
  3. Run dselect update
  4. Run dpkg --set-selections <igt_selections
  5. Run apt-get dselect-upgrade -y
    This will install all additional distribution packages required to run the IGT test suite and may therefore take a while.
  6. Create a UTF-8 locale: (This is required by the piglit tool.)
    • Edit /etc/locale.gen and remove the comment character ("#") before the line that contains "en_US.UTF-8 UTF-8".
    • Run locale-gen
      Run export LC_ALL=en_US.UTF-8
  7. To clone the intel-gpu-tools test suite, run these commands:
    git clone git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

    for the standard IGT distribution, OR

    git clone https://github.com/uli/intel-gpu-tools.git
    for a version containing a number of fixes to obtain better test results on R-Car.
  8. To build the IGT test suite, run these commands:
    cd intel-gpu-tools
    ./autogen.sh
    make -j4
    This step will take an extended amount of time due to the low performance of the NFS root file system.
  9. Clone the current version of the piglit tool: (There is a version of piglit included in the Debian distribution, but it is not recent enough to work with the IGT test suite.)
    git clone git://anongit.freedesktop.org/piglit
    export PATH=`pwd`/piglit:$PATH
  10. Run the IGT test suite:
    ./scripts/run-tests.sh -x drv_module_reload  -x drv_suspend -x @gem_concurrent -s
    Note that this command excludes driver reloading tests (which are not supported when using a statically compiled driver) as well as all tests starting with "gem_concurrent". These tests are very numerous (more than 50000) and are all not applicable to the DU device, so excluding them from the outset saves a lot of time.

A renesas-drivers kernel (renesas-drivers-2018-01-30-v4.15-1) has been used during development, configured with the default configuration (renesas_defconfig), and with the option CONFIG_SW_SYNC enabled.