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.

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

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

2023 Platinum Sponsor
Igalia
2023 Gold Sponsors
Google
Collabora
Arm
Microsoft
2023 Silver Sponsors
FEX-Emu
The Linux Foundation
AMD
Qualcomm
2023 Bronze Sponsors
Khronos Group
CodeWeavers
2023 Supporters
A Coruña Turismo
GPUL
Raspberry Pi