Tyr, a new Rust DRM driver targeting CSF-based ARM Mali GPUs

collabora.com

53 points by mfilion 19 hours ago


Aurornis - 18 hours ago

In case anyone is confused, DRM refers to Direct Rendering Manager, not Digital Rights Management: https://en.wikipedia.org/wiki/Direct_Rendering_Manager

bArray - 39 minutes ago

> The current submission can power up the GPU and probe the device on an RK3588 system-on-chip. This lets us read a few sections of ROM in the GPU, which in turn lets us provide this information to userspace by means of a DRM_IOCTL_PANTHOR_DEV_QUERY call.

I think ARM-based chips and embedded GPUs continue to be problematic. Powering up a GPU is not the issue, it's accessing the silicon that does specialised accelerated functionality without getting tied into some crazy legal stuff with the documentation required to do so. Reverse engineering your way to a working GPU driver is quite an effort.

I think I first came across this issue in the PineTab [1]. I was trying to do some kind of streaming from the device but it was ultra slow. After some search I found that Sunxi [2] was the only real serious effort at the time, and that it was sporting a Mali400 [3] [4]. ARM were not particularly friendly in open sourcing GPU code for the kernel and it was largely a reverse engineering effort that got anything working at all [5].

All this to say, I would rather support some kind of open-source GPU effort [6], especially if it could be boiled down to a small SoC or module. I saw this crazy 160 core RISC-V M.2 cluster performing ray tracing, and it really seems like we could get there [7].

[1] https://wiki.pine64.org/wiki/PineTab

[2] https://linux-sunxi.org/Allwinner_SoC_Family

[3] https://linux-sunxi.org/A64

[4] https://linux-sunxi.org/Mali

[5] https://en.wikipedia.org/wiki/Free_and_open-source_graphics_...

[6] https://www.tomshardware.com/pc-components/gpus/new-open-sou...

[7] https://www.youtube.com/watch?v=HRfbQJ6FdF0

bradleyy - 14 hours ago

Direct Rendering Manager (DRM) has to be one of the worst possible re-uses of an acronym ever. This is the second time I've seen it used recently without an expansion of the acronym.

justahuman74 - 13 hours ago

One thing that wasn't mentioned, what was the motivation for the re-write?

cjtrowbridge - 16 hours ago

[flagged]