-
- Downloads
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:Tales L. Aparecida <tales.aparecida@gmail.com> Link: https://gitlab.freedesktop.org/tales-aparecida/igt-gpu-tools/-/tree/kunit-prototype-v5.19-fixed31_32 [1]
Showing
- drivers/gpu/drm/amd/display/Kconfig 13 additions, 0 deletionsdrivers/gpu/drm/amd/display/Kconfig
- drivers/gpu/drm/amd/display/dc/Makefile 4 additions, 0 deletionsdrivers/gpu/drm/amd/display/dc/Makefile
- drivers/gpu/drm/amd/display/dc/tests/.kunitconfig 6 additions, 0 deletionsdrivers/gpu/drm/amd/display/dc/tests/.kunitconfig
- drivers/gpu/drm/amd/display/dc/tests/Makefile 12 additions, 0 deletionsdrivers/gpu/drm/amd/display/dc/tests/Makefile
- drivers/gpu/drm/amd/display/dc/tests/dc_basics_fixpt31_32_test.c 195 additions, 0 deletions.../gpu/drm/amd/display/dc/tests/dc_basics_fixpt31_32_test.c
- drivers/gpu/drm/amd/display/dc/tests/dc_basics_fixpt31_32_test.h 17 additions, 0 deletions.../gpu/drm/amd/display/dc/tests/dc_basics_fixpt31_32_test.h
- drivers/gpu/drm/amd/display/dc/tests/dc_tests.c 35 additions, 0 deletionsdrivers/gpu/drm/amd/display/dc/tests/dc_tests.c
Loading
Please register or sign in to comment