From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (unknown [172.16.44.254]) by listman.redhat.com (Postfix) with ESMTP id 580FE2F241 for ; Wed, 24 Oct 2001 21:11:32 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id f9P1BWN00749 for ; Wed, 24 Oct 2001 21:11:32 -0400 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f9P1BWW02945 for axp-list@listman.redhat.com; Wed, 24 Oct 2001 21:11:32 -0400 Received: from zcamail04.zca.compaq.com (zcamail04.zca.compaq.com [161.114.32.104]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f9P1BUg02939 for ; Wed, 24 Oct 2001 21:11:31 -0400 Received: by zcamail04.zca.compaq.com (Postfix, from userid 12345) id E8513F55; Wed, 24 Oct 2001 18:14:16 -0700 (PDT) Received: from mailrelay01.cac.cpqcorp.net (mailrelay01.cac.cpqcorp.net [16.47.132.152]) by zcamail04.zca.compaq.com (Postfix) with ESMTP id CCE63DA8 for ; Wed, 24 Oct 2001 18:14:16 -0700 (PDT) Received: by mailrelay01.cac.cpqcorp.net (Postfix, from userid 12345) id C5169BDF; Wed, 24 Oct 2001 18:11:24 -0700 (PDT) Received: from cxau.zko.dec.com (cxxosf.zko.dec.com [16.31.32.241]) by mailrelay01.cac.cpqcorp.net (Postfix) with ESMTP id 4BE37966 for ; Wed, 24 Oct 2001 18:11:24 -0700 (PDT) Received: from SCHLEPPDOWN by cxau.zko.dec.com (8.9.3/1.1.27.5/11Jan01-0822AM) id VAA0000658781; Wed, 24 Oct 2001 21:10:21 -0400 (EDT) From: "Martin Frey" To: Subject: RE: sable smp Date: Wed, 24 Oct 2001 21:11:18 -0400 Message-ID: <00b101c15cf1$f42df1d0$e6c02f10@SCHLEPPDOWN> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <200110242229.SAA25688@corona.umiacs.umd.edu> X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com X-Reply-To: List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: -Hi, >Has anyone had luck getting an smp kernel running on a 4/275? >A standard >non-smp kernel works, but an smp kernel starts, says it cannot >start the >remaining 3 processors then panics. I'm trying 2.4.12 and RH >7.1. Is there a >more stable earlier kernel that works? > I could manage to boot 2.4.4 with the following patches: --- linux-2.4.4/arch/alpha/kernel/sys_sable.c Fri Oct 27 13:55:01 2000 +++ linux-2.4.4_mf/arch/alpha/kernel/sys_sable.c Thu Jun 7 10:09:26 2001 @@ -96,7 +96,7 @@ static inline void sable_update_irq_hw(unsigned long bit, unsigned long mask) { - int port = 0x536; + int port = 0x537; if (bit >= 16) { port = 0x53d; @@ -121,7 +121,7 @@ } else if (bit >= 8) { port = 0x53a; val1 = 0xE0 | (bit - 8); - val2 = 0xE0 | 2; + val2 = 0xE0 | 3; } else { port = 0x536; val1 = 0xE0 | (bit - 0); The patch above is against 2.4.4, it got included into the newer kernel version. With just the patch above the interrupt handling works fine again, but there seems to remain an race. I hit a NULL pointer reference on line 758 of arch/alpha/kernel/smp.c (still 2.4.4). I made a validation check as follows: --- linux.mcore/arch/alpha/kernel/smp.c Fri Jun 8 09:49:30 2001 +++ linux.sable/arch/alpha/kernel/smp.c Fri Jun 8 09:54:54 2001 @@ -767,6 +767,7 @@ int wait; data = smp_call_function_data; + if (!data) printk("hit bug in handle_ipi\n"); func = data->func; info = data->info; wait = data->wait; and the problem went away. I never saw the print happening, but 'data' was not NULL anymore. I played around with memory barriers, but it did not help. The lines of the patch are slightly off since it is diffed versus 2.4.4 with the in-core-memory-dump patch from Mission Critical Linux applied. The system still does not run stable. I don't see any panics anymore, but on launch of a new program it sometimes segfaults somewhere within ld.so. I used a plain Redhat 6.2 with NFS root to test. 2.2.18 worked fine (at least for a couple of hours, I did not test any longer). I don't have access to the systems anymore, so passing the information out is probably all I can do right now. But any feedback is appreciated. Good luck, Martin Frey -- Supercomputing Systems AG email: frey@scs.ch Martin Frey web: http://www.scs.ch/~frey/ Technoparkstrasse 1 phone: +41 1 445 16 00 CH-8005 Zuerich fax: +41 1 445 16 10