This repository collects a patch series I worked on for the Linux kernel's AMD
Display driver (drm/amd/display), adding KUnit
test coverage and fixing the driver's in-tree test infrastructure. The work was
submitted to and reviewed on the upstream amd-gfx mailing list.
The series brings unit-test coverage to fixed-point math and display-mode libraries that had none, and cleans up how those tests are configured and built.
Patches I authored (08–13):
| # | Patch | What it does |
|---|---|---|
| 08 | drm/amd/display: Introduce KUnit tests to dc_dmub_srv |
Adds a unit-test suite for the DMUB service library. |
| 09 | drm/amd/display: Refactor AMD display KUnit tests configs |
Removes redundant Kconfig entries, renames the rest to a consistent pattern, and rewrites the help blocks. |
| 10 | drm/amd/display/test: Fix kunit test that is not running |
Fixes bw_fixed_test.c, which had the wrong path relative to the file under test and was therefore never compiled or run. |
| 11 | drm/amd/display: Update tested files to follow the pattern |
Aligns the tested files with the project's test conventions. |
| 12 | drm/amd/display/test: Optimize kunit test suite |
Converts a per-test init to a suite_init for dml_dcn20_..._update_bw_bounding_box_test, since it only needs to run once per suite. |
| 13 | Documentation/gpu: Update AMD Display Core Unit Test documentation |
Documents the updated test setup. |
Patches 01–07 come from the broader KUnit-for-AMD-Display effort by Tales Aparecida, Maíra Canal, Isabella Basso and Magali Lemes; they're included here so the series applies as a whole.
- Patch series on the
amd-gfxlist: drm/amd/display: Update Display Core unit tests - Earlier revision introducing the
dc_dmub_srvtests (v5): PATCH v5 7/8
Against a Linux source tree:
git am 0001-*.patch ... 0013-*.patchThen build with the display-core KUnit configs enabled and run:
./tools/testing/kunit/kunit.py run --arch=x86_64 'drm_*'This work came out of my time contributing to the Linux kernel through the free-software community at IME-USP, alongside the broader group above.