From: David Miller Date: Thu, 04 Jun 2009 04:23:13 +0000 Subject: Re: [Bugme-new] [Bug 13444] New: SparcServer 1000E SMP can cause Message-Id: <20090603.212313.180781657.davem@davemloft.net> List-Id: References: <20090603144241.99669d0e.akpm@linux-foundation.org> In-Reply-To: <20090603144241.99669d0e.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org From: oftedal Date: Thu, 4 Jun 2009 01:14:33 +0200 (CEST) > As mentioned in the bug-report(#13444) the sun4d-SMP code on > 2.4-series kernels(2.4.37) uses the physical cpu-mapping when > inserting tasks into the init_tasks array. > And the scheduler uses the logical cpu-mapping which will cause a > kernel nullpointer when there are gaps in the physical cpu-mapping. > > The attached patch uses the cpucount variable, which can be used to > find the next logical slot in the init_tasks array. As it is only > incremented > when a cpu is successfully started. > > (I hope this was more compliant with kernel-bugfixing standards. I am > new to this) > > Signed-off-by: Kjetil Oftedal I don't think we're handling 2.4.x patches at this point. :-) If the bug exists in 2.6.x as well I'd be happy to review such a patch and apply it for you.