summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-17lib/igt_fb: Allow XY_FAST_COPY_BLT on DG2Imre Deak
Allow XY_FAST_COPY_BLT on DG2. This fixes x-tiled blits on DG2. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5450 Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5409 Tested-by: Mika Kahola <mika.kahola@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-06-16intel-gpu-top: Optimise the scanning loop a bitTvrtko Ursulin
Opendir(3) and fdopendir(3) are quite expensive system calls when ran in a loop which iterates all processes in a system times all open files in each. Replace some of them (easy ones) with simpler open(2)/read(2) combo to avoid hammering on the malloc/free. This brings the default CPU usage of the tool on my desktop from ~3% to ~2%. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@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-15lib/i915: Fix ATS-M definitionsKarolina Drobnik
Instead of using a separate "is_ats_m" flag, reuse "is_dg2" in ATS-M intel_device_info definition. Delete is_ats_m in intel_device_info struct definition and IS_ATS_M() macro, as they are no longer needed. Signed-off-by: Karolina Drobnik <karolina.drobnik@intel.com> Acked-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@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-15benchmarks/gem_blt: fix baseline estimationMauro Carvalho Chehab
This test is expected to run under a certain time defined by a command line parameter (by default, 2s). In order to achive the specified time, the baseline() function tries to estimate the value of a counter that will get the minimal amount of interaction to wait for > 0.1s. However, currently, the baseline estimation is broken, returning a too big number, as it is measuring the memcpy() time, instead of actually gem_execbuf(). Due to that, a default test without passing any command line parameter would take more than 1.5 years to output the first benchmark data! Fix it by using the same logic that it is inside run() at the baseline time estimation. Before this patch, baseline could return 399242693. After it, it now return 20. That means an interval of about 120 ms at the code which runs a gem_execbuf() loop, which should be good enough to ensure that the tests won't take too long, and will approximately match the time specified by the excecution parameter '-t'. Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-06-15code_cov_parse_info: output filters at the html reportMauro Carvalho Chehab
Add a line after the code coverage summary printing the filters that were used to produce the results, if any. This is important specially when multiple filters could be used to produce different reports. Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
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-15lib/igt_kms: Add a helper function to check Bigjoiner supportBhanuprakash Modem
Create a helper function to check that the system supports the given crtc/connector mode(s). Example: * Pipe-D won't support Bigjoiner, hence we can't use the connector modes greater than 5K on Pipe-D * To use 8K mode on a pipe, then the consecutive pipe must be free. The Kernel is expected to reject the invalid combo (which must be validated as a scenario separately). So, this helper function checks the validity of the combo to avoid failures. To use this helper, each individual subtest needs to set the @pipe to a specific @output by igt_output_set_pipe() and call this helper to check the validity of the combo. V2: * Rebase * Add support to handle fused pipes V3: * Reject the bigjoiner if the consecutive pipe is not available Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Manasi Navare <manasi.d.navare@intel.com> Reviewed-by: Karthik B S <karthik.b.s@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-14lib/igt_debugfs: Add IGT_CRC_SOURCE environmental variableJessica Zhang
Adds support for the IGT_CRC_SOURCE environmental variable to make it easier for drivers to run tests using custom CRC sources. Example usage: `IGT_CRC_SOURCE=intf ./kms_pipe_crc_basic` If the IGT_CRC_SOURCE isn't set, use the original source that was passed in as a parameter to pipe_crc_new(). Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com> Reviewed-by: Petri Latvala <petri.latvala@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-14include/drm-uapi: Update to latest i915_drm.hJohn Harrison
Update to the latest master version of the DRM UAPI header file from git://anongit.freedesktop.org/git/drm/drm: c4955d9cd2fc Merge tag 'drm-intel-next-fixes-2022-05-24' of git://anongit.freedesktop.org/drm/drm-intel into drm-next Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2022-06-14lib/intel_memory_region: Fix missing header inclusionJanusz Krzysztofik
IGT commit 68efa99c62e2 ("i915/gem_eio: Exercise object creation while wedged") extended lib/i915/intel_memory_region.h header with a definition of new struct gem_memory_region. That structure contains a member of type struct drm_i915_gem_memory_class_instance, but definition of that type is not available unless "i915_drm.h" header is included. Include the missing header. ../lib/i915/intel_memory_region.h:118:44: error: field ‘ci’ has incomplete type 118 | struct drm_i915_gem_memory_class_instance ci; Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@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/i915_crc: Introduce crc32 on gpu for DG2Zbigniew Kempczyński
Adding crc32 calculation on gpu gives us new possibility to verify data integrity without relying on trust cpu mapping is correct. Patch introduces calculating crc32 on DG2 only. On older gens ALU (MI_MATH) doesn't support bit-shifting instructions as well as multiply or divide. Emulating n-bit shifts cost hundred of instructions with predicated SRM (works on render engine only). Another limitation is lack of indexed load / store. On DG2 we can use WPARID and CS_MI_ADDRESS_OFFSET to achieve indexed operation on memory. Due to performance reasons (cpu crc32 calculation even on WC memory is still much faster than on gpu, also depends on calculated object memory region) calculation will complete in reasonable of time only for few MiB. v2: - use registers relative to engine to allow run on all engines (Chris) - use predication instead of memory access to get better performance (Chris) - add location where crc32 implementation comes from (Petri) v4: - use common crc32 table from igt_crc - add docs v5: - change BIT(n) to informative macros (Zbigniew) Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2022-06-13lib/igt_crc: Introduce common place for crc tables and functionsZbigniew Kempczyński
Add crc32 table for on-cpu crc calculation function. Other tables and algorithms should be added here allowing reuse tables for in-gpu crc calculation. 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>
2022-06-09tests/kms_async_flips: Test RefactoringKarthik B S
Replace drm function call with existing library functions igt_display_reset() before all subtests v2: -Move conversion to dynamic subtest to a separate patch (Bhanu) -Use igt_output_get_mode to get default mode (Bhanu) -Add 'is_atomic' check before igt_display_commit2 (Bhanu) v3: -Move test_init after the checks to skip subtest (Bhanu) -Update the logic to call make_fb() in test_init() v4: -Move patch after patch to convert tests to dynamic to avoid code duplicaton. (Bhanu) v5: -Update commit message. (Bhanu) -Move skip checks in the dynamic subtests before the start of the subtest to optimize the test. (Bhanu) -Close drm_fd at the end of the subtest. v6: -Fix identation for braces. (Andre) v7: -Remove '-' from commit description. (Kamil) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: André Almeida <andrealmeid@igalia.com>
2022-06-09tests/kms_async_flips: Convert tests to dynamicKarthik B S
Convert test to dynamic subtests at pipe-output level. Also, restrict the test to run with one output by default. Add support to run on all outputs using the extended flag. v2: -Get the mode after igt_display_reset() (Bhanu) v3: -Move patch to start of series to avoid code duplication (Bhanu) -Use for_each_pipe() instead of for_each_pipe_static() (Bhanu) v4: -Add helper to avoid code duplication (Andre) v5: -Add more details in the commit message (Kamil) Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: André Almeida <andrealmeid@igalia.com>
2022-06-08tests/dmabuf: Add tests for sync_file import (v5)Jason Ekstrand
v2 (Jason Ekstrand): - Put the skip for igt_rwquire_sw_sync() in the subtests v3 (Jason Ekstrand): - Use a separate igt_require(has_dmabuf_import_sync_file()) - Tag as RFC because the kernel patches are RFC v4 (Jason Ekstrand): - Rework the tests with the new semantics; import no longer tries to guarantee writes finish after reads. v5 (Kamil Konieczny): - Add igt_describe() for each subtest Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Signed-off-by: Jason Ekstrand <jason.ekstrand@collabora.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2022-06-08tests/dmabuf: Add tests for sync_file export (v6)Jason Ekstrand
v2 (Jason Ekstrand): - Rename subtests to have "export" in the name v3 (Jason Ekstrand): - Add an export-before-signal subtest v4 (Jason Ekstrand): - Test both via sync_file and via poll to ensure the semantics match properly. v5 (Kamil Konieczny): - Add igt_describe() for each subtest v6 (Kamil Konieczny): - Use SPDX license headers - Tweak the test description a bit Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Signed-off-by: Jason Ekstrand <jason.ekstrand@collabora.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2022-06-08tests/i915/kms_big_fb: Move cleanup code to fixtureKarthik B S
When a subtest fails, it exits from the assert and does not run the cleanup part of the subtest. To avoid this, move the cleanup code to igt_fixture outside the subtest. Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Jeevan B <jeevan.b@intel.com>
2022-06-07lib/intel_chipset: restore usage of has_flatccs flagJuha-Pekka Heikkila
When older patches had been merged on top of newer patches has_flatccs flag usage had gotten lost, put it back here. While at it also set has_flatccs flag to take only one bit since it is of boolean type. CC: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-06-07tests/i915/kms_ccs: Fix 4tiled rc ccs and color clear testsJuha-Pekka Heikkila
4tiled rc ccs and color clear tests were testing wrong things because wrong modifier was used for choosing test path. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-06-07tests/i915/gem_exec_schedule: Add 48b address flag in store-dwordZbigniew Kempczyński
On discrete detected default alignment may be bigger than single page so it is likely we enter offsets > 32b. To avoid getting -EINVAL adding flag EXEC_OBJECT_SUPPORTS_48B_ADDRESS is now necessary. Fixes: deep, smoketest, smoketest-all Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-07tests/i915/gem_exec_schedule: Execute spinner in valid contextZbigniew Kempczyński
Running spinner in default context is not correct because it can contain less engines than spinner expect. Fix this by setting two contexts with identical set of engines. Fixes: semaphore-noskip and u-semaphore-noskip Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-07tests/i915/gem_exec_schedule: Run spinner in non-default contextZbigniew Kempczyński
Engine passed to the subtest comes from configuration which is build on top of all-physical-engines context. Add dedicated context for the spinner which is compatibile with this engine. Fixes: pi-shared-iova and pi-distinct-iova Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-07tests/i915/gem_tiled_fence_blits : Added subtests descriptionJanga Rahul Kumar
Added test description to all the available subtests. 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-07tests/i915/gem_tiled_blits : Added subtests descriptionJanga Rahul Kumar
Added test description to all the available subtests. 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-07tests/i915/gem_render_tiled_blits : Added subtests descriptionJanga Rahul Kumar
Added test description to all the available subtests and fix file name in the file description comments. v2: Fix syntax issues. v3: Modified subtest description. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Cc: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-06-06tests/kms_flip: skip test if compatible mode is not foundJeevan B
skip test if the compatible mode is not found instead of forcing the first connector mode on to the other connector. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4190 Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>
2022-06-03lib/igt_kms: Call get_assigned_primary only if display is initializedJessica Zhang
Move code for getting the driver-assigned primary plane to before the `out` tag. This will avoid any crashes in cases where the display resources haven't been initialized. Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2022-06-01tests/amdgpu: refactoring and update amd_basic testsVitaly Prosyak
1. Create auxiliary directory amdgpu into igt-gpu-tools/lib Put all helpers and reusable functions into this directory using the following assumptions: - group memory alloc/free functions into separate file amd_memory.c and h. - group command submissions helper functions for GFX, COMPUTE and SDMA into separate file amd_command_submission.c and h. - for compute put nop command submission into separate file amd_compute.c and h. - for graphics put command submission into separate file amd_gfx.c and h. - for fence put command submission into separate file amd_fence.c and h. 2. Simplify implementation and reduce the number of local variables and allocations. 3. The file igt-gpu-tools/tests/amdgpu/amd_basic.c has only functions responsible for single sub test: - amdgpu_memory_alloc - amdgpu_userptr_test - amdgpu_command_submission_gfx - amdgpu_command_submission_compute - amdgpu_command_submission_multi_fence - amdgpu_command_submission_sdma - amdgpu_semaphore_test 4. No helper functions into amd_basic.c file. 5. Updated command submissions for secure buffer. Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com> Reviewed-by: Christian Koenig <christian.koenig@amd.com> Reviewed-by: Alexander Deucher <alexander.deucher@amd.com>
2022-06-01test/intel-ci/fast-feedback: Add i915_pciid testKarolina Drobnik
Add test to assert that the PCI-ID of a device is being detected to the fast-feedback test list. This check won't pass for new devices that have no matching entry in intel_device_match table, warning us that device info definitions are missing and should be added. Signed-off-by: Karolina Drobnik <karolina.drobnik@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2022-06-01tests/kms_color: 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. V2: * Refactor the logic V3: * Minor changes V4: * Set output to pipe (igt_output_set_pipe) Cc: Swati Sharma <swati2.sharma@intel.com> CC: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>