Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
36 user(s) are online (21 user(s) are browsing Forums)

Members: 0
Guests: 36

more...

Support us!

Headlines

 
  Register To Post  

« 1 2 3 (4)
Re: QEMU GPU vfio-pci pass through
Quite a regular
Quite a regular


See User information
@themamboman
You could set the bochs-display to full screen either with Ctrl-Alt-F or with a QEMU command line option so the mouse capture works on the full screen. As for the slowness it was found before but I don't know the reason. You run it with bboot which means the card's BIOS wasn't run so it was only init by the AtomBIOS parsed in the AmigaOS driver. This may be enough but it's possible the card needs to be init first by its BIOS so you could try using pegasos2.rom (then you still need bboot with bboot.fth to fix IRQs and 64bit BARs). Also look in Linux logs for vgaarb logs to make sure the passed through card's VGA ports are selected and not shadowed by some other card (this is what does not work with Intel integrated GPUs) because then the card's BIOS may not correctly run.
To debug the PCIE_CONFIG_SPACE_SIZE assert issue you could run QEMU under gdb (add gdb --args before the QEMU command then start in (gdb) with 'run') then you get a gdb prompt at the assert and can do backtrace to see where this was called. There a few places vfio calls this but I don't know how to fix that, you can try reporting at the QEMU mailing list or bug tracker with the QEMU command, backtrace and the error you get describing how you got the error.

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


See User information
@white
You may want the opposite, not using resizeable BAR with older RX card but make sure it's not using resizable BAR when passed through. One way to make sure is to disable it in BIOS but if your other card needs it this may not work. Consider that AmigaOS is 32 bit so can't access things above 4GB so you have to make sure the passed card can be mapped within the 4GB limit. That's why above 4GB decoding and resizeable BAR options may interfere. You could search for passing through GPUs to 32 bit (older) Windows guests, the problems may be similar with those than with AmigaOS. I don't know much about this so I can't help. I think getting an older RadeonHD card should be less problematic for pass through at first than getting the newest and biggest card AmigaOS can support but you can try it.

Why did you need UAE for AmiStore? Doesn't that run on AOS4 in QEMU too?

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


See User information
@balaton
Thanks for the advice.
Why did you need UAE for AmiStore? Doesn't that run on AOS4 in QEMU too ?

