Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
24 user(s) are online (18 user(s) are browsing Forums)

Members: 2
Guests: 22

kishigo, eliyahu, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 8 9 10 (11) 12 »
Re: QEMU GPU vfio-pci pass through
Not too shy to talk
Not too shy to talk


See User information
@white

only remove unnecessary devices, you don't need them anymore and they may cause problems:
-device VGA,romfile=/home/white/Scaricati/VGABIOS-lgpl-latest.bin
-device sm501

and add only ATI ( -device vfio-pci)
.

Go to top
Re: QEMU GPU vfio-pci pass through
Just can't stay away
Just can't stay away


See User information
@white
Use the same qemu arguments as for the Pegasos2 emulation, only differences
-M amigaone instead of -M pegasos
and
-bios u-boot-amigaone.bin instead of -bios pegasos2.rom

And of course a different disk image for the boot partition as a Pegasos2 system can't work with AmigaOne emulation (different Kickstart/kernel, different hardware drivers).

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


See User information
@smarkusg
@joerg

Could you write me a simpler example
it becomes difficult for me to understand and add only ATI ( -device vfio-pci)

The complete line would be ideal
so I understand better


I already have the system ready
I need the new command line to pass the GPU

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


See User information
@white
sudo qemu-system-ppc -M amigaone -m 1024 -bios /home/white/Scaricati/u-boot-amigaone.bin  -serial stdio -drive media=disk,format=raw,file=/home/white/Scaricati/32gb.raw -drive media=disk,format=raw,file=/home/white/Scaricati/coffin.raw -netdev user,id=net -device rtl8139,netdev=net -vga none -device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on -device vfio-pci,host=06:00.1,bus=pci.0 -device bochs-display,romfile=""
But that will not work, you need an AmigaOne boot partition (with AmigaOne kernel, a1ide.device.kmod instead of peg2ide.device.kmod, etc.) instead of the Pegasos2 /home/white/Scaricati/32gb.raw one.

Go to top
Re: QEMU GPU vfio-pci pass through
Not too shy to talk
Not too shy to talk


See User information
@white

ATI=AMD (somehow for me AMD cards will always be ATI )
your line:

-device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on -device vfio-pci,host=06:00.1,bus=pci.0




example

sudo qemu-system-ppc -M amigaone -bios /home/white/Scaricati/u-boot-amigaone. bin - -m 1024 -serial stdio -vga none -device rtl8139,netdev=mynet0 -netdev user,id=mynet0 -drive media=disk,format=raw,file=/home/white/Scaricati/ONE-32gb.raw -device vfio-pci,host=06:00.0,bus=pci.0, x-vga=on,multifunction=on -device vfio-pci,host=06:00.1,bus=pci.0

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


See User information
@smarkusg
@joerg


Now I try but it doesn't seem to work for me
I'll try several times to find out how to pass the GPU

Here my AmigaONE system has been ready for years
I just need to configure vfio-pci but I don't know how to do it.

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
@white
Quote:
I moved the 3 boot files, bboot boot.fth, and Kickstart.zip
In the main AmigaOS disk where amigaboot.of is
it gives me this error:

ok boot hd:0 bboot.fth
error: error while trying to load or boot


Looks like you did not copy it to the right volume. If you have a small boot volume it is where the boot files should be not on SYS: and the boot volume has to be FFS I think. You've previously managed to load amigaboot.of with similar command so copy bboot files to the same place where that amigaboot.of is. There may be multiple places but hd:0 is the first partition on the harddisk which should be the boot volume so that's where you have to copy files for the firmware. You can also try in firmware ok prompt
cd hd
ls

it should list partitions and show you the volume label of partition 0 where you have to put the files.

It may also be that harddisks change order when you change order of -drive options in QEMU command so maybe it's not the first harddisk what you want. To prevent that use
-drive media=disk,index=0,format=raw,file=hd1.raw -drive media=disk,index=1,format=raw,file=hd2.raw
to make sure the disks are in the right order but if you did not swap them in QEMU command they should be in the right order.

I think we should finish with pegasos2 now that it almost works before starting again with a different version so don't give up on it yet.

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


See User information
@Balaton
You're right, I was thinking about the AmigaOS partition
I realized it's the hidden partition I had created when I partitioned the disk the first time.
I hope it's still there

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
Not too shy to talk
Not too shy to talk


See User information
@white

Quote:
Now I try but it doesn't seem to work for me


you have to believe that it works
check e.g. dmesg if you are sure that your card does ‘lifts / resets’ and that you have gpu passthrough working at all.

Go to top
Re: QEMU GPU vfio-pci pass through
Just can't stay away
Just can't stay away


See User information
@white
Quote:
Here my AmigaONE system has been ready for years
Looks like you have "-device sm501" in the qemu command line for the AmigaOne emulation, remove that and add "-device vfio-pci,host=06:00.0,bus=pci.0,x-vga=on,multifunction=on -device vfio-pci,host=06:00.1,bus=pci.0"
Also make sure your AmigaOne boot partition includes the RadeonRX driver from Enhancer Software in Kickstart and Kickstart/Kicklayout.

But as @balaton wrote it's better to continue with the Pegasos2 emulation for now, that's the only one which was used successfully with vfio-pci until now, and trying to get both AmigaOne and Pegasos2 emulation working with vfio-pci pass-through is twice as much work.
You can try AmigaOne emulation after you got Pegasos2 emulation working, to check if it makes any difference.

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


See User information
@joerg
@smarkusg

Thanks for the advice, I'll try it now

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
@Balaton

PEGASOS 2
Now it works

I leave you the startup if it can be useful
but the screen remains black in ( qemu 10 rc3 )

are there other steps to do ?
----------------------------------------------------------------


ok boot hd:0 bboot.fth

OF interface initialized
BBoot 0.8 (15.3.2025)
/pci@80000000: io fe000000/10000 mem 80000000/40000000
/pci@80000000/host: 0:0.0 11ab:6460 60000 | 646011ab 0000 0
/pci@80000000/ethernet: 0:1.0 10ec:8139 20000 | 813910ec 0109 0
1000810 0 fe001100 0 100 | 00001101
2000814 0 80000000 0 100 | 80000000
2000830 0 80040000 0 40000 | 80040000
/pci@80000000/display: 0:2.0 1234:1111 38000 | 11111234 0009 0
42001010 0 81000000 0 1000000 | 81000008
2001018 0 80001000 0 1000 | 80001000
/pci@80000000/isa: 0:c.0 1106:8231 60100 | 82311106 0000 f
/pci@80000000/ide: 0:c.1 1106:0571 1018f | 05711106 010e 87
1006110 0 fe001000 0 8 | 00001001
1006114 0 fe00100c 0 4 | 0000100d
1006118 0 fe001010 0 8 | 00001011
100611c 0 fe00101c 0 4 | 0000101d
1006120 0 fe001020 0 10 | 00001021
/pci@80000000/usb: 0:c.2 1106:3038 c0300 | 30381106 0409 7
1006220 0 fe001040 0 20 | 00001041
/pci@80000000/usb: 0:c.3 1106:3038 c0300 | 30381106 0409 7
1006320 0 fe001060 0 20 | 00001061
/pci@80000000/other: 0:c.4 1106:8235 68000 | 82351106 0009 0
/pci@80000000/sound: 0:c.5 1106:3058 40100 | 30581106 0309 4
1006510 0 fe001200 0 100 | 00001201
1006514 0 fe001030 0 4 | 00001031
1006518 0 fe001034 0 4 | 00001035
/pci@80000000/pci1106,3068: 0:c.6 1106:3068 78000 | 30681106 0309 30
/pci@c0000000: io f8000000/10000 mem c0000000/20000000
/pci@c0000000/host: 0:0.0 11ab:6460 60000 | 646011ab 0000 7
/pci@c0000000/display: 0:1.0 1002:6798 30000 | 67981002 0109 0
Truncated 64 bit BAR 43000810
Truncated 64 bit BAR 03000818
42000810 0 c0000000 0 10000000 | c000000c
2000818 0 d0000000 0 40000 | d0000004
1000820 0 f8001000 0 100 | 00001001
2000830 0 d0040000 0 20000 | d0040000
/pci@c0000000/pci1002,AAA0: 0:2.0 1002:aaa0 40300 | aaa01002 0209 0
Truncated 64 bit BAR 03001010
2001010 0 d0060000 0 4000 | d0060004
Checking initrd at 0x600000-0x94a3a0 (3449760 bytes)
Found zip with 66 entries
Parsing Kicklayout at 0x94a3a0 (3287 bytes)
Booting config 1: AmigaOS_4.1_Final_Edition
Loading loader.of
Loading kernel
Loading FastFileSystem
Loading SmartFilesystem
Loading JXFileSystem
Loading peg2ide.device.kmod
Loading battclock.resource.kmod
Loading bootmenu.kmod
Loading bootimage
Loading CDFileSystem
Loading con-handler.kmod
Loading console.device.kmod
Loading diskboot.kmod
Loading diskboot.config
Loading diskcache.library.kmod
Loading dos.library.kmod
Loading elf.library.kmod
Loading env-handler.kmod
Loading FileSystem.resource.kmod
Loading gadtools.library.kmod
Loading gameport.device.kmod
Loading graphics.library.kmod
Loading hunk.library.kmod
Loading input.device.kmod
Loading intuition.library.kmod
Loading it8212ide.device.kmod
Loading keyboard.device.kmod
Loading keymap.library.kmod
Loading lsi53c8xx.device.kmod
Loading newlib.library.kmod
Loading nonvolatile.library.kmod
Loading nvram.config
Loading ps2.resource.kmod
Loading ram-handler.kmod
Loading ramdrive.device.kmod
Loading ramlib.kmod
Loading shell.kmod
Loading sii0680ide.device.kmod
Loading sii3112ide.device.kmod
Loading sii3114ide.device.kmod
Loading sii3512ide.device.kmod
Loading strap.kmod
Loading timer.device.kmod
Loading PCIGraphics.card
Loading ATIRadeon.chip
Loading 3dfxVoodoo.chip
Loading siliconmotion502.chip
Loading petunia.library.kmod
Loading usbresource.library
Loading usbsys.device
Loading hub.usbfd
Loading bootmouse.usbfd
Loading bootkeyboard.usbfd
Loading massstorage.usbfd
Loading uhci.usbhcd
Loading ohci.usbhcd
Loading ehci.usbhcd
Loading mounter.library
Starting exec

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


See User information
@white
Quote:
Loading loader.of
Loading kernel
...
Loading mounter.library
Starting exec
No RadeonRX.chip driver!?
The ATIRadeon.chip driver is for ancient R100/R200 ATI PCI/AGP cards like the 9250 only, for HD/RX PCIe gfx cards you need RadeonHD.chip or RadeonRX.chip instead.
Copy RadeonRX.chip from Enhancer Software to your Kickstart directory and add
MODULE Kickstart/RadeonRX.chip
to Kickstart/Kicklayout.
Check for example https://www.acube-systems.biz/download/Radeon_QuickGuide_v.1.0.pdf
It's for Sam4x0 systems, but it's the same on all AmigaOS 4.1 systems, incl. qemu emulation.

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


See User information
@white
You seem to be missing the correct driver from Kickstart.zip. I don't see RadeonHD.chip and RadeonRX.chip in the list printed by BBoot. The Kickstart.zip should be the zip of the Kickstart directory on your boot volume or wherever you've installed the drivers from Enhancer including the drivers (also in Kicklayout). To get more information from AmigaOs you can enter a few commands at firmare ok prompt before the boot command:
120 nodefault-bytes os4_commandline
setenv os4_commandline serial debuglevel
=3
boot hd
:0 bboot.fth

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


