-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test AMD RX 580 [rk3588] #696
Comments
Since jeff isn't quite a fan of rockchip shenanigans i'd be happy to provide a kernel (and modules) if requested. |
Update: Got the bar space figured out, It now kernel panics
I assume i need @Coreforge's patches? |
You need to adapt them a little bit for newer kernels (there's one or two places that got added that either needed a memcpy/memset changed, or needed structs changed to volatile). |
If you could tell me where those places are i'll take a crack at it. I've tried changing a few memsets to memset_io in some logical places but that didn't do anything.. |
I don't exactly remember unfortunately (and there's too many modified files in my repo for git to be helpful too). |
I've done exactly that, went through each commit, built it, ran it, no change. |
Just so we're on the same page memset and memcpy are the culprits behind this correct? |
I love Rockchip shenanigans (and RISC-V, whatever... making hardware do things that were not intended is one of the best things to do with computers). What I gave up on with the RK3588 in particular, was not being able to work with newer Linux kernels easily, to work on the latest amdgpu drivers. It seems like there are some ways to get newer kernels now, though I though there were still hardware quirks that limited what GPUs could run on RK3588? Or maybe that's outdated info! |
Generally yes, though some issues also come from struct accesses (those can so far be fixed by marking those structs as |
Hi Jeff! Appologies for the misunderstanding, It's actually quite simple to get newer linux on rockchip devices (Especially these days) I'd be happy to help you get mainline on one of your devices. |
I see, I'll try tomorrow hopefully i can get a different error or something, Thanks! |
@System64fumo - I would like to, at some point. I'm just flooded with stuff to test right now, so if someone does get this stuff set up, if someone could leave a very point-A-to-point-B guide, that'd make it a lot easier to replicate. A lot of times someone says "just grab this thing and that thing, then boom! Done!" (But there are in reality 30 or 40 steps in there) — all these GitHub issues, I try to document (usually in excruciating detail) every single command I run, and where the sources are. Would rather anyone can follow in my footsteps! |
Very well, I planned on releasing documentation for a lot of my linux shenanigans in 2025. I will link you to that when i'm done writing everything and making stuff easier for others to use. |
Update: I got a little farther today after changing ioremap_wc to phys_to_virt in ttm_bo_util.c and changing a few memsets to memset_io in other places, But the driver still fails to load properly:
@Coreforge Any ideas? |
Alright @geerlingguy i've started work on my documentation project I do plan on adding mainline u-boot eventually but until i get to it you might find this related guide helpful even if it's for the OP 5 Plus. If you have any feedback feel free to open an issue or mr. |
Hello, This is most likely the wrong place to document this so feel free to close the issue.
I've just purchased an RX 580 from ali express to test on my rk3588 board
The card seems to work fine but it's complaining about bar allocations.
dmesg:
lspci -v:
After attempting to increase the allocations in the device tree it still shows the same errors, I'm likely not changing it properly, Guidance would be appreciated.
This was done on an Orange Pi 5 Plus running linux 6.13-rc0 with some minor patches for my board.
The text was updated successfully, but these errors were encountered: