Skip to contentSkip to conversation

Linux Serial Code Problems

DISCUSSION Roger Davis 2 participants 2 messages Sep 5, 2013 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

RE: Linux Serial Code Problems

I recently found the following info. Perhaps I'm confused, but it seems apparent to me that there is a known basic deficiency in the code causing this problem from the following quote found at : http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=http%3A%2F%2Fserial.sourceforge.net%2F&ei=8DUoUo_pL6mGiQL50oCQDg&usg=AFQjCNEM7PQaUtOlie3UHz1fotvbTgPLNg&sig2=sM8-xwyv7dYtcJQ-k8aelg
===============================
"Periodically, I will release testing serial drivers with my guessesas to how to let the serial driver talk to a particular PCI serialboard. As you may have gathered by now, there is no standard PCIserial interface. (The PCI consoritium which is in charge ofstandardizing the PCI bus must have been ASLEEP AT THE SWITCH ." (my caps), found at : http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CC4QFjAA&url=http%3A%2F%2Fserial.sourceforge.net%2F&ei=8DUoUo_pL6mGiQL50oCQDg&usg=AFQjCNEM7PQaUtOlie3UHz1fotvbTgPLNg&sig2=sM8-xwyv7dYtcJQ-k8aelg

also...

PCI Modem support

I am getting a lot of e-mail messages about supporting PCI modems,so here's the scoop concerning supporting PCI serial/modem devices.Right now *NO* PCI modems are supported, although support for some arein testing. If you have some PCI modem, please read on below; if youhave a PCI serial board which is not a modem, please skip to the next section....

First of all, the serial driver does not, and will never support,controller-less modems, which are somtimes called winmodems.(n.b. Winmodem(tm) is a trademark of 3COM corporation, and refers to aspecific brand of controller-less modems. However, people havestarted using "winmodems", without the capital letter, to refer tothe generic class of modems which require a windows specific driverbecause they do not implement a full modem in hardware.) If you havea PCI-based modem, the odds are about even as to whether or not it isa winmodem or not. The following site, "Winmodems are notmodems". Before you send me e-mail, please check yourmodem against the listing found in the above web site; if it is awinmodem, or controller-less modem, I can't help you.

If your modem isn't listed on the "Winmodems are not modems" website, there are some other ways you can tell if your PCI modem is acontroller-less modem. If the packaging on the box states thatWindows 95 or 98 is a requirement, that's a pretty good hint. Modemswhich are labeled as "HCF" modems (Host Controller Family) fromRockwell are controller-less modems. If you've installed the softwareon a Windows box, you can check and see how big are the drivers thatthey've installed. If the driver (typically a .VXD file) is large,that's another tipoff. If the modem is extremely cheap (20 or 30 USdollars), that's another hint. Fundamentally, you get what you payfor.

If you are unfortunate enough to own a winmodem and desire to useit under Linux, there is a project which is trying to develop a driverfor some controller-less modem chipsets. But because of thecomplexities associated with the modem protocol standards (V.90 V.34,and their ilk), they have a long road ahead of them. If you areinterested in more information, please refer to the Linmodem Web Site. (Update:There is now an Alpha driver for the Lucent winmodems, and PC-TEL hasreleased a binary-only driver.)
===========================

Is the above "ASLEEP AT THE SWITCH" still current info, and if so, is there any plan to rectify the lack of PCI bus serial interface situation?

Thanks!

#1 lore raw
Quoted 4 lines · Roger Davis

I recently found the following info. Perhaps I'm confused, but it seems apparent to me that there is a known basic deficiency in the code causing this problem from the following quote found at....

You are quoting from: http://serial.sourceforge.net/ which was written by yours truly back when I was the serial driver maintainer. I don't want to tread on the current maintainer's toes, but with that caveat, it's not that there's a "basic deficiency in the code", but rather it's a fundamental deficiency in the reality as you might wish it to be.

Take a look at drivers/tty/serial/8250/8250_pci.c from the kernel sources. You will see there is a huge list of quirks and exceptions for various PCI cards, to work around the fact that the standards by the PCI Consortium are well, "loose". There are some some generic entries that can be found in the PCI standards --- see the generic entries for PCI_CLASS_COMMUNICATION_SERIAL, PCI_CLASS_COMMUNICATION_MODEM, PCI_CLASS_COMMUNICATOIN_MULTISERIAL. But then also take a look at all of the quirks and exceptions to deal with random cards and modems.

Thus my comments, which you quoted:

Quoted 3 lines

As you may have gathered by now, there is no standard PCIserial interface. (The PCI consoritium which is in charge of standardizing the PCI bus must have been asleep at the switch.)

If it worked on an older kernel, but doesn't on a new kernel. It could be because someone added a quirk that that worked for their PCI card, but not for yours. This could happen if they added one with an overly broad match based on the PCI id, or it could be because the vendor made changes in their PCI card without changing the PCI id's. (I've seen that before.) This is why Greg K-H's suggestion of doing a kernel bisection search might be useful to identify what change might have caused the regression.

Looking at this whole mess, you know one of the reasons why I'm glad I'm no longer the serial driver maintainer. (Also, these days I'm a big fan of ethernet and MyFi devices, and try to avoid serial/modem interfaces in general. :-)

Cheers,

- Ted