From: Andrew Walrond <andrew@walrond.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: serial8250 madness
Date: Fri, 23 Jan 2009 19:05:17 +0000 [thread overview]
Message-ID: <497A14ED.2010707@walrond.org> (raw)
In-Reply-To: <20090123180033.3e67f542@lxorguk.ukuu.org.uk>
Alan Cox wrote:
>> ttyS0 works fine. Can get grub output, kernel boot and console via ttyS0
>> as I wanted.
>> ttyS1 doesn't work at all. It's detected, enabled in the bios etc etc
>> but just doesn't work at all.
>>
>
> You don't give much information but if it seems to be non working then I
> would look hard at the IRQ/IO reported
>
>
On Machine A (ttyS0 works fine. ttyS1 dead as dodo):
$ dmesg | grep ttyS
Command line: console=tty0 console=ttyS0,57600
Kernel command line: console=tty0 console=ttyS0,57600
console [ttyS0] enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
$ sudo ./setserial -a /dev/ttyS1
/dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test
user@orac ~ $ cat /proc/interrupts
CPU0 CPU1
0: 35 20 IO-APIC-edge timer
1: 0 2 IO-APIC-edge i8042
3: 0 1 IO-APIC-edge
4: 0 179 IO-APIC-edge serial
[snip]
>> Machine B
>>
>> ttyS0 and ttyS1 will both receive, but neither will send. Go figure.
>> Tested using a null modem cable, setserial and cu against the known good
>> machine above.
>>
>
> Boggle - what flow control wiring have you done ?
>
>
:) Same null modem cable as used in all other tests. Setup with
setserial then connect either ends with the likes of
cu -s 9600 -l /dev/ttyS?
and this machine can receive and display characters typed on the other
end, but nothing gets sent the other way.
Have tried with hardware/software flow on/off at both ends. Clueless...
I havent tried yet but will see if grub will push anything out (ie
independent of the kernel) which will rule out a hardware problem and
implicate the kernel. But its a relatively new m/b with onboard serial
so I doubt it's broken.
Will report back.
>
> The big outstanding bug I know about is the incompatibility between the
> PnP 8250 drivers and serial console - that may be your machine C case.
> That one is rather hard to fix so on the long rather than short term hit
> list.
>
Sounds likely. Any way I can know for sure?
The kernel log looks a bit different on this machine:
Serial: 8250/16550 driver4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
serial 00:09: activated
00:09: ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
serial 00:0a: activated
00:0a: ttyS3 at I/O 0x2e8 (irq = 5) is a 16550A
compared with Machine A:
Serial: 8250/16550 driver4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Thanks for your input
Andrew Walrond
> Alan
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
>
next prev parent reply other threads:[~2009-01-23 19:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 17:41 serial8250 madness Andrew Walrond
2009-01-23 17:50 ` David Daney
2009-01-23 18:05 ` Andrew Walrond
2009-01-23 18:12 ` David Daney
2009-01-23 18:39 ` Andrew Walrond
2009-01-23 18:00 ` Alan Cox
2009-01-23 19:05 ` Andrew Walrond [this message]
2009-01-23 23:13 ` Alan Cox
2009-01-24 15:12 ` Clark Williams
2009-01-23 18:24 ` Bruce Ashfield
2009-01-24 12:06 ` Andrew Walrond
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=497A14ED.2010707@walrond.org \
--to=andrew@walrond.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.