Skip to content
Snippets Groups Projects
  1. Apr 23, 2021
  2. Apr 06, 2021
  3. Jan 14, 2020
    • Chris Wilson's avatar
      i915/perf: Find the associated perf-type for a particular device · 97fbc5e1
      Chris Wilson authored
      
      Since with multiple devices, we may have multiple different perf_pmu
      each with their own type, we want to find the right one for the job.
      
      The tests are run with a specific fd, from which we can extract the
      appropriate bus-id and find the associated perf-type. The performance
      monitoring tools are a little more general and not yet ready to probe
      all device or bind to one in particular, so we just assume the default
      igfx for the time being.
      
      v2: Extract the bus address from out of sysfs
      v3: A new name for a new decade!
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: "Robert M. Fosha" <robert.m.fosha@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
      Reviewed-by: "Robert M. Fosha" <robert.m.fosha@intel.com> #v2
      Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
      97fbc5e1
  4. Nov 29, 2019
  5. Oct 19, 2019
  6. Jul 16, 2019
  7. Jul 03, 2019
  8. May 23, 2019
    • Arkadiusz Hiler's avatar
      meson: Start using 'feature' options · 736b0998
      Arkadiusz Hiler authored
      
      Meson 0.47 comes with a new type of option called 'feature' so instead of:
             type : 'combo',
             value : 'auto',
             choices : ['auto', 'true', 'false'],
      We can:
             type : 'feature',
      
      The main difference is that the feature takes auto, enabled and disabled
      instead of auto, true and false.
      
      get_option() on a feature returns opaque object that can be passed as
      a 'required' argument of a dependency. Auto is equivalent to 'required
      : false', enabled is equivalent to 'required : true' and disabled
      introduces new behavior forcing the dependency to be considered not
      found.
      
      This allows us to streamline a lot of logic regarding optional IGT
      features.
      
      This patch bumps required meson version to 0.47.0
      
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Petri Latvala <petri.latvala@intel.com>
      Cc: Simon Ser <simon.ser@intel.com>
      Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      736b0998
  9. Jan 29, 2019
  10. Jan 28, 2019
  11. Jul 25, 2018
  12. Jun 25, 2018
    • Petri Latvala's avatar
      meson: Add options to control optional parts · 0e98bf69
      Petri Latvala authored
      
      Distributions want explicit control over optional parts so they can
      state runtime dependencies before building. Let's restore the
      functionality autotools used to provide.
      
      Where possible, the selection is done by choosing whether to build a
      particular item and the option name is build_$item. Example:
      build_overlay. Where not possible, the option name is
      with_$item. Example: with_valgrind.
      
      Array options require a bump of required meson version to 0.44. Debian
      stable has meson 0.37 which is already too old, stable-backports has
      0.45, CI uses 0.45. Mesa's meson requirement is 0.44.1, for a
      perspective.
      
      Note, the old hack for not building docs when cross-compiling is
      gone, as doc building can be explicitly controlled now.
      
      v2: glib not optional
      v3: bump meson version to 0.44
      
      Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Matt Turner <mattst88@gmail.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
      Signed-off-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      0e98bf69
  13. Jun 06, 2018
  14. May 21, 2018
  15. May 14, 2018
  16. Mar 27, 2018
  17. Mar 16, 2018
  18. Feb 01, 2018
  19. Jan 11, 2018
  20. Jan 08, 2018
    • Lucas De Marchi's avatar
      meson: use message() rather than warning() · 91f8c6d6
      Lucas De Marchi authored and Petri Latvala's avatar Petri Latvala committed
      
      warning() was only added to the meson interpreter in 0.44 which is
      currently the last version. Let's use message() as we are currently
      requiring meson > 0.40. Otherwise we get the following error:
      
      	Meson encountered an error in file overlay/meson.build, line 62, column 1:
      	Unknown function "warning".
      
      Fixes: 865a47ca ("overlay: parse tracepoints from sysfs to figure out fields' location")
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Cc: Rhys Kidd <rhyskidd@gmail.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Petri Latvala <petri.latvala@intel.com>
      Reviewed-by: default avatarRhys Kidd <rhyskidd@gmail.com>
      91f8c6d6
  21. Dec 22, 2017
  22. Dec 08, 2017
  23. Dec 05, 2017
  24. Nov 24, 2017
  25. Nov 22, 2017
  26. Nov 21, 2017
    • Maarten Lankhorst's avatar
      overlay: Fix compiler warning when compiling with recent gcc. · f0bb1949
      Maarten Lankhorst authored
      
      [1/316] Compiling C object 'overlay/intel-gpu-overlay@exe/overlay.c.o'.
      ../overlay/overlay.c: In function ‘show_gem_objects’:
      ../overlay/overlay.c:798:31: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 160 [-Wformat-truncation=]
         snprintf(buf, sizeof(buf), "%s %ldMB, %ld objects",
                                     ^~
      ../overlay/overlay.c:798:30: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument
         snprintf(buf, sizeof(buf), "%s %ldMB, %ld objects",
                                    ^~~~~~~~~~~~~~~~~~~~~~~
      ../overlay/overlay.c:798:30: note: using the range [-9223372036854775808, 9223372036854775807] for directive argument
      ../overlay/overlay.c:798:3: note: ‘snprintf’ output between 16 and 309 bytes into a destination of size 160
         snprintf(buf, sizeof(buf), "%s %ldMB, %ld objects",
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          comm->name, comm->bytes >> 20, comm->count);
      
      Might as well give it the 309 bytes it wants, plus on more. :-)
      
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      f0bb1949
  27. Oct 02, 2017
  28. Sep 15, 2017
  29. Sep 08, 2017
  30. Jun 09, 2017
  31. May 10, 2017
  32. Feb 23, 2017
Loading