commit 7f93a2632aae7c5865823b4a2fa4cd8c2a1c0977
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Wed Oct 4 13:48:15 2017 +0300

    Update NEWS, bump version to 1.20.
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

commit 332108184493d0b58963ffe13f9b568a6fa462df
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Wed Oct 4 12:11:40 2017 +0100

    tests/perf: split array of formats descriptions
    
    The I915_OA_FORMAT_C4_B8 format has different offset on Haswell &
    Gen8. Let's split the format lists so we don't mix them.
    
    Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 23a578df1df1891b943cd5c3f8c6080b5215e8d7
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Thu Aug 31 11:32:28 2017 +0100

    tests/perf: add support for Coffeelake
    
    Using the same timestamp frequency as Skylake/Kabylake.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit f1514a6320f65a1524f36407f7f22d6fc7c7679e
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Thu Nov 3 17:27:28 2016 +0000

    tests/perf: prevent power management to kick in when necessary
    
    Some of our tests measure that the OA unit produces reports at
    expected time intervals (as configured through the PERF_OPEN
    ioctl). It turns out the power management plays a role in the decision
    of the OA unit to write reports to memory. Under normal circumstances
    we don't really mind if the unit misses one report here or there, but
    for our tests it makes pretty difficult to verify whether we've made a
    mistake in the configuration.
    
    To work around this, let's prevent power management to kick in by
    holding /dev/cpu_dma_latency opened for the following tests :
    
      - enable-disable
      - blocking
      - polling
      - buffer-fill
      - oa-exponents
    
    Many thanks to Chris Wilson for suggesting this!
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit eafaf4fb49ba7a02c11def787b5de2a14de532f2
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Wed Aug 23 16:17:04 2017 +0100

    tests/perf: estimate number of blocking/polling based on time spent
    
    Blocking & polling tests define an amount of time to spend in the test
    and then estimate the number of syscalls that should successfully
    return. The problem is that while running the test we might spend
    slightly more time than initiallly planned. This change estimates the
    number of syscalls based on time spent after the fact.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 0e41ce59d71031a21aa9ae83e46ccd54b7601dc8
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Fri Apr 14 02:49:19 2017 +0100

    tests/perf: make buffer-fill more reliable
    
    Filling rate of the buffer must discard context switch reports as they
    do not depend upon the periodicity, instead they're a factor on the
    amount of different applications concurrently running on the system.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Tested-by: Matthew Auld <matthew.auld@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 55d3c3b00838f8ad103233a75c12453b9733fd37
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Fri Apr 14 02:14:20 2017 +0100

    tests/perf: make enable-disable more reliable
    
    Estimation of the amount of reports can only refer to periodic ones,
    as context switch reports completely depend on what happens on the
    system. Also generate some load to prevent clock frequency changes to
    impact our measurement.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 4a8d621cdf876bd3774cec719fd4e92b77ff86aa
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Mon Apr 24 22:28:57 2017 -0700

    tests/perf: rework oa-exponent test
    
    New issues that were discovered while making the tests work on Gen8+ :
    
     - we need to measure timings between periodic reports and discard all
       other kind of reports
    
     - it seems periodicity of the reports can be affected outside of RC6
       (frequency change), we can detect this by looking at the amount of
       clock cycles per timestamp deltas
    
    v2: Drop some unused variables (Matthew)
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 765ba28f0d62e6b879e60bdca033b63737d2fbfb
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Fri Apr 14 03:25:05 2017 +0100

    tests/perf: remove frequency related changes
    
    Experience shows that most of the issues we face with periodicity of
    the reports produced by the OA unit are related to power management,
    not frequency.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 457bed4c6861462ac69880a101812ec44301433a
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Mon May 1 23:40:59 2017 -0700

    tests/perf: rc6: try to guess when rc6 is disabled
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit be844d0811c5a1b2a742d1bbb01ee263c16cc9dd
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Tue Apr 25 11:02:11 2017 -0700

    tests/perf: update max buffer size for reading reports
    
    Make it clear that we're using a 16Mb buffer.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 8697ba5451c7068aacc3360a2162dd0bb190ac3d
Author: Robert Bragg <robert@sixbynine.org>
Date:   Sun Feb 12 19:28:38 2017 +0000

    tests/perf: add per context filtering test for gen8+
    
    Signed-off-by: Robert Bragg <robert@sixbynine.org>
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 225179e374d570ae27b318cd99f7cf6d9b17a573
Author: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Date:   Fri Mar 31 18:29:28 2017 +0100

    tests/perf: make stream_fd a global variable
    
    When debugging unstable tests on new platforms we currently we don't
    cleanup everything well in between different tests. Since only a
    single OA stream fd can be opened at a time, having the stream_fd as a
    global variable helps us cleanup the state between tests.
    
    Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 26d0da428f6d6029ad803821ddb6bbc6ff5765a5
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Tue Oct 3 16:11:42 2017 +0200

    lib/igt_kms: Disable crtc in legacy path when output is unset
    
    When the output is unset, but the fb is still valid we still have
    to perform a disable on the crtc.
    
    This ixes the following crash in kms_color (although previous commit
    does as well):
    
    (gdb) bt
    0  igt_output_get_mode (output=output@entry=0x0) at igt_kms.c:2828
    1  0x000055555556f0d5 in igt_primary_plane_commit_legacy(..) at igt_kms.c:2341
    2  igt_plane_commit (fail_on_error=true, s=COMMIT_LEGACY, ..) at igt_kms.c:2394
    3  igt_pipe_commit (fail_on_error=true, s=COMMIT_LEGACY, ..) at igt_kms.c:2435
    4  do_display_commit (display=0x7fffffffe5d8, s=COMMIT_LEGACY, ..) at igt_kms.c:2667
    5  0x000055555556f38e in igt_display_commit2 (display=<optimized out>, s=<optimized out>) at igt_kms.c:2777
    6  0x000055555555ef84 in run_tests_for_pipe (data=.., p=PIPE_B) at kms_color.c:1053
    7  0x000055555555f610 in __real_main1189 () at kms_color.c:1206
    8  0x000055555555cbc7 in main (argc=<optimized out>, argv=<optimized out>) at kms_color.c:1189
    
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>

commit 9913b582eeb5e9d52dd9963f95f875e1231f44b2
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Tue Oct 3 16:15:44 2017 +0200

    tests/kms_color: Unset plane fb on teardown, v2.
    
    Valgrind is slightly unhappy when we leave the fb set:
    ==1804== Invalid read of size 4
    ==1804==    at 0x122F83: igt_plane_get_fb_id (igt_kms.c:2074)
    ==1804==    by 0x122F83: igt_primary_plane_commit_legacy
    (igt_kms.c:2339)
    ==1804==    by 0x122F83: igt_plane_commit (igt_kms.c:2394)
    ==1804==    by 0x122F83: igt_pipe_commit (igt_kms.c:2435)
    ==1804==    by 0x122F83: do_display_commit (igt_kms.c:2667)
    ==1804==    by 0x12338D: igt_display_commit2 (igt_kms.c:2777)
    ==1804==    by 0x112F83: run_tests_for_pipe (kms_color.c:1053)
    ==1804==    by 0x11360F: __real_main1189 (kms_color.c:1206)
    ==1804==    by 0x110BC6: main (kms_color.c:1189)
    ==1804==  Address 0x1ffeffeb20 is on thread 1's stack
    ==1804==  160 bytes below stack pointer
    
    Add the missing calls to igt_plane_set_fb, and fix the crash.
    
    Changes since v1:
    - Fix compilation!
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>

commit 7c9dccb596b6467899c993a7df5d32574c1b89b9
Author: Ausmus, James <james.ausmus@intel.com>
Date:   Wed Sep 27 16:08:27 2017 -0700

    Fix compilation on some distros
    
    Some distros (such as Gentoo) are removing the include of
    sys/sysmacros.h from sys/types.h. Explicitly include sysmacros.h in
    files where we use the minor() and major() functions.
    
    Signed-off-by: James Ausmus <james.ausmus@intel.com>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit 7fd0cae99630f954cfe0089b4b7e91576a353582
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Oct 3 14:52:27 2017 +0100

    lib: Fixup __gem_create() to be 64b safe.
    
    We want to create very large objects, larger than the 2G limit imposed
    by using ints.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Reviwed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>

