Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
23 user(s) are online (20 user(s) are browsing Forums)

Members: 2
Guests: 21

Lio, emeck, more...

Support us!

Headlines

 
  Register To Post  

ATI X550 support
Quite a regular
Quite a regular


See User information
@Hans
I have an ASUS ATI EAX550 PCIe card that I could use for testing vfio passthrough but it's not listed as a supported card. I don't have it in the machine now so don't have detailed lspci info but it seems to have PCI ID: 1002:5b60. It is very similar to X300 which seems to be supported by Radeon driver such as this one:
https://theretroweb.com/expansioncards/s/ati-radeon-x300-se so would the X550 work or can support be added or can I change the IDs somewhere to test it? (Maybe vfio-pci can take ID override so I could try to set it to the X300SE ID but what IDs does the Radeon driver accept?

I also have an HD6450 but that has a noisy fan that would need to be repaired and I don't have driver for that and I don't intend to spend money on software so I'd rather use the X550 which is passive cooled. Last time I tried the HD6450 was recognised by the amigaone U-Boot but the install CD has no RadeonHD lite driver on it so could not test it in AmigaOS. On pegasos2 it would only work on pci.0 which I've only fixed afterwards and on sam460ex which could work there's the problem in the U-Boot that it only expects HD and RX cards on pcie and that does not work yet so I gave up on that at that point. The X550 while slower could be less problematic to get work as the driver is included with AmigaOS4 and latest QEMU should support it now so maybe it worth a try again if it could work.

Go to top
Re: ATI X550 support
Not too shy to talk
Not too shy to talk


See User information
@balaton

where you live in the world? i have a few cards back at home i can give away to help with the testing. not home for another week though. and dont remember right now what i have.

Sam460ex 2GB 120Gb SSD&1Tb HD7750 Envy24HT A-Eon Drv 2.10+Warp3D New Uboot
Apollo v4 Standalone
Go to top
Re: ATI X550 support
Home away from home
Home away from home


See User information
@balaton
Quote:
I have an ASUS ATI EAX550 PCIe card that I could use for testing vfio passthrough but it's not listed as a supported card.
Is there a complete list of gfx cards supported by ATIRadeon.chip somewhere?
AFAIK it only supports R100 and R200 series cards, but not R300 ones like your X550 (RV370).

Edit: https://www.acube-systems.biz/compatibility/compatibility_41.php includes R300 gfx cards like the 9600 and 9800, and with a green check mark (= driver included in AmigaOS 4.1, i.e. the ATIRadeon.chip gfx driver implemented by the Frieden brothers and not Hans' RadeonHD.chip or RadeonRX.chip), looks like ATIRadeon.chip supports R100, R200 and R300.
The ACube list only includes hardware which was tested with AmigaOS 4.1, so your X550 might be supported and just isn't in the list because nobody tried one yet, or did but didn't tell ACube if it works on AmigaOS 4.1 or not.


Edited by joerg on 2025/4/21 16:32:07
Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
@joerg
Previously pass through wasn't supported with these Radeon cards in QEMU only RadeonHD and newer so I could not try. This was improved in QEMU 10 so maybe it can work now. I've put the card back in the machine now and will do some tests eventually when I'll have time. There may still be a problem with having Intel iGPU next to it which does not like VGA arbitration without some patches and this may be a problem because this card surely has no AtomBIOS so may need its own ROM to run. I was asking because there's a list of names in the Radeon driver and that lists X300 SE but not X550 so maybe it would need at least some PCI ID added or changed somewhere. I can probably figure that out but simpler to ask.

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
@noXLar
Thanks. Problem is less with getting cards than having time for testing them so instead of sending cards it may help more to test them instead if you can do that. I just wanted to get at least one card working so I can do tests locally but I don't intend to test all cards myself.

Go to top
Re: ATI X550 support
Home away from home
Home away from home


See User information
@balaton
Quote:
and this may be a problem because this card surely has no AtomBIOS so may need its own ROM to run.
PCI Radeon gfx cards (ATIRadeon.chip driver on AmigaOS) don't have an AtomBIOS, only the old x86 BIOS which is emulated by the x86 emulators of U-Boot, CFE, SmartFirmware or the x86emu.resource on classic Amigas.
Only the newer Radeon HD/RX gfx cards (AmigaOS gfx drivers RadeonHD.chip and RadeonRX.chip) have an AtomBIOS.

Your X550 is a very special case, nearly all gfx cards supported by the AmigaOS ATIRadeon.chip driver are PCI gfx cards, a few of them are AGP cards, but none PCIe ones. At least none that I'm aware of that has already been used successfully with AmigaOS.

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
@joerg
The X300 SE I think was PCIe but maybe there was an AGP version too and maybe that was tested (after all back then there were no PCIe AmigaNG machines yet, were there). But it will appear PCI with pass through anyway so maybe it could work. I like this card because it's passive cooled, can be put in modern machine without adapters and I have one so I'm interested to try to make it work some way.

Go to top
Re: ATI X550 support
Home away from home
Home away from home


See User information
@balaton

Sorry, but I'm not sure what the state of R3x0/RV3x0 chipset support is on AmigaOS. The RadeonHD river started with the R5x0 series (e.g., Radeon X1500), so any support for R3x0 will be in the atiradeon.chip driver.

Back in AmigaOS 4.0 days, most people used a Radeon 9000/9250, because those had the best 2D & 3D support. IIRC, there was at least partial 2D support for some R3x0 cards, but I have no idea what cards actually worked.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: ATI X550 support
Home away from home
Home away from home


See User information
@balaton
https://intuitionbase.com/articles/graphics-cards-sam440ep-flex "2.4 Limited use of drivers"
R300 cards are only partially supported (no HW compositing, no 3D drivers), but I guess the main reason you want to try vfio pass through with your X550 is to compare the "MemCopy performance" of GfxBench2D on AmigaOS 4.1 with similar host OS benchmarks, for example x11perf with ShadowFB disabled, and for that the AmigaOS 4.1 support for it is enough.

Go to top
Re: ATI X550 support
Not too shy to talk
Not too shy to talk


See User information
obsolete entries deleted


Edited by smarkusg on 2025/4/22 21:36:09
Edited by smarkusg on 2025/4/22 21:39:20
Edited by smarkusg on 2025/4/24 21:48:14
Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
@joerg
I want to test multiple things: if vfio-pci now works with older cards and to have any card so I can try pass through with that and this one is at least silent so I can leave it in the machine. I have no 3D driver even for newer cards so I don't care much about that, anything that produces a picture might be enough for testing and this older cards at least have a driver on the install CD so no need to set that up separately. But such older cards don't have AtomBIOS and I have an Intel iGPU which may conflict so it may not work at the end so not sure I'll get any results but it's something to play with eventually.

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
I have tried this after having to patch i915 module with VGA arbitration patch to allow x-vga=on to work with Intel iGPU. On unpatched i915 without x-vga=on it freezes the machine or breaks host display and does not work as the ATI card ROM wants to access VGA ports. With patched i915 driver it now can access the card and I can see amigaone U-Boot output on it but neither MorphOS nor AmigaOS seem to like this card. The pegasos2 firmware does not recognise it neither MorphOS. AmigaOS on amigaone does not print the missing graphics card message so maybe it finds the card but then stops without printing any logs (even with loglevel=17) and I get no picture. So not sure how to find where it stops. Is there a way to force a crash log in AmigaOS kernel somehow when it's stuck? I can only get a register dump from QEMU or could try gdb backtrace but I don't know what the addresses belong to so that's not too useful.

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
I tried with Linux but I could not get a picture. It sees the card but selects a mode that my monitor says is out of range. The log I get is:

