public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Increase the number of USB to serial devices we can support at once
@ 2013-06-05 17:54 Greg KH
  2013-06-05 17:54 ` [PATCH 2/3] USB: serial: make minor allocation dynamic Greg KH
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Greg KH @ 2013-06-05 17:54 UTC (permalink / raw)
  To: Tobias Winter, Bjørn Mork, Rob Landley; +Cc: linux-usb, linux-kernel

Here are 3 patches that I've tested out on my system with only a small
number of devices, but it seems to work, so why not let others try it
out...

These patches make the USB to serial core have the ability to support up
to 3000 devices at once now.  We do this in the following steps:
	- adding the minor number to the usb_serial_port structure
	- removing the static array of ports, and use idr instead
	- increasing the number

Now, if you pay attention, we end up taking up more runtime memory than
before, because we are asking the tty layer to reserve a bunch more tty
devices for us, negating the potential savings of getting rid of our
original static array.  I'll work on fixing up the tty layer calls to
properly allocate the tty devices only when we need them, much like the
pty layer does.  When that's done, we can bump the number of usb to
serial devices up to 16k with no memory problems.

This series is based on my usb-linus branch on my usb.git tree on
git.kernel.org, as I needed some of the usb-serial fixes that are in
that branch already.

Testing / review is most welcome.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-06-06 16:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05 17:54 [PATCH 0/3] Increase the number of USB to serial devices we can support at once Greg KH
2013-06-05 17:54 ` [PATCH 2/3] USB: serial: make minor allocation dynamic Greg KH
2013-06-06 12:17   ` Johan Hovold
2013-06-06 16:33     ` Greg KH
2013-06-05 17:55 ` [PATCH 3/3] USB: serial: increase the number of devices we support Greg KH
2013-06-05 17:55 ` [PATCH 1/3] USB: serial: ports: add minor and port number Greg KH
2013-06-06 11:31   ` Johan Hovold
2013-06-06 11:32     ` [PATCH] USB: whiteheat: fix broken port configuration Johan Hovold
2013-06-06 16:37     ` [PATCH 1/3] USB: serial: ports: add minor and port number Greg KH
2013-06-06 11:35 ` [PATCH 0/3] Increase the number of USB to serial devices we can support at once Tobias Winter
2013-06-06 15:01 ` Dave Jones
2013-06-06 15:21   ` Greg KH
2013-06-06 16:24     ` Tobias Winter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox