![]() |
![]() |
#1 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
PCI Stack - new development, and call for feedback
There is a little something I prepared... the new P96 voodoo driver is based on OpenPCI, but unfortunately nobody cares about the (full) version of OpenPCI with mediator support anymore, so we need something. It also not ideal that it is only a wrapper around propietary and (often) undocumented third party libraries, so something needs to be done to clean up in PCI land a little bit. So, I considered, why not offering an API-compatible openPCI library that talks directly to the hardware instead of going through third party libraries?
The attachment is a start, and more a discussion basis. It is an openPCI compatible library that talks directly to the A4000 mediator boards. The API implementation should be pretty complete, including reading the config area, finding boards, reserving cards, reading and writing bytes and allocating interrupts. Needless to say, as this talks to the hardware directly, the Elbox pci.library can go, it is no longer needed. The voodoo driver provided last week runs fine on it (of course, that does not mean that the thing is bug free, but it's a start). What it does not yet offer is the option to reserve DMA bounce buffers on the graphics card because there is still a knot in my brain how to organize this best and what a suitable architecture could be. The current one is... not so great, and suffers from a chicken and egg problem. There is a also a little bonus: This library implementation not only configures the PCI boards, it also announces them to the expansion.library such that tools like ShowConfig list them, through a dummy vendor ID and a product ID that identifies the type of the resource. The PCI product and vendor ID I could not fit into the ConfigDev structure directly (simply because the PCI product is two bytes, not one as in AmigaOs), but you can still find it there in the serial number information. The vendorID is still in the process of being allocated, but the product ID is taken from the following list: Quote:
What can you do? *) The obvious. Testing. This thing is of course another step and a a milestone towards a larger goal, namely having a cleaned up PCI integration of the system. *) Discussion. Is there anything I miss, I need to integrate (potentially, many things at this stage). Clearly, there should be support for additional PCI bridges. This will take time (and hardware, and testers). *) Should this possibly also include an emulation layer for other pci-driver libraries or can we settle with OpenPCI as a good common ground for PCI hardware support? Again, note that this is the beginning, and thus many things are open for discussion. This is mainly posted here to "trigger interest", not so much to provide a product. (But, alas, it already works for the voodoo. Maybe it works for something else, too). |
|
![]() |
![]() |
#2 |
Registered User
Join Date: Sep 2015
Location: London, UK
Posts: 424
|
This sounds great! I'll test and report back over the weekend. Can I check that your intention is for this to support Mediators, Altera-based Prometheus and Xilinx-based Prometheus cards? I'm asking as I think we need any new solution to have as broad a base as possible. (Yes, I know there is Grex as well but how many of those actually exist...)
|
![]() |
![]() |
#3 |
Registered User
Join Date: Sep 2016
Location: Netherlands
Posts: 112
|
Too bad I don't have an Amiga with a PCI busboard anymore, but this is a great initiative
![]() |
![]() |
![]() |
#4 |
Registered User
Join Date: May 2020
Location: Iowa, USA
Posts: 154
|
|
![]() |
![]() |
#5 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
Quote:
|
|
![]() |
![]() |
#6 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
Quote:
|
|
![]() |
![]() |
#7 | |
Registered User
Join Date: May 2020
Location: Iowa, USA
Posts: 154
|
Quote:
|
|
![]() |
![]() |
#8 | |
Registered User
Join Date: Dec 2015
Location: USA
Posts: 3,007
|
Quote:
![]() As far as the openpci.library, the current initiative is to try openpci versions of drivers on the Mediator, is that the short of it? Last edited by grelbfarlk; 08 June 2024 at 04:09. |
|
![]() |
![]() |
#9 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
That is the current status - or to be precise, the current status is A4000 mediators only. This will hopefully change, the plan is to support more PCI bridges, but this will take a while.
|
![]() |
![]() |
#10 |
Registered User
Join Date: Sep 2015
Location: London, UK
Posts: 424
|
I'm trying to test out openpci.library and getting stuck. I'm probably doing something dumb:
It's possible the problem is with SwitchControl on my Ratte monitor switch? Or have I missed a set-up step? BTW this is with 2.X of P96. Is v3.X required? |
![]() |
![]() |
#11 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
For the voodoo driver, you need indeed a v3. Screen-Dragging is only available for these later versions. Other than that, you are changing too many things at once. First, update P96. Then install the classical OpenPCI version from the source quoted in the driver, keeping the original pci.library. Then try to change to the new openpci.library.
|
![]() |
![]() |
#12 |
Registered User
Join Date: Jun 2024
Location: Durham / England
Posts: 15
|
This could be quite interesting. I've just got my A1200T out of 'storage' and it all worked fine with my BPPC 060@50Mhz/603e@240MHz, then in a week or so it just stopped working :-(. So I sent off my A1200 mobo for recapping and it was confirmed the BPPC is foobar'ed. The mobo is fine although I do get Vertical Lines on my Micronik Scandex scandoubler (via External DB25).
I have a Mediator SX with Voodoo 3/3000 16MB, Sound and Ethernet cards. So once I get something up and running I might try this out, although you mention its geared towards A4000s at the moment. I'm just getting back into miggy setup, so will have to explore which Accelerator to get. Likely a PiStorm 32 Lite or TF1260 or TF1232. So it's gonna be interesting getting my PCI cards backup and running if any of these lack MMU? Booting on stock A1200 moaned about MMU presence. |
![]() |
![]() |
#13 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
Quote:
The A1200 mediators suffer from a 4MB or 8MB address window. Thus, without an MMU, only a fraction of the card address space will be available. If you need more, and want to have a larger address space available, you will need a MMU. |
|
![]() |
![]() |
#14 | |
Registered User
Join Date: Sep 2015
Location: London, UK
Posts: 424
|
Quote:
|
|
![]() |
![]() |
#15 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,470
|
Which kind of mediator is that? Only the A4000 mediators are supported at this moment.
|
![]() |
![]() |
#16 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 72
|
This is a great initiative. I was thinking recently about what a pity it is that PCI software is so fragmented on Amiga.
However, IMHO it would be better to use the Prometheus API (i.e. write a prometheus.library for the Mediator hardware). These are my reasons:
BTW, I have a GRex, so I might be able to help if supporting that becomes a goal. |
![]() |
![]() |
#17 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 688
|
For GRex, we’d need any available SDK and or documentation (and later testing) There used to be a GRex backend in OpenPCI, but it’s not in the open source anymore.
|
![]() |
![]() |
#18 |
Registered User
Join Date: Sep 2015
Location: London, UK
Posts: 424
|
|
![]() |
![]() |
#19 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 72
|
|
![]() |
![]() |
#20 |
Registered User
Join Date: Jul 2017
Location: San Jose
Posts: 688
|
If you can, please zone it :-)
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What do you call yourself if you're not a retrogamer | Starglider 2 | Retrogaming General Discussion | 47 | 06 February 2018 08:15 |
WANTED: PCI Sound Card VORTEX2 SuperQuard / SQ2500 or Turtlebeach SantaCruz pci card | keropi | MarketPlace | 12 | 15 March 2017 02:48 |
Let's call it karma. Or something. | trooper | Retrogaming General Discussion | 10 | 19 September 2013 23:44 |
Ports of Call | Josh | request.Old Rare Games | 9 | 21 February 2010 23:32 |
Prometheus PCI & Voodoo 3 PCI GFX Card | Slayer | support.Hardware | 21 | 05 September 2006 10:57 |
|
|