Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
32 user(s) are online (22 user(s) are browsing Forums)

Members: 0
Guests: 32

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 (3)
Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


See User information
The system I'm using has a Ryzen 5 5600x, and two GPUs:

XFX Radeon RX 580
Sapphire Radeon R9 270X

I installed ArchLinux to use Qemu 9.2.0 and set up GPU passthrough with VFIO. While trying to get the passthrough working, I wanted to use R9 270x with Amiga side. The R9 270x video and audio components were tied up in IOMMU groups with other devices and QEMU didn't like that, so I then implemented ACS write patch to break out each device into its own group (using linux-zen kernel).

I never got it to work, so I swapped to using the RX580 (by changing the vfio ids in the grub line, running mkinitcpio again) and I was able to finally see the Amiga boot on it's own monitor, but now the mouse is frozen in the upper left. I tried the bochs-display to capture mouse events but there was an error ... can't reproduce it now but mouse still frozen. Will next try to pass through a specific mouse device on the command line.

Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@themamboman

Could you link me the model of yours (the one you are using) XFX Radeon RX 580
on Amazon so I understand how much I have to spend to get it and the exact model.

I recently got the rtx 4060
so I have rtx 2060 aside that I wanted to keep but I can sell it.
And eventually get the XFX Radeon RX 580.

Don't worry I'm not a person attached to money but I would like to understand which is the exact model to buy for qemu.

also I have the version of "Enhancer Software 2.2 for AmigaOS 4.1"
are the drivers included in that package ?

What I would like to use is AmigaOS 4.1 as a system and system acceleration for video and applications in general. (e-uae)
I am not interested in games that part is not important to me.


Thanks.


Edited by white on 2025/2/20 14:48:28
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
Today I backed up my system.
I had configured "VSphere" some time ago but I needed a second graphics card to use it and so I did my tests on this.
The discussion is broad and I will not dwell on this.

Also I was using the new:
https://www.techpowerup.com/download/nvidia-dlss-dll/
version (310.2) for DLSS.
( to enable dlss on some games (not multiplayer could lead to a "ban" because it is seen as tampering with the original game )

Now I use an ASUS TUF GAMING B550 with the Ryzen 5800 with the latest updated bios (3611).
I have 2 graphics cards 4060 and 2060

And I was doing some tests with some settings in the bios

PCI Subsystem
4g Decoding ENABLE
Resize BAR ENABLE
SR-IOV Support ENABLE

with these settings enabled in BIOS

4g Decoding ENABLE
Resize BAR ENABLE

the usb stick could not boot for the backup.
I have to see if this also happens with the "mouse".

Setting both to DISABLE the USB stick would boot normally again.

I don't know if you have these settings on your motherboard.

Let me know what card you use as soon as you can also a link on ebay to understand the model to buy.

Thanks.

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


See User information

Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@themamboman

Thanks
it's around 100 euros used ( it's equivalent to a geforce1060 )
release date around 2017.
I'll post the video the model you indicated should be this one:

https://www.youtube.com/watch?v=C-loUscDLdw

at minute 2:17 you can see the label


note:
Keep me posted on your tests.
I think I'll buy it at the end of the month.

Thanks


Edited by white on 2025/2/22 7:11:23
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
here is the problem that occurs using:
PCI Subsystem
4g Decoding ENABLE
Resize BAR ENABLE

when I connect the USB stick to use in this case "TrueImage"

if I disable it:
PCI Subsystem
4g Decoding DISABLE
Resize BAR DISABLE

the problem does not occur and the boot proceeds without problems.

Resized Image

Resized Image


In subsequent versions Acronis has solved the problem starting from the "2022" version in my possession.
All versions are regularly purchased and therefore original.


Edited by white on 2025/2/22 8:33:29
Edited by white on 2025/2/22 8:35:45
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
the power supply is this:
Corsair RM750x 750 Watt with 80 PLUS® Gold certification

in fact with the 4060 the consumption has dropped and it works at PCIe 8x:

worst case scenario I'll resell it if it doesn't work with qemu

Resized Image

Resized Image

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
I have a somewhat stupid question to ask,

At the moment I only have one monitor
AOC 27G2U/BK 27 Full-HD Gaming Monitor (1 ms, 144 Hz)
here is the photo taken on the internet to understand better

Do I need a second Monitor?
Because at the moment I only have this one.
In case a TV with HDMI I imagine it should be fine.

Because I have never done a configuration with 2 cards
So I install native Linux with basic NVidia drivers
and then with qemu I do the Passthrough directly pointing to the Radeon 580 card ?

Clearly I do not need a step by step guide.
But just understand the principle of how I have to set up the machine on the hardware side.

Thanks for any suggestions.

Resized Image

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@themamboman
Maybe you can try adding -device usb-mouse with bochs-display and see if that works better. If not you have two options, either use USB pass through with -device usb-host,some-more=parameters-here to pass one USB device but then you likely need to add a udev rule in /etc/udev/rules.d to tell the host to not use this device so it can be used by the guest and won't control your host mouse. I don't know what to put in such udev rule but there should be some docs online on how to pass a USB device with -device usb-host. Or you could add a card with USB ports and pass that through with vfio the same way as the GPU so anything you plug into that card would be controlled by the guest. For that you may need such USB card supported by AmigaOS and a free slot that can be used with vfio for this.

Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@Balaton
do you have any advice for the questions I asked about setting up the hardware ?

Thanks.

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@themamboman

Here you can find some tips on how to create udev rules for an audio usb stick and other tips if they are useful.
I also made a video I must have it somewhere if you need it.

https://eab.abime.net/showthread.php?t=106392&page=5

What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@white
I have no time to help you setting this up. I should write some docs on this but I also don't have time for that. But here are some quick point for consideration.

- If you don't have Enhancer you can maybe only use older RadeonHD cards without 3D. 3D drivers and RadeonRX are in Enhancer so don't bother buying such cards unless you have Enhancer. For first experimenting a RadeonHD card may do which are very cheap.
- You may get problems if using on-board Intel GPU as these don't seem to work well with the VGA part so you may need two cards in this case and disable Intel GPU otherwise the BIOS of the passed through card can't access the VGA registers as these are held by the Intel GPU and can't correctly init the card so it won't work.
- If you have a new card with gigabytes of RAM that may need the 4G and resize BAR options as you've found but this may be a problem with AmigaOS which may need the opposite setting so in this case you may need another machine with two older cards or another older card but you may not want to downgrade your GPU for this.
- You don't need more monitors, you can connect the second card to another input of your monitor then switch between inputs on the monitor. It's not very convenient but enough for testing.
- There are probably more points in this and other threads I forgot by now.

Go to top
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@balaton
Thanks,
Perfect

I don't have integrated graphics cards, the ryzen 5800x doesn't have them.
And I would like to use Linux with Nvidia drivers (rtx 4060)
as the main system.

My motherboard supports 2 graphics cards

and then with qemu I try to do the passthrough on the radeon 580 gpu ?

I have the 2.2 package of Enhancer

In summary I use Linux as I always have with Nvidia drivers (4060)
and then via qemu I passthrough to the 580 mounted on the same motherboard

Thanks

Resized Image


Edited by white on 2025/2/22 14:34:42
Edited by white on 2025/2/22 14:39:57
What do you see when you close your eyes ?
I see light, lots of light
I see you, dad
And I see mommy too
And I see me and we are together
And we play forever.
Go to top

  Register To Post
« 1 2 (3)

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project