commit b26e9185645a4344e113a98428cd3c342d09d024
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Sep 27 11:30:52 2017 -0700

    meson: Disable the intel overlay on non-x86 builds.
    
    It's got calls to rmb/wmb that end up not linking successfully.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit 2a74ae550842cfe216bff28725e1a24db3b56792
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Sep 27 11:17:15 2017 -0700

    meson: Fix build of igt_x86-using tests on non-x86 platforms.
    
    Just stub out the features return value, and return an empty string.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit b09047edeeab8584649e2c7ebded28dace3f6853
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Sep 27 11:22:08 2017 -0700

    Fix rlim_cur compiler warnings when building on ARM.
    
    Signed-off-by: Eric Anholt <eric@anholt.net>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit 0045085c632a1cf5b4e9272304ee0e61ff9a7e6f
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Oct 3 12:46:10 2017 +0100

    lib: Report the error from __gem_create()
    
    We have two style of ioctl wrappers. The principle interface does error
    checking on behalf of the caller (to avoid having lots of repetitious
    code in each test), and for the few cases where the error is important
    for the test, we also expose a double underscore version. Fix up
    __gem_create() to follow this pattern and report the negative error code
    returned by the kernel.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit 08a2f887b26c89cfb1e1b5715a23d561b75e0dab
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 13:51:59 2017 +0300

    lib: Reduce dependency on glib
    
    In commit ebd6eb69f57b ("Make igtrc configuration common, with
    configurable suspend/resume delay") .igtrc handling was moved to
    igt_core from igt_chamelium. That made everything in IGT depend on
    GLIB by accident.
    
    In short, igt_core.h declared a variable of type GKeyFile*, requiring
    glib.h. Everything that tried to #include igt_core.h required glib.h
    to be available, by use of GLIB_CFLAGS. This "worked" so far because
    CAIRO_CFLAGS contained GLIB_CFLAGS.
    
    As the variable is only used by other stuff in lib/, stuff it in its
    own header file to leave igt_core.h without a dependency to glib.h.
    
    Also add a couple of missing #ifdef HAVE_GLIBs around.
    
    Reported-by: Felipe De Jesus Ruiz Garcia <felipe.de.jesus.ruiz.garcia@intel.com>
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

commit 0c7e50650d0c9fa1e04b1140e065ae2cf800bd1f
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 13:51:58 2017 +0300

    gem_exec_schedule: Add missing #include
    
    gem_exec_schedule used sigaction() without #include <signal.h>
    
    CC: Chris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

commit 0b5d63dffce4178d64d0e9744acb346f83b90302
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 13:51:57 2017 +0300

    kms_atomic_interruptible: Add missing #include
    
    kms_atomic_interruptible used signal() without #include <signal.h>
    
    CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

commit 1e3db6500dd5c5aa2cc8cb03501b50ef17d06564
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Wed Sep 27 18:17:53 2017 +0200

    lib/igt_kms: Commit primary plane when a modeset is forced on a pipe
    
    In between tests, some tests can do the following sequence:
    
    (pipe C configured with FB)
    igt_plane_set_fb(primary (pipe C), NULL);
    /* Clear rotation property first */
    igt_display_commit2(display, COMMIT_UNIVERSAL);
    
    /* disable pipe */
    igt_display_commit2(display, COMMIT_LEGACY);
    
    This would result in PIPE_C not being properly disabled, which
    will cause an error on the next mode. This can be seen when running
    the full kms_rotation_crc testcase without --subtest, it will fail
    on exhaust-fences because the bad-tiling subtest wasn't able to
    disable pipe C correctly.
    
    Testcase: kms_rotation_crc
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>

commit 76c7a71a13fd21fbf58ec2903c25acc980b7ddaf
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Wed Sep 27 12:25:37 2017 +0200

    lib/igt_kms: Change output->pending_crtc_idx_mask to output->pending_pipe
    
    igt_output_set_pipe with PIPE_ANY used to mean that we bind the output
    to any pipe, but this is now a deprecated alias for PIPE_NONE, and
    means the output will be unbound.
    
    Because of this it's better to change output->pending_crtc_idx_mask to
    an enum pipe, because only a single choice may be given for a pipe.
    
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>

commit b5404f8435f828ca039a2e46be629b3d4c92465b
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Mon Oct 2 13:50:05 2017 +0300

    meson: Follow suit with the renaming of kms_pipe_color
    
    CC: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

commit 1e99f8b8d2563d7f5c4e82932bab15abc5eacaef
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:52 2017 +0300

    meson: Distribute meson build system files
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 5b9b6711ad652db485ddda499710d794ee236dea
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:51 2017 +0300

    docs: Distribute audio.txt and chamelium.txt
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 57795030c182321f732e4aa5dca405008096cb79
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:50 2017 +0300

    lib: Handle intel_aub.h like the other stub files
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 571c25387a799e1a5d0af1d44117975e071dbbf6
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:49 2017 +0300

    lib: Remove media_fill.c
    
    media_fill.c has been unused from around 2014 when its contents moved
    to intel_batchbuffer.c.
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 74421c080b3a67bb8c3418e8198d315f68f46092
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:48 2017 +0300

    demos: Remove final file
    
    demos/Makefile.am was left behind. Nuke it.
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit ba1c982e417a1c12c539d463dd59ddb7895c81ca
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:47 2017 +0300

    benchmarks: Add ezbench.d files to dist
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit c900febe274fa9d32f1e7fe82fce649cc85dce57
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Sep 29 15:59:46 2017 +0300

    benchmarks: Add wsim files to dist
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 7df7e3bda6a206c15044dfd9804eddeee29d981b
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Thu Sep 21 12:53:27 2017 +0200

    tests: Stop looking at plane private members
    
    Most of these tests have no reason to look at those members,
    so try other ways of getting the information.
    
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>

commit 5f6806472c2d413dec850e60ef452f5d55cc9912
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Thu Sep 21 08:36:33 2017 +0200

    igt/kms_rotation_crc: Fix flip tests for sprite plane
    
    This test was flipping the primary plane instead of the sprite plane.
    Flip the correct plane to make the test pass properly.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102691
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>
    Tested-by: Marta Lofstedt <marta.lofstedt@intel.com>
    Acked-by: Marta Lofstedt <marta.lofstedt@intel.com>

commit 7bc1fd8638356f728f200b9377e76f286d964c7e
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date:   Thu Sep 21 10:48:54 2017 +0200

    tests: Rename kms_pipe_color to kms_color
    
    Rename kms_pipe_color to kms_color, and rename the invalid tests to pipe-invalid.
    To prepare for adding support for plane color management.
    
    Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
    Reviewed-by: Mika Kahola <mika.kahola@intel.com>

commit 09f8cb1a3758fa9868a07b83a3d3db2973d795cc
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Sep 29 09:17:43 2017 +0100

    igt/gem_sync: Sync before starting the clock
    
    Hide the initial setup cost of a new batch by performing it before we
    start the clock for measuring the execute-wait latency.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit 182b1941d8e221f1f5625c53f74b09bef7d8837a
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Wed Sep 27 16:47:08 2017 +0300

    benchmarks: Actually build LIBDRM_INTEL_BENCHMARKS
    
    Adding LIBDRM_INTEL_BENCHMARKS into benchmarks_PROGRAMS had a tab
    before the assignment, making the line be inserted into the Makefile
    as is instead of being evaluated by automake.
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

commit 8c2676aeaddb45a586d287d91a98728b8c81da20
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Sep 29 12:29:49 2017 +0100

    lib: Fix igt_sysfs_set_u32 return value
    
    Printf family functions return a number of bytes, not tokens,
    printed so the existing check (== 1) was wrong.
    
    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

commit cf3e683a3650c18c89a3322c4171e1db94b5b9f8
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Sep 28 18:24:26 2017 +0100

    igt/gem_exec_nop: Measure high-priority throughput over a bg load
    
    Measure how many high priority batches we can execute whilst running a
    bg spinner.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit 52657b7311b8d6180b488824fb69e3a4a49dabd2
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Sep 28 18:03:55 2017 +0100

    igt/gem_sync: Add a preemption test
    
    Check and measure how well we can submit a second high priority task
    when the engine is already busy with a low priority task and see how
    long it takes to complete (and wake up the client).
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit b9c883086e9aaa223d0be3894fd3f07a9734dd60
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Sep 28 11:09:17 2017 +0100

    igt/gem_exec_schedule: Detect too slow setup in deep-*
    
    Using vgem as our cork for building the request queue limits us to 10s
    of setup (or else the fence autoexpires and we start executing too
    early). Add timeouts to the setup loops and SKIP if we cannot establish
    the workload within 10s, the machine and driver is too slow to evaluate
    the expected results.
    
    To avoid the artificial limit of 10s requires lifting the dependency on
    vgem and switching to sw_sync and explicit fencing. Just a matter of
    plumbing!
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit 61d11538dd53bd945a34fcdf389d5409aeeddb4f
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Thu Sep 28 18:10:48 2017 +0300

    meson: Also build kms_atomic_interruptible
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit cbc1e78dfe101b26c6272eabe6942edea7fed003
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Thu Sep 28 18:10:47 2017 +0300

    meson.sh: Invoke meson correctly
    
    Either source or build directory is required as a command line
    parameter.
    
    Also use mkdir -p when creating the build directory to avoid errors
    when it already exists.
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 47ae1f8cfd2d4a826331e270b33440e0bf3a6aa9
Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Date:   Thu Sep 28 18:00:03 2017 +0300

    tests/gem_workarounds: Skip write only registers
    
    We have no means to check write only registers as
    this would need access through context image. For now we
    know that cnl has a one such register, 0xe5f0 which is used
    to set WaForceContextSaveRestoreNonCoherent:cnl. By inspecting
    the context image without and with workaround applied:
    
    0x0000a840: 0x0000e5f0 0xffff0800
    0x0000a840: 0x0000e5f0 0xffff0820
    
    we can conclude that the workaround setup is working right
    in this particular case.
    
    Add a write only list and add register 0xe5f0 into this list.
    This is a temporary solution until a more capable context image
    checker emerges.
    
    v2: add code comment about adhocness (Petri)
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102943
    Cc: Oscar Mateo <oscar.mateo@intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: Petri Latvala <petri.latvala@intel.com>
    Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
    Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Oscar Mateo <oscar.mateo@intel.com>

commit 3df22e0d2f8934311c62e4fd84bee24b32addb58
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Sep 8 10:46:24 2017 +0100

    benchmarks/gem_exec_fault: Update for tryhard kernels.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Matthew Auld <matthew.auld@intel.com>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>

commit 7d512a34469cd0b2f4d6eebdc915bbf0b29730ba
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Aug 18 18:46:53 2017 +0100

    benchmarks/gem_syslatency: Apply vmpressure, measure page allocation
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit 765f7b0a343af32855747a92a33f56cae79444d5
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Sep 25 21:45:21 2017 +0100

    igt/gem_exec_scheduler: HAS_SCHEDULER no longer means HAS_PREEMPTION
    
    Michal wants to limit machines that can do preemption, which means that
    we no longer can assume that if we have a scheduler for execbuf, that
    implies we have preemption.
    
    v2: Try a capability mask instead
    v3: Pretty print the caps.
    v4: Not so pretty print the caps.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

commit e917e926823b801208c4cc1178ea9f7755a7fab1
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Sep 12 21:07:03 2017 +0100

    lib: Capture the error state on an unexpected hang
    
    Dump debugfs/i915_error_state to the debug channel if we detect an ERROR
    uevent. This poses a few problems, not least that it is the auxiliary
    process doing the dumping (so the output may be interleaved with the
    test, but considering a hang occurred it is likely the test is blocked)
    and the average error state is around 60k, which may prove unwieldy!
    
    On the other hand, it may prove invaluable in debugging those impossible
    to reproduce bugs.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit 2885b10f99b4beeb046e75af8b8488c229f629d3
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Sep 25 20:59:54 2017 +0100

    igt/gem_exec_schedule: Ignore set-priority failures on old kernels
    
    When plugging the device, we need to submit batches at highest priority
    so that they cannot be gazumped by the queued requests. On older kernels
    that do not support the user changing context priority, all contexts
    therefore have the same default priority and we can ignore the error.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>

commit 9fe6ea91fd6e4ff3d95dfd4f46c2d3080be6a405
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Mon Sep 25 12:34:02 2017 +0300

    igt_command_line.sh: Fix bashism
    
    [[ a != b ]] is a bashism. As it's just comparing $1 to an empty
    string, use -n with a normal [ ].
    
    /bin/sh is dash in CI.
    
    v2: Also change the script to #!/bin/bash to avoid having to babysit
    bashism later.
    
    Fixes: f0243a761f1b ("tests/igt_command_line.sh: Allow testing individual tests")
    CC: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit 0a91a5e9624d41d23b79e2540eda111cb56d42d9
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Sep 8 17:14:46 2017 +0200

    meson: Simple makefile integration
    
    Run ./meson.sh once, then you have
    
    $ make
    
    and
    
    $ make test
    
    available in the normal src root.
    
    v2:
    
    Add
    
    $ make reconfigure
    
    which is the meson equivalent to rerunning ./configure. Also takes
    some arguments if needed. Start out with --help, as usual.
    
    v3: Use ninja -C (Chris).
    
    v4: Catch more automake targets and point out what's happening
    (Petri).
    
    v5: Use EOF as heredoc marker (Arek)
    
    Cc: Petri Latvala <petri.latvala@intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

commit c117213c06d0f47937c1f225ebead5e1fe8c7a0e
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Sep 24 17:14:36 2017 +0100

    igt/gem_exec_whisper: Smoketest context priorities
    
    No complex check of reordered writes, just throwing lots of random
    priority batches with long dependency chains at the scheduler. This
    should help to smoketest preemption.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

commit bf1c7ee515856fdd01ea1a887d08f8d0af882dc1
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Sep 22 10:46:02 2017 +0100

    igt/gem_exec_schedule: Fix up too deep reorder-wide()
    
    Like wide(), reorder-wide() didn't check the ring size before flooding
    and so would exhaust its available space and block (causing a GPU hang
    to recover), thus failing the test. Also, since we use a new context for
    each iteration of the test, the available ring space is reduced (due to
    the overhead in setting up that context via the ring), so make sure that
    when we measure the available ring space we also use a new context.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

commit da553ff40e2555b9ef7989882e113ae33a7448e5
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Sep 22 10:32:44 2017 +0100

    igt/gem_exec_schedule: s/-MAX_PRIO/MIN_PRIO/
    
    Replace instances of -MAX_PRIO with MIN_PRIO for readability.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

commit f16a799807487b6e2dcc8c7940a1a8b424f10802
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Thu Sep 21 15:52:28 2017 +0300

    igt_core: Rework igt_system()
    
    Instead of redirecting output to pipes and forking, redirect after
    forking to avoid having to carefully unredirect before logging
    anything.
    
    igt@tools_test@sysfs_l3_parity had a racy condition where it prints
    the output of intel_l3_parity prepended by [cmd], but that ended up
    being printed again prepended by [cmd] because output was redirected,
    causing outputs to appear multiple times. This patch fixes that.
    
    CC: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>

commit 51d800ffb7dcb84a2c74bd92aac854435c591c30
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Thu Sep 21 15:52:27 2017 +0300

    tools_test: Clean up and fix sysfs_l3_parity
    
    Multiple misunderstandings of the expectations of the test and some
    missed parts of the shell-to-c conversion caused a couple of issues to
    remain.
    
    First, we need to actually disable a subbank before we check that a
    subbank is disabled (invoke the tool with -d).
    
    Second, the original pipe to wc -l was to check that the tool prints
    only one line, not that it prints "at least" a line. Modify the last
    check to verify that an "is disabled" text is _not_ printed.
    
    v2: Add a TODO comment
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101650
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>

commit 7f97a4aea42e6037c65a12a7832748c0faf17ab7
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Sep 14 14:18:07 2017 +0100

    igt/kms_cursor_legacy: Use common spinbatch
    
    Remove the local recursive spinner in favour of igt_spin_t.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

commit b94a17d13fb5e03bbc7ef50ce88352b37ad06c85
Author: Dhinakaran Pandiyan <dhinakaran.pandiyan@gmail.com>
Date:   Mon Sep 18 18:55:09 2017 -0700

    tests/psr: Don't strcmp CRCs that are not NULL terminated.
    
    Switched to strncmp.
    
    Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@gmail.com>
    Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

commit 7c79e2ca1f78d1d2fd95f66fbf98daaf4e56de41
Author: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Date:   Thu Sep 21 17:21:46 2017 -0700

    igt/kms_psr_sink_crc: Fix the bug in psr_drrs subtest
    
    The substring to be matched is "DRRS Supported: Yes" and not
    "DRRS Support: No". The kernel prints the DRRS status for all active
    CRTC's. Matching for No support gives a false positive when multiple
    CRTC's are active.
    
    Fixes: 33355210a43e (igt/kms_psr_sink_crc: Add psr_drrs subtest)
    Cc: C. Ramalingam <ramalingam.c@intel.com>
    Cc: Lohith BS <lohith.bs@intel.com>
    Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
    Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
    Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

commit 435fea5017d7a655ddb13f7897bfd628c9a5e6fb
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Thu Sep 21 15:42:15 2017 +0300

    tests/kms_panel_fitting: Use igt_cairo_image_surface_create_from_png_file()
    
    Switch to using igt_cairo_image_surface_create_from_png_file() over the
    raw cairo version so that the test can actually find the image file
    no matter where we run it from.
    
    Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit 75f320c5bda480f4ea1501577247d6a807ed3bff
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Thu Sep 21 15:39:23 2017 +0300

    lib/igt_fb: Add igt_cairo_image_surface_create_from_png()
    
    Raw usage of cairo_image_surface_create_from_png() doesn't work
    since it doesn't know about IGT_DATADIR and IGT_SRCDIR. Let's extract
    the helper from igt_paint_image() that uses igt_fopen_data() +
    cairo_image_surface_create_from_png_stream() and call it
    igt_cairo_image_surface_create_from_png().
    
    Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
    Reviewed-by: Petri Latvala <petri.latvala@intel.com>

commit 3a01e58858e6068f75356e798fd90c80cccb37d6
Author: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Date:   Thu Sep 14 11:09:58 2017 -0700

    tests/gem_flink_basic: Add documentation for subtests
    
    Added the missing IGT_TEST_DESCRIPTION and some subtest
    descriptions.
    
    v2: Removed duplication, addressed comments, cc'd test author
    
    v3: Only comment abstract code, change some igt_info to igt_debug.
        Changed description to reflect this is a patch, not an RFC.
    
    Cc: Michał Winiarski <michal.winiarski@intel.com>
    Cc: Eric Anholt <eric@anholt.net>
    Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Cc: Daniel Vetter <daniel.vetter@intel.com>
    
    Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
    Reviewed-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>

commit 4323d1bab091c2202ab1bd6786b178c23977112c
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Aug 25 13:13:52 2017 +0300

    intel-ci: Install testlist files to pkgdata dir
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
    Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Tested-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

commit 23b7c99c8f6b2da9f624d4f0c40fe1355d5a2dcc
Author: Petri Latvala <petri.latvala@intel.com>
Date:   Fri Aug 25 13:13:51 2017 +0300

    tests/Makefile.am: Install test-list*.txt to libexecdir
    
    Piglit expects test-list*.txt files to be in the same directory as the
    test binaries. Installing non-executable files to libexecdir requires
    going around some of autotools' sanity checks.
    
    This change should make 'make install':ed IGT runnable with piglit.
    
    Signed-off-by: Petri Latvala <petri.latvala@intel.com>
    Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
    Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
    Tested-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>

commit 74778b83f602f811512269ecf8ddfc08fcfdd4f0
Author: Rodrigo Vivi <rodrigo.vivi@intel.com>
Date:   Thu Sep 21 14:49:00 2017 -0700

    i915_pciids: Change a KBL pci id to GT2 from GT1.5
    
    In sync with 41693fd52373 ("drm/i915/kbl: Change a KBL pci id
    to GT2 from GT1.5")
    
    "See Mesa commit 9c588ff"
    
    v2: s/DT/Mobile
    
    Cc: Anuj Phogat <anuj.phogat@gmail.com>
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
    Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>

commit 7c2650a1ec9a2e9c036169a2acda584a692a7050
