summaryrefslogtreecommitdiff
path: root/tests/kms_properties.c
AgeCommit message (Collapse)Author
2018-12-11Allow a full modeset in kms_properties atomic caseStanislav Lisovskiy
Otherwise we are getting EINVAL as drm requires it at some point. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108642 Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2018-11-06tests/kms_properties: Fix compiler warningPetri Latvala
../tests/kms_properties.c:113:11: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Fixes: 7983e19ed62e ("tests/kms_properties: Add functional test for "max bpc" property") Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-11-02tests/kms_properties: Add functional test for "max bpc" propertyRadhakrishna Sripada
Test the values in the range advertised by the "max bpc" property. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-11-02tests/kms_properties: Add additional prperty test infrastructureRadhakrishna Sripada
We currently test the existimg properties by setting them with default value. Add infrastructure to perform additional test on a desired property. v2: Fix the strcmp logic Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2018-10-01igt: Require a display (KMS enabled) for KMS testsChris Wilson
Simple rule of thumb, if a kms_* test calls igt_display_init() in its global fixture, skip the entire test if the driver has disabled KMS. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Antonio Argenziano <antonio.argenziano@intel.com>
2018-04-27tests/kms_properties: Validate properties harderVille Syrjälä
Make the property validation more thorough: - validate property flags - make sure there's an expected number of values/enums - make sure the possible values make sense - make sure the current value makes sense - actually iterate through all planes/crtc/connectors to check their properties - make sure encoders don't expose properties while at it - check that atomic props aren't exposed to non-atomic clients Still passes on my ivb. Not tested anything else so far. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
2017-09-08tests/kms_properties: Require atomic for the atomic invalid props testVille Syrjälä
The invalid props test forgot to check for atomic. Add the required check. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2017-08-04tests/kms_properties: Don't set immutable propertiesDaniel Stone
If the kernel tells us it's immutable, trying to set it probably isn't going to succeed. There was previously a hard-coded list of immutable properties, keyed by name, but we can just test the flag instead, which is more future-proof. Fixes a failure seen with the IN_FORMATS property. v2: Remove the entire list apart from DPMS, replacing it with a test for immutable. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Daniel Vetter <daniel.vetter@intel.com> Cc: Ben Widawsky <ben@bwidawsk.net>
2017-06-07tests/kms_properties: Allow setting all connector properties now.Maarten Lankhorst
i915 connector properties have been converted to atomic, so all properties can now be set. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-04-12tests/kms_properties: Add GET_PROPERTY ioctl sanity checkDaniel Vetter
I've broken this accidentally. Let's make sure this doesn't happen anymore. Testcases suggested by Chris. Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2017-03-15kms_properties: Blacklist legacy link-status connector property.Maarten Lankhorst
This will be fixed by converting all connectors to atomic, but this fails for now. Blacklist it just like crtc_id temporarily. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-02-27kms_properties: Ignore CRTC_ID for the legacy caseMaarten Lankhorst
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2017-01-31tests/kms_properties: Add support for dynamic number of planesRobert Foss
Add changes reflecting the new support for dynamic number of planes per pipe. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2016-09-08kms_properties: Invalid atomic properties should return -ENOENTMaarten Lankhorst
This was already tested by kms_atomic when passing object id's as properties to set. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-09-07kms_properties: Add invalid property test.Maarten Lankhorst
This will attempt to set any property from any type to each mode object, to ensure that only enumerated properties can ever set to a mode object. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-08-25tests: Add kms_properties test.Maarten Lankhorst
This is a simple test that only tries to set the current property values back. It exposes the issue that some connector properties only work when set through the legacy path, because i915 doesn't handle atomic connector properties yet. The other way around is true too: The atomic CRTC_ID connector property cannot be set through legacy means yet. This causes the connector tests to fail on i915. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>