linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephan Fabel <sfabel@hawaii.edu>
To: linux-serial@vger.kernel.org
Subject: Intel 82801 DB LPC I/O ports trouble
Date: Mon, 15 Feb 2010 10:40:22 -1000	[thread overview]
Message-ID: <4B79B136.3000506@hawaii.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 2288 bytes --]

Hello,

I've been banging my head on this issue for a couple of days now and
would appreciate any help or pointers in the right direction. I've got
an Intel-based motherboard with the above mentioned LPC bus integrated.
There is one regular serial port included (DB 9), the rest is on the
bus. I've got several motor controllers hanging on that bus. Under
Windows, they are attached to COM4, 5 and 6.

Under Linux (2.6.31/Ubuntu stock kernel), I only get /dev/ttyS{0,1,2,3}
initially. Ports 0-2 are dead, under ttyS3 I can access one motor. So I
used the boot parameter 8250.nr_uarts=6 to try and see if that changes
anything, and it does: I've got /dev/ttyS{4,5} now. But the I/O ports
are messed up.

A quick look in the BIOS revealed that serial port 5 lives at I/O 0x4e8
and port 6 at 0x4f8.

However, dmesg shows these ports in reverse:
-----snip-----
[    1.015356] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.015479] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    1.015619] serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
[    1.015729] serial8250: ttyS3 at I/O 0x2e8 (irq = 3) is a 16550A
[    1.016355] 00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.016584] 00:10: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    1.016763] 00:11: ttyS2 at I/O 0x3e8 (irq = 3) is a 16550A
[    1.016937] 00:12: ttyS3 at I/O 0x2e8 (irq = 4) is a 16550A
[    1.017113] 00:13: ttyS4 at I/O 0x4f8 (irq = 5) is a 16550A
[    1.017289] 00:14: ttyS5 at I/O 0x4e8 (irq = 9) is a 16550A
-----snip-----

So I made sure I did not oversee anything; but I did not. Every time I
change this in the BIOS, it shows up in reverse in dmesg; I cannot use
setserial to change it, either. I should mention that the IRQs are set
correctly and I've tried changing them (with one eye on the
Serial-HOWTO), and these changes get accepted.

Now the above only shows the first four as output from serial8250, and
then lists them again, this time all 6 of them.

What can I do? Is there a way to move /dev/ttyS{0-2} to wherever my
motor controllers are? Do I recompile the kernel with some option
enabled or changed? To I have to rewire the LPC port? Is support for the
Intel 82801 DB LPC broken?

Thanks for any help on this.

Stephan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

                 reply	other threads:[~2010-02-15 21:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4B79B136.3000506@hawaii.edu \
    --to=sfabel@hawaii.edu \
    --cc=linux-serial@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).