@white You can try same command with '-device vfio-pci,host=05:00.0,bus=pci.0,x-vga=on,multifunction=on -device vfio-pci,host=05:00.1,bus=pci.0 -device bochs-display,romfile=""' part replaced with '-device sm501' then try with and without sudo and see if sound works or not. If it does not work with sudo then that's the problem and has nothing to do with vfio.
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.
@white I'm not trying to explain, it would take too long. In short, sudo means run as root user. The root user is normally allowed to do everything but maybe not always. Your Linux distro has security settings to only allow connections to your X session as the user who is logged in so other users cannot connect to the sound server. To solve it probably the simplest is to use the passed through audio function of the Radeon card (the -device vfio-pci,host=05:00.1 part in your command) then set in AmigaOS to use HDMI output and then it should go where the picture goes so on the TV or monitor where the Radeon is connected. At least assuming that HDMI output works on AmigaOS and also works with this setup which is untested. If that does not work you can try using different audio backends in QEMU but that's harder to explain.
the option in the kernel is like this now amd_iommu=on iommu=pt
I read that you can also do amd_iommu=on iommu=soft
what is it for ?
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.
@white No idea but there's a documentation link at kernel.org then look for Administration, kernel boot parameters or something like that, all of these are documented there. (In any case won't help sound problems.)
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.
To solve it probably the simplest is to use the passed through audio function of the Radeon card (the -device vfio-pci,host=05:00.1 part in your command) then set in AmigaOS to use HDMI output and then it should go where the picture goes so on the TV or monitor where the Radeon is connected. At least assuming that HDMI output works on AmigaOS and also works with this setup which is untested.
The audio part of Radeon HD/RX gfx cards isn't supported on AmigaOS, you have to use motherboard audio (not included on all systems) or a PCI sound card.
In case of wanting to keep the HDAudio in the host it can be detached by using the kernel module parameters gpu_bind=0 for snd-hda-core and enable_acomp=n for snd-hda-codec-hdmi.
You can use this bash script without kernel vfio-pci ID. GPU can function in host after calling unbind_vfio.
#!/bin/bash
gpu="0000:05:00.0" <<---- CHANGE THIS aud="0000:05:00.1" <<---- CHANGE THIS gpu_vd="$(cat /sys/bus/pci/devices/$gpu/vendor) $(cat /sys/bus/pci/devices/$gpu/device)" aud_vd="$(cat /sys/bus/pci/devices/$aud/vendor) $(cat /sys/bus/pci/devices/$aud/device)"
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.
Ok guys I'm going to retire, I don't feel like testing anymore, something isn't working. There are few of us and no one puts a single line of Linux configuration. I understand that passing a virtual hard disk can be illegal. But now the configuration problem with RadeonHD I solved it, my system is fast and pleasant for me regardless of the Benchmark scores, videos, demos and the system is fluid but it's without audio. It's a bit like what happened with Morphos many years ago.
Now I'm going to delete everything and play a few games of some video game.
But as I said in the Topic, put a shred of Linux configuration like I did. This is also part of emulation.
There are 3 commands in total to isolate the GPU.
You don't have to write who knows what.
Peace to all.
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.
Maybe because this script is not relevant to your problem. As I said before the sound issue is not related to vfio therefore also won't be fixed but anything vfio related. Joerg said that HDMI audio does not work in AmigaOS so the only other way left is using different audio backend for QEMU that does not connect to a sound server. Try -audio alsa,id=audio0,out.try-poll=off option. This is mentioned on the AOS problems page of my docs.
@Balaton Thanks, I marked the audio you suggested in the emulation notes. I will resume later I have already dismantled everything. I'm taking a break.
maybe the emulation will evolve in the meantime.
I started the demos the videos etc. they are fluid even the workbench is fluid at 32bit with Composite.
Thanks again for your work. I always appreciate it.
But something more on Linux could be put once the solutions have been found. I also understand that not everyone does this type of emulation.
But as in "Notes for Free Computing" a Tome in .pdf on Linux written by an Italian
I think that a reference to the isolation of the GPU should be there since now it is the central pivot of the emulation. Obviously when you have time or also written by others.
In reality I have tried in every way and the audio is not heard I also tried to invert the Monitor and the TV but the result is identical.
The commands are written in the various posts but something official would be needed
Thanks again, I'll come back to it later
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.
@white When did you check my qmiga.codeberg.page the last time? Recently I added a page on VFIO passthrough. But it's not really possible to write a step by step guide because each distro is a bit different and every motherboard, BIOS and graphics card has its own quirks so it's likely that it would break somewhere then you will have to find out how to fix that on your system. For example nobody else got the sound problem you had so that's just something about your host Linux or QEMU config that others don't have so would be missing from a guide written by somebody who did not meet that problem.
so that should be the reason why I have to give the command ( sudo ) and the audio doesn't work.
Edited by white on 2025/4/27 9:29:00 Edited by white on 2025/4/27 9:30:16
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.
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.
@white It is possible to set up vfio to work with non-root user as well but I did not mention that in the docs to keep it simple and not confuse people more. Besides changing the access mode to allow a group to write to the appropriate vfio files (which is best done from an udev rule) you may also need to dump the ROM of the card and pass that with romfile to vfio-pci on QEMU command line as it may not be able to use the ROM of the card when not running as root. But you can't dump ROM with vfio-pci so you have to unbind vfio-pci driver first then dump the ROM then bind to vfio-pci again (or get the ROM before assigning to vfio-pci). I don't think you can manage to do this from any short description I could write so just try the -audio option I've written above in post #90 which should also fix the sound issue without changing anything from what already works.
@themamboman https://www.amigans.net/modules/newbb/ ... id=153755#forumpost153755 I also have this link on my page: https://www.amigaos.net/content/4/where-buy which I hope is still valid. The one US distributor listed there seems to have only pegasos2 and sam460 versions. Pegasos2 version should also work with some more tweaking but same performance as amigaone version. The emulation of amigaone and pegasos2 is almost the same in QEMU so only difference is the north bridge and whatever differs in AmigaOS.
So far, only seeing Alinea and Amedia-computers show having the AmigaOne version in stock. However, Alinea says it doesn't have the quantity I want (jus 1), and Amedia says no carrier to deliver to that address (I used 2 different addresses in 2 different states.
I've purchased copies for Amiga Classic, Pegasos2 and Sam460. I think it's crazy that there have to different versions for each. I'm guessing it just a bootloader difference.
If anyone knows what the differences are or where to find one that ships to the US, I would be very appreciative. I'm considering trying the same gpu (Asus HD 7750) that smarkusg was using for his test but with the pegasos2 to see if that works better than the r9 270x and 2 different RX 580s I've tried.
@themamboman Currently the product is not available at Alinea Computer. It is possible that a lot of people have added it to their shopping cart. Try writing an email to Alinea Computer. I have bought 3 systems for Amiga from them. They answer email even when I didn't ask about things related to what I bought. I like this store very much
If it will not be possible to ship to the USA always if you have family or friends in Europe ask them for help. With the CD they will receive a code - you will register the product on the Hyperion Entertainment website and will be able to download the CD image.
It is possible that the US trade war is counterproductive. No one wants to ship stuff because of the tariffs and the problems that come with it .... But this is politics and we don't write about it on this forum