See User information
@joerg
@Balaton

Maybe I should go and review the bios options ?
BAR enable etc. ?

Because at the moment only IOMMU and AMD-vi are activated
Now I also have to understand if it is convenient to use the Radeon GPU connected to the television as a second Monitor (TV) or is it better to work without the second Monitor (TV).

What is better to do ?
Should I look for some documentation on how to use a second Monitor for the Vfio GPU ?

Having never had Real Amiga4.1 I have no experience with Radeon drivers.
But I can modify everything without problems
So I read what you wrote and I will do some tests.

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


See User information
@white
Don't try changing something else for now, what you have to do is just to copy RadeonRX.chip into the Kickstart directory and add it to Kickstart/Kicklayout.
Important for the Pegasos2 emulation using bboot and kickstart.zip: It doesn't use the files in Kickstart on the boot partition but the contents of kickstart.zip.
Whenever you change something in the Kickstart directory or the Kickstart/Kicklayout file your need to create a new kickstart.zip file with the current contents of it.

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


See User information
@Balaton
@Joerg

Ok done,
Now on the second Monitor (TV) there is the AmigaOS Desktop
But it is blocked and not loaded completely.

Startup:

ok boot hd:0 bboot.fth

OF interface initialized
BBoot 0.8 (15.3.2025)
/pci@80000000: io fe000000/10000 mem 80000000/40000000
/pci@80000000/host: 0:0.0 11ab:6460 60000 | 646011ab 0000 0
/pci@80000000/ethernet: 0:1.0 10ec:8139 20000 | 813910ec 0109 0
1000810 0 fe001100 0 100 | 00001101
2000814 0 80000000 0 100 | 80000000
2000830 0 80040000 0 40000 | 80040000
/pci@80000000/display: 0:2.0 1234:1111 38000 | 11111234 0009 0
42001010 0 81000000 0 1000000 | 81000008
2001018 0 80001000 0 1000 | 80001000
/pci@80000000/isa: 0:c.0 1106:8231 60100 | 82311106 0000 f
/pci@80000000/ide: 0:c.1 1106:0571 1018f | 05711106 010e 87
1006110 0 fe001000 0 8 | 00001001
1006114 0 fe00100c 0 4 | 0000100d
1006118 0 fe001010 0 8 | 00001011
100611c 0 fe00101c 0 4 | 0000101d
1006120 0 fe001020 0 10 | 00001021
/pci@80000000/usb: 0:c.2 1106:3038 c0300 | 30381106 0409 7
1006220 0 fe001040 0 20 | 00001041
/pci@80000000/usb: 0:c.3 1106:3038 c0300 | 30381106 0409 7
1006320 0 fe001060 0 20 | 00001061
/pci@80000000/other: 0:c.4 1106:8235 68000 | 82351106 0009 0
/pci@80000000/sound: 0:c.5 1106:3058 40100 | 30581106 0309 4
1006510 0 fe001200 0 100 | 00001201
1006514 0 fe001030 0 4 | 00001031
1006518 0 fe001034 0 4 | 00001035
/pci@80000000/pci1106,3068: 0:c.6 1106:3068 78000 | 30681106 0309 30
/pci@c0000000: io f8000000/10000 mem c0000000/20000000
/pci@c0000000/host: 0:0.0 11ab:6460 60000 | 646011ab 0000 7
/pci@c0000000/display: 0:1.0 1002:6798 30000 | 67981002 0109 0
Truncated 64 bit BAR 43000810
Truncated 64 bit BAR 03000818
42000810 0 c0000000 0 10000000 | c000000c
2000818 0 d0000000 0 40000 | d0000004
1000820 0 f8001000 0 100 | 00001001
2000830 0 d0040000 0 20000 | d0040000
/pci@c0000000/pci1002,AAA0: 0:2.0 1002:aaa0 40300 | aaa01002 0209 0
Truncated 64 bit BAR 03001010
2001010 0 d0060000 0 4000 | d0060004
Checking initrd at 0x600000-0xc5c2c0 (6668992 bytes)
Found zip with 70 entries
Parsing Kicklayout at 0xc5c2c0 (3303 bytes)
Booting config 1: AmigaOS_4.1_Final_Edition
Loading loader.of
Loading kernel
Loading FastFileSystem
Loading SmartFilesystem
Loading JXFileSystem
Loading peg2ide.device.kmod
Loading battclock.resource.kmod
Loading bootmenu.kmod
Loading bootimage
Loading CDFileSystem
Loading con-handler.kmod
Loading console.device.kmod
Loading diskboot.kmod
Loading diskboot.config
Loading diskcache.library.kmod
Loading dos.library.kmod
Loading elf.library.kmod
Loading env-handler.kmod
Loading FileSystem.resource.kmod
Loading gadtools.library.kmod
Loading gameport.device.kmod
Loading graphics.library.kmod
Loading hunk.library.kmod
Loading input.device.kmod
Loading intuition.library.kmod
Loading it8212ide.device.kmod
Loading keyboard.device.kmod
Loading keymap.library.kmod
Loading lsi53c8xx.device.kmod
Loading newlib.library.kmod
Loading nonvolatile.library.kmod
Loading nvram.config
Loading ps2.resource.kmod
Loading ram-handler.kmod
Loading ramdrive.device.kmod
Loading ramlib.kmod
Loading shell.kmod
Loading sii0680ide.device.kmod
Loading sii3112ide.device.kmod
Loading sii3114ide.device.kmod
Loading sii3512ide.device.kmod
Loading strap.kmod
Loading timer.device.kmod
Loading PCIGraphics.card
Loading ATIRadeon.chip
Loading RadeonHD.chip
Loading RadeonRX.chip
Loading 3dfxVoodoo.chip
Loading siliconmotion502.chip
Loading petunia.library.kmod
Loading usbresource.library
Loading usbsys.device
Loading hub.usbfd
Loading bootmouse.usbfd
Loading bootkeyboard.usbfd
Loading massstorage.usbfd
Loading uhci.usbhcd
Loading ohci.usbhcd
Loading ehci.usbhcd
Starting exec


