Skip to content
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

AMD Ryzen 9000 iGPU #30

Open
jzetterman opened this issue Nov 17, 2024 · 5 comments
Open

AMD Ryzen 9000 iGPU #30

jzetterman opened this issue Nov 17, 2024 · 5 comments

Comments

@jzetterman
Copy link

I've got a 9900X. It detects AMD Granite Ridge, but when selecting use this GPU there's a runtime error causing the script to panic and exit. My second GPU is a Radeon RX 6700XT.

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/HikariKnight/quickpassthrough/internal/pages.genVBIOS_dumper(0xc0003cb1a0)
/home/john/Downloads/quickpassthrough/internal/pages/03_vbios_extract.go:30 +0x65f
github.com/HikariKnight/quickpassthrough/internal/pages.viewGPU(0xc0003cb1a0, {0x0?, 0x0, 0x2?})
/home/john/Downloads/quickpassthrough/internal/pages/02_select_gpu.go:108 +0x4b5
github.com/HikariKnight/quickpassthrough/internal/pages.SelectGPU(0xc0003cb1a0)
/home/john/Downloads/quickpassthrough/internal/pages/02_select_gpu.go:37 +0x105
github.com/HikariKnight/quickpassthrough/internal/pages.Welcome()
/home/john/Downloads/quickpassthrough/internal/pages/01_welcome.go:48 +0x245
github.com/HikariKnight/quickpassthrough/internal.Tui()
/home/john/Downloads/quickpassthrough/internal/ui_main.go:24 +0xc5
main.main()
/home/john/Downloads/quickpassthrough/cmd/main.go:23 +0xa5

@HikariKnight
Copy link
Owner

HikariKnight commented Nov 19, 2024

@jzetterman can you please provide me with the logfile, that way i can see everything the program sees and what you selected 🙂

@jzetterman
Copy link
Author

Here it is. Another thing to note, I recently upgraded my PC, but did not reinstall the OS so I had originally run it before with the 6700XT and a GTX 1050 where the 1050 was the passthrough GPU. For some reason the log file doesn't want to attach, so I've pasted it in below.

sudo cat quickpassthrough_debug.log
[sudo] password for john:
2024/11/17 11:58:51
Welcome to Quickpassthrough 4f51fd5!

2024/11/17 11:58:53
/etc/modprobe.d found on the system
Creating config/etc/modprobe.d

2024/11/17 11:58:53
/etc/default found on the system
Creating config/etc/default

2024/11/17 11:58:53
/etc/mkinitcpio.conf found on the system
Creating config/etc/mkinitcpio.conf

2024/11/17 11:58:53
/etc/default/grub found on the system
Creating config/etc/default/grub

2024/11/17 11:58:53
Executing: utils/ls-iommu -g -F vendor:,prod_name,optional_revision:,device_id

2024/11/17 11:58:53
ls-iommu query returned
IOMMU Group 14: Advanced Micro Devices, Inc. [AMD/ATI]: Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev c1): [1002:73df]
IOMMU Group 28: Advanced Micro Devices, Inc. [AMD/ATI]: Granite Ridge [Radeon Graphics] (rev c2): [1002:13c0]

2024/11/17 11:58:54
Executing: utils/ls-iommu -g -r -i 28 -F vendor:,prod_name,optional_revision:,device_id

2024/11/17 11:58:54
ls-iommu query returned
IOMMU Group 28: Advanced Micro Devices, Inc. [AMD/ATI]: Granite Ridge [Radeon Graphics] (rev c2): [1002:13c0]

2024/11/17 11:58:56
Executing: utils/ls-iommu -g -r -i 28 --id

2024/11/17 11:58:56
ls-iommu query returned
1002:13c0

2024/11/17 11:58:56
Executing: utils/ls-iommu -g -i 28 --rom

2024/11/17 11:58:56
ls-iommu query returned

@jzetterman
Copy link
Author

Got it to attach, just had to change the permissions on the file.

quickpassthrough_debug.log

@HikariKnight
Copy link
Owner

@jzetterman what is the output given by utils/ls-iommu -g -i 28 --rom run from the same directory as the quickpassthrough binary?
want to rule out the issue being in the ls-iommu project

@jzetterman
Copy link
Author

jzetterman commented Nov 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants