Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
26 user(s) are online (16 user(s) are browsing Forums)

Members: 1
Guests: 25

Futaura, more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 4 (5)
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@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.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

You're right I tried with the CD with Silicon
the audio is not heard if I use ( sudo )
while instead the audio is heard if I do NOT use ( sudo )

How can I understand what is happening ?


if I don't use ( SUDO ) it gives me permission denied:

qemu-system-ppc -M amigaone -m 2048 -bios /home/white/Scaricati/Radeon/u-boot-amigaone.bin -serial stdio -drive media=disk,format=raw,file=/home/white/Scaricati/Radeon/1ONE-32gb.raw -vga none -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=""
qemu-system-ppc: -device vfio-pci,host=05:00.0,bus=pci.0,x-vga=on,multifunction=on: vfio 0000:05:00.0:

Could not open '/dev/vfio/15': Permission denied

i only use sudo when i compile qemu

sudo make install -j16

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-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@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.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

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.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@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.)

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Balaton

ok now I'll read a little

[white@qemu-amiga ~]$ ls -l /dev/vfio
totale 0
crw------- 1 root root 242, 0 25 apr 23.58 15
drwxr-xr-x 2 root root 80 25 apr 23.58 devices
crw-rw-rw- 1 root root 10, 196 25 apr 23.58 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.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Home away from home
Home away from home


See User information
@balaton
Quote:
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.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@Joerg
@Balaton

I was reading about Arch Linux

https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF

there is this script

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)"

function bind_vfio {
echo "$gpu" > "/sys/bus/pci/devices/$gpu/driver/unbind"
echo "$aud" > "/sys/bus/pci/devices/$aud/driver/unbind"
echo "$gpu_vd" > /sys/bus/pci/drivers/vfio-pci/new_id
echo "$aud_vd" > /sys/bus/pci/drivers/vfio-pci/new_id
}

function unbind_vfio {
echo "$gpu_vd" > "/sys/bus/pci/drivers/vfio-pci/remove_id"
echo "$aud_vd" > "/sys/bus/pci/drivers/vfio-pci/remove_id"
echo 1 > "/sys/bus/pci/devices/$gpu/remove"
echo 1 > "/sys/bus/pci/devices/$aud/remove"
echo 1 > "/sys/bus/pci/rescan"
}

sudo chmod +x audio.sh
./audio.sh

But it doesn't work for me.

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-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
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.
Go to top
Re: QEMU GPU-PCIe AmigaONE
Quite a regular
Quite a regular


See User information
@white
Quote:
But it doesn't work for me.

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.

Go to top
Re: QEMU GPU-PCIe AmigaONE
Just can't stay away
Just can't stay away


See User information
@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

considered the bible of linux

https://www.lnf.infn.it/computing/doc/AppuntiLinux.pdf

the complete volume is 500 megabytes

https://ia801205.us.archive.org/3/item ... aLibera/020131111a.a2.pdf

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.
Go to top

  Register To Post
« 1 2 3 4 (5)

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project