summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2020-04-21Sync i915_pciids upto 8717c6b7414fLiwei Song1-1/+2
Import the kernel's i915_pciids.h, up to: commit 8717c6b7414ffb890672276dccc284c23078ac0e Author: Lee Shawn C <shawn.c.lee@intel.com> Date: Tue Dec 10 23:04:15 2019 +0800 drm/i915/cml: Separate U series pci id from origianl list. Signed-off-by: Liwei Song <liwei.song@windriver.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-02-27pciids: Update for missing Skylake IDsChris Wilson1-8/+3
Sync with kernel commit ca7a45ba6fb9e7ceca56d10b91db29c2f3451a2e Author: MichaƂ Winiarski <michal.winiarski@intel.com> Date: Mon Feb 27 12:22:56 2017 +0100 drm/i915/skl: Add missing SKL ID Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-10-04sna/dri2: Assert signal is unset before settingChris Wilson1-0/+15
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-09-23test/present: Busy spin on the idle fenceChris Wilson1-31/+104
Avoid the unix socket + libxcb to maximise the throughput. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-09-22test/present: Look at scaling to many tiny windowsChris Wilson1-8/+223
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-09-20test/present: Stress multiple threads sending present requestsChris Wilson2-14/+73
At the kernel level, threads and processes are identical - they each get a fair share of CPU time. From this we can surmise the cause of any variation between threads and processes. If the threads are balanced (each thread completing the same number of requests), but the processes have unbalanced numbers, we know that X is not as fair. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-05-04test: Exercise XVidMode switchingChris Wilson2-0/+60
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-30test/dri2-race: Don't leak the Display after detecting the raceChris Wilson1-16/+14
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-24sna/present: Restrict vblank.sequence range to 31bitsChris Wilson1-0/+83
The kernel checks for past vblanks using an int32_t comparison, so we can only program up to 31bits into the future (and similarly programing a timer that large would also overflow). References: https://bugs.freedesktop.org/show_bug.cgi?id=94685 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-16test: Look at Present scaling with number of cpusChris Wilson1-0/+54
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-16tests: Anticipate Present reporting too earlyChris Wilson1-14/+144
Given Present bugs, any completion event may be sent too early and out-of-order. Make sure we drain all outstanding events before continuing on to the next test. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-16tests: Add DRI2 race against window resize + Composite redirectionChris Wilson1-29/+235
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-15test/present: Catch FPE when notifies are brokenChris Wilson1-0/+14
If the Xserver reports 10 frames passed instantaneously, flag an error rather than divide by zero. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-13test/dri2-race: Tweak runtimesChris Wilson1-19/+19
When we specify a divider we are looking for slightly different races that are in theory not so timing dependent (since we are using vrefresh windows). However, since they each take some multiple of vblanks to complete, they are much slower. We should be able to reduce the number of iterations without losing detection capability. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-10test/dri2-race: Add a set of races against Client deathChris Wilson1-4/+187
Try terminating the client using XKillClient and seeing if we can find any races with Client shutdown. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-10test/dri2-race: Use loops for iterating over divisor testsChris Wilson1-420/+276
Expand the test cases slightly to check high dividers everywhere. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-03test/dri2-test: Add WaitMSC accuracy testsChris Wilson1-1/+42
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-03test: Add present-raceChris Wilson3-1/+487
A simple demonstration of what may go wrong when a Window is destroyed by another client such as the window-manager. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-02-02test/dri2-race: Capture race between window-manger and clientsChris Wilson2-0/+224
If the window manager closes the Window before the client disconnects, we can end up with a blocked client as dri2 does not call AttendClient() in its DRI2DrawableGone. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-07-29test: Exercise copyplaneChris Wilson3-0/+101
Reported-by: Omar Sandoval References: https://bugs.freedesktop.org/show_bug.cgi?id=91499 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-05-19tests/render-trapezoid: Add edge testsChris Wilson1-0/+125
Check fidelity of edge rendering, just a variant of render-triangle Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-05-18test: Add a fidelity test for triangle edge renderingChris Wilson3-0/+182
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-05-18test: Remove the blit through a temporary PixmapChris Wilson1-26/+10
Originally this was inplace so that we wouldn't simply migrate the target away from the GPU whenever we inspected results. That is no longer a problem and so we can speed up the tests by skipping the temporary. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-05-18sna/glyphs: Improve handling of low bitdepth mask format conversionsChris Wilson4-0/+452
We shouldn't just discard the mask if the user requests that we render the glyphs through a low bitdepth mask - and in doing so we should also be careful not to improve the bitdepth of that mask (since we don't take into account the extra quantisation desired). Testcase: render-glyphs Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-21test/present: Do a double flip to test tiling changesChris Wilson1-2/+26
Since the first flip may require a fixup, we will only really know with the second flip whether we can start a flip chain with different tiling. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-20test/dri3: Add an explicit DRI3 extension check firstChris Wilson1-0/+34
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-18sna/present: Reuse last cached swap msc/ust during a flip chainChris Wilson1-1/+0
Querying the known swap values is much slower than not! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-06test/present: Synchronize MSC notifiy modulus test to the vblankChris Wilson1-3/+36
As the test presumes we can queue all the modulus queries within the same vblank, we can improve matters by synchronizing to the next vblank first. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-06test/present-speed: Disable idle event reporting for no-copy overhead testChris Wilson1-3/+3
Reduce the overheads in the server for better measurements. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-05test/present: Expland MSC accuracy testChris Wilson1-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-05test/present: Include composite redirected windows in the test matrixChris Wilson3-1/+123
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-05test/present-speed: Reneable normal testingChris Wilson1-2/+0
Oops, debug leftover. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-05test/present-speed: Export the pixmap over DRI3Chris Wilson1-4/+24
Improve the DRI3 simulation by exporting the Pixmap to force DRI3 syncflushes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-05test/present-speed: More measurement for different swap methodsChris Wilson1-12/+53
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-05test/present: Also test swaps on windows (as well as full screen flips)Chris Wilson1-63/+115
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-04test/present-speed: More buffers required to hit maximal frameratesChris Wilson1-53/+150
5 buffers are required for swap elision, plus an extra or two for IPC scheduling jitter. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-02test/dri2: Reset swap-interval after testing async swappingChris Wilson1-0/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-02test/dri2: Check vblank waitsChris Wilson1-14/+33
Make sure that waiting 60 times for a vblank, 60 msc pass Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-04-02test/present-speed: Include a measure for fence signalling overheadChris Wilson1-47/+112
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-24test: Test tiling across DRI3/PresentChris Wilson2-0/+186
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-03-20tests: Add basic present benchmarkChris Wilson4-0/+651
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-16test/present: Compact flip queue checksChris Wilson1-25/+37
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-16test/present: Tighten MSC modulus computationChris Wilson1-10/+20
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-15test/present: Test notifier accuracyChris Wilson1-4/+305
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-12test/present: Automatically disable DPMSChris Wilson1-0/+8
DPMS plays havoc with Present timings, make sure the screen doesn't turn off. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-12test/present: Look for MSC wraparoundChris Wilson1-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-12test/present: Check a simple double-buffer sequenceChris Wilson1-0/+84
Just check that we can do a present roundtrip in time to submit a new frame on the next vblank. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-12test/present: Include test for timing accuracyChris Wilson1-193/+168
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-12test/present: Check modulus computationChris Wilson1-1/+162
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-12test/present: Tighten the accuracy requirementsChris Wilson1-8/+14
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>