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 yeah, let's hope they do, because rk3576 sucks compared to rk3588. rk3576 has armv8.0 cores again aka cortex a53, making it incompatible with woa which would've benefitted most from coherent pcie. Rk3566 and rk3588 were finally cortex a55 etc meaning armv8.2. also newer cores are better and much more future proof
@DenJohn @mntmn you want to run windows? lmao
@CounterPillow @mntmn there is a community project that allows rk3588 to run woa. No gpu drivers though ofc
@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.