Prime Tests

Prime Tests — Tests for buffer sharding

Programs

Description

prime_busy

Basic check of polling for prime fences.

Subtests

basic-before-default
basic-wait-before-default
basic-after-default
basic-wait-after-default
hang-default
wait-hang-default
before-render
wait-before-render
after-render
wait-after-render
hang-render
wait-hang-render
before-bsd
wait-before-bsd
after-bsd
wait-after-bsd
hang-bsd
wait-hang-bsd
before-bsd1
wait-before-bsd1
after-bsd1
wait-after-bsd1
hang-bsd1
wait-hang-bsd1
before-bsd2
wait-before-bsd2
after-bsd2
wait-after-bsd2
hang-bsd2
wait-hang-bsd2
before-blt
wait-before-blt
after-blt
wait-after-blt
hang-blt
wait-hang-blt
before-vebox
wait-before-vebox
after-vebox
wait-after-vebox
hang-vebox
wait-hang-vebox

prime_mmap

Subtests

test_correct
test_map_unmap
test_reprime
test_forked
test_correct_cpu_write
test_forked_cpu_write
test_refcounting
test_dup
test_userptr
test_errors
test_invalid_sync_flags
test_aperture_limit

prime_mmap_coherency

Test dma-buf mmap on !llc platforms mostly and provoke coherency bugs so we know for sure where we need the sync ioctls.

Subtests

read
write
ioctl-errors

prime_mmap_kms

Efficiently sharing CPU and GPU buffers

Subtests

buffer-sharing

prime_self_import

Check whether prime import/export works on the same device... but with different fds.

Subtests

basic-with_one_bo
basic-with_one_bo_two_files
basic-with_two_bos
basic-with_fd_dup
export-vs-gem_close-race
reimport-vs-gem_close-race
basic-llseek-size
basic-llseek-bad

prime_udl


prime_vgem

Basic check of polling for prime/vgem fences.

Subtests

basic-read
basic-write
basic-gtt
coherency-gtt
basic-sync-default
sync-render
sync-bsd
sync-bsd1
sync-bsd2
sync-blt
sync-vebox
basic-busy-default
busy-render
busy-bsd
busy-bsd1
busy-bsd2
busy-blt
busy-vebox
basic-wait-default
wait-render
wait-bsd
wait-bsd1
wait-bsd2
wait-blt
wait-vebox
basic-fence-read
basic-fence-mmap
basic-fence-wait-default
fence-wait-render
fence-wait-bsd
fence-wait-bsd1
fence-wait-bsd2
fence-wait-blt
fence-wait-vebox
basic-fence-flip
fence-read-hang
fence-write-hang
fence-flip-hang