public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Request: increase in PCI bus limit
@ 2001-01-31 10:27 Manfred Spraul
  0 siblings, 0 replies; 17+ messages in thread
From: Manfred Spraul @ 2001-01-31 10:27 UTC (permalink / raw)
  To: neufeld, linux-kernel

> 
>    I'm working at a customer site with custom hardware. The 2.4.0 series 
> kernel almost works out of the box, but the machine has 52 PCI busses. 
> Plans are to produce a 4-way box which would have over 80 PCI busses. The 
> file include/asm-i386/mpspec.h allocates space for 32 busses in the 
> definition of the macro MAX_MP_BUSSES. 
>

How long is the MP structure?
smp_scan_config() reserves only 4 kB:

	reserve_bootmem(mpf->mpf_physptr, PAGE_SIZE);

reserving the actual size (mpf->mpf_physptr->mpc_length) could be
tricky.

It should be possible to dynamically allocate the memory for the busses:
It's not yet possible (smp_read_mpc() is called at a very early stage,
before kmalloc is initialized), but we must move it to a later stage
anyway:
some Compaq bios version need ioremap() in smp_read_mpc(), and we should
parse the ACPI tables for APIC descriptors (MADT, ia64 does that
already).

I'll add it to my TODO list.

--
	Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Request: increase in PCI bus limit
@ 2001-01-31 16:26 Christopher Neufeld
  0 siblings, 0 replies; 17+ messages in thread
From: Christopher Neufeld @ 2001-01-31 16:26 UTC (permalink / raw)
  To: linux-kernel

From: Timur Tabi <ttabi@interactivesi.com>
>
>Besides, why is your client afraid of patched kernels?  It sounds like a very
>odd request from someone with a linuxcare.com email address.  I would think that
>you'd WANT to provide patched kernels so that the customer can keep paying you
>(until they learn how to use a text editor, at which point they can patch the
>kernel themselves!!!)
>
   Well, to be honest, this kernel patch was developed by the client long
before I showed up, I only heard about it yesterday evening when they asked
me to pass it on to linux-kernel. I see your point, but I think it would be
a very strange and magical world where customers line up to pay a company
to apply one-line patches to a header file and type "make" every time a new
kernel comes along.


   There are a few reasons that it would be nice to have such changes in a
standard kernel:

>From the company's point of view:  ease of support.  If the box runs on a
standard Linux kernel it makes it much easier on people who purchase the
boxes.  The company doesn't have to provide patched kernels whenever a new
kernel release comes out, and purchasers can be confident that they won't
find themselves trapped if the company becomes unable or unwilling to
continue to provide those patches.

>From the Linux community's point of view:  flexibility.  Maybe this is the
first computer to pass the 32 PCI bus limit, maybe not.  I really doubt
it's the last, though.  At some point, this will rear up again, and a
kernel which handles the condition gracefully would probably be appreciated
by the people working on this hypothetical future system.

>From the company's point of view:  verification.  I've been told in email
that the correct solution is more subtle than simply increasing this one
value.  The fact that this patch works properly in house is probably
somewhat fortuitous.  Remember the fun when people started increasing the
open file descriptor limits a couple of years ago, and almost getting it
right?  By bringing this patch to the attention of linux-kernel, we point
out a possible need for this functionality to the people who developed the
code in question, and who might be able to fix some subtler gotchas which
were missed when the change was developed.


-- 
 Christopher Neufeld		 		 neufeld@linuxcare.com
 Home page:  http://caliban.physics.utoronto.ca/neufeld/Intro.html
 "Don't edit reality for the sake of simplicity"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Request: increase in PCI bus limit
