someone hacked amdgpu to get an amd rx580 gpu working on rk3588, quite exciting https://github.com/mariobalanica/arm-pcie-gpu-patches

correction: amdgpu is not touched at all, the changes are to linux ttm allocator, pci bits and there's some version of ampere's instruction level altra pcie fixup involved

GitHub - mariobalanica/arm-pcie-gpu-patches: Linux kernel patches for running external GPUs on various Arm hardware.

Linux kernel patches for running external GPUs on various Arm hardware. - mariobalanica/arm-pcie-gpu-patches

GitHub

@mntmn FYI on the RK3576, Rockchip went for coherent PCIe extensions on the interconnect, so amdgpu should work with no patching there but I don't have a spare amdgpu card right now to test it with.

So I assume that may also be the case going forward with future Rockchip designs if they keep that licensed interconnect.

@CounterPillow @mntmn That's the least of the worries. If you look at the patches they have a whole arm64 instruction emulator to deal with broken unaligned PCIe semantics which is a big no for upstream. I doubt RK3576 fixed that but who knows.
@reddpower @mntmn Considering a radeon driver card worked for me in an unpatched kernel on RK3576 in glmark2, I assume these patches are either too heavy-handed or no longer an issue.