KUnit sorcery and the uncanny nature of FPU in the DRM

4 Oct 2022, 16:10
45m
201 (Opus Hall)

201

Opus Hall

30 S 10th Street, Minneapolis, MN
Talk (full slot, Wineconf and FOSS XR only) Main Track

Speakers

Mrs Isabella Basso (University of São Paulo) Mrs Maíra Canal (University of São Paulo) Magali Lemes

Description

It's very easy for Linux kernel driver maintainers to build strongholds around their code, as it's very difficult for the lay contributor to understand unusual macros or code that's often not properly documented and assumed to be only edited by "experts". As this is often the case with DRM drivers, we propose the adoption of KUnit as a tool not only for making such code more reliable, but also for making it more approachable as unit tests provide a simple and elegant way of finding exactly which piece of code has been broken. We explore this magic tool's adoption in the context of AMD's jarring DML submodule and how we can turn it from a spooky piece of code to a more friendly face.

Code of Conduct Yes
GSoC, EVoC or Outreachy Yes
In-person or virtual presentation In-person
For which conference do you send the proposal? X.Org Developers Conference 2022

Primary authors

Mrs Isabella Basso (University of São Paulo) Mr Tales Aparecida (Unicamp) Mrs Maíra Canal (University of São Paulo) Magali Lemes

Presentation Materials

2024 Platinum Sponsor
Collabora
2024 Gold Sponsors
Arm
Google
Microsoft
NVIDIA
2024 Silver Sponsors
AMD
FEX-Emu
Igalia
Qualcomm
The Linux Foundation
2024 Bronze Sponsors
CodeWeavers
Khronos Group
Libre Computer