Skip to content
  1. Mar 23, 2020
  2. Mar 22, 2020
  3. Mar 20, 2020
  4. Mar 19, 2020
  5. Mar 18, 2020
  6. Mar 17, 2020
    • Lionel Landwerlin's avatar
      drm/i915/perf: introduce global sseu pinning · 11ecbddd
      Lionel Landwerlin authored
      
      
      On Gen11 powergating half the execution units is a functional
      requirement when using the VME samplers. Not fullfilling this
      requirement can lead to hangs.
      
      This unfortunately plays fairly poorly with the NOA requirements. NOA
      requires a stable power configuration to maintain its configuration.
      
      As a result using OA (and NOA feeding into it) so far has required us
      to use a power configuration that can work for all contexts. The only
      power configuration fullfilling this is powergating half the execution
      units.
      
      This makes performance analysis for 3D workloads somewhat pointless.
      
      Failing to find a solution that would work for everybody, this change
      introduces a new i915-perf stream open parameter that punts the
      decision off to userspace. If this parameter is omitted, the existing
      Gen11 behavior remains (half EU array powergating).
      
      This change takes the initiative to move all perf related sseu
      configuration into i915_perf.c
      
      v2: Make parameter priviliged if different from default
      
      v3: Fix context modifying its sseu config while i915-perf is enabled
      
      v4: Always consider global sseu a privileged operation (Tvrtko)
          Override req_sseu point in intel_sseu_make_rpcs() (Tvrtko)
          Remove unrelated changes (Tvrtko)
      
      v5: Some typos (Tvrtko)
          Process sseu param in read_properties_unlocked() (Tvrtko)
      
      v6: Actually commit the bits from v5...
          Fixup some checkpath warnings
      
      v7: Only compare engine uabi field (Chris)
      
      Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200317132222.2638719-3-lionel.g.landwerlin@intel.com
      11ecbddd
    • Lionel Landwerlin's avatar
    • Lionel Landwerlin's avatar
      drm/i915/perf: remove generated code · 9aba9c18
      Lionel Landwerlin authored
      
      
      A little bit of history :
      
         Back when i915-perf was introduced (4.13), there was no way to
         dynamically add new OA configurations to i915. Only the generated
         configs baked in at build time were allowed.
      
         It quickly became obvious that we would need to allow applications
         to upload their own configurations, for instance to be able to test
         new ones, and so by the next stable version (4.14) we added uAPIs
         to allow uploading new configurations.
      
         When adding that capability, we took the opportunity to remove most
         HW configurations except the TestOa one which is a configuration
         IGT would rely on to verify that the HW is outputting correct
         values. At the time it made sense to have that confiuration in at
         the same time a given HW platform added to the i915-perf driver.
      
      Now that IGT has become the reference point for HW configurations (see
      commit 53f8f541ca ("lib: Add i915_perf library"), previously this was
      located in the GPUTop repository), the need for having those
      configurations in i915-perf is gone.
      
      On the Mesa side, we haven't relied on this test configuration for a
      while. The MDAPI library always required 4.14 feature level and always
      loaded its configuration into i915.
      
      I'm sure nobody will miss this generated stuff in i915 :)
      
      v2: Fix selftests by creating an empty config
      
      v3: Fix unlocking on allocation error (Dan Carpenter)
      
      v4: Fixup checkpatch warnings
      
      v5: Fix incorrect unlock in error path (Umesh)
      
      Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Reviewed-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200317132222.2638719-1-lionel.g.landwerlin@intel.com
      9aba9c18