@ 2001-01-31  1:32 Bernd Eckenfels
  2001-01-31  6:55 ` Peter Samuelson
  0 siblings, 1 reply; 17+ messages in thread
From: Bernd Eckenfels @ 2001-01-31  1:32 UTC (permalink / raw)
  To: linux-kernel

In article <3A775FEB.D7614D98@Hell.WH8.TU-Dresden.De> you wrote:
> I guess the cleanest solution would be to allow variable setting of the
> maximum number of PCI busses in the config file, similar to the
> CONFIG_UNIX98_PTY_COUNT setting, so that "exotic" users with 32+ PCI
> busses can boost the standard value according to their needs, without
> having to increase kernel size for the normal users.

May even decrease the kernel for systems < 4 busses.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: Request: increase in PCI bus limit
@ 2001-01-31  1:31 Bernd Eckenfels
  0 siblings, 0 replies; 17+ messages in thread
From: Bernd Eckenfels @ 2001-01-31  1:31 UTC (permalink / raw)
  To: linux-kernel

In article <200101310008.f0V08Wv23250@localhost.localdomain> you wrote:
> 256, in later 2.4.* kernel releases?  That would allow this customer to
> work with an unpatched kernel, at the cost of an additional 3.5 kB of
> variables in the kernel.

Don't think this is fairly common. So especially since I consider that kind of
hardware (what is it) to require finetuning ("enterprise kernel") anyway,
there is no real gain out of it, as long as the structure is not dynamically.

Is that some kind of file server or masspar system? Intel?

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Request: increase in PCI bus limit
@ 2001-01-31  0:08 Christopher Neufeld
  2001-01-31  0:36 ` Timur Tabi
  2001-01-31  0:44 ` Udo A. Steinberg
  0 siblings, 2 replies; 17+ messages in thread
From: Christopher Neufeld @ 2001-01-31  0:08 UTC (permalink / raw)
  To: linux-kernel

   Hello,

   I'm working at a customer site with custom hardware.  The 2.4.0 series
kernel almost works out of the box, but the machine has 52 PCI busses.
Plans are to produce a 4-way box which would have over 80 PCI busses.  The
file include/asm-i386/mpspec.h allocates space for 32 busses in the
definition of the macro MAX_MP_BUSSES.  When 52 busses are probed, some
arrays are filled out past their ends (there is no bounds checking
performed on the array filling), and the kernel oopses out.  The only patch
which has to be applied to make Linux run stably on these systems is to
increase that limit.  Would it be possible to bump it up to 128, or even
256, in later 2.4.* kernel releases?  That would allow this customer to
work with an unpatched kernel, at the cost of an additional 3.5 kB of
variables in the kernel.

   Thank you for any help.
   For completeness, here's the patch (against 2.4.0):

--- linux-2.4.0/include/asm-i386/mpspec.h.orig  Tue Jan 30 16:06:08 2001
+++ linux-2.4.0/include/asm-i386/mpspec.h       Tue Jan 30 16:06:21 2001
@@ -157,7 +157,7 @@
  */
 
 #define MAX_IRQ_SOURCES 128
-#define MAX_MP_BUSSES 32
+#define MAX_MP_BUSSES 256
 enum mp_bustype {
        MP_BUS_ISA = 1,
        MP_BUS_EISA,



-- 
 Christopher Neufeld		 		 neufeld@linuxcare.com
 Home page:  http://caliban.physics.utoronto.ca/neufeld/Intro.html
 "Don't edit reality for the sake of simplicity"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-02-24 14:14 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-31 10:27 Request: increase in PCI bus limit Manfred Spraul
  -- strict thread matches above, loose matches on Subject: below --
2001-01-31 16:26 Christopher Neufeld
2001-01-31  1:32 Bernd Eckenfels
2001-01-31  6:55 ` Peter Samuelson
2001-01-31 20:38   ` George
2001-01-31 20:45     ` Scott Laird
2001-01-31 20:52       ` nick
2001-01-31 20:58       ` Dan Hollis
2001-02-10  0:29       ` Dr. Kelsey Hudson
2001-02-24 13:46     ` Ralf Baechle
2001-01-31  1:31 Bernd Eckenfels
2001-01-31  0:08 Christopher Neufeld
2001-01-31  0:36 ` Timur Tabi
2001-01-31  1:44   ` List User
2001-01-31  9:15   ` James Sutherland
2001-01-31  0:44 ` Udo A. Steinberg
2001-01-31  9:10   ` Helge Hafting

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