note:

I have a folder with the firmware of "Polaris" version 10-11-12
can they be useful in some way ?

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
What does it mean that it's not loaded completely and blocked? You can try setting the os4_commandline as I wrote above to get some debug messages from AmigaOS on serial. You need an input device to operate the virtual machine so you can click in the bochs-display window where you typed the " /failsafe" io command and as long as you're in that window mouse and keyboard input would go to the guest otherwise you can't move mouse or type in the guest without also passing through some input devices. Think of this as you have a virtual machine with the passed through card plugged into it but you have no keyboard or mouse plugged in it so you can see it but you need to pass the input from host somehow which can be done through the emulated bochs-display. With an emulated graphics card you'd also have the output in same window but now you have a separate card for output.

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


See User information
@Balaton
it looks like this:

now I'll try to do various tests
Thanks

but it's blocked it doesn't load the Workbench completely from the photo taken with the phone

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
@white
At this point it's probably up to the AmigaOS experts to find out what's missing. Does Enhancer update the kernel or some other modules in Kickstart or only adds the RadeonRX.chip driver? If you didn't take Kickstart.zip from the AmigaOS install where you installed Enhancer but added it manually maybe there's some mismatch between the driver and other modules? Try zipping the actual Kickstart drawer on the boot volume that amigaboot.of would load or that on the SYS: volume wherever that is on pegasos2 just to make sure there isn't something missing from the Kickstart.zip in case you used an older Kickstart.zip and added the driver to that. If you've installed updates or Enhancer you need to redo the Kickstart.zip to match what's on the hard disk of the virtual machine. Other than that setting the os4_commandline to get messages may print some error to give a clue.

Go to top

  Register To Post
« 1 ... 8 9 10 (11) 12 »

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project