radeonfb 0000:00:08.0enabling device (0000 -> 0003)
radeonfb (0000:00:08.0): Cannot match card to OF node !
radeonfbFound Intel x86 BIOS ROM Image
radeonfb
Retrieved PLL infos from BIOS
radeonfb
Reference=27.00 MHz (RefDiv=12Memory=398.00 MhzSystem=250.00 MHz
radeonfb
PLL min 20000 max 40000
radeonfb
Monitor 1 type DFP found
radeonfb
EDID probed
radeonfb
Monitor 2 type CRT found
radeonfb
EDID probed
Console
switching to colour frame buffer device 320x90
radeonfb 
(0000:00:08.0): ATI Radeon 5b60 "[`"


The Cannot match card to OF node seems normal, amigaone has no OF and I get the same with ati-vga which does produce picture. The clock values seem to match what wikipedia says but the memory and core values are swapped? Maybe it can't handle the EDID from the monitor or I can try what if I only connect one output. I've connected both VGA and DVI and with U-Boot I get ouptut on both, with guests I only get garbled output on VGA with AmigaOS and MorphOS but they freeze and out of range output for the monitor on Linux. Assuming 8x8 font then 320x90 would be 2560x720 where the native mode would be 2560x1440 but that's likely too large for this old card and I think the monitor also only accepts that on HDMI so maybe it's just selecting the wrong mode. I thought I have a radeonfb option to set mode in kernel command line but checking again looks like I didn't so maybe that's why.
EDIT: Tried adding video=radeonfb:1280x720 to kernel command line but then got some error which may be because reset issue with older AMD cards which only work once per host reboot and there is no fix for that for these older cards only for RX ones so this does not seem to be a very usable setup so far.


Edited by balaton on 2025/4/26 0:05:04
Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
Some more progress with this.

I've checked that "ATI Radeon RV370 X550" appears in ATIRadeon.chip so this might theoretically be supported and work.

I was getting errors in host's log saying that card refused to enter D3Hot state from D0 but then the guest said card is stuck in D3 state especially when trying to start QEMU the second time. This is solved by adding disable_idle_d3=true option to vfio-pci. Looks like this card does not like PCI power management and cannot be powered down. Now I can run QEMU multiple times as long as the AmigaOS driver does not touch the card. After it hangs in AmigaOS that it will hang the host on second try.

I was still getting out of range VGA output after an OS started and only U-Boot was displaying. Then connected an older monitor to VGA but got the same result. Then disconnected the DVI and that solved it, the VGA now is in range for the monitor. Then connected the VGA back to the newer monitor without connecting the DVI and then it works there too. So it seems having the DVI connected was also causing the VGA port to try larger resolution even when DVI did not display anything. Now with only VGA port connected I get output on VGA with Linux radeonfb (only console, did not try X) and can also run this multiple times without freezing the host.

Then tested AmigaOS again and while it loads and seems to find the card I don't get picture from it. The ATIRadeon.chip has no debug messages at all so it does not tell me anything but with the debug kernel I also don't see any errors so it seems the Radeon driver loads just does not work. I see the bootimage (fade in splash screen) then it goes black and stops loading. With loglevel=11 and debug kernel I still see logs from page_sweep at the black screen so it's not completely frozen but nothing else seems to progress. If I stop QEMU at that point the host still works but as soon as I start QEMU again the host freezes when the U-Boot tries to run the card's ROM or enables the card. Maybe the card is not reset correctly or the ROM is not meant to run more than once but I'm still interested to find out why it freezes the host. (Well, the ROM can run multiple times as I can boot Linux guest more than once and that goes through the card init in U-Boot but after it hung in AmigaOS it will hang the host when the card is next touched by U-Boot.)

My theory now is maybe I could reprocude the INTERRUPT issue (I'd have to make an install and try setting the tool type to test that) but could it be that the card raises an interrupt and AmigaOS tried to acknowledge it but it does not get to the card so it's stuck with the interrupt raised and that's why it stops? On the amigaone and pegasos2 the north bridge has some interrupt acknowledge addresses that the guest has to read to clear interrupt. In QEMU this is now reading the ISA pic where PCI interrupts are also routed but maybe the graphics card also needs some way to clear PCI interrupts? How is this supposed to work? What and where should poke to acknowledge and interrupt from the graphics card? I'm not sure how can I test this and what logs should I try to check for this to see what happens.

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
I have tried just DVI connected and I get no picture from that even with Linux. The U-Boot screen outputs to both VGA and DVI outputs and Linux detects monitor connected to either port but only get picture if only VGA is connected. With only DVI I get no picture in Linux and with both DVI and VGA connected I get out of range signal on VGA. With AmigaOS I get splash screen on VGA only then black screen and no output on DVI, although the EDID data is dumped on either port so it detects the display but seems to stop when reaching SetCDEnv on the install CD. I've tried editing the tool type in System/Devs/Monitors/Radeon to set INTERRUPT=No on the install CD but it does not seem to be loaded with the boot CD so I think that's ineffective. Maybe on installed system it's checked but I don't have an installation to test.

The card I'm trying is an ASUS EAX550 with PCI IDs:
Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300] [1002:5b60]
Subsystem: ASUSTeK Computer Inc. Device [1043:011e]

Anybody with such card and a real machine can confirm it should work with AmigaOS ATIRadeon.chip driver?

Go to top
Re: ATI X550 support
Home away from home
Home away from home


See User information
@balaton
Quote:
I've tried editing the tool type in System/Devs/Monitors/Radeon to set INTERRUPT=No on the install CD but it does not seem to be loaded with the boot CD so I think that's ineffective.
I don't know if it's supported by other versions of AmigaOS 4.x as well, or only by the classic Amiga versions, but try to add a "p96Config" Kickstart module text file, and add it to the Kicklayout, with the contents
IGNOREMASK=Yes
INTERRUPT
=No
.

Go to top
Re: ATI X550 support
Not too shy to talk
Not too shy to talk


See User information
HD6450 works fine but... it's a passive cooled card why you even have a fan on it??

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
@NinjaCyborg
With passthrough or on real machine? Some are passive cooled, most have a fan: link to examples I happened to find one cheap and close which seems to be an HP OEM card and it has a fan.

Go to top
Re: ATI X550 support
Quite a regular
Quite a regular


See User information
@joerg
What does IGNOREMASK=Yes do?

Go to top
Re: ATI X550 support
Home away from home
Home away from home


See User information
@balaton
Quote:
What does IGNOREMASK=Yes do?
That's something the gfx experts (Hans?) have to answer. I only know that it's enabled by default in the DEVS:Monitors/xyz ToolTypes, the p96Config of classic Amigas, and that it's somehow related to the 1-8 bit planar screen modes used by original Amigas (OCS/ECS/AGA chip set, A1000-A4000) where it was useful, but either it's not needed on CLUT 8 bit, Real-/High-colour 15/16 bit and True-colour 24/32 bit screen modes, or maybe it's just too slow to emulate it on gfx cards and disabling it doesn't cause (much) problems.

Go to top

  Register To Post

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project