Prime Tests

Prime Tests — Buffer sharing tests

Programs

Description

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
read-and-fail
write
write-and-fail
ioctl-errors

prime_mmap_kms

Efficiently sharing CPU and GPU buffers

Subtests

buffer-sharing

prime_nv_api

Subtests

i915_nv_import_twice
i915_nv_import_twice_check_flink_name
i915_nv_reimport_twice_check_flink_name
nv_i915_import_twice_check_flink_name
nv_i915_reimport_twice_check_flink_name
i915_nv_import_vs_close
i915_nv_double_import
i915_nv_double_export
i915_self_import
nv_self_import
i915_self_import_to_different_fd
nv_self_import_to_different_fd

prime_nv_pcopy

Subtests

test1_macro
test1_micro
test2
test3_1
test3_2
test3_3
test3_4
test3_5
test_semaphore

prime_nv_test

Subtests

i915_nv_sharing
nv_i915_sharing
nv_write_i915_cpu_mmap_read
nv_write_i915_gtt_mmap_read
i915_import_cpu_mmap
i915_import_gtt_mmap
i915_import_pread_pwrite
i915_blt_fill_nv_read

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