Skip to contentSkip to conversation

Serial ports rearranged in 2.6.22?

DISCUSSION Michael Mauch 4 participants 7 messages Aug 10, 2007 – Aug 14, 2007 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hi,

until 2.6.21, I had the normal assignments for ttyS0 and ttyS1:

00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

With 2.6.22 I get the names <-> ports/irqs the other way around:

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A

Is this supposed to be that way? Should we reassign these names with udev? udev-114 doesn't seem to have built-in rules to assign the traditional names.

Or could it be related to some brokeness in my BIOS (ACPI/PNP)?

I'm using the 8250_pnp module (and it's the same with builtin serial modules). I made sure that I did not accidentally change the BIOS settings for the serial ports.

I'm using Gentoo, but on the lirc list was a Fedora user with the same symptoms.

Regards...
Michael

#1 lore raw
Quoted 16 lines · Michael Mauch

Hi,

until 2.6.21, I had the normal assignments for ttyS0 and ttyS1:

00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

With 2.6.22 I get the names <-> ports/irqs the other way around:

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A

Is this supposed to be that way? Should we reassign these names with udev? udev-114 doesn't seem to have built-in rules to assign the traditional names.

Quoted 8 lines

Or could it be related to some brokeness in my BIOS (ACPI/PNP)?

I'm using the 8250_pnp module (and it's the same with builtin serial modules). I made sure that I did not accidentally change the BIOS settings for the serial ports.

I'm using Gentoo, but on the lirc list was a Fedora user with the same symptoms.

http://lkml.org/lkml/2007/7/25/455

YH

#2 lore raw
Quoted 19 lines · Yinghai Lu
Quoted 18 lines · Michael Mauch

Hi,

until 2.6.21, I had the normal assignments for ttyS0 and ttyS1:

00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

With 2.6.22 I get the names <-> ports/irqs the other way around:

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A

Is this supposed to be that way? Should we reassign these names with udev? udev-114 doesn't seem to have built-in rules to assign the traditional names.

Or could it be related to some brokeness in my BIOS (ACPI/PNP)?

Quoted 8 lines
Quoted 6 lines

I'm using the 8250_pnp module (and it's the same with builtin serial modules). I made sure that I did not accidentally change the BIOS settings for the serial ports.

I'm using Gentoo, but on the lirc list was a Fedora user with the same symptoms.

http://lkml.org/lkml/2007/7/25/455

Thanks - I applied that patch and the names are back to normal again:

00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Regards...
Michael

#3 lore raw
Quoted 13 lines · Michael Mauch
Quoted 11 lines · Yinghai Lu
Quoted 10 lines · Michael Mauch

until 2.6.21, I had the normal assignments for ttyS0 and ttyS1:

00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

With 2.6.22 I get the names <-> ports/irqs the other way around:

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A
...

Quoted 6 lines
Quoted 1 line

http://lkml.org/lkml/2007/7/25/455

Thanks - I applied that patch and the names are back to normal again:

00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Just FYI, the patch Yinghai mentioned above was experimental, and we decided it was the wrong solution.

For 2.6.22, the easiest workaround is to boot with the "legacy_serial.force" option.

For 2.6.23, we reverted my patch that caused the names to be swapped:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=57d4810ea0d9ca58a7bcc1336607f0cede0a2abf

Bjorn

#4 lore raw
Quoted 14 lines · Bjorn Helgaas
Quoted 13 lines · Michael Mauch
Quoted 8 lines · Yinghai Lu
Quoted 6 lines · Michael Mauch

With 2.6.22 I get the names <-> ports/irqs the other way around:

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A
...

http://lkml.org/lkml/2007/7/25/455

Thanks - I applied that patch and the names are back to normal again:

Quoted 8 lines
Quoted 2 lines

00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Just FYI, the patch Yinghai mentioned above was experimental, and we decided it was the wrong solution.

For 2.6.22, the easiest workaround is to boot with the "legacy_serial.force" option.

Ah, ok, and load the legacy_serial module. Going from built-in serial to modules I was already challenged to find serial_core, 8250, 8250_pnp and/or 8250_pci (the help in "make menuconfig" does not seem to show the help that is written in the Kconfig file for 8250_pnp and 8250_pci).

Quoted 2 lines

For 2.6.23, we reverted my patch that caused the names to be swapped:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=57d4810ea0d9ca58a7bcc1336607f0cede0a2abf

Thanks for the information - I wondered how you decided.

What about 2.6.22.x? Or should the distro kernels use that revert patch for their stable 2.6.22 kernels?

Regards...
Michael

#5 lore raw
Quoted 22 lines · Michael Mauch
Quoted 20 lines · Bjorn Helgaas
Quoted 9 lines · Michael Mauch
Quoted 7 lines · Yinghai Lu
Quoted 6 lines · Michael Mauch

With 2.6.22 I get the names <-> ports/irqs the other way around:

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A
...

Quoted 6 lines
Quoted 1 line

http://lkml.org/lkml/2007/7/25/455

Thanks - I applied that patch and the names are back to normal again:

00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Just FYI, the patch Yinghai mentioned above was experimental, and we decided it was the wrong solution.

Quoted 7 lines
Quoted 2 lines

For 2.6.22, the easiest workaround is to boot with the "legacy_serial.force" option.

Ah, ok, and load the legacy_serial module. Going from built-in serial to modules I was already challenged to find serial_core, 8250, 8250_pnp and/or 8250_pci (the help in "make menuconfig" does not seem to show the help that is written in the Kconfig file for 8250_pnp and 8250_pci).

Yes, I messed up the legacy_serial module stuff.

Quoted 7 lines
Quoted 2 lines

For 2.6.23, we reverted my patch that caused the names to be swapped:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=57d4810ea0d9ca58a7bcc1336607f0cede0a2abf

Thanks for the information - I wondered how you decided.

What about 2.6.22.x? Or should the distro kernels use that revert patch for their stable 2.6.22 kernels?

I would not recommend the experimental patch (http://lkml.org/lkml/2007/7/25/455).
Using the revert patch is probably safest, since it also avoids
the module load issues.

Bjorn

#6 lore raw
Quoted 31 lines · Bjorn Helgaas
Quoted 19 lines · Michael Mauch
Quoted 17 lines · Bjorn Helgaas
Quoted 5 lines · Michael Mauch
Quoted 3 lines · Yinghai Lu
Quoted 2 lines · Michael Mauch

With 2.6.22 I get the names <-> ports/irqs the other way around:

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

00:08: ttyS0 at I/O 0x2f8 (irq = 3) is a 16550A
00:09: ttyS1 at I/O 0x3f8 (irq = 4) is a 16550A
...

http://lkml.org/lkml/2007/7/25/455

Thanks - I applied that patch and the names are back to normal again:

00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:07: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

Just FYI, the patch Yinghai mentioned above was experimental, and we decided it was the wrong solution.

Quoted 6 lines
Quoted 2 lines

For 2.6.22, the easiest workaround is to boot with the "legacy_serial.force" option.

Ah, ok, and load the legacy_serial module. Going from built-in serial to modules I was already challenged to find serial_core, 8250, 8250_pnp and/or 8250_pci (the help in "make menuconfig" does not seem to show the help that is written in the Kconfig file for 8250_pnp and 8250_pci).

Yes, I messed up the legacy_serial module stuff.

Quoted 2 lines
Quoted 2 lines

For 2.6.23, we reverted my patch that caused the names to be swapped:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=57d4810ea0d9ca58a7bcc1336607f0cede0a2abf

Quoted 9 lines
Quoted 4 lines

Thanks for the information - I wondered how you decided.

What about 2.6.22.x? Or should the distro kernels use that revert patch for their stable 2.6.22 kernels?

I would not recommend the experimental patch (http://lkml.org/lkml/2007/7/25/455).
Using the revert patch is probably safest, since it also avoids
the module load issues.

Should that be submitted for 2.6.22-stable?