KMS Tests

KMS Tests — Mode setting tests

Programs

Description

kms_3d

Tests 3D mode setting.


kms_addfb

Subtests

no-handle
normal
bad-pitch-0
bad-pitch-32
bad-pitch-63
bad-pitch-128
bad-pitch-256
bad-pitch-1024
bad-pitch-999
bad-pitch-65536
X-tiled
framebuffer-vs-set-tiling
tile-pitch-mismatch
Y-tiled
size-max
too-wide
too-high
bo-too-small
small-bo
bo-too-small-due-to-tiling
addfb25-modifier-no-flag
addfb25-bad-modifier
addfb25-X-tiled-mismatch
addfb25-X-tiled
addfb25-framebuffer-vs-set-tiling
addfb25-Y-tiled
addfb25-Yf-tiled
addfb25-Y-tiled-small

kms_crtc_background_color

Test crtc background color feature


kms_cursor_crc

Use the display CRC support to validate cursor plane functionality. The test will position the cursor plane either fully onscreen, partially onscreen, or fully offscreen, using either a fully opaque or fully transparent surface. In each case it then reads the PF CRC and compares it with the CRC value obtained when the cursor plane was disabled.

Subtests

cursor-size-change
cursor-64x64-onscreen
cursor-64x64-offscreen
cursor-64x64-sliding
cursor-64x64-random
cursor-64x64-dpms
cursor-64x64-suspend
cursor-64x21-onscreen
cursor-64x21-offscreen
cursor-64x21-sliding
cursor-64x21-random
cursor-128x128-onscreen
cursor-128x128-offscreen
cursor-128x128-sliding
cursor-128x128-random
cursor-128x128-dpms
cursor-128x128-suspend
cursor-128x42-onscreen
cursor-128x42-offscreen
cursor-128x42-sliding
cursor-128x42-random
cursor-256x256-onscreen
cursor-256x256-offscreen
cursor-256x256-sliding
cursor-256x256-random
cursor-256x256-dpms
cursor-256x256-suspend
cursor-256x85-onscreen
cursor-256x85-offscreen
cursor-256x85-sliding
cursor-256x85-random
cursor-512x512-onscreen
cursor-512x512-offscreen
cursor-512x512-sliding
cursor-512x512-random
cursor-512x512-dpms
cursor-512x512-suspend
cursor-512x170-onscreen
cursor-512x170-offscreen
cursor-512x170-sliding
cursor-512x170-random

kms_draw_crc

Subtests

draw-method-mmap-cpu-untiled
draw-method-mmap-cpu-tiled
draw-method-mmap-gtt-untiled
draw-method-mmap-gtt-tiled
draw-method-mmap-wc-untiled
draw-method-mmap-wc-tiled
draw-method-pwrite-untiled
draw-method-pwrite-tiled
draw-method-blt-untiled
draw-method-blt-tiled
draw-method-render-untiled
draw-method-render-tiled
fill-fb

kms_fbc_crc

Performs various write operations to the scanout buffer while FBC is enabled. CRC checks will be used to make sure the modifications to scanout buffer are detected.

Subtests

page_flip
mmap_cpu
mmap_gtt
blt
render
context
page_flip_and_mmap_cpu
page_flip_and_mmap_gtt
page_flip_and_blt
page_flip_and_render
page_flip_and_context

kms_fence_pin_leak

Exercises full ppgtt fence pin_count leak in the kernel.


kms_flip

Subtests

This test has over 100 subtests. Run kms_flip --list-subtests to list them.


kms_flip_event_leak

This test tries to provoke the kernel into leaking a pending page flip event when the fd is closed before the flip has completed. The test itself won't fail even if the kernel leaks the event, but the resulting dmesg WARN will indicate a failure.


kms_flip_tiling

Test page flips and tiling scenarios

Subtests

flip-changes-tiling
flip-changes-tiling-Y
flip-changes-tiling-Yf
flip-X-tiled
flip-Y-tiled
flip-Yf-tiled
flip-to-X-tiled
flip-to-Y-tiled
flip-to-Yf-tiled

kms_force_connector

Check the debugfs force connector/edid features work correctly.

Subtests

force-connector-state
force-edid

kms_frontbuffer_tracking

Test the Kernel's frontbuffer tracking mechanism and its related features: FBC and PSR

Subtests

This test has over 100 subtests. Run kms_frontbuffer_tracking --list-subtests to list them.


kms_legacy_colorkey

Check that the legacy set colorkey ioctl only works on sprite planes.


kms_mmio_vs_cs_flip

Subtests

setplane_vs_cs_flip
setcrtc_vs_cs_flip

kms_panel_fitting

Test display panel fitting


kms_pipe_b_c_ivb

Exercise the FDI lane bifurcation code for IVB in the kernel by settingdifferent combinations of modes for pipes B and C.

Subtests

pipe-B-dpms-off-modeset-pipe-C
pipe-B-double-modeset-then-modeset-pipe-C
disable-pipe-B-enable-pipe-C
from-pipe-C-to-B-with-3-lanes
enable-pipe-C-while-B-has-3-lanes

kms_pipe_crc_basic

Subtests

