AMD GPUs on the RK3588 (ROCK 5B)

So I had an RX 580 lying around and thought I’d give it a try on the RK3588.

Doom Eternal:

Metro Exodus:

It even works inside the EDK2 UEFI:

Due to the usual PCIe hardware bugs also found on the RK3588, a set of kernel patches is required:

Only tested with mainline kernels, but they should work with the RK 6.1 BSP too.

For reference, I’m using an M.2 to PCIe riser card like this:
https://www.aliexpress.com/item/1005007471130489.html

It’s an actual x4 adapter, unlike those reusing USB 3.0 cables which are x1 and thus offer much lower bandwidth. I had to cut out the end on mine to fit the x16 card, but the one I linked above appears to come open-ended already.

Feel free to test other cards and report back. If there’s enough interest, I might take a look at upstreaming the work, or at least convert it into a kernel module.

7 Likes

@geerlingguy might be interested!

Very much so! Have you tried any of the newer RDNA3/RDNA4 cards? I may pull out my Rock 5B and have a go too, just trying to catch up on some other things this week.

I love that you can get UEFI output too, nice job documenting it all!

2 Likes

Mario doing the "unthinkable“ once again. You rock!
Should I try this patch with the GT1030 I have :thinking:

Recently there was a patch for amdgpu on the vendor kernel as well: https://github.com/armbian/linux-rockchip/pull/387 - not sure if more are needed

Continued this discussion here: Testing with newer AMD graphics cards? · Issue #1 · mariobalanica/arm-pcie-gpu-patches

Sure. It should help the nouveau driver as well.

1 Like

Some small progress with NVIDIA this time: https://github.com/mariobalanica/arm-pcie-gpu-patches/issues/2#issuecomment-3438105681

Is this on… Windows ARM?

Looks like KDE to me.