summaryrefslogtreecommitdiff
path: root/tests/i915
AgeCommit message (Collapse)Author
2022-05-30tests/i915/kms_psr2_sf: Fix setting wrong fb sizeJouni Högander
Current code is improperly setting over framebuffer size. Fix this by setting primary framebuffer size instead. Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
2022-05-30tests/i915/kms_psr2_sf: Make setting fb and plane sz/pos more clearJouni Högander
Make setting framebuffer and plane sizes/positions more clear. This eases adding more big framebuffer testcases in future. Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
2022-05-30tests/i915_kms_psr2_sf: Set big_fb_test as 0 by defaultJouni Högander
Ensure big version of plane_update testcases is not used unless specifically requested. Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
2022-05-30tests/i915/kms_psr2_sf.c: Fix for setting wrong size for cursor fbJouni Högander
Current code is setting wrong size for cursor framebuffer. Fix thi by handling all plane types separately. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/6064 Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
2022-05-27i915/gem_exec_gttfill: Added test description for test case.Sai Gowtham Ch
Added test description to all the available subtests. 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-05-27i915/gem_pipe_control_store_loop: added description for test caseSai Gowtham Ch
Added test description for subtest 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-05-26tests/i915/gem_close_race: Adopt to use softpinKamil Konieczny
For newer gens there will be no relocations, so adopt test to run using soft-pinned addresses. Refactor code to run on discrete DG2, where there are no pwrite ioctl. Use calculated offsets for older gens so it will avoid applying relocations by i915 kernel driver. v2: refactor to run on DG2 and older gens (Zbigniew review) v3: use calculated offsets for older gens (Chris comments) v4: move setting NO_RELOC flag out of if-block (Zbigniew) update commit message about DG2 refactoring Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Cc: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
2022-05-26tests/i915/kms_dsc: IGT cleanupSwati Sharma
In this patch, removed redundant code. Also, before starting the subtest, cleaned up the states to default by igt_display_reset(). Few minor fixes in indentation. Also, added subtests description. v2: -minor mistake in subtest name -commit was missing after reset, added v3: -fixed styling error -replaced drm calls with igt wrappers v4: -added igt_display_require_output() in igt_fixture -modularized code, added func() for checks -added func() to get highest mode v5: -minor fixes v6: -made modifications based on lib changes v7: -added igt_fixture Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Patnana Venkata Sai <venkata.sai.patnana@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-05-26tests/kms: Update tests with lib changesSwati Sharma
Made corresponding changes in tests wrt lib changes in [1/3]. Basically, we have replaced output->config.connector with output->name. Suggested-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
2022-05-25tests/kms_ccs: Add dg2 tiled-4 ccs modifiersJuha-Pekka Heikkilä
I915_FORMAT_MOD_4_TILED_DG2_RC_CCS I915_FORMAT_MOD_4_TILED_DG2_MC_CCS I915_FORMAT_MOD_4_TILED_DG2_RC_CCS_CC modifier added for testing and prevent impossible ccs test from flat ccs, fb generation for FB_HAS_PLANE will use linear modifier instead if Y-modifier as its no longer supported for latest platform. v2: Modified commit message. (Petri) Signed-off-by: Juha-Pekka Heikkilä <juha-pekka.heikkila@intel.com> Signed-off-by: Jeevan B <jeevan.b@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-05-19i915_pm_rpm: rpm resume by user forcewakeAnshuman Gupta
Few gem rpm tests relies on enabling kms crtc in order to trigger rpm resume but on headless platforms these tests skip. Let it trigger the rpm resume by taking user forcewake. v2: - removed has_runtime_pm cond from enable_one_screen_or_forcewake_and_wait(). [Ashutosh] - removed if (ms_data.res) cond from basic_subtest(). [Ashutosh] - clear forcewake in both only for headless. [Ashutosh] v3: - s/disable_all_screens_or_clr_forcewake_and_wait/ disable_all_screens_or_forcewake_put_and_wait. [Ashutosh] - s/enable_one_screen_or_forcewake_and_wait/ enable_one_screen_or_forcewake_get_and_wait. [Ashutosh] - Removed if (!default_mode_params) cond. [Ashutosh] - s/clear_forcewake/forcewake_put/ Cc: Chris Wilson <chris.p.wilson@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2022-05-19test: i915_pm_rpm: conditional initialization of igt_display_tAnshuman Gupta
Initialize igt_display_t display only in case of there are valid drm kms resources. v2: - Move igt_display_fini under the 'if (data->res)' cond. [Ashutosh] Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2022-05-19i915_pm_rpm: s/display_disabled/display_enabledAnshuman Gupta
Change var display_disabled to display_enabled, also modify the passed argument and condition accordingly. Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2022-05-19test: i915_pm_rpm: init devid in setup_envirnomentAnshuman Gupta
Refactor out devid initialization out of init_mode_set_data(). Initialize it in setup_environment(). Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
2022-05-19tests/i915/kms_psr2_sf: add sel fetch/big fb testJouni Högander
Add new testcase for testing selective fetch using big framebuffer. New testcase is using much bigger fb than what is the visible area and setting visible offset to half of the width and the height. This reveals issues in selective fetch area calculation: https://gitlab.freedesktop.org/drm/intel/-/issues/5440 Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-05-19tests/kms_psr2_sf: Add new move continuous testcasesJouni Högander
Adding new continuous move testcases for cursor and overlay planes. These new testcases are testing selective fetch when updated plane is fully or partially out of visible area. This was found to reveal bug in selective fetch area calculation: https://gitlab.freedesktop.org/drm/intel/-/issues/5440 Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-05-19tests/kms_psr2_sf: Move continuous testcase preparation for new testsJouni Högander
Modify current move continuous testcase to ease up adding new testcases. Remove exceeding visible area as testcases to perform this are about to be added as separate testcases. v2: Fix compilation error and warning Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-05-18test/i915_pm_rpm: Add placement to gem-{mmap-type, execbuf}Anshuman Gupta
Add memory region placement to gem-{mmap-type, execbuf} subtest. This will be useful to extend these sub-test for D3Cold. Cc: Chris Wilson <chris.p.wilson@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2022-05-18lib/igt_kmod: don't leak who from module unload routinesMauro Carvalho Chehab
Add code to free allocated strings at the module unload routines from igt_kmod. Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-05-16tests/i915/i915_suspend: Add s2idle and s3 subtests without i915Riana Tauro
Add new tests basic-s2idle-without-i915 and basic-s3-without-i915 to exercise s2idle and s3 cycles to know the system wide health of suspend/resume v2: rebase v3: rebase v4: skip s3 when platform default state is s2idle to reduce CI time (Anshuman) v5: modified the log message (Petri) Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
2022-05-06tests/i915/gem_caching: handle discreteMatthew Auld
Test should still be valid, even if we can't explicitly control the PTE caching bits, like on discrete, where the caching should already be enabled by default for system memory objects. References: https://gitlab.freedesktop.org/drm/intel/-/issues/4873 Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Nirmoy Das <nirmoy.das@linux.intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
2022-05-06tests/i915/gem_workarounds: handle discreteMatthew Auld
On discrete the object should already be using I915_CACHING_CACHED, by default, for system memory objects, although we can no longer explicitly control the PTE caching bits. References: https://gitlab.freedesktop.org/drm/intel/-/issues/4873 Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Nirmoy Das <nirmoy.das@linux.intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
2022-04-29i915/gem_madvise: added description for test casePriyanka Dandamudi
Added description for subtests. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Ranjeet kumar <ranjeet1.kumar@intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Acked-by: Katarzyna Dec <katarzyna.dec@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-29i915/gem_partial_pwrite_pread: Add subtests descriptionSai Gowtham Ch
Add description to all the available subtests. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Apoorva Singh <apoorva1.singh@intel.com> Signed-off-by: Sai Gowtham Ch <sai.gowtham.ch@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-29i915/gem_bad_reloc: Added description for test caseSai Gowtham Ch
Added test description for subtest 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-04-29tests/i915/gem_exec_basic: Add test description to the subtest.Ch Sai Gowtham
Added test description to subtests that are available. Cc: Melkaveri Arjun <Arjun.Melkaveri@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Ch Sai Gowtham <sai.gowtham.ch@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-29i915/gem_set_tiling_vs_blt: Add description for test casePriyanka Dandamudi
Add test description for subtest. 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-04-29tests/i915/gem_softpin: Exercise single offset eviction on all enginesZbigniew Kempczyński
Verify that eviction works when all engines try to use same offset for different handles. It replaces allocator-evict-all-engines test because it is simpler. v2: addressing review comments (Kamil) v3: simplifying subtest (Chris) v4: adding more debugging info (Kamil) Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-28kms_psr2_su: Use FB_DAMAGE_CLIPS only when supportedJouni Högander
Currently we are seeing failures in ICL platforms due to missing support for IGT_PLANE_FB_DAMAGE_CLIPS. Use IGT_PLANE_FB_DAMAGE_CLIPS only if it is supported Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4148 Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Cc: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
2022-04-27i915/gem_eio: Removed early timeout check for forced reset completionBommu Krishnaiah
GUC log capture is taking more time on few platforms, so removing early timeout check for forced reset completion. Test still checks timeout later, before function exit. Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Cc: John Harrison <john.c.harrison@intel.com> Cc: Andi Shyti <andi.shyti@intel.com> Signed-off-by: Krishnaiah Bommu <krishnaiah.bommu@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-25tests/i915/gem_ctx_isolation.c - fix to poison CACHE_MODE_0CQ Tang
On DG2, if we poison bit8 of this register 0x7000, it causes the test to catch "GPU hung". bit8 is "Depth Related Cache Pipelined Flush Disable", set this to enable slow mode. This change is to mask off to set bit8 of this register. Signed-off-by: CQ Tang <cq.tang@intel.com> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Chris P Wilson <chris.p.wilson@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-22tests/i915/kms_big_fb: Don't fill small fb during test setupJuha-Pekka Heikkila
Change small fb not to be filled with green color, this will never show anywhere and just take time while setting up test. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-04-22tests/i915/kms_big_fb: move start of crc calculation past first commitJuha-Pekka Heikkila
First commit may cause modeset on two pipes which can on some machines take enough time to fill up crc buffer on one pipe causing crc buffer overflow messages. Moved crc calculation start past first commit to avoid these messages. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2022-04-22tests/i915/kms_flip_scaled_crc: Fix error messageJuha-Pekka Heikkila
There was newline missing from skipping message which caused skips to show as incomplete. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/5749 Reviewed-by: Petri Latvala <petri.latvala@intel.com>
2022-04-22tests/i915/gem_exec_schedule: Use separate context for spinnerZbigniew Kempczyński
Iterating over all physical engines on default context is wrong and it may end with failure when there're more engines than default context contains. To handle this we should create separate context on top of all-physical-engines config. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/5444 (semaphore-resolved). Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-22tests/i915/gem_exec_schedule: Don't use default contextZbigniew Kempczyński
Config created on top of all physical devices may provide more devices than default context contains. Using engine id from such "richer" context is wrong when default context will be chosen for this engine. Add dedicated context to handle all engines covered by context cfg. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/5444 (timeslicing) Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-22i915/gem_exec_schedule: Fix context creation for shared-vmChris Wilson
submit_slice() is using a single address space for a couple of contexts to prevent rebinding while active, and so requires that address space to be shared during context construction. v2: Add separate context for background spinner (Zbigniew) Fixes: a9987a8dcb8f ("tests/i915/gem_exec_schedule: Convert to intel_ctx_t (v3)") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> 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-04-22tests/gem_reset_stats: Test for shared reset domainPriyanka Dandamudi
Added new subtest shared_reset_domain: The test submits non-preemptible requests to all engines, kills one and expects the rest to survive. If one of those engines reset is RCS/CCS or multi-CCS then expects only dependent engines to be reset. It checks the status of context after reset. Result: 1.If engine reset is one among dependent engines then contexts of dependent engines to be victimized and rest to be of noerror. 2.If engine reset is of non dependent engines then all the contexts are of noerror. Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
2022-04-21tests/i915/gem_lmem_swapping: Add parallel-random-verify-ccs subtestZbigniew Kempczyński
For this subtest we need to use allocator thread so parallel subtests need to be executed in allocator multi-process aware environment. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
2022-04-20gem_lmem_swapping: Check requirements before module unloadPetri Latvala
To prevent a needless unload-load cycle, check for lmem before the unload if i915 is already loaded. Also check that the device is there at all so we get a better error message than EBADFD from require_gem. Signed-off-by: Petri Latvala <petri.latvala@intel.com> Cc: Matthew Auld <matthew.auld@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Acked-by: Matthew Auld <matthew.auld@intel.com>
2022-04-19tests/i915/gem_lmem_swapping: Add ccs subtestsRamalingam C
Add subtests for covering the compressed object's eviction. v2: gem_sync after the block_copy blit for init v3: ahnd is passed in as a param [Zbigniew] cmd is bb [Zbigniew] blt src and dst sizes supposed to be same [Zbigniew] v4: Use gem_create_from_pool [Zbigniew] v5: Mark only blt_ctx as non-persistence [Ashutosh] v6: Move the intel_allocator_open/clsoe is moved under TEST-CCS [Arjun] blt_ctx through intel_ctx_0 [Arjun] v7: Get the blt engine for init and verify of ccs obj [Zbigniew] v8: Newline for assert msg [Petri] v9: free obj->blt_obj [Zbigniew] use intel_get_uc_mocs() [Zbigniew] Free tmp. v10: New ctx creation for blt. [Zbigniew] dynamic alloc result check [Zbigniew] parallel-random-verify-ccs is dropped. Signed-off-by: Chris Wilson <chris.p.wilson@intel.com> Signed-off-by: Ayaz A Siddiqui <ayaz.siddiqui@intel.com> Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com>
2022-04-18tests/i915/gem_lmem_swapping: create batch buffer from obj poolRamalingam C
Use the gem_create_from_pool() for creating the batch buffers. Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Reviewed-by: Zbigniew Kempczynski <zbigniew.kempczynski@intel.com>
2022-04-14tests/i915_query: Test new DRM_I915_QUERY_GEOMETRY_SUBSLICES queryMatt Roper
Ensure we get sensible responses for both valid and invalid usage of this query item. Note that unlike the traditional topology query we do not try to compare the values returned against the old I915_PARAM ioctl. Xe_HP already uses a full 32-bit mask for subslices and we expect upcoming platforms to increase the mask size to 64 or beyond (i.e., the hardware starts using multiple registers to express the mask); since the old I915_PARAM ioctl can only return a 32-bit value it will be unable to express the full mask for upcoming platforms. Cc: Matt Atwood <matthew.s.atwood@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
2022-04-06i915/i915_module_load: Add descriptions for testPriyanka Dandamudi
Add test description for subtests. v2: Minute corrections. Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Signed-off-by: Apoorva Singh <apoorva1.singh@intel.com> Cc: Melkaveri, Arjun <arjun.melkaveri@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-06i915/gem_wait: Add description for test and subtestsPriyanka Dandamudi
Add description for test and all the subtests v2: Rebase v3: Modified descriptions Signed-off-by: Apoorva Singh <apoorva1.singh@intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
2022-04-06tests/i915/gem_softpin: Use valid context when iterating over enginesZbigniew Kempczyński
For previous gens this bug was not discovered because newly created context over physical engines has same number of engines. For discrete this is not true so using bigger index taken from new context on default is leading to -EINVAL. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
2022-04-05tests/i915/gem_exec_gttfill: Reenable test for discreteZbigniew Kempczyński
Test was turned off unnecessarily for discrete so add softpinning to it and enable it again. v2: ensure eviction takes place (Chris) v3: addressing review comments (Kamil) Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4086 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-04-05tests/i915/gem_ctx_isolation: Use allocator for registers writeZbigniew Kempczyński
For no-reloc we need to ensure all offset management is done with userspace allocator. Leaving register write intact was wrong as offsets returned by allocator could overlap with proposed by the kernel (write_regs() didn't have EXEC_OBJECT_PINNED before). 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-04-05tests/i915/drm_fdinfo: Basic and functional tests for GPU busyness exported ↵Tvrtko Ursulin
via fdinfo Mostly inherited from the perf_pmu, some basic tests, and some tests to verify exported GPU busyness is as expected. v2: * Skip when kernel does not export drm keys in fdinfo. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
2022-04-04tests/i915/gem_eio: Fix missing multiprocess allocator environmentZbigniew Kempczyński
On discrete we need to ensure that allocator is able to run in multiprocess mode otherwise we encounter crashes. Fixes: https://gitlab.freedesktop.org/drm/intel/-/issues/4928 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>