( I couldn't understand the question, sorry )



I accidentally found an answer from Asus three weeks ago

It would be nice in an upcoming BIOS update to enable full IOMMU group separation for B550-Plus mobo.

Asus moderator response:

We apologize for the delayed response due to a public holiday in our region and any inconvenience this may have caused.
We also appreciate your valuable feedback. Currently, the TUF GAMING B550-PLUS only supports the IOMMU setting.
I will forward your feedback to the relevant teams for further evaluation and consideration in future developments.

Resized Image

link Asus:
https://zentalk.asus.com/t5/motherboar ... -iommu-groups/td-p/463136

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:
white wrote:@balaton
Thanks for the advice.
Why did you need UAE for AmiStore? Doesn't that run on AOS4 in QEMU too ?

( I couldn't understand the question, sorry )

Sorry that was a question for @themamboman who mentioned this in post #58.

Also GPUs usually have two subdevices, one for the HDMI sound part. If these two are in one IOMMU group then you don't need other patches just pass both of them. You only may need kernel patch if your motherboard puts more slots in one IOMMU group but even in that case you can try plugging the card to be passed through in another slot to see if that has different IOMMU group with just the card in it. (If you only have two slots where the card fits then this may not be ideal.)

Go to top
Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


See User information
@white
The tests that did show the screen open were with the XFX RX 580. I have yet to get the Sapphire R9 270X to do anything other than reboot my computer when I launch qemu. It's on the latest firmware as well.

@balaton
I realized that I needed to get Enhancer and AmiStore had it less expensive and I was on my Windows side so I just launched AmigaOS4.1 in WinUAE since I had that set up.

I then copied the files out to USB, rebooted to Linux, copied them out, and rebuilt Kickstart.zip with them in place. Just a convenience thing.

Thanks for the suggestions on using pegasos2.rom. I'll try that next. I thought I had tried it and ran into an issue. I'll update. Thanks for all the help!

Go to top
Re: QEMU GPU vfio-pci pass through
Just popping in
Just popping in


See User information
@balaton

Just tried using the bboot.fth script.

I had to use rdbtool to create a new disk image and copy over the files to the new drive in order to get the pegasos2.rom bios to see them: (modified slightly from your pegasos2 subpage

rdbtool amigahd3.img create size=1Gi init add size=32MiB name=BOOT
xdftool amigahd3
.img open part=BOOT format Boot ffs+intl
xdftool amigahd3
.img open part=BOOT write amigaboot.of
xdftool amigahd3
.img open part=BOOT write bootloader_prepare
xdftool amigahd3
.img open part=BOOT write bootloader_setup
xdftool amigahd3
.img open part=BOOT write Kickstart Kickstart
xdftool amigahd3
.img open part=BOOT write Kickstart.zip


when it got to the point I could manually enter commands:

boot hd:0 bboot.fth


(Doing this without the vfio passthrough parts, and only using -device sm501, it booted okay (just no external graphics.

Switching by removing the sm501 and inserting the vfio devices:
-device vfio-pci,host=0a:00.0,bus=pci.0,x-vga=on


I never get the opportunity to enter the boot command. Here is the output:

SmartFirmware:
cpu0PowerPC,74x7 CPUClock 1533 Mhz BUSClock 133 Mhz (Version 0x8002,0x0102)
no/bad nvramrc performing default startup script
channel 0 unit 0 
:   ata QEMU HARDDISK                            2.5+    
ATA device not present or not responding
channel 1 unit 0 
atapi QEMU DVD-ROM                             2.5+    
ATA device not present or not responding
OUTSIDE 32BIT DIVIDE
OUTSIDE 32BIT DIVIDE
OUTSIDE 32BIT DIVIDE
INTERNAL ERROR
0000000E=UNIMPLEMENTED EXTENDED OPCODE

EAX
=0000 EBX=0000 ECX=0000 EDX=0000 ESP=0000 EBP=5555 ESI=6666 EDI=7777
 AX
=0008  BX=0004  CX=7530  DX=000C  SP=FFC8  BP=FF9E  SI=0008  DI=9924
 DS
=C000  ES=BAD0  SS=1000  CS=C000  IP=2B6A   NV UP -- PL NZ NA PO NC
CS
:IP 0F  
STACK
: 0008 0008 11FF 0004 1271 06F6 02FC 0000 
  00
FE00 F000 FE01 F000 FE02 F000 FE03 F000 
  10
FE04 F000 FE05 F000 FE06 F000 FE07 F000 
  20
FE08 F000 FE09 F000 FE0A F000 FE0B F000 
  30
FE0C F000 FE0D F000 FE0E F000 FE0F F000 
  40
FE10 F000 FE11 F000 FE12 F000 FE13 F000 
  50
FE14 F000 FE15 F000 FE16 F000 FE17 F000 
  60
FE18 F000 FE19 F000 FE1A F000 FE1B F000 
  70
FE1C F000 FE1D F000 FE1E F000 FE1F F000 
  80
FE20 F000 FE21 F000 FE22 F000 FE23 F000 
  90
FE24 F000 FE25 F000 FE26 F000 FE27 F000 
  A0
FE28 F000 FE29 F000 FE2A F000 FE2B F000 
  B0
FE2C F000 FE2D F000 FE2E F000 FE2F F000 
  C0
FE30 F000 FE31 F000 FE32 F000 FE33 F000 
  D0
FE34 F000 FE35 F000 FE36 F000 FE37 F000 
  E0
FE38 F000 FE39 F000 FE3A F000 FE3B F000 
  F0
FE3C F000 FE3D F000 FE3E F000 FE3F F000 
  00
FE40 F000 FE41 F000 FE42 F000 FE43 F000 
  10
FE44 F000 FE45 F000 FE46 F000 FE47 F000 
  20
FE48 F000 FE49 F000 FE4A F000 FE4B F000 
  30
FE4C F000 FE4D F000 FE4E F000 FE4F F000 
Failed to emulate CS
:IP [C000:2B6A]=0F,BC,D8,8D,36,77
UNHANDLED INT 10 
FUNCTION 0100 WITHIN EMULATION
EA
BYTE READ FROM UNINITIALIZED LOW MEM 0040:0085
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION
entering main read
/eval loop...
UNHANDLED INT 10 FUNCTION 0300 WITHIN EMULATION
UNHANDLED INT 10 
FUNCTION 1301 WITHIN EMULATION

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


See User information
@themamboman

I didn't bother asking this question but what is the file
( bboot.fth script ) and where can it be found ?

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

  Register To Post
« 1 2 3 (4)

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project