Skip to contentSkip to conversation

New hardware - SGA155D dual STM-1/OC3 PCI ad

ANNOUNCE Horvath Gyorgy 4 participants 4 messages Sep 9, 2003 – Sep 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,

First, I would like to introduce a new harware - SGA155D Dual STM-1/OC3 Telecommunications PCI Adapter. You can obtain a short catalog from www.aitia.ai. (www.aitia.ai/document/upload/200307/sga155.pdf) I think it is a little bit expensive - but very flexy. Errrr... actually the card was entirelly developed by me - including the cores for the FPGA.
It is in low scale production, and working in the fields well. Its current application is implemented for DOS ;->

Second, I am going to turn to Linux, and I have decided to write the driver(s) myself (huhh) under GPL.
It is turned out quickly, that I have some problems at the very beginning of the development.

1. The new target application requires N pieces of SGA155D adapters for telephony application - multiple E1's carried in STM-1. Also, we need M additional pieces of SGA155D loaded with IP-Core for Packet-Over-SONET (WAN) application. Moreover - several hard-disks can be attached to the adapters for capture and playback application.

As I see - SGA155D is a multifunction adapter in this context. Are there any driver model or technique for this situation?

My guess is that I write a core driver for the hardware itself that can be compiled in the kernel (or can be modularized). This driver allows manipulating the IP-Core for the FPGA. Functional drivers are then modularized on demand. BTW Can I insmod other drivers from a kernel driver? Let say I have firstapp.o and firstapp.bin for the first three cards, and secondapp.o plus secondapp.bin for the rest. (.o is the driver and .bin is the IP-Core having the same filename) The core driver loads the IP-Core first, then loads the driver for that core. Hmmmm?

2. Packet over SONET...
There were rumours about a Lucent card, and a driver for it - but I can't reach that now (a link to the void) - just for reference.
What model shall I use - syncppp.o and my_driver.o - or I have to implement the ppp stuff entirelly in hardware
- according to RFC's (I used to use RFC's and ITU-T's for cross compilation into VHDL :-).
Is syncppp conforming RFC1619, RFC1662, RFC2615?
I can't find notes on this in syncppp.c...

3. The telephony part is not yet clear for me.
For the new application in question - there is not much to do in Linux, since the mass will be driven/sunk by the hard-disks. But it might be useful elsewhere... Anyway - I will dig-up the Linux telephony project for advice before bothering this list.

4. Optionally - and if I have enough time - I'd like to develop a twin-linear filesystem driver for time-stamped capture/playback for multiple channels of data - like a multi-band magnetic tape. BTW do you know an existing one?

Best regards,

Gyorgy Horvath, Technical University of Budapest
-------------- Dept. of Telecom. and Telematics

Tel.: +36-1-463-1865,  Fax.: +36-1-463-1865
Mail: [email protected]
FTP:  ttt-pub.ttt.bme.hu  ./income
#1 lore raw
Quoted 6 lines · Horvath Gyorgy

As I see - SGA155D is a multifunction adapter in this context. Are there any driver model or technique for this situation? My guess is that I write a core driver for the hardware itself that can be compiled in the kernel (or can be modularized). This driver allows manipulating the IP-Core for the FPGA. Functional drivers are then modularized on demand.

That is probably the right model. We do something similar with dual function parallel/serial cards and of course on a huge scale with USB where a USB hub means loading many other drivers to use the devices attached to it.

Quoted 1 line

BTW Can I insmod other drivers from a kernel driver?

Yes. request_module() and the hotplug interface let you do that in various kernels. Right now for example the USB layer goes back to the userspace /sbin/hotplug and says "I need a driver for one of these" and the hotplug layer figures out what to do.

Quoted 3 lines

2. Packet over SONET...
Is syncppp conforming RFC1619, RFC1662, RFC2615? I can't find notes on this in syncppp.c...

Syncppp is pretty basic and obsoleted by the hdlc driver stuff.

Quoted 6 lines

3. The telephony part is not yet clear for me.
For the new application in question - there is not much to do in Linux, since the mass will be driven/sunk by the hard-disks. But it might be useful elsewhere... Anyway - I will dig-up the Linux telephony project for advice before bothering this list.

Take a look at the Zaptel stuff, thats basically the T1 version of a winmodem but might have some interesting ideas in it.

Quoted 5 lines

4. Optionally - and if I have enough time - I'd like to develop a twin-linear filesystem driver for time-stamped capture/playback for multiple channels of data - like a multi-band magnetic tape. BTW do you know an existing one?

I've seen people do this in user space (just interleaving the disk in big chunks in the app and driving it with O_DIRECT raw access) but not in kernel file system space.

Alan

#2 lore raw
Quoted 9 lines · Alan Cox
Quoted 5 lines

4. Optionally - and if I have enough time - I'd like to develop a twin-linear filesystem driver for time-stamped capture/playback for multiple channels of data - like a multi-band magnetic tape. BTW do you know an existing one?

I've seen people do this in user space (just interleaving the disk in big chunks in the app and driving it with O_DIRECT raw access) but not in kernel file system space.

(from memory) I think that ext2/ext3 does (or at least did) this - they lacked any smart logic for rapid allocations - at least for inodes in the same cylinder group. I think this was mentioned in the "Journaling the ext2 filesystem" paper.

This could probably be faked by taking out any intelligence in block allocation (allocate last block+1 or some such thing). Even as a mount option (seq_alloc), this could be useful (for this type of streaming). This will give you great write throughput, but if you don't read things off the same way you read them - reading is going to suck.

I read in a discussion of multimedia filesystems (for PVRs) that a block size of 256KB helped in throughput when playback configurations weren't known (the more data you read before seeking the better). google for "multimedia filesystems" - you'll find a fair few papers on such things.

Things like XFS were designed for large, high bandwidth systems, so that's also worth looking into as a zero-effort approach :)