From: Marc Boucher <marc@linuxant.com>
To: Russell King <rmk@arm.linux.org.uk>
Cc: linux-serial@vger.kernel.org, arjanv@redhat.com, jsimon@linuxant.com
Subject: Re: Major problem with serial driver and serial_pci_guess_board()
Date: Tue, 26 Aug 2003 16:48:30 -0400 [thread overview]
Message-ID: <20030826204830.GA30364@endlich.mbsi.ca> (raw)
In-Reply-To: <20030826201601.J28810@flint.arm.linux.org.uk>
Hi Russell,
On Tue, Aug 26, 2003 at 08:16:01PM +0100, Russell King wrote:
> On Tue, Aug 26, 2003 at 02:27:46PM -0400, Marc Boucher wrote:
> > This problem appears to be present in all recent serial driver variants,
> > including those in 2.6 and the latest RedHat Severn beta. It is
> > a serious issue preventing our drivers from working correctly.
>
> My only interest is in 2.6, and the messages appear to be from a
> 2.4 kernel. It does seem that we are detecting a device incorrectly,
> since we aren't finding an 8250-compatible serial port.
The messages indeed came from a 2.4 kernel, specifically
2.4.21-20.1.2024.2.1.nptl (included in RedHat Severn).
But a similar problem occurs under 2.6 (tested with Arjan's
2.6.0-0.test4.1.32 rpm):
Serial: 8250/16550 driver $Revision: 1.90 $ IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
PCI: Enabling device 0000:00:08.0 (0000 -> 0003)
ttyS2 at I/O 0x1428 (irq = 10) is a 8250
ttyS3 at I/O 0x1440 (irq = 10) is a 8250
[root@xe4000 root]# lspci -vvx -d 10b9:5457
00:08.0 Modem: ALi Corporation Intel 537 [M5457 AC-Link Modem] (prog-if
00 [Generic])
Subsystem: Hewlett-Packard Company: Unknown device 0025
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 10
Region 0: Memory at e0002000 (32-bit, non-prefetchable)
[size=4K]
Region 1: I/O ports at 1400 [size=256]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: b9 10 57 54 03 00 90 02 00 00 03 07 00 40 00 00
10: 00 20 00 e0 01 14 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 3c 10 25 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 ff 01 00 00
After a closer look it seems that most of the boards I previously listed
(especially the newer ones) fortunately use PCI_CLASS_COMMUNICATION_OTHER,
not PCI_CLASS_COMMUNICATION_SERIAL or PCI_CLASS_COMMUNICATION_MODEM which
the serial driver looks for.
Still, the ALI AC-Link MC97 device (in an HP laptop here) uses
PCI_CLASS_COMMUNICATION_MODEM and has I/O ports so it gets picked
up by the serial driver.
> Unfortunately, we don't have tables of exclusion, nor do we have
> a clean method to do that at present in any kernel.
Would it not be possible to include devices we *know* use the confusing
class IDs in the pci_serial_quirks table with an initialization
routine that always fails? (under 2.6; for 2.4 we might need to
implement something equivalent)
> What I'd like to see is the output from lspci -vvx from a range of
> PCI cards with this problem to see if there is characteristic (eg,
> the PCI class/programming interface IDs) we can pick up on.
I'll try to send you that info as we confirm other cases..
Many thanks for the quick response,
Marc
>
> --
> Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
> http://www.arm.linux.org.uk/personal/aboutme.html
>
prev parent reply other threads:[~2003-08-26 20:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-26 18:27 Major problem with serial driver and serial_pci_guess_board() Marc Boucher
2003-08-26 18:29 ` Arjan van de Ven
2003-08-26 18:54 ` Marc Boucher
2003-08-26 23:59 ` Marc Boucher
2003-08-26 19:16 ` Russell King
2003-08-26 20:48 ` Marc Boucher [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030826204830.GA30364@endlich.mbsi.ca \
--to=marc@linuxant.com \
--cc=arjanv@redhat.com \
--cc=jsimon@linuxant.com \
--cc=linux-serial@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox