1. 27 Nov, 2018 1 commit
    • Daniel Vetter's avatar
      tests: Use igt_display_require · 88a50c7c
      Daniel Vetter authored
      Remaining tests that have been overlooked and don't need any
      invasive changes to limit the skipping to only the relevant parts.
      
      v2: [A rebase gone wrong]
      
      v3: Move the misplaced hunk to the right patch (Antonio).
      
      v4: Rebase, kms_content_protection is new.
      
      v5: Rebase - need to adjust kms_lease.c too.
      
      Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> (v3)
      Cc: Antonio Argenziano <antonio.argenziano@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Acked-By: Antonio Argenziano's avatarAntonio Argenziano <antonio.argenziano@intel.com>
      Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      88a50c7c
  2. 01 Oct, 2018 1 commit
  3. 20 Oct, 2017 3 commits
    • Maarten Lankhorst's avatar
      lib/igt_kms: Rework pipe properties to be more atomic, v7. · 66fb466e
      Maarten Lankhorst authored
      In the future I want to allow tests to commit more properties,
      but for this to work I have to fix all properties to work better
      with atomic commit. Instead of special casing each
      property make a bitmask for all property changed flags, and try to
      commit all properties.
      
      This has been the most involved one, since legacy pipe commit still
      handles a lot of the properties differently from the rest.
      
      Changes since v1:
      - Dump all changed properties on commit.
      - Fix bug in igt_pipe_refresh().
      Changes since v2:
      - Set pipe ACTIVE property changed flag on init.
      Changes since v3:
      - Add a missing igt_pipe_refresh() to kms_atomic_interruptible.
      Changes since v4:
      - Perform error handling when setting custom crtc properties.
      Changes since v5:
      - Only attempt to commit changes properties.
      Changes since v6:
      - Clear OUT_FENCE_PTR on succesful commit.
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
      66fb466e
    • Maarten Lankhorst's avatar
      lib/igt_kms: Rework plane properties to be more atomic, v5. · 5e42c623
      Maarten Lankhorst authored
      In the future I want to allow tests to commit more properties,
      but for this to work I have to fix all properties to work better
      with atomic commit. Instead of special casing each
      property make a bitmask for all property changed flags, and try to
      commit all properties.
      
      Changes since v1:
      - Remove special dumping of src and crtc coordinates.
      - Dump all modified coordinates.
      Changes since v2:
      - Move igt_plane_set_prop_changed up slightly.
      Changes since v3:
      - Fix wrong ordering of set_position in kms_plane_lowres causing a test failure.
      Changes since v4:
      - Back out resetting crtc position in igt_plane_set_fb() and
        document it during init. Tests appear to rely on it being preserved.
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
      5e42c623
    • Maarten Lankhorst's avatar
      lib/igt_kms: Rework connector properties to be more atomic, v2. · 13ead623
      Maarten Lankhorst authored
      In the future I want to allow tests to commit more properties,
      but for this to work I have to fix all properties to work better
      with atomic commit. Instead of special casing each
      property make a bitmask for all property changed flags, and try to
      commit all properties.
      
      Changs since v1:
      - Mention which properties we set to what.
      - Assert the property to be set is valid.
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: default avatarMika Kahola <mika.kahola@intel.com>
      13ead623
  4. 03 Oct, 2017 1 commit
  5. 12 Sep, 2017 1 commit
    • Maarten Lankhorst's avatar
      tests: Add kms_atomic_interruptible test, v4. · bbc0b3cd
      Maarten Lankhorst authored
      This tests the various parts of atomic that I want to make
      interruptible. Running with --debug shows the stats from
      __igt_sigiter_continue, which can be used to make sure that
      we don't fall over.
      
      The default igt kms helpers use drmIoctl, which is not intercepted
      by igt_while_interruptible. Only igt_ioctl is. This means we have
      to call the ioctls manually here.
      
      Changes since v1:
      - Implement interruptible DPMS checking too.
      - Use igt_ioctl + igt_while_interruptible, instead of the signal helper
        shotgun.
      Changes since v2:
      - Bump whitespace to get rid of the weird double } at same indent.
      - Use more newlines in the call to the atomic ioctl.
      Changes since v3:
      - Fix copyright on year. (Adrinael)
      - Use do_ioctl instead of do_or_die(igt_ioctl) (ickle).
      - Add test description. (Adrinael)
      Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Daniel Stone <daniels@collabora.com>
      Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1
      Reviewed-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      [mlankhorst: Document sleep values (Adrinael)]
      bbc0b3cd