bad-pipe
bad-source
bad-nb-words-1
bad-nb-words-3
read-crc-pipe-A
read-crc-pipe-A-frame-sequence
suspend-read-crc-pipe-A
hang-read-crc-pipe-A
read-crc-pipe-B
read-crc-pipe-B-frame-sequence
suspend-read-crc-pipe-B
hang-read-crc-pipe-B
read-crc-pipe-C
read-crc-pipe-C-frame-sequence
suspend-read-crc-pipe-C
hang-read-crc-pipe-C

kms_plane

Subtests

plane-position-covered-pipe-A-plane-1
plane-position-hole-pipe-A-plane-1
plane-position-hole-dpms-pipe-A-plane-1
plane-panning-top-left-pipe-A-plane-1
plane-panning-bottom-right-pipe-A-plane-1
plane-panning-bottom-right-suspend-pipe-A-plane-1
plane-position-covered-pipe-A-plane-2
plane-position-hole-pipe-A-plane-2
plane-position-hole-dpms-pipe-A-plane-2
plane-panning-top-left-pipe-A-plane-2
plane-panning-bottom-right-pipe-A-plane-2
plane-panning-bottom-right-suspend-pipe-A-plane-2
plane-position-covered-pipe-A-plane-3
plane-position-hole-pipe-A-plane-3
plane-position-hole-dpms-pipe-A-plane-3
plane-panning-top-left-pipe-A-plane-3
plane-panning-bottom-right-pipe-A-plane-3
plane-panning-bottom-right-suspend-pipe-A-plane-3
plane-position-covered-pipe-B-plane-1
plane-position-hole-pipe-B-plane-1
plane-position-hole-dpms-pipe-B-plane-1
plane-panning-top-left-pipe-B-plane-1
plane-panning-bottom-right-pipe-B-plane-1
plane-panning-bottom-right-suspend-pipe-B-plane-1
plane-position-covered-pipe-B-plane-2
plane-position-hole-pipe-B-plane-2
plane-position-hole-dpms-pipe-B-plane-2
plane-panning-top-left-pipe-B-plane-2
plane-panning-bottom-right-pipe-B-plane-2
plane-panning-bottom-right-suspend-pipe-B-plane-2
plane-position-covered-pipe-B-plane-3
plane-position-hole-pipe-B-plane-3
plane-position-hole-dpms-pipe-B-plane-3
plane-panning-top-left-pipe-B-plane-3
plane-panning-bottom-right-pipe-B-plane-3
plane-panning-bottom-right-suspend-pipe-B-plane-3
plane-position-covered-pipe-C-plane-1
plane-position-hole-pipe-C-plane-1
plane-position-hole-dpms-pipe-C-plane-1
plane-panning-top-left-pipe-C-plane-1
plane-panning-bottom-right-pipe-C-plane-1
plane-panning-bottom-right-suspend-pipe-C-plane-1
plane-position-covered-pipe-C-plane-2
plane-position-hole-pipe-C-plane-2
plane-position-hole-dpms-pipe-C-plane-2
plane-panning-top-left-pipe-C-plane-2
plane-panning-bottom-right-pipe-C-plane-2
plane-panning-bottom-right-suspend-pipe-C-plane-2
plane-position-covered-pipe-C-plane-3
plane-position-hole-pipe-C-plane-3
plane-position-hole-dpms-pipe-C-plane-3
plane-panning-top-left-pipe-C-plane-3
plane-panning-bottom-right-pipe-C-plane-3
plane-panning-bottom-right-suspend-pipe-C-plane-3

kms_plane_scaling

Test display plane scaling


kms_psr_sink_crc

Subtests

primary_page_flip
primary_mmap_gtt
primary_mmap_gtt_waiting
primary_mmap_cpu
primary_blt
primary_render
sprite_mmap_gtt
sprite_mmap_gtt_waiting
sprite_mmap_cpu
sprite_blt
sprite_render
sprite_plane_move
sprite_plane_onoff
cursor_mmap_gtt
cursor_mmap_gtt_waiting
cursor_mmap_cpu
cursor_blt
cursor_render
cursor_plane_move
cursor_plane_onoff
dpms_off_psr_active
dpms_off_psr_exit

kms_pwrite_crc

Use the display CRC support to validate pwrite to an already uncached future scanout buffer.


kms_render

Subtests

direct-render
gpu-blit

kms_rotation_crc

Subtests

primary-rotation-180
sprite-rotation-180
cursor-rotation-180
primary-rotation-90
primary-rotation-270
sprite-rotation-90
sprite-rotation-270
sprite-rotation-90-pos-100-0
bad-pixel-format
bad-tiling

kms_setmode

Subtests

clone-single-crtc
invalid-clone-single-crtc
invalid-clone-exclusive-crtc
clone-exclusive-crtc

kms_sink_crc_basic


kms_sysfs_edid_timing


kms_universal_plane

Subtests

universal-plane-pipe-A-functional
universal-plane-pipe-A-sanity
disable-primary-vs-flip-pipe-A
cursor-fb-leak-pipe-A
universal-plane-pipe-B-functional
universal-plane-pipe-B-sanity
disable-primary-vs-flip-pipe-B
cursor-fb-leak-pipe-B
universal-plane-pipe-C-functional
universal-plane-pipe-C-sanity
disable-primary-vs-flip-pipe-C
cursor-fb-leak-pipe-C

kms_vblank

Test speed of WaitVblank.

Subtests

accuracy
query-idle
query-busy
wait-idle
wait-busy