Skip to content
Snippets Groups Projects
Commit e3840290 authored by Tales Aparecida's avatar Tales Aparecida Committed by Tales L. Aparecida
Browse files

drm/amd/display: Introduce KUnit tests for fixed31_32 library


The fixed31_32 library performs a lot of the mathematical operations
involving fixed-point arithmetic and the conversion of integers to
fixed-point representation.

This unit tests intend to assure the proper functioning of the basic
mathematical operations of fixed-point arithmetic, such as
multiplication, conversion from fractional to fixed-point number,
and more.

Tested with kunit-tools and IGT (with some patches[1]).

1) Kunit tools:

$ ./tools/testing/kunit/kunit.py run \
	--arch=x86_64 \
	--kunitconfig=drivers/gpu/drm/amd/display/dc/tests/

2) IGT (aided by virtme and KW)

$ virtme/virtme-configkernel --arch=x86_64 --defconfig
$ linux/scripts/config \
		-e KUNIT \
		-m DRM_AMDGPU \
		-e DRM_AMD_DC \
		-m DC_KUNIT_TEST
$ kw build
$ virtme/virtme-run --mods=auto --kdir linux

Now, inside QEMU:

$ $PATH_TO_IGT/igt-gpu-tools/scripts/run-tests.sh -t ".*kunit.*" -r
/tmp

Signed-off-by: default avatarTales L. Aparecida <tales.aparecida@gmail.com>

Link: https://gitlab.freedesktop.org/tales-aparecida/igt-gpu-tools/-/tree/kunit-prototype-v5.19-fixed31_32 [1]
parent e070fbfb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment