Bug 657530 - serial/8250: Increase number of serial ports detected to 32
Summary: serial/8250: Increase number of serial ports detected to 32
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-26 11:09 UTC by Yegor Yefremov
Modified: 2010-12-10 14:49 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-09 23:37:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 675453 0 None None None Never
Novell 652954 0 None None None 2019-07-17 08:54:43 UTC

Description Yegor Yefremov 2010-11-26 11:09:20 UTC
Description of problem:

Both CONFIG_SERIAL_8250_NR_UARTS and CONFIG_SERIAL_8250_RUNTIME_UARTS should be
increased to at least 32 in order to support multi port serial cards out of the
box. This will cover at least the situation, where two 8 port cards are used
simultaneously and there is still some room for internal ports or the other
card.

This bug report was created after initial discussion on the linux-serial
mailings list: http://www.spinics.net/lists/linux-serial/msg03020.html

Version-Release number of selected component (if applicable):


How reproducible: 
Always

Steps to Reproduce:
1. insert 8 port serial card based on 8250 UART family
2.
3.
  
Actual results:
only some ports will be detected

Expected results:
all 8 ports must be detected

Additional info:

see already accepted changed in Ubuntu and openSUSE
https://bugzilla.novell.com/show_bug.cgi?id=652954
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/675453

Comment 1 Kyle McMartin 2010-12-09 23:37:11 UTC
RUNTIME_UARTS will not be increased, as it can be increased with a parameter and isn't necessary for virtually all users.

NR_UARTS is already 32.

Comment 2 Yegor Yefremov 2010-12-10 09:29:28 UTC
The advantage of such approach is that multiple interface cards can be used at once without user intervention. This would reduce the support effort much, cause this is the most frequent user question: "Why not all ports are detected?". Then we have to point them to this problem and teach them how to make changes in various bootloaders. And this costs time and resources.  

And I don't see any disadvantages in increasing CONFIG_SERIAL_8250_RUNTIME_UARTS. As you already stated NR_UARTS is already 32, so memory is already "wasted". The RUNTIME value cares about registering this amount of ports and if the number of real ports is lower than RUNTIME_UARTS, only those real ports will be installed. So I don't see how it can affect other users.

Have you read this thread (http://www.spinics.net/lists/linux-serial/msg03020.html) completely? After my request to change the default values upstream, Greg Kroah-Hartman made following suggestion:

"Then get the distro to change the default setting of their kernels."

And then the reason:

"I doubt it as they would never notice that the value changed at all
(they run 'make oldconfig'). So please just work with the distros that
you are having problems with to get the value changed."

If you're still unsure about this lets discuss it on the linux-serial mailingslist.

Comment 3 Kyle McMartin 2010-12-10 14:49:40 UTC
It's a pointless change for virtually all users. If you don't like it, make the 8250 driver suck less.


Note You need to log in before you can comment on or make changes to this bug.