Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Kernel Patches — AMD Display Core KUnit tests

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.

What's here

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.

Upstream references

Applying the patches

Against a Linux source tree:

git am 0001-*.patch ... 0013-*.patch

Then build with the display-core KUnit configs enabled and run:

./tools/testing/kunit/kunit.py run --arch=x86_64 'drm_*'

Context

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.

About

KUnit test suites and test-infrastructure fixes for the Linux kernel's AMD Display Core (drm/amd/display), submitted and reviewed upstream on the amd-gfx mailing list.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors