English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 25 January 2023, 23:17   #1
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
Prometheus PCI bridge endian problem

Hi,

I am using the Prometheus PCI bridge and Prmscan returns as Class code for the Voodoo 0x1 and for revision 0x3 while on my very real Amiga with Voodoo3 it is the other way around (which it should be).

Seeing they are in the same 32 bit number, this is an endian issue?

EDIT for some more background:

I am talking about the PCI configuration space here. Gfx cards should identify with class code 0x3. The prometheus.library checks for this and sorts the BARs for gfx cards on a higher priority. That it currently works for version 3.x of the prometheus.library is probably by accident as somehow revision is read into Class code and vice versa (so it identifies as a mass storage device). It stopped working for prometheus.library 4.x where more checks are made for class code 0x3.

Prmscan lists the PCI devices per slot and gives additional info (Vendor/Device ID, class code etc).

Last edited by Hedeon; 26 January 2023 at 12:32.
Hedeon is offline  
Old 26 January 2023, 13:08   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
[moved from beta thread]

Yeah, most likely endian problem. Some PCI bridges have internal endian switch, some don't. Some depend on size of access.
Toni Wilen is offline  
Old 26 January 2023, 16:13   #3
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
But is this a WinUAE issue? It works correctly on real hardware.
Hedeon is offline  
Old 26 January 2023, 19:40   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,553
Yes

Quick test, too lazy to try newer drivers: https://www.winuae.net/files/b/winuae.7z

It seems BYTE size config accesses are not endian swapped (address XOR 3) but they are if G-REX.
Toni Wilen is offline  
Old 26 January 2023, 20:08   #5
Hedeon
Semi-Retired
 
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,038
Looks like the endian problem is fixed. PrmScan now gives the correct data and the debug version of prometheus.library 3.1 now indicates it has found a graphics card.

However, my updated lib is still not working correctly. I think the bug is in my library now, so let me check that

Thanks!

EDIT:

Fixed my own bug and now everything is working as intended on first sight. Thanks again!

Last edited by Hedeon; 26 January 2023 at 20:38.
Hedeon is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SELL: Prometheus PCI (NEW) with Drivers zerec@hotmail.d MarketPlace 0 18 December 2009 12:55
Wanted: Prometheus PCI busboard Boot_WB MarketPlace 6 03 April 2008 21:01
Prometheus PCI & Voodoo 3 PCI GFX Card Slayer support.Hardware 21 05 September 2006 10:57
Brandnew Prometheus PCI busboard for Amiga 4000 / 3000 Effy MarketPlace 7 05 April 2005 16:41
Anyone have a Prometheus PCI board? th4t1guy Amiga scene 8 05 March 2004 16:07

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:59.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08204 seconds with 15 queries