summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2022-06-28tests/kms_writeback: Use endianness accessor to fill pixelsMaxime Ripard
The fill_fb() function in the kms_writeback test suite will fill an XRGB8888 buffer using a pattern passed an an argument. However, the pattern is native endian, while XRGB8888 is little-endian. Add an accessor and use it to fill the framebuffer with our pattern. Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech>
2022-06-28tests/i915/gem_sync: Added test description for test case.Sai Gowtham Ch
Added test description for test and to all the subtests that are available. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-28tests/prime_vgem : Add subtests descriptionJanga Rahul Kumar
Add test description to all the available subtests and corrected a little old descriptions. v2 : Add description to all subtests. v3 : Modified subtest description. v4 : Minor corrections. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-28i915/gem_mmap_gtt: added description for test casePriyanka Dandamudi
Added global description and subtest descriptions. v2:Minor corrections. v3: Added descriptions to copy subtests. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-28tests/kms_cursor_edge_walk: Fix test requirement to avoid SKIPsBhanuprakash Modem
As (54ff3199) introduced dynamic subtets, tests are getting Skipped on all pipes except pipe-A. This patch will fix the test requirement condition to avoid such skips. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6250 Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-28i915/gem_exec_create: Added test description for test case.Sai Gowtham Ch
Added test description for all the subtests that are available. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-28tests/i915/gem_exec_parallel : Add subtests descriptionJanga Rahul Kumar
Add test description to all the available subtests. v2 : Modified test description. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-28tests/i915/gem_ringfill : Added test descriptionPriyanka Dandamudi
Added global description and description to all the available subtests. v2: Minor corrections. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-28tests/kms_flip: Skip test only for invalid combinationJeevan B
currently the entire test is skipping. adding this fix to skip test only for invalid cases and run on other valid display combination. v2: add RUN_PAIR check to avoid crash on single display. v3: add flag to check for valid display combination.(Karthik) v4: if no valid mode is found then flow should go to 'out'.(Karthik) v5: rebase. Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>
2022-06-27tests/i915/pm_rc6_residency: Extend rc6-idle test on remaining enginesRiana Tauro
Run rc6_idle on a single instance of every engine v2: add dynamic subtest (Anshuman) Signed-off-by: Riana Tauro <riana.tauro@intel.com> Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
2022-06-27tests/i915/pm_rc6_residency: Refactoring intel_ctx_t to igt_fixtureRiana Tauro
Refactor code to move intel_ctx_create_all_physical() and intel_ctx_destroy() to igt_fixture to be used by rc6_fence and other tests. No functional changes v2 : refactor code (Anshuman) Signed-off-by: Riana Tauro <riana.tauro@intel.com> Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
2022-06-24tests/i915/gem_busy : Added subtests descriptionSinjan Kumar
Added subtest description to gem_busy tests Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Sinjan Kumar <sinjan.kumar@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-24tests/i915/gem_exec_suspend : Added subtests descriptionJanga Rahul Kumar
Added test description to all the available subtests. v2 : Modified subtest description and added description to all the subtests. v3 : Modified description based on suggestions. v4 : Modified test description. v5 : Aligned description strings. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-22tests/kms_panel_fitting: Convert test to dynamicSwati Sharma
Convert the existing subtests to dynamic subtests at pipe/output level. v2: -Fixed if-else block -Removed redundant check Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-06-22tests/i915/i915_pm_dc: Check dc3co count to skip the testMohammed Thasleem
If dc3co is not enabled in driver, counter will always be zero and we can simply skip the test. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4364 Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_dither: Skip if current & requested BPC doesn't matchBhanuprakash Modem
The "max bpc" property only ensures that the bpc will not go beyond the value set through this property. It does not guarantee that the same bpc will be used for the given mode. If clock/bandwidth constraints permit, the max bpc will be used to show the mode, otherwise the bpc will be reduced. So, if we really want a particular bpc set, we can try reducing the resolution, till we get the bpc that we set in max bpc property. This patch will skip the test, if there is no valid resolution to get the same bpc as set by max_bpc property. Cc: Swati Sharma <swati2.sharma@intel.com> CC: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
2022-06-22tests/intel-ci: Rename kms_pipe_crc_basic subtests in BATBhanuprakash Modem
As we converted the subtests to dynamic, we must rename the same subtests in BAT. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_pipe_crc_basic: Test CleanupBhanuprakash Modem
Clear the system state before exiting the subtest. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_pipe_crc_basic: Convert tests to dynamicBhanuprakash Modem
Convert the existing subtests to dynamic subtests at pipe level. V2: * Fix typos: s/hand/hang/, s/TEST_NONE/TEST_BASIC, etc.. V3: * Add output->name to the dynamic subtest Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms: Fix kms tests to use lib helpers to sort connector modesBhanuprakash Modem
Instead of writing our own wrappers for each subtest to sort connector modes, just use the helpers from IGT library. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_cursor_crc: Test CleanupBhanuprakash Modem
Sanitize the system state before starting the subtest. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_cursor_crc: Convert tests to dynamicBhanuprakash Modem
Convert the existing subtests to dynamic subtests at pipe level. V2: * Fix nested igt_fixture in igt_subtest. V3: * Add output name to subtest Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_plane: Test RefactoringKarthik B S
Add igt_display_reset in test_init(). Add new function to call all the subtests to avoid code duplication. v2: -Call test_init() before igt_output_set_pipe() (Bhanu) -Declare and initialize 'count' variable together (Bhanu) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-06-22tests/intel-ci: Rename kms_cursor_legacy subtests in BATBhanuprakash Modem
As we converted the subtests to dynamic, we must rename the same subtests in BAT. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_cursor_legacy: Test CleanupBhanuprakash Modem
Clear the system state before exiting the subtest. V2: Fix Crash in *-modeset-vs-cursor-atomic test Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-22tests/kms_cursor_legacy: Convert tests to dynamicBhanuprakash Modem
Convert the existing subtests to dynamic subtests. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-20tests/drm_fdinfo: Test virtual enginesTvrtko Ursulin
We need some coverage of the virtual engines. v2: * Mark contexts as "allow hang". (Umesh) * Fix destruction order in virtual_all. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
2022-06-17tests/kms_getfb: Fix on non-i915 devicesRob Clark
intel_get_drm_devid() will assert that it is i915.. so we need to require that first in order for getfb-reject-ccs to skip instead of crash. Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
2022-06-17tests/i915/kms_dsc: Validate dsc with diff plane formatsSwati Sharma
Already existing subtest is modified so that dsc can be validated using different plane modifiers. Few 8/10/16 bpc RGB and YUV formats are added. v2: -minor fixes v3: -renaming -addition of new planar format test v4: -removing XRGB8888 from format_list -test name managed with single var v5: -changed MIN_BPP to DSC_MIN_BPP Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
2022-06-16tests/i915/kms_big_fb: Move intel_ibb_destroy out of test_cleanupKarthik B S
All the clean up functions were moved to fixture in patch "2aff4179". But this causes an assert in intel_bb_destory() after the test passes, on configurations having eDP connected. So moving the intel_bb_destroy() call back to the original function. Fixes: 2aff41793e5f ("tests/i915/kms_big_fb: Move cleanup code to fixture") Signed-off-by: Karthik B S <karthik.b.s@intel.com> Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-16tests/kms_async_flips: first async flip discarded on i915Arun R Murthy
The i915 KMD will use the first async flip to update the watermarks as per the watermark optimization in DISPLAY13. Hence the actual async flip will happen from the subsequent flips. For alternate sync async test, a dummy async flip has to be done to allow the KMD to perform the watermark related updates before writing to the surface base address. Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>
2022-06-16i915/gem_close_race: added description for test casePriyanka Dandamudi
Added description for subtests. v2: Added global description and modified others. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-15i915/gem_exec_balancer: fix parallel_ordering with no-relocNirmoy Das
Make sure to allocate ahnd so that spinner starts with no-reloc execbuf otherwise this will fail on platforms with relocation disabled. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6117 Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
2022-06-15tests/i915/sysfs_heartbeat_interval: Avoid signal delivery raceZbigniew Kempczyński
As Petri noticed there's signal delivery race which might lead to situation when two children send SIGALRM to master process not in the same time. Signal from first child just awake master process which reinstalls previous signal handler. Second signal is then handled by default handler so we got process exit and failure. Lets move signal reinstall to moment when children will just exit. Allocator warning which notices there's existing ipc queue is then an effect, not the reason. Unfortunately multiprocess start/stop were called in the test, not in the fixture, so test failure doesn't call multiprocess stop at all (and we see there's dangling queue). Deeper look to client() implementation allows to remove multiprocess allocator dependency. Function runs in its own separated context so we don't need to arbitrate and just call intel_allocator_init() to become standalone allocator. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4055 Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2022-06-15tests/kms_dither: Rename dynamic testsBhanuprakash Modem
Instead of using dynamic subtests as <output name>-<pipe name>, update as <pipe name>-<output name>. Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-15tests/kms_cursor_edge_walk: Convert tests to dynamicBhanuprakash Modem
Convert the existing subtests to dynamic subtests at pipe level. V2: * Fix nested igt_fixture in igt_subtest V3: * Add output name to subtest Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
2022-06-15tests/kms_big_joiner: Convert test to dynamicKarthik B S
Covert the tests to dynamic subtests at pipe level. v2: -Use separate variables for planes in dual_display test. (Bhanu) -Add igt_require(display.is_atomic) in fixture. (Bhanu) -Remove redundant check in loop. (Bhanu) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-06-14tests/i915/query: Query, parse and validate the hwconfig tableRodrigo Vivi
Newer platforms have an embedded table giving details about that platform's hardware configuration. This table can be retrieved from the KMD via the existing query API. So add a test for it as both an example of how to fetch the table and to validate the contents as much as is possible. Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Cc: Slawomir Milczarek <slawomir.milczarek@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com>
2022-06-14tests/i915/query: Add descriptions to existing testsJohn Harrison
None of the query tests had a description. So make some up. Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-14tests/kms_plane_lowres: Test cleanupKarthik B S
Add test cleanup function and call it outside the dynamic subtest, so that the cleanup happens even in case of subtest failure. v2: -Move igt_display_reset() and igt_output_set_pipe() outside the plane loop (Bhanu) -Add igt_display_require_output() in fixture (Bhanu) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-06-14tests/kms_plane_lowres: Convert test to dynamicKarthik B S
Covert the existing subtests to dynamic subtests at pipe/output level. v2: -Use array of structures to populate subtests to avoid code duplication (Bhanu) -Update subtest name (Bhanu) v3: -Pass 'modifier' variable while calling test_planes_on_pipe (Bhanu) -Add '\n' in igt_describe (Bhanu) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-06-13tests/api_intel_bb: Add crc32 checking test for DG2Zbigniew Kempczyński
Add simple test which compares crc32 sums and calculation times on cpu and gpu. v2: - addressing review comments - igt_debug + igt_time_elapsed (Kamil) - exercise crc for size smaller than page size v3: - change clock_gettime() to igt_gettime() (Petri) - add crc_n for decrease execution time (Zbigniew) Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2022-06-13lib/intel_reg: Add common MI_* macros to remove duplicatesZbigniew Kempczyński
In few tests we got some MI_* duplicates (MI_MATH for example). Add common definitions in intel_reg.h and remove local definitions in the tests. v2: Definitions MI_LOAD_REGISTER_MEM_GEN8 was removed so from now on user will need to encode length on it own. : Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2022-06-13prime_busy: Replace open-coded spinner with igt_spin_tChris Wilson
Now that we can create arbitrary dependencies with the igt_spin_t dummy load, we can replace the custom spinner in prime_busy. v2: put_ahnd() used [Zbigniew] Signed-off-by: Chris Wilson <chris.p.wilson@intel.com> Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com>
2022-06-10tests/i915/kms_cdclk: Add new subtestSwati Sharma
i915 driver continues to behave in such a way that CDCLK is never decreased, but always increased. This is done in order to avoid continuous CDCLK switching. So, in case if new CDCLK(after transition from low to high mode) is same as reference CDCLK i.e. reference = new because of above stated driver optimization; the current mode-transition test is passed else ref < new condition is checked (as we expect CDCLK will bump after mode transition from low to high mode). This is done in current mode-transition subtest where we are checking mode transition on each valid output. In this patch, a new subtest is added which lowers modes of all valid outputs simultaneously and then switches to highest mode to get proper DVFS behavior along with the above mentioned driver policy. In this case, we should expect CDCLK switch from low to high. Along with this, few cleanups have been done. v2: Fixed build error Cc: Uma Shankar<uma.shankar@intel.com> Cc: Mika Kahola <mika.kahola@intel.com> Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-06-10tests/intel-ci/fast-feedback: add i915_module_load@loadRyszard Knop
This should be the first test that runs in most CI test lists, as it makes sure i915 is available, and if not, logs why it can't be loaded. Signed-off-by: Ryszard Knop <ryszard.knop@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2022-06-10tests/i915_module_load: Add the "load" testRyszard Knop
Add a test that: - Checks if i915 and associated drivers are not yet loaded; - Loads the i915 driver; - Performs a small set of sanity tests to make sure the GPU is there. The test is skipped if the driver is already loaded. The reload test now also performs the same checks. This should be the first test executed in CI test lists. Signed-off-by: Ryszard Knop <ryszard.knop@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2022-06-09i915/gem_pipe_control_store_loop: Adopt to softpinKamil Konieczny
New gens has no relocations so enable both paths, relocs for older gens and softpin for newer ones. Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
2022-06-09i915/gem_exec_balancer: Fix execution of parallel-submit on dg2+Chris Wilson
From dg2, there are multiple compute engines which conflict with the parallel-submit restriction; check for the illegal engine class prior to running the test. And from dg2, MI_ATOMIC is only valid for use with system memory for INC, DEC and MOV operation, not the ADD used in the test workload. Replace the ADD+1 with an INC, so that the same workload runs on all platforms. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6157 Signed-off-by: Chris Wilson <chris.p.wilson@intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
2022-06-09tests/kms_writeback: Iterate over only non-null pipesRohith Iyer
Currently, kms_writeback_get_output iterates over all entries of display->pipes, regardless of if the pipe is valid. This could lead to a null dereference in igt_output_set_pipe() as the loop does not check for null pipes. To avoid this issue, use the for_each_pipe method to iterate over only non-null pipes. Signed-off-by: Rohith Iyer <quic_rohiiyer@quicinc.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>