1. 04 Dec, 2017 2 commits
  2. 01 Dec, 2017 1 commit
  3. 30 Nov, 2017 4 commits
  4. 29 Nov, 2017 7 commits
  5. 28 Nov, 2017 2 commits
  6. 27 Nov, 2017 1 commit
  7. 24 Nov, 2017 4 commits
  8. 23 Nov, 2017 10 commits
  9. 22 Nov, 2017 9 commits
    • Tvrtko Ursulin's avatar
      lib/core: Avoid unused result in backtrace printing · db31e3c1
      Tvrtko Ursulin authored
      Add helpers for direct write to stderr to consolidate the code
      and avoid the unused result warning in build.
      
      v2: Use igt_ignore_warn since it is questionable whether igt_assert
          is safe in signal handlers. (Chris Wilson)
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      db31e3c1
    • Tvrtko Ursulin's avatar
      intel_gvtg_test: Handle system(3) return value. · c1fe411c
      Tvrtko Ursulin authored
      Avoid the build warning by checking the pkill either did not find
      any guests or managed to send a signal to all of them.
      
      v2: Inspect system(3) return value properly. (Petri Latvala)
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      c1fe411c
    • Tvrtko Ursulin's avatar
    • Daniel Vetter's avatar
      automake: include drm-uapi headers in EXTRA_DIST · f9dff9b5
      Daniel Vetter authored
      This breaks make distcheck otherwise.
      
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Petri Latvala <petri.latvala@intel.com>
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Reviewed-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      Tested-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      f9dff9b5
    • Daniel Vetter's avatar
      lib: Also copy vc4_packet.h · e1be16ee
      Daniel Vetter authored
      Eric missed in
      
      commit d21e95ca
      Author: Eric Anholt <eric@anholt.net>
      Date:   Fri Nov 10 12:39:56 2017 -0800
      
          tests: Remove libdrm_vc4 dependency.
      
      that the uapi headers don't include vc4_packet.h. Which totally broke
      the build.
      
      Strangely CI didn't catch this in the first build attempt, no idea
      how/where it picked up the vc4_packet.h.
      
      As an interim solution let's just copy the one I have from libdrm
      over. Long-term we might want to either re-intro the libdrm_vc4
      dpendency, or maybe put vc4_packet.h into the kernel's uapi folder, or
      something else. But that's up to Eric.
      
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Petri Latvala <petri.latvala@intel.com>
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@intel.com>
      Acked-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      Tested-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      e1be16ee
    • Tvrtko Ursulin's avatar
    • Tvrtko Ursulin's avatar
      gem_wsim: Busy stats balancers · b7f720e3
      Tvrtko Ursulin authored
      Add busy and busy-avg balancers which make balancing decisions by looking
      at engine busyness via the i915 PMU.
      
      And thus are able to make decisions on the actual instantaneous load of
      the system, and not use metrics that lag behind by a batch or two. In
      doing so, each client should be able to greedily maximise their own
      usage of the system, leading to improved load balancing even in the face
      of other uncooperative clients. On the other hand, we are only using the
      instantaneous load without coupling in the predictive factor for dispatch
      and execution length.
      
      v2:
       * Commit text. (Chris Wilson)
       * Rename get_stats to get_pmu_stats. (Chris Wilson)
       * Fix PMU readout in VCS remap mode.
      
      v3:
       * Integrated Petri's meson build recipe.
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Petri Latvala <petri.latvala@intel.com>
      b7f720e3
    • Tvrtko Ursulin's avatar
      tests/perf_pmu: Tests for i915 PMU API · 20d89b41
      Tvrtko Ursulin authored
      A bunch of tests for the new i915 PMU feature.
      
      Parts of the code were initialy sketched by Dmitry Rogozhkin.
      
      v2: (Most suggestions by Chris Wilson)
       * Add new class/instance based engine list.
       * Add gem_has_engine/gem_require_engine to work with class/instance.
       * Use the above two throughout the test.
       * Shorten tests to 100ms busy batches, seems enough.
       * Add queued counter sanity checks.
       * Use igt_nsec_elapsed.
       * Skip on perf -ENODEV in some tests instead of embedding knowledge locally.
       * Fix multi ordering for busy accounting.
       * Use new guranteed_usleep when sleep time is asserted on.
       * Check for no queued when idle/busy.
       * Add queued counter init test.
       * Add queued tests.
       * Consolidate and increase multiple busy engines tests to most-busy and
         all-busy tests.
       * Guarantte interrupts by using fences.
       * Test RC6 via forcewake.
      
      v3:
       * Tweak assert in interrupts subtest.
       * Sprinkle of comments.
       * Fix multi-client test which got broken in v2.
      
      v4:
       * Measured instead of guaranteed sleep.
       * Missing sync in no_sema.
       * Log busyness before asserts for debug.
       * access(2) instead of open(2) to determine if cpu0 is hotpluggable.
       * Test frequency reporting via min/max setting instead assuming.
         ^^ All above suggested by Chris Wilson. ^^
       * Drop queued subtests to match i915.
       * Use long batches with fences to ensure interrupts.
       * Test render node as well.
      
      v5:
       * Add to meson build. (Petri Latvala)
       * Use 1eN constants. (Chris Wilson)
       * Add tests for semaphore and event waiting.
      
      v6:
       * Fix interrupts subtest by polling the fence from the "outside".
         (Chris Wilson)
      
      v7:
       * Assert number of initialized engines matches the expectation.
         (Chris Wilson)
       * Warn instead of skipping if we couldn't restore the initial
         frequency. (Chris Wilson)
       * Move all asserts to after the test cleanup (just a tidy).
       * More 1eN notation for timeouts.
       * Bump the tolerance to 5% since I saw a few noisy runs with
         sampling counters.
       * Always start the PMU before submitting batches to lower
         reliance on i915 doing the delayed engine busy stats disable.
      
      v8:
       * Update for upstream engine class enum.
      
      v9:
       * Add meson build support.
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
      Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      20d89b41
    • Tvrtko Ursulin's avatar
      intel-gpu-overlay: Use RAPL PMU for power reading · 273e66ba
      Tvrtko Ursulin authored
      Wire up to the RAPL PMU for GPU energy readings.
      
      The only complication is that we have to add code to parse:
      
       # cat /sys/devices/power/events/energy-gpu.scale
       2.3283064365386962890625e-10
      
      v2: Link with -lm.
      v3: strtod can handle scientific notation, even though my initial
          reading of the man page did not spot that. (Chris Wilson)
      v4: Meson fix.
      Signed-off-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Reviewed-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      273e66ba