Page 1 of 2

Testers wanted - USB3 XHCI USBHCD

Posted: Wed Jun 10, 2020 9:54 am
by Belxjander
Literally as the topic states...

I have a *partial* USBHCD written for XHCI operations, and mainly need to find a group of volunteers who are willing to test using it with PCI or PCI-Express hardware on machines other than a sam440-flex.

I'm currently building against a Vendor{0x1912=Renasas} Device{0x0014=XHCI} on a PCI card (using a PCI<->PCI-Express Bridge).

If interested let me know what PCI "Vendor:Device" tuple to add into the driver CandidateList and I'll start sharing it for testers to try.

as it is right now... compatability is explicitly Sirion USB only, if anyone wants to try writing for PoseidonUSB based on what I have here...
talk to me... maybe we can collaborate a build and repository so that the codebase is usable for both stacks?

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Fri Jun 12, 2020 2:08 pm
by seventhwonder
Hi Belxjander

Do you think your driver may support this chipset ?

https://www.via-labs.com/product_show.php?id=48

I can buy a PCI-E card for 8 USD to test on X5000/20..

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Fri Jun 12, 2020 2:59 pm
by Belxjander
Grab the card and test away... According to the website it is xHCI so yeah it should function with what I have written so far.

Just don't expect full immediate functionality straight away.

I'll need the VendorID and DeviceID codes (as shown in ShowConfig/Ranger)
to add it into the Candidate List properly.

I've mostly just started with hardware level access routines and have only gotten register mappings sorted out.

I'm working on the Command, Event and Transfer Buffer Rings next.

Doorbell registers are when adding/removing USB devices and transfers happen.

That's about 1 ~ 2 steps away on the plan so far.

I'm also willing to share the sources though want to keep final say on changes at this point.

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Fri Jun 12, 2020 3:13 pm
by seventhwonder
Hi

I ordered this card..It has the same chip but a bit more up-to-date.

Image

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Fri Jun 12, 2020 7:53 pm
by AlfredOne
Hi,
I have this card in my X1000:
https://www.inateck.com/inateck-ktu3fr- ... -card.html

Infos from Ranger:

ID: Bus:0x0E Device: 0x00 Function: 0x00
Class: Base: 0x0C Sub: 0x03 IFace: 0x30 (Undefined USB)
Device: 0x1100 Rev: 0x10 (N/A)
Vendor: 0x1B73 (Fresco Logic)
Header Type: Normal
Chacheline Size: 64 Bytes
Status: CapList FastDevSel
Capabilities: BusMaster Intercard
Command: IO Mem Master Parity SERR
Interrupt: Line: 0x32 Pin: A Number: 66

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Mon Jun 15, 2020 7:30 am
by Belxjander
Added Fresco Logic VendorID:DeviceID tuple to candidates
EDIT: AlfredOne's card values

Right now I'm working through the hardware controller setup logic.

1st attempt locked up, double-checking all the hard reads and writes.

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Mon Jun 15, 2020 11:17 am
by seventhwonder
Hi Belxjander

I have received my new USB3 Card.

Plugged to Sam460 (my hardware test machine)

Details are:

ID: Bus: 0x06 Device: 0x00 Function: 0x00
Class: Base: 0x0C Sub: 0x03 IFace: 0x30 (Undefined USB)
Device:0x3483 Rev: 0x01 (N/A)
Vendor:0x1106 (N/A)
Header Type: Nomal
Cacheline Size: 32Bytes
Status: Caplist FastDevSel
Capabilities: Busmaster Intercard
Command: Mem Master Init
Interrupt: 0x60 Pin: A Number: 112

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Wed Jun 17, 2020 12:32 am
by Belxjander
Added "Seventhwonder"s VIA Technologies USB3 controller ID's to CandidateList

working on "ReverseInPlace" Transfer Ring Buffer Operations for Commands and Events

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Wed Jun 24, 2020 3:27 pm
by Amigo1
Belxjander wrote: Wed Jun 10, 2020 9:54 am Literally as the topic states...

I have a *partial* USBHCD written for XHCI operations, and mainly need to find a group of volunteers who are willing to test using it with PCI or PCI-Express hardware on machines other than a sam440-flex.

I'm currently building against a Vendor{0x1912=Renasas} Device{0x0014=XHCI} on a PCI card (using a PCI<->PCI-Express Bridge).

If interested let me know what PCI "Vendor:Device" tuple to add into the driver CandidateList and I'll start sharing it for testers to try.

as it is right now... compatability is explicitly Sirion USB only, if anyone wants to try writing for PoseidonUSB based on what I have here...
talk to me... maybe we can collaborate a build and repository so that the codebase is usable for both stacks?
That's great!

I'd like to offer my help with testing too, unless this is meant for OS4 betatester only.

I would buy one of the cards below. Personally, I like the last two cards with an internal usb 3.0 connector, so the front 3.0 connectors of the X1000 will be put to good use, but I leave it to you to choose wich one you want to have tested.

1) Same as the one of seventhwonder.

2) eBay 283624353799 https://www.ebay.com/itm/ITHOO-19PIN-Du ... Swa0ddiwHK

3) eBay 274103429863 https://www.ebay.com/itm/ITHOO-PCI-e-To ... Swlkhd05kD

Taken from the specs, they all appear to use the same renesas chip:
micro-pd720201.html https://www.renesas.com/us/en/products/ ... 20201.html

Re: Testers wanted - USB3 XHCI USBHCD

Posted: Wed Jul 08, 2020 6:21 am
by Belxjander
I'm not restricting the testers group yet (I'm still sorting out hosting the code to make the driver available!)

The only restrictions are ... AmigaOS 4.x with Sirion USB as that is what I'm writing for,
and XHCI hardware of some kind.

after that It's a matter of co-ordinating updates...

I'm thinking of AmiUpdate for that...
and will probably just give the driver to the community to ab/use however...

I'm also thinking about whether to open source it or not too.

maybe once I get past init and exit and have the driver actively reading/writing?