Skip to content
Snippets Groups Projects
  1. Apr 19, 2020
  2. Apr 17, 2020
    • Chris Wilson's avatar
      runner: More task debug! · cdb07101
      Chris Wilson authored
      
      In a few cases, we hit a timeout where no process appears to be
      deadlocked (i.e. tasks stuck in 'D' with intertwined stacks) but
      everything appears to be running happily. Often, they appear to be
      fighting over the shrinker, so one naturally presumes we are running low
      on memory. But for tests that were designed to run with ample memory to
      spare, that is a little disconcerting and I would like to know where the
      memory actually went.
      
      sysrq('m'): Will dump current memory info to your console
      
      Sounds like that should do the trick.
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Petri Latvala <petri.latvala@intel.com>
      Acked-by: default avatarPetri Latvala <petri.latvala@intel.com>
      cdb07101
    • Petri Latvala's avatar
      runner: Add --version to igt_runner · 276b8a3f
      Petri Latvala authored
      
      To help verify correct deployment, add a --version flag to igt_runner
      that just prints the IGT-version text, the same tests would print.
      
      Note that only igt_runner gained the --version flag. igt_resume and
      igt_results don't do fancy flag handling, they only accept the
      directory to operate as their single arg.
      
      v2: Depend on version.h (CI)
      
      Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
      Reviewed-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      276b8a3f
    • Petri Latvala's avatar
      igt_core: Add --version · 67b4fecc
      Petri Latvala authored
      
      To help verify correct deployment, add a --version flag that just
      prints the IGT-Version text.
      
      Signed-off-by: default avatarPetri Latvala <petri.latvala@intel.com>
      Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
      Reviewed-by: default avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
      67b4fecc
    • Janusz Krzysztofik's avatar
      tests: Add a test for device hot unplug · 559cd8fd
      Janusz Krzysztofik authored and Janusz Krzysztofik's avatar Janusz Krzysztofik committed
      
      There is a test which verifies unloading of i915 driver module but no
      test exists that checks how a driver behaves when it gets unbound from
      a device or when the device gets unplugged.  Implement such test using
      sysfs interface.
      
      Two minimalistic subtests - "unbind-rebind" and "unplug-rescan" -
      perform the named operations on a DRM device which is believed to be
      not in use.  Another pair of subtests named "hotunbind-lateclose" and
      hotunplug-lateclose" do the same on a DRM device while keeping its file
      descriptor open and close it thereafter.
      
      v2: Run a subprocess with dummy_load instead of external command
          (Antonio).
      v3: Run dummy_load from the test process directly (Antonio).
      v4: Run dummy_load from inside subtests (Antonio).
      v5: Try to restore the device to a working state after each subtest
          (Petri, Daniel).
      v6: Run workload inside an igt helper subprocess so resources consumed
          by the workload are cleaned up automatically on workload subprocess
          crash, without affecting test results,
        - move the igt helper with workload back from subtests to initial
          fixture so workload crash also does not affect test results,
        - other cleanups suggested by Katarzyna and Chris.
      v7: No changes.
      v8: Move workload functions back from fixture to subtests,
        - register different actions and different workloads in respective
          tables and iterate over those tables while enumerating subtests,
        - introduce new subtest flavors by simply omitting module unload step,
        - instead of simply requesting bus rescan or not, introduce action
          specific device recovery helpers, required specifically with those
          new subtests not touching the module,
        - split workload functions in two parts, one spawning the workload,
          the other waiting for its completion,
        - for the new subtests not requiring module unload, run workload
          functions directly from the test process and use new workload
          completion wait functions in place of subprocess completion wait,
        - take more control over logging, longjumps and exit codes in
          workload subprocesses,
        - add some debug messages for easy progress watching,
        - move function API descriptions on top of respective typedefs.
      v9: All changes after Daniel's comments - thanks!
        - flatten the code, don't try to create a midlayer (Daniel),
        - provide minimal subtests that even don't keep device open (Daniel),
        - don't use driver unbind in more advanced subtests (Daniel),
        - provide subtests with different level of resources allocated
          during device unplug (Daniel),
        - provide subtests which check driver behavior after device hot
          unplug (Daniel).
      v10 Rename variables and function arguments to something that
          indicates they're file descriptors (Daniel),
        - introduce a data structure that contains various file descriptors
          and a helper function to set them all (Daniel),
        - fix strange indentation (Daniel),
        - limit scope to first three subtests as the initial set of tests to
          merge (Daniel).
      v11 Fix typos in some comments,
        - use SPDX license identifier,
        - include a per-patch changelog in the commit message (Daniel).
      v12 We don't use SPDX license identifiers nor GPL-2.0 in IGT (Petri),
        - avoid chipset, make sure we reopen the same device (Chris),
        - rename subtest "drm_open-hotunplug" to "hotunplug-lateclose",
        - add subtest "hotunbind-lateclose" (less affected by IOMMU issues),
        - move some redundant code to helpers,
        - reorder some helpers,
        - reword some messages and comments,
        - clean up headers.
      v13 Add test / subtest descriptions (patchwork).
      v14 Extract redundant device rescan and reopen code to a 'healthcheck'
          helper,
        - call igt_abort_on_f() on device reopen failure (Petri),
        - if any timeout set with igt_set_timeout() inside a subtest expires,
          call igt_abort_on_f() from a follow-up igt_fixture (Petri),
        - when running on a i915 device, require GEM and call
          igt_abort_on_f() if no usable GEM is detected on device reopen.
      v15 Add the test to CI blacklist (Martin).
      v16 Separate blacklist entry with a descriptive comment (Petri).
      
      Signed-off-by: default avatarJanusz Krzysztofik <janusz.krzysztofik@intel.com>
      Cc: Antonio Argenziano <antonio.argenziano@intel.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Katarzyna Dec <katarzyna.dec@intel.com>
      Cc: Martin Peres <martin.peres@linux.intel.com>
      Acked-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Acked-by: default avatarPetri Latvala <petri.latvala@intel.com>
      559cd8fd
    • Nidhi gupta's avatar
      Add eDP support in Link Layer Compliance Tool · 391929b7
      Nidhi gupta authored
      
      Adding eDP support for Link Layer Compliance tool
      of DP-PHY test automation. Current Implementation
      of this compliance tool can be used for dp and eDP
      both. Hence extending to eDP too.
      
      Signed-off-by: default avatarNidhi Gupta <nidhi1.gupta@intel.com>
      Signed-off-by: default avatarRamalingam C <ramalingam.c@intel.com>
      Reviewed-by: default avatarAnimesh Manna <animesh.manna@intel.com>
      Link: https://patchwork.freedesktop.org/series/72783/#rev2
      391929b7
    • Bob Paauwe's avatar
      lib/color_encoding: Fix up support for XYUV format. · a4258366
      Bob Paauwe authored and Jani Nikula's avatar Jani Nikula committed
      
      Add XYUV8888 to the list of DRM Formats to test.
      
      Also fix the byte order for the format.
      
      Signed-off-by: default avatarBob Paauwe <bob.j.paauwe@intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      a4258366
  3. Apr 16, 2020
  4. Apr 15, 2020
  5. Apr 12, 2020
  6. Apr 10, 2020
  7. Apr 09, 2020
  8. Apr 08, 2020
  9. Apr 07, 2020
Loading