From owner-linux-mips@oss.sgi.com Sun Dec 2 03:01:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB2B1Z521830 for linux-mips-outgoing; Sun, 2 Dec 2001 03:01:35 -0800 Received: from satisfactory.karma (c3379.eburwd3.vic.optusnet.com.au [203.164.215.77]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB2B1Vo21826 for ; Sun, 2 Dec 2001 03:01:31 -0800 Received: by satisfactory.karma (Postfix, from userid 500) id 302AB33A4E; Sun, 2 Dec 2001 21:01:24 +1100 (EST) Date: Sun, 2 Dec 2001 21:01:24 +1100 From: Andrew Clausen To: linux-mips@oss.sgi.com Cc: bug-parted@gnu.org Subject: Call for GNU Parted / MIPS partition table testers Message-ID: <20011202210124.E1073@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.17i X-Accept-Language: en,pt Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Dear Sir/Madam, Do you feel lost? Lonely in the modern world? Or perhaps you're just figuring out your role in life. If this sounds like you, then Clausen Profit Systems can help! Follow these 4 easy steps: (1) download GNU Parted 1.5.5-pre5: ftp://ftp.gnu.org/gnu/parted/devel/parted-1.5.5-pre5.tar.gz (you might want to check for a newer version, in case I find some obvious bugs) (2) compile, and test it - preferrably on a spare disk! ;) Note: Parted can run even if it has read-only permission (3) send bug reports to bug-parted@gnu.org (4) rm /sbin/fdisk Andrew Clausen General Managing Marketing Director Clausen Profit Systems, Inc. members.optushome.com.au/clausen/profit From owner-linux-mips@oss.sgi.com Sun Dec 2 04:10:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB2CAGd24036 for linux-mips-outgoing; Sun, 2 Dec 2001 04:10:16 -0800 Received: from pandora.research.kpn.com (IDENT:root@pandora.research.kpn.com [139.63.192.11]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB2CADo24032 for ; Sun, 2 Dec 2001 04:10:13 -0800 Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6]) by pandora.research.kpn.com (8.9.3/8.9.3) with ESMTP id MAA09715; Sun, 2 Dec 2001 12:10:03 +0100 Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6]) by sparta.research.kpn.com (8.8.8+Sun/8.8.8) with ESMTP id MAA15571; Sun, 2 Dec 2001 12:10:03 +0100 (MET) Message-Id: <200112021110.MAA15571@sparta.research.kpn.com> X-Mailer: exmh version 1.6.5 12/11/95 To: flo@rfc822.org, linux-mips@oss.sgi.com, linux-mips@fnet.fr Reply-to: vhouten@kpn.com Subject: New delo RPMs for RH7.x and recent 2.4.x kernels X-Face: ";:TzQQC{mTp~$W,'m4@Lu1Lu$rtG_~5kvYO~F:C'KExk9o1X"iRz[0%{bq?6Aj#>VhSD?v 1W9`.Qsf+P&*iQEL8&y,RDj&U.]!(R-?c-h5h%Iw%r$|%6+Jc>GTJe!_1&A0o'lC[`I#={2BzOXT1P q366I$WL=;[+SDo1RoIT+a}_y68Y:jQ^xp4=*4-ryiymi>hy Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 02 Dec 2001 12:10:03 +0100 From: "Houten K.H.C. van (Karel)" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi, I've uploaded new delo (DECStation bootloader) RPMs that contain Florian latest patch, and can be compiled by H.J.Lu's RH7.1 toolchain (native). It is available at: ftp://oss.sgi.com/pub/linux/mips/mipsel-linux/delo Regards, -- Karel van Houten ---------------------------------------------------------- The box said "Requires Windows 95 or better." I can't understand why it won't work on my Linux computer. ---------------------------------------------------------- From owner-linux-mips@oss.sgi.com Sun Dec 2 06:12:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB2ECpL31559 for linux-mips-outgoing; Sun, 2 Dec 2001 06:12:51 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB2ECgo31555 for ; Sun, 2 Dec 2001 06:12:42 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB2DCX918319; Mon, 3 Dec 2001 00:12:33 +1100 Date: Mon, 3 Dec 2001 00:12:33 +1100 From: Ralf Baechle To: Kjeld Borch Egevang Cc: Mark Salter , linux-mips@oss.sgi.com Subject: Re: math emulator patch Message-ID: <20011203001233.A13616@dea.linux-mips.net> References: <200111300138.fAU1cOA31059@deneb.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from kjelde@mips.com on Sat, Dec 01, 2001 at 12:36:44AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 01, 2001 at 12:36:44AM +0100, Kjeld Borch Egevang wrote: > Great. The same problem exists for sp_tlong.c and dp_tlong.c. Ok, this is what I'm going to checkin for both 2.4 and 2.5. Tell me if that's ok. Btw, we've got so many almost identical sourcefiles in the fp emulation code, something should be done about that ... Ralf Index: arch/mips/math-emu/dp_tint.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/math-emu/dp_tint.c,v retrieving revision 1.4 diff -u -r1.4 dp_tint.c --- arch/mips/math-emu/dp_tint.c 2001/10/09 23:56:18 1.4 +++ arch/mips/math-emu/dp_tint.c 2001/12/02 13:10:44 @@ -50,6 +50,9 @@ break; } if (xe >= 31) { + /* look for valid corner case */ + if (xe == 31 && xs && xm == DP_HIDDEN_BIT) + return -2147483648; /* Set invalid. We will only use overflow for floating point overflow */ SETCX(IEEE754_INVALID_OPERATION); Index: arch/mips/math-emu/dp_tlong.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/math-emu/dp_tlong.c,v retrieving revision 1.5 diff -u -r1.5 dp_tlong.c --- arch/mips/math-emu/dp_tlong.c 2001/11/21 15:53:51 1.5 +++ arch/mips/math-emu/dp_tlong.c 2001/12/02 13:10:44 @@ -49,6 +49,9 @@ break; } if (xe >= 63) { + /* look for valid corner case */ + if (xe == 63 && xs && xm == DP_HIDDEN_BIT) + return -9223372036854775808LL; /* Set invalid. We will only use overflow for floating point overflow */ SETCX(IEEE754_INVALID_OPERATION); Index: arch/mips/math-emu/sp_tint.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/math-emu/sp_tint.c,v retrieving revision 1.4 diff -u -r1.4 sp_tint.c --- arch/mips/math-emu/sp_tint.c 2001/10/09 23:56:19 1.4 +++ arch/mips/math-emu/sp_tint.c 2001/12/02 13:10:44 @@ -50,6 +50,9 @@ break; } if (xe >= 31) { + /* look for valid corner case */ + if (xe == 31 && xs && xm == SP_HIDDEN_BIT) + return -2147483648; /* Set invalid. We will only use overflow for floating point overflow */ SETCX(IEEE754_INVALID_OPERATION); Index: arch/mips/math-emu/sp_tlong.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/math-emu/sp_tlong.c,v retrieving revision 1.4 diff -u -r1.4 sp_tlong.c --- arch/mips/math-emu/sp_tlong.c 2001/10/09 23:56:19 1.4 +++ arch/mips/math-emu/sp_tlong.c 2001/12/02 13:10:44 @@ -49,6 +49,9 @@ break; } if (xe >= 63) { + /* look for valid corner case */ + if (xe == 63 && xs && xm == SP_HIDDEN_BIT) + return -9223372036854775808LL; /* Set invalid. We will only use overflow for floating point overflow */ SETCX(IEEE754_INVALID_OPERATION); From owner-linux-mips@oss.sgi.com Sun Dec 2 06:23:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB2EN7331819 for linux-mips-outgoing; Sun, 2 Dec 2001 06:23:07 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB2EN2o31815; Sun, 2 Dec 2001 06:23:02 -0800 Received: from mullein.sonytel.be (mail.sonytel.be [10.17.0.27]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id OAA28581; Sun, 2 Dec 2001 14:22:54 +0100 (MET) Date: Sun, 2 Dec 2001 14:22:56 +0100 (MET) From: Geert Uytterhoeven To: Ralf Baechle cc: Linux/MIPS Development Subject: Re: math emulator patch In-Reply-To: <20011203001233.A13616@dea.linux-mips.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, 3 Dec 2001, Ralf Baechle wrote: > Btw, we've got so many almost identical sourcefiles in the fp emulation > code, something should be done about that ... diff --ifdef :-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Sun Dec 2 06:40:46 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB2EekU32096 for linux-mips-outgoing; Sun, 2 Dec 2001 06:40:46 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB2Eeho32093 for ; Sun, 2 Dec 2001 06:40:43 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB2DeSf18497; Mon, 3 Dec 2001 00:40:28 +1100 Date: Mon, 3 Dec 2001 00:40:28 +1100 From: Ralf Baechle To: Geert Uytterhoeven Cc: Linux/MIPS Development Subject: Re: math emulator patch Message-ID: <20011203004028.B18332@dea.linux-mips.net> References: <20011203001233.A13616@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from geert@linux-m68k.org on Sun, Dec 02, 2001 at 02:22:56PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sun, Dec 02, 2001 at 02:22:56PM +0100, Geert Uytterhoeven wrote: > On Mon, 3 Dec 2001, Ralf Baechle wrote: > > Btw, we've got so many almost identical sourcefiles in the fp emulation > > code, something should be done about that ... > > diff --ifdef :-) Hope Santa didn't see that ;-) Ralf From owner-linux-mips@oss.sgi.com Sun Dec 2 08:27:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB2GR4101721 for linux-mips-outgoing; Sun, 2 Dec 2001 08:27:04 -0800 Received: from deneb.localdomain (ga-cmng-u1-c3b-97.cmngga.adelphia.net [24.53.98.97]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB2GQxo01717 for ; Sun, 2 Dec 2001 08:26:59 -0800 Received: (from msalter@localhost) by deneb.localdomain (8.11.6/8.11.6) id fB2FQwF07112; Sun, 2 Dec 2001 10:26:58 -0500 Date: Sun, 2 Dec 2001 10:26:58 -0500 Message-Id: <200112021526.fB2FQwF07112@deneb.localdomain> X-Authentication-Warning: deneb.localdomain: msalter set sender to msalter@redhat.com using -f From: Mark Salter To: linux-mips@oss.sgi.com Subject: another math emulation patch Sender: owner-linux-mips@oss.sgi.com Precedence: bulk I found another math emulation problem. The code that was failing looked like this: bc1f 1f nop ... 1: jr ra move v0,v1 When the bc1f is emulated and the branch is taken, mips_dsemul gets called to emulate the delay slot insn. Before calling mips_dsemul, the branch emulation code sets CAUSEF_BD. mips_dsemul checks for nop and bails out early instead of going through the process of executing the insn. The loop in fpu_emulator_cop1Handler will call cop1Emulate with the BD flag set and epc pointing to the "jr ra" insn. cop1Emulate sees the BD flag and calculates the continue PC based on the jr insn target address. cop1Emulate then bails out because the move in the jr delay slot is not a cop1 insn. This results in the program being restarted at the "jr ra" target address and the move in the jr delay slot being ignored. This only happens when a nop is in the cop1 branch delay slot because ds_emul will have the cpu execute other insns and that will clear the BD flag. The following patch fixes the problem by clearing the BD flag when ds_emul returns directly in the case of a nop. --Mark Index: cp1emu.c =================================================================== RCS file: /cvs/linux/arch/mips/math-emu/cp1emu.c,v retrieving revision 1.13 diff -u -p -5 -c -r1.13 cp1emu.c cvs server: conflicting specifications of output style *** cp1emu.c 2001/10/13 12:30:27 1.13 --- cp1emu.c 2001/11/30 23:15:33 *************** mips_dsemul(struct pt_regs *regs, mips_i *** 788,797 **** --- 788,798 ---- mips_instruction forcetrap; extern asmlinkage void handle_dsemulret(void); if (ir == 0) { /* a nop is easy */ regs->cp0_epc = VA_TO_REG(cpc); + regs->cp0_cause &= ~CAUSEF_BD; return 0; } #ifdef DSEMUL_TRACE printk("desemul %p %p\n", REG_TO_VA(regs->cp0_epc), cpc); #endif From owner-linux-mips@oss.sgi.com Sun Dec 2 16:04:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB304GB10718 for linux-mips-outgoing; Sun, 2 Dec 2001 16:04:16 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB304Ao10715 for ; Sun, 2 Dec 2001 16:04:11 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 8F879875; Mon, 3 Dec 2001 00:04:02 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 7010244CD; Mon, 3 Dec 2001 00:03:38 +0100 (CET) Date: Mon, 3 Dec 2001 00:03:38 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: 2.4.16 success on Decstation 5000/150 Message-ID: <20011203000338.A30090@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline User-Agent: Mutt/1.3.23i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, the current cvs (as of a couple hours ago) works without additional patches on my Decstation 5000/150 like a charm: record:/lib/modules/2.4.16# uname -a Linux record.rfc822.org 2.4.16 #2 Sun Dec 2 22:24:58 CET 2001 mips unknown record:/lib/modules/2.4.16# cat /proc/cpuinfo=20 processor : 0 cpu model : R4000SC V3.0 FPU V0.0 BogoMIPS : 50.52 wait instruction : no microsecond timers : yes extra interrupt vector : no hardware watchpoint : yes VCED exceptions : 10036 VCEI exceptions : 65122 Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8CrNJUaz2rXW+gJcRAi6WAKCotXcsKT/JXFt6HwQGfzXnLorNTACZAQkx MkEVnr6SbRJDqxCApIYwCjQ= =Tmwm -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw-- From owner-linux-mips@oss.sgi.com Sun Dec 2 17:00:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB310iZ11999 for linux-mips-outgoing; Sun, 2 Dec 2001 17:00:44 -0800 Received: from buzz.ichilton.co.uk (pc3-stoc4-0-cust138.mid.cable.ntl.com [213.107.175.138]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB310eo11996 for ; Sun, 2 Dec 2001 17:00:40 -0800 Received: by buzz.ichilton.co.uk (Postfix, from userid 100) id C58911CE31E; Mon, 3 Dec 2001 00:00:36 +0000 (GMT) Date: Mon, 3 Dec 2001 00:00:36 +0000 From: Ian Chilton To: linux-mips@oss.sgi.com Subject: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011203000036.A10356@buzz.ichilton.local> Reply-To: Ian Chilton References: <20011203000338.A30090@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011203000338.A30090@paradigm.rfc822.org> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, > the current cvs (as of a couple hours ago) works without additional > patches on my Decstation 5000/150 like a charm: It also worked for me earlier on an Indy R4600 - 1st kernel I have had properly boot since 2.4-test9 IIRC. /proc/cpuinfo output: processor : 0 cpu model : R4600 V2.0 FPU V2.0 BogoMIPS : 100.23 wait instruction : yes microsecond timers : yes extra interrupt vector : no hardware watchpoint : no VCED exceptions : not available VCEI exceptions : not available Bye for Now, Ian From owner-linux-mips@oss.sgi.com Sun Dec 2 17:03:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB313YN12107 for linux-mips-outgoing; Sun, 2 Dec 2001 17:03:34 -0800 Received: from buzz.ichilton.co.uk (pc3-stoc4-0-cust138.mid.cable.ntl.com [213.107.175.138]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB313Vo12104 for ; Sun, 2 Dec 2001 17:03:31 -0800 Received: by buzz.ichilton.co.uk (Postfix, from userid 100) id A0F5D1CE31E; Mon, 3 Dec 2001 00:03:28 +0000 (GMT) Date: Mon, 3 Dec 2001 00:03:28 +0000 From: Ian Chilton To: linux-mips@oss.sgi.com Subject: Linux/MIPS News! Message-ID: <20011203000328.B10356@buzz.ichilton.local> Reply-To: Ian Chilton Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, I added news about 2.4.16 and 2.5.0 being in CVS on: http://www.linuxmips.net/news.php4 Please, if anyone else has any news, drop me a line at ian@ichilton.co.uk so we can add it and keep the news updated!! Stuff like "I ported this to mips", "New kernel in cvs", "x kernel boots", "xx distro available here:..." etc is always welcome! In 2 weeks time when I have time off for Christmas, I hope to update the whole site too - for starters it's not linux-mips.org anymore but linuxmips.net Thanks Ian From owner-linux-mips@oss.sgi.com Sun Dec 2 22:24:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB36Obl22680 for linux-mips-outgoing; Sun, 2 Dec 2001 22:24:37 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB36OZo22677 for ; Sun, 2 Dec 2001 22:24:35 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB35OVK24481; Mon, 3 Dec 2001 16:24:31 +1100 Date: Mon, 3 Dec 2001 16:24:31 +1100 From: Ralf Baechle To: Mark Salter Cc: linux-mips@oss.sgi.com Subject: Re: another math emulation patch Message-ID: <20011203162431.D21528@dea.linux-mips.net> References: <200112021526.fB2FQwF07112@deneb.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112021526.fB2FQwF07112@deneb.localdomain>; from msalter@redhat.com on Sun, Dec 02, 2001 at 10:26:58AM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sun, Dec 02, 2001 at 10:26:58AM -0500, Mark Salter wrote: > I found another math emulation problem. The code that was failing > looked like this: Thanks, applied. Good spotting. Ralf From owner-linux-mips@oss.sgi.com Sun Dec 2 23:00:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB370vD25881 for linux-mips-outgoing; Sun, 2 Dec 2001 23:00:57 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB370to25875 for ; Sun, 2 Dec 2001 23:00:56 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB360mb27534; Mon, 3 Dec 2001 17:00:48 +1100 Date: Mon, 3 Dec 2001 17:00:47 +1100 From: Ralf Baechle To: nick@snowman.net, linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: o200 oops Message-ID: <20011203170047.B24633@dea.linux-mips.net> References: <20011128091248.A24032@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from nick@snowman.net on Sun, Dec 02, 2001 at 09:56:07PM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sun, Dec 02, 2001 at 09:56:07PM -0500, nick@snowman.net wrote: > unknown ioctl: 00005382 Request to users of the 64-bit kernel - if you get a kernel message like this one please tell me drop me a mail. Would be great if you can actually find the symbolic name of the ioctl triggering this message. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 3 06:38:08 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB3Ec8P20881 for linux-mips-outgoing; Mon, 3 Dec 2001 06:38:08 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB3Ec2o20877 for ; Mon, 3 Dec 2001 06:38:03 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 5E48E882; Mon, 3 Dec 2001 14:37:54 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id C17C944E6; Mon, 3 Dec 2001 14:37:34 +0100 (CET) Date: Mon, 3 Dec 2001 14:37:34 +0100 From: Florian Lohoff To: Ian Chilton Cc: linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011203143734.A5965@paradigm.rfc822.org> References: <20011203000338.A30090@paradigm.rfc822.org> <20011203000036.A10356@buzz.ichilton.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20011203000036.A10356@buzz.ichilton.local> User-Agent: Mutt/1.3.23i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 03, 2001 at 12:00:36AM +0000, Ian Chilton wrote: > Hello, >=20 > > the current cvs (as of a couple hours ago) works without additional > > patches on my Decstation 5000/150 like a charm: >=20 > It also worked for me earlier on an Indy R4600 - 1st kernel I have had > properly boot since 2.4-test9 IIRC. It basically comes up for me but is endlessly slow because i am getting a mad interrupt - Putting an printk("I%d", irq) into do_IRQ shows=20 IRQ 8 going mad ... Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8C4AdUaz2rXW+gJcRAgjGAJ9igf+jO/47RLAiikURAcRNagWkoQCffqB1 LFFqaK4DNPdj5dzhNNoqwxE= =xgYV -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- From owner-linux-mips@oss.sgi.com Mon Dec 3 09:19:30 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB3HJUS04840 for linux-mips-outgoing; Mon, 3 Dec 2001 09:19:30 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB3HJSo04837 for ; Mon, 3 Dec 2001 09:19:28 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id BFB697CEE; Mon, 3 Dec 2001 16:19:21 +0000 (GMT) Date: Mon, 3 Dec 2001 16:19:21 +0000 From: Ian Chilton To: Florian Lohoff Cc: linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011203161921.B30391@woody.ichilton.co.uk> Reply-To: Ian Chilton References: <20011203000338.A30090@paradigm.rfc822.org> <20011203000036.A10356@buzz.ichilton.local> <20011203143734.A5965@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <20011203143734.A5965@paradigm.rfc822.org>; from flo@rfc822.org on Mon, Dec 03, 2001 at 02:37:34PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, > It basically comes up for me but is endlessly slow because i am getting > a mad interrupt - Putting an printk("I%d", irq) into do_IRQ shows > IRQ 8 going mad ... Interesting. Does anyone know what IRQ 8 is? Thanks Ian From owner-linux-mips@oss.sgi.com Mon Dec 3 09:40:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB3HeZp05278 for linux-mips-outgoing; Mon, 3 Dec 2001 09:40:35 -0800 Received: from hlubocky.del.cz (hlubocky.del.cz [212.27.221.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB3HeIo05264 for ; Mon, 3 Dec 2001 09:40:19 -0800 Received: from ladis (helo=localhost) by hlubocky.del.cz with local-esmtp (Exim 3.12 #1 (Debian)) id 16Aw3E-0001PO-00; Mon, 03 Dec 2001 17:34:40 +0100 Date: Mon, 3 Dec 2001 17:34:40 +0100 (CET) From: Ladislav Michl To: Ian Chilton cc: Florian Lohoff , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) In-Reply-To: <20011203161921.B30391@woody.ichilton.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by oss.sgi.com id fB3HeLo05265 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, 3 Dec 2001, Ian Chilton wrote: > Hello, > > > It basically comes up for me but is endlessly slow because i am getting > > a mad interrupt - Putting an printk("I%d", irq) into do_IRQ shows > > IRQ 8 going mad ... > > Interesting. Does anyone know what IRQ 8 is? sure :-) IRQ 8 is FIFO full and was never used (and to be honest, i don't know what that irq is used for). before Wed, 21 Nov 2001 17:49:32 +0100 it was General purpose local interrupt - this one was also never used. see include/asm-mips/sgi/sgint23.h for more info. i have no clue, why you're getting this interrupt. it works pretty well for me... laïa From owner-linux-mips@oss.sgi.com Mon Dec 3 11:26:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB3JQNL11039 for linux-mips-outgoing; Mon, 3 Dec 2001 11:26:23 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB3JQHo11036 for ; Mon, 3 Dec 2001 11:26:17 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 48C32892; Mon, 3 Dec 2001 19:26:09 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id C8A8141A9; Mon, 3 Dec 2001 19:25:43 +0100 (CET) Date: Mon, 3 Dec 2001 19:25:43 +0100 From: Florian Lohoff To: Ladislav Michl Cc: Ian Chilton , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011203192543.A10394@paradigm.rfc822.org> References: <20011203161921.B30391@woody.ichilton.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 03, 2001 at 05:34:40PM +0100, Ladislav Michl wrote: > sure :-) IRQ 8 is FIFO full and was never used (and to be honest, i don't > know what that irq is used for). before Wed, 21 Nov 2001 17:49:32 +0100 > it was General purpose local interrupt - this one was also never > used. see include/asm-mips/sgi/sgint23.h for more info. >=20 > i have no clue, why you're getting this interrupt. it works pretty well > for me... Ok - the IRQ8 get enabled because i have CONFIG_RTC set and in drivers/char/rtc.c around line 730 it requests: if(request_irq(RTC_IRQ, rtc_interrupt, SA_INTERRUPT, "rtc", NULL)) Immediatly afterwards the massive ammount of IRQs. With 100Hz and 160 Chars across the screen - I would expect 1-2 lines/s on the screen. Instead the screen fills up within tens of seconds which seems to me like non acked IRQ. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8C8OnUaz2rXW+gJcRAs7iAJ9cCwFr+HHMyTuLga7m62PVFrNFYwCeOe5f eWzBOA2uYLf2DRJA+4JSnBk= =+JPp -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn-- From owner-linux-mips@oss.sgi.com Mon Dec 3 15:44:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB3NiCl24496 for linux-mips-outgoing; Mon, 3 Dec 2001 15:44:12 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB3Ni8o24493; Mon, 3 Dec 2001 15:44:08 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id 8AA7D7CEE; Mon, 3 Dec 2001 22:44:01 +0000 (GMT) Date: Mon, 3 Dec 2001 22:44:01 +0000 From: Ian Chilton To: Florian Lohoff , ralf@oss.sgi.com Cc: linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011203224401.A31747@woody.ichilton.co.uk> Reply-To: Ian Chilton References: <20011203161921.B30391@woody.ichilton.co.uk> <20011203192543.A10394@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <20011203192543.A10394@paradigm.rfc822.org>; from flo@rfc822.org on Mon, Dec 03, 2001 at 07:25:43PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, > Immediatly afterwards the massive ammount of IRQs. With 100Hz and 160 > Chars across the screen - I would expect 1-2 lines/s on the screen. > Instead the screen fills up within tens of seconds which seems to me > like non acked IRQ. Weird.. Has any changes been made to the IRQ code lately? Ralf - any ideas? Bye for Now, Ian From owner-linux-mips@oss.sgi.com Mon Dec 3 20:51:59 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB44pxn11154 for linux-mips-outgoing; Mon, 3 Dec 2001 20:51:59 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB44pto11151 for ; Mon, 3 Dec 2001 20:51:56 -0800 Message-Id: <200112040451.fB44pto11151@oss.sgi.com> Received: (qmail 1853 invoked from network); 4 Dec 2001 03:46:05 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 4 Dec 2001 03:46:05 -0000 Date: Tue, 4 Dec 2001 11:50:9 +0800 From: Zhang Fuxin To: "linux-mips@oss.sgi.com" Subject: config problem? X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk hi,linux-mips, when upgrading to current CVS 2_4_branch,I find that the configure scripts seems problematic: 1. drivers/hotplug doesn't exist,so line 421: source "drivers/hotplug/config.in" leads to failures of make xconfig/menuconfig 2. drivers/sound/config.in line 37 type error = 'y' should be = "y" 3.the newly added "Embed root filesys ramdisk.." is not in any mainmenu block,so "statement not in menu" occurs 'make config' is ok Regards Zhang Fuxin fxzhang@ict.ac.cn From owner-linux-mips@oss.sgi.com Tue Dec 4 00:14:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB48EqT16686 for linux-mips-outgoing; Tue, 4 Dec 2001 00:14:52 -0800 Received: from topsns.toshiba-tops.co.jp (topsns.toshiba-tops.co.jp [202.230.225.5]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB48Elo16683; Tue, 4 Dec 2001 00:14:47 -0800 Received: from inside-ms1.toshiba-tops.co.jp by topsns.toshiba-tops.co.jp via smtpd (for [216.32.174.27]) with SMTP; 4 Dec 2001 07:14:46 UT Received: from srd2sd.toshiba-tops.co.jp (gw-chiba7.toshiba-tops.co.jp [172.17.244.27]) by topsms.toshiba-tops.co.jp (Postfix) with ESMTP id A84D8B46D; Tue, 4 Dec 2001 16:14:44 +0900 (JST) Received: by srd2sd.toshiba-tops.co.jp (8.9.3/3.5Wbeta-srd2sd) with ESMTP id QAA44223; Tue, 4 Dec 2001 16:14:44 +0900 (JST) Date: Tue, 04 Dec 2001 16:19:28 +0900 (JST) Message-Id: <20011204.161928.28780490.nemoto@toshiba-tops.co.jp> To: brad@ltc.com Cc: ralf@oss.sgi.com, linux-mips@oss.sgi.com Subject: Re: PATCH: spurious_count cleanup From: Atsushi Nemoto In-Reply-To: <20011201004526.A22248@dev1.ltc.com> References: <20011201004526.A22248@dev1.ltc.com> X-Fingerprint: EC 9D B9 17 2E 89 D2 25 CE F5 5D 3D 12 29 2A AD X-Pgp-Public-Key: http://pgp.nic.ad.jp/cgi-bin/pgpsearchkey.pl?op=get&search=0xB6D728B1 Organization: TOSHIBA Personal Computer System Corporation X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk BTW, ".set noreorder" in this code seems dangerous while the jump instruction is not followed by nop... > --- arch/mips/kernel/entry.S 2001/11/27 01:26:46 1.32 > +++ arch/mips/kernel/entry.S 2001/11/30 18:42:07 > @@ -95,12 +95,12 @@ > * Someone tried to fool us by sending an interrupt but we > * couldn't find a cause for it. > */ > - lui t1,%hi(spurious_count) > + lui t1,%hi(irq_err_count) > .set reorder > - lw t0,%lo(spurious_count)(t1) > + lw t0,%lo(irq_err_count)(t1) > .set noreorder > addiu t0,1 > - sw t0,%lo(spurious_count)(t1) > + sw t0,%lo(irq_err_count)(t1) > j ret_from_irq > END(spurious_interrupt) > --- Atsushi Nemoto From owner-linux-mips@oss.sgi.com Tue Dec 4 00:42:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB48g3V17421 for linux-mips-outgoing; Tue, 4 Dec 2001 00:42:03 -0800 Received: from hlubocky.del.cz (hlubocky.del.cz [212.27.221.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB48fxo17417 for ; Tue, 4 Dec 2001 00:41:59 -0800 Received: from ladis (helo=localhost) by hlubocky.del.cz with local-esmtp (Exim 3.12 #1 (Debian)) id 16BACz-0003Eo-00; Tue, 04 Dec 2001 08:41:41 +0100 Date: Tue, 4 Dec 2001 08:41:40 +0100 (CET) From: Ladislav Michl To: Florian Lohoff cc: Ian Chilton , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) In-Reply-To: <20011203192543.A10394@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by oss.sgi.com id fB48g0o17419 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, 3 Dec 2001, Florian Lohoff wrote: > Ok - the IRQ8 get enabled because i have CONFIG_RTC set and in > drivers/char/rtc.c around line 730 it requests: > > if(request_irq(RTC_IRQ, rtc_interrupt, SA_INTERRUPT, "rtc", NULL)) ehh, you compiled MC146818 driver for Indy... that's not good idea - IP22 uses Dallas DS1286 RAMified Watcgdog Timekeeper. Enable CONFIG_SGI_DS1286 if you want RTC driver. > Immediatly afterwards the massive ammount of IRQs. With 100Hz and 160 > Chars across the screen - I would expect 1-2 lines/s on the screen. > Instead the screen fills up within tens of seconds which seems to me > like non acked IRQ. strange... you enabled FIFO full interrupt and it really arrived!(?) I'm really curious what that means. Unfortunately only few SGI engeneers know how Indy works and they don't tell it anyone :-( laïa From owner-linux-mips@oss.sgi.com Tue Dec 4 02:01:02 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4A12j19720 for linux-mips-outgoing; Tue, 4 Dec 2001 02:01:02 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4A0uo19710 for ; Tue, 4 Dec 2001 02:00:56 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id BBD0D89F; Tue, 4 Dec 2001 10:00:47 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id F36E44162; Tue, 4 Dec 2001 09:59:51 +0100 (CET) Date: Tue, 4 Dec 2001 09:59:51 +0100 From: Florian Lohoff To: Ladislav Michl Cc: Ian Chilton , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011204095951.A27343@paradigm.rfc822.org> References: <20011203192543.A10394@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 04, 2001 at 08:41:40AM +0100, Ladislav Michl wrote: > On Mon, 3 Dec 2001, Florian Lohoff wrote: >=20 > > Ok - the IRQ8 get enabled because i have CONFIG_RTC set and in > > drivers/char/rtc.c around line 730 it requests: > >=20 > > if(request_irq(RTC_IRQ, rtc_interrupt, SA_INTERRUPT, "rtc", NULL)) >=20 > ehh, you compiled MC146818 driver for Indy... that's not good idea - IP22 > uses Dallas DS1286 RAMified Watcgdog Timekeeper. Enable CONFIG_SGI_DS1286 > if you want RTC driver. CONFIG_RTC is set by "Enhanced Real Time Clock Support" - It seems there is something broken in the config system then ... tristate 'Enhanced Real Time Clock Support' CONFIG_RTC if [ "$CONFIG_IA64" =3D "y" ]; then bool 'EFI Real Time Clock Services' CONFIG_EFI_RTC fi if [ "$CONFIG_OBSOLETE" =3D "y" -a "$CONFIG_ALPHA_BOOK1" =3D "y" ]; then bool 'Tadpole ANA H8 Support' CONFIG_H8 fi Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8DJCHUaz2rXW+gJcRAqQ3AKDDOIGHmctmsWzKduac/lMUpog7TACgp4+E xInQCMt10+TCDaAkOU8CYsc= =ZQJq -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf-- From owner-linux-mips@oss.sgi.com Tue Dec 4 02:12:08 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4AC8020190 for linux-mips-outgoing; Tue, 4 Dec 2001 02:12:08 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4AC3o20186 for ; Tue, 4 Dec 2001 02:12:04 -0800 Received: from mullein.sonytel.be (mail.sonytel.be [10.17.0.27]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA22294; Tue, 4 Dec 2001 10:11:17 +0100 (MET) Date: Tue, 4 Dec 2001 10:11:18 +0100 (MET) From: Geert Uytterhoeven To: Florian Lohoff cc: Ladislav Michl , Ian Chilton , Linux/MIPS Development Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) In-Reply-To: <20011204095951.A27343@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 4 Dec 2001, Florian Lohoff wrote: > On Tue, Dec 04, 2001 at 08:41:40AM +0100, Ladislav Michl wrote: > > On Mon, 3 Dec 2001, Florian Lohoff wrote: > > > > > Ok - the IRQ8 get enabled because i have CONFIG_RTC set and in > > > drivers/char/rtc.c around line 730 it requests: > > > > > > if(request_irq(RTC_IRQ, rtc_interrupt, SA_INTERRUPT, "rtc", NULL)) > > > > ehh, you compiled MC146818 driver for Indy... that's not good idea - IP22 > > uses Dallas DS1286 RAMified Watcgdog Timekeeper. Enable CONFIG_SGI_DS1286 > > if you want RTC driver. > > CONFIG_RTC is set by "Enhanced Real Time Clock Support" - It seems > there is something broken in the config system then ... Was something changed there? I read a report from an APUS (PPC Amiga) user who suddenly had a PC-style RTC in his kernel, causing crashes. Could of course still be a user problem, but since you got bitten by the same thing... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Tue Dec 4 02:19:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4AJHW20506 for linux-mips-outgoing; Tue, 4 Dec 2001 02:19:17 -0800 Received: from hlubocky.del.cz (hlubocky.del.cz [212.27.221.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4AJBo20501 for ; Tue, 4 Dec 2001 02:19:11 -0800 Received: from ladis (helo=localhost) by hlubocky.del.cz with local-esmtp (Exim 3.12 #1 (Debian)) id 16BBiv-0003YA-00; Tue, 04 Dec 2001 10:18:45 +0100 Date: Tue, 4 Dec 2001 10:18:45 +0100 (CET) From: Ladislav Michl To: Florian Lohoff cc: Ian Chilton , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) In-Reply-To: <20011204095951.A27343@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by oss.sgi.com id fB4AJDo20503 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 4 Dec 2001, Florian Lohoff wrote: > CONFIG_RTC is set by "Enhanced Real Time Clock Support" - It seems > there is something broken in the config system then ... > > tristate 'Enhanced Real Time Clock Support' CONFIG_RTC > if [ "$CONFIG_IA64" = "y" ]; then > bool 'EFI Real Time Clock Services' CONFIG_EFI_RTC > fi > if [ "$CONFIG_OBSOLETE" = "y" -a "$CONFIG_ALPHA_BOOK1" = "y" ]; then > bool 'Tadpole ANA H8 Support' CONFIG_H8 > fi look to the drivers/sgi/Config.in instead comment 'SGI devices' bool 'SGI Zilog85C30 serial support' CONFIG_SGI_SERIAL if [ "$CONFIG_SGI_SERIAL" = "y" ]; then bool ' Support for console on serial port' CONFIG_SERIAL_CONSOLE fi bool 'SGI DS1286 RTC support' CONFIG_SGI_DS1286 i know... we have special driver for SGI, special driver for some ARM based boards, for some ...(a lot of clocks to list :-)). but, that's living ;-) search linux-mips archives, there was long debate about this month ago. personaly i don't like way how it works now, but i haven't time nor knowledges to change it without breaking anything, so i'm happy that it works somehow. laïa From owner-linux-mips@oss.sgi.com Tue Dec 4 02:26:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4AQR620810 for linux-mips-outgoing; Tue, 4 Dec 2001 02:26:27 -0800 Received: from pandora.research.kpn.com (IDENT:root@pandora.research.kpn.com [139.63.192.11]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4AQOo20807 for ; Tue, 4 Dec 2001 02:26:24 -0800 Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6]) by pandora.research.kpn.com (8.9.3/8.9.3) with ESMTP id KAA23811; Tue, 4 Dec 2001 10:26:22 +0100 Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6]) by sparta.research.kpn.com (8.8.8+Sun/8.8.8) with ESMTP id KAA13860; Tue, 4 Dec 2001 10:26:22 +0100 (MET) Message-Id: <200112040926.KAA13860@sparta.research.kpn.com> X-Mailer: exmh version 1.6.5 12/11/95 To: Florian Lohoff cc: linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Decstation 5000/150 In-reply-to: Your message of "Mon, 03 Dec 2001 00:03:38 +0100." <20011203000338.A30090@paradigm.rfc822.org> Reply-to: vhouten@kpn.com X-Face: ";:TzQQC{mTp~$W,'m4@Lu1Lu$rtG_~5kvYO~F:C'KExk9o1X"iRz[0%{bq?6Aj#>VhSD?v 1W9`.Qsf+P&*iQEL8&y,RDj&U.]!(R-?c-h5h%Iw%r$|%6+Jc>GTJe!_1&A0o'lC[`I#={2BzOXT1P q366I$WL=;[+SDo1RoIT+a}_y68Y:jQ^xp4=*4-ryiymi>hy Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Dec 2001 10:26:22 +0100 From: "Houten K.H.C. van (Karel)" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Florian wrote: > Hi, > the current cvs (as of a couple hours ago) works without additional > patches on my Decstation 5000/150 like a charm: > I got the current CVS 2.5.0 kernel running on my 5000/260 too. Without any patches. I hope to be able to compile a new root image, and update my website in the next weeks. -- Karel van Houten ---------------------------------------------------------- The box said "Requires Windows 95 or better." I can't understand why it won't work on my Linux computer. ---------------------------------------------------------- From owner-linux-mips@oss.sgi.com Tue Dec 4 04:47:11 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4ClBV25004 for linux-mips-outgoing; Tue, 4 Dec 2001 04:47:11 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4Cl3o25001 for ; Tue, 4 Dec 2001 04:47:05 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id MAA06950; Tue, 4 Dec 2001 12:44:07 +0100 (MET) Date: Tue, 4 Dec 2001 12:44:06 +0100 (MET) From: "Maciej W. Rozycki" To: "Houten K.H.C. van (Karel)" cc: Florian Lohoff , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Decstation 5000/150 In-Reply-To: <200112040926.KAA13860@sparta.research.kpn.com> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 4 Dec 2001, Houten K.H.C. van (Karel) wrote: > > the current cvs (as of a couple hours ago) works without additional > > patches on my Decstation 5000/150 like a charm: > > I got the current CVS 2.5.0 kernel running on my 5000/260 too. Without any > patches. I hope to be able to compile a new root image, and update my > website in the next weeks. Not surprising as the only difference between 2.4.16 and 2.5.0 is the version number. ;-) I'm glad 2.4.16 works sufficiently well for you. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 4 05:12:18 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4DCIi25735 for linux-mips-outgoing; Tue, 4 Dec 2001 05:12:18 -0800 Received: from luonnotar.infodrom.org (postfix@luonnotar.infodrom.org [195.124.48.78]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4DCDo25732 for ; Tue, 4 Dec 2001 05:12:14 -0800 Received: by luonnotar.infodrom.org (Postfix, from userid 10) id 77FC5366A49; Tue, 4 Dec 2001 13:12:10 +0100 (CET) Received: at Infodrom Oldenburg (/\##/\ Smail-3.2.0.102 1998-Aug-2 #2) from infodrom.org by finlandia.Infodrom.North.DE via smail from stdin id for linux-mips@oss.sgi.com; Tue, 4 Dec 2001 13:04:44 +0100 (CET) Date: Tue, 4 Dec 2001 13:04:44 +0100 From: Martin Schulze To: "Maciej W. Rozycki" Cc: linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Decstation 5000/150 Message-ID: <20011204130444.N14528@finlandia.infodrom.north.de> References: <200112040926.KAA13860@sparta.research.kpn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Maciej W. Rozycki wrote: > On Tue, 4 Dec 2001, Houten K.H.C. van (Karel) wrote: > > > > the current cvs (as of a couple hours ago) works without additional > > > patches on my Decstation 5000/150 like a charm: > > > > I got the current CVS 2.5.0 kernel running on my 5000/260 too. Without any > > patches. I hope to be able to compile a new root image, and update my > > website in the next weeks. > > Not surprising as the only difference between 2.4.16 and 2.5.0 is the > version number. ;-) Err, that was 2.4.15 and 2.5.0, 2.4.16 contains at least the filesystem-uncorruption feature, no? Regards, Joey -- Unix is user friendly ... It's just picky about its friends. From owner-linux-mips@oss.sgi.com Tue Dec 4 05:27:38 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4DRcS29336 for linux-mips-outgoing; Tue, 4 Dec 2001 05:27:38 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4DRao29321 for ; Tue, 4 Dec 2001 05:27:36 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id EAA03198 for ; Tue, 4 Dec 2001 04:27:04 -0800 (PST) mail_from (macro@ds2.pg.gda.pl) Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id NAA08461; Tue, 4 Dec 2001 13:20:43 +0100 (MET) Date: Tue, 4 Dec 2001 13:20:43 +0100 (MET) From: "Maciej W. Rozycki" To: Martin Schulze cc: linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Decstation 5000/150 In-Reply-To: <20011204130444.N14528@finlandia.infodrom.north.de> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 4 Dec 2001, Martin Schulze wrote: > Err, that was 2.4.15 and 2.5.0, 2.4.16 contains at least the filesystem-uncorruption > feature, no? Yep, my mistake. Better apply a 2.5.1 pre-patch to 2.5.0 or simply don't run it then. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 4 07:19:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4FJpH03617 for linux-mips-outgoing; Tue, 4 Dec 2001 07:19:51 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4FJmo03612 for ; Tue, 4 Dec 2001 07:19:48 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id GAA27147 for ; Tue, 4 Dec 2001 06:19:40 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id GAA29320 for ; Tue, 4 Dec 2001 06:19:39 -0800 (PST) Received: from mips.com (copsun17 [192.168.205.27]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB4EJaA17830 for ; Tue, 4 Dec 2001 15:19:36 +0100 (MET) Message-ID: <3C0CDB7B.C13AE2B3@mips.com> Date: Tue, 04 Dec 2001 15:19:39 +0100 From: Carsten Langgaard X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: Mozilla/Netscape on MIPS Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk There has previous been some request about running Mozilla on a MIPS system. We have put a bigendian and a littleendian image on our FTP site. It runs on the current RedHat7.1 distribution with some minor updates. The needed RPMs is also available on our FTP site: ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ For those who likes to play games, we also have Doom available. ftp://ftp.mips.com/pub/linux/mips/installation/apps/doom/ Happy shooting and browsing. /Carsten -- _ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com From owner-linux-mips@oss.sgi.com Tue Dec 4 08:13:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4GDPA05277 for linux-mips-outgoing; Tue, 4 Dec 2001 08:13:25 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4GDNo05274 for ; Tue, 4 Dec 2001 08:13:23 -0800 Received: from galadriel.physik.uni-konstanz.de [134.34.144.79] (8) by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian)) id 16BHFx-00006d-00; Tue, 04 Dec 2001 16:13:13 +0100 Received: from agx by galadriel.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16BHEj-0002Ry-00; Tue, 04 Dec 2001 16:11:57 +0100 Date: Tue, 4 Dec 2001 16:11:57 +0100 From: Guido Guenther To: Carsten Langgaard Cc: linux-mips@oss.sgi.com Subject: Re: Mozilla/Netscape on MIPS Message-ID: <20011204161157.A9410@galadriel.physik.uni-konstanz.de> Mail-Followup-To: Carsten Langgaard , linux-mips@oss.sgi.com References: <3C0CDB7B.C13AE2B3@mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C0CDB7B.C13AE2B3@mips.com>; from carstenl@mips.com on Tue, Dec 04, 2001 at 03:19:39PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > There has previous been some request about running Mozilla on a MIPS > system. > We have put a bigendian and a littleendian image on our FTP site. > > It runs on the current RedHat7.1 distribution with some minor updates. > The needed RPMs is also available on our FTP site: > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ Were any special patches needed? Could you please also put the source rpms there? Regards, -- Guido From owner-linux-mips@oss.sgi.com Tue Dec 4 10:54:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB4IsvS01901 for linux-mips-outgoing; Tue, 4 Dec 2001 10:54:57 -0800 Received: from web21103.mail.yahoo.com (web21103.mail.yahoo.com [216.136.227.105]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4Isto01898 for ; Tue, 4 Dec 2001 10:54:55 -0800 Message-ID: <20011204175454.91780.qmail@web21103.mail.yahoo.com> Received: from [208.238.220.30] by web21103.mail.yahoo.com via HTTP; Tue, 04 Dec 2001 09:54:54 PST Date: Tue, 4 Dec 2001 09:54:54 -0800 (PST) From: ravi reddy Subject: kgdb To: linux-mips@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Could someone please point me to a working kgdb that would run on a Malta board? Thanks. Ravi __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com From owner-linux-mips@oss.sgi.com Tue Dec 4 16:31:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB50VV430050 for linux-mips-outgoing; Tue, 4 Dec 2001 16:31:31 -0800 Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB50VRo30047 for ; Tue, 4 Dec 2001 16:31:27 -0800 Received: from gate.mgnet.de (gate.gmx.net [194.221.183.17]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id AAA21910 for ; Wed, 5 Dec 2001 00:31:24 +0100 (MET) Received: (qmail 3224 invoked from network); 4 Dec 2001 23:30:13 -0000 Received: from spock.mgnet.de (192.168.1.4) by gate.mgnet.de with SMTP; 4 Dec 2001 23:30:13 -0000 Date: Wed, 5 Dec 2001 00:31:24 +0100 (CET) From: Klaus Naumann To: Linux/MIPS list Subject: Re: 2.4.16 success on Decstation 5000/150 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Morning ppl, something wonderful happened - the Illegal Instruction Problem which I had on my I2 magically went away using 2.4.16 from current cvs. Boots just fine. Cya, Klaus root@ivy:~# cat /proc/cpuinfo processor : 0 cpu model : R4000SC V6.0 FPU V0.0 BogoMIPS : 100.44 wait instruction : no microsecond timers : yes extra interrupt vector : no hardware watchpoint : yes VCED exceptions : 7269 VCEI exceptions : 2267 -- Full Name : Klaus Naumann | (http://www.mgnet.de/) (Germany) Nickname : Spock | Org.: Mad Guys Network Phone / FAX : ++49/177/7862964 | E-Mail: (spock@mgnet.de) PGP Key : www.mgnet.de/keys/key_spock.txt From owner-linux-mips@oss.sgi.com Tue Dec 4 17:11:11 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB51BBH31963 for linux-mips-outgoing; Tue, 4 Dec 2001 17:11:11 -0800 Received: from mcp.csh.rit.edu (mcp.csh.rit.edu [129.21.60.9]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB51Axo31960 for ; Tue, 4 Dec 2001 17:10:59 -0800 Received: from fury.csh.rit.edu (fury.csh.rit.edu [129.21.60.5]) by mcp.csh.rit.edu (Postfix) with ESMTP id 562A917E for ; Tue, 4 Dec 2001 19:10:57 -0500 (EST) Date: Tue, 4 Dec 2001 19:10:52 -0500 (EST) From: George Gensure To: Subject: glx on indy Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Has anyone gotten the glx modules loaded successfully into X running on an indy? glx by itself in the logs gives an unresolved symbol for glDDXExtentionInfo. Any ideas anyone? -George -- George R. Gensure Computer Science House werkt@csh.rit.edu Sophomore, Rochester Institute of Technology Computer Science From owner-linux-mips@oss.sgi.com Tue Dec 4 18:15:55 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB52Ft000760 for linux-mips-outgoing; Tue, 4 Dec 2001 18:15:55 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB52Foo00745 for ; Tue, 4 Dec 2001 18:15:50 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 627968AC; Wed, 5 Dec 2001 02:15:41 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 992F042AD; Wed, 5 Dec 2001 02:10:51 +0100 (CET) Date: Wed, 5 Dec 2001 02:10:51 +0100 From: Florian Lohoff To: Ladislav Michl Cc: Ian Chilton , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011205021051.A1882@paradigm.rfc822.org> References: <20011204095951.A27343@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 04, 2001 at 10:18:45AM +0100, Ladislav Michl wrote: > look to the drivers/sgi/Config.in instead >=20 > comment 'SGI devices' > bool 'SGI Zilog85C30 serial support' CONFIG_SGI_SERIAL > if [ "$CONFIG_SGI_SERIAL" =3D "y" ]; then > bool ' Support for console on serial port' CONFIG_SERIAL_CONSOLE > fi > bool 'SGI DS1286 RTC support' CONFIG_SGI_DS1286 I know that - I had that enabled too ... > i know... we have special driver for SGI, special driver for some ARM > based boards, for some ...(a lot of clocks to list :-)). but, that's > living ;-) search linux-mips archives, there was long debate about this > month ago. personaly i don't like way how it works now, but i haven't time > nor knowledges to change it without breaking anything, so i'm happy that > it works somehow. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8DXQbUaz2rXW+gJcRAm/AAKCDraeSv6Sfcp1FCONNTnlcrcHCgACfVvNw UkSYWh2XVx3HyFma8h18L8k= =07Py -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs-- From owner-linux-mips@oss.sgi.com Wed Dec 5 00:19:54 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB58Js423828 for linux-mips-outgoing; Wed, 5 Dec 2001 00:19:54 -0800 Received: from mangalore.zipworld.com.au (leeloo.zip.com.au [203.12.97.48]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB58Jko23825 for ; Wed, 5 Dec 2001 00:19:46 -0800 Received: from zip.com.au (root@zipperii.zip.com.au [61.8.0.87]) by mangalore.zipworld.com.au (8.9.3/8.9.3) with ESMTP id SAA04488; Wed, 5 Dec 2001 18:17:36 +1100 Message-ID: <3C0DCA07.AD302D7D@zip.com.au> Date: Tue, 04 Dec 2001 23:17:27 -0800 From: Andrew Morton X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.17-pre1 i686) X-Accept-Language: en MIME-Version: 1.0 To: todd_m_roy@vermontel.net CC: bregor@anusf.anu.edu.au, Kenneth Albanowski , Mat Hostetter , Andy Dougherty , Warner Losh , linux-mips@oss.sgi.com, Ron Guilmette , "Polstra; John" , "Hazelwood; Galen" , Ralf Baechle , Linas Vepstas , Feher Janos , Leonard Zubkoff , "Steven J. Hill" , linux-gcc@vger.kernel.org, GNU C Library , gcc@gcc.gnu.org Subject: Re: Problem with binutils 2.11.92.0.12 and ..12.3 References: <3C085FA1.CCDC7100@vermontel.net>, <3C085FA1.CCDC7100@vermontel.net>; from salteroy@vermontel.net on Fri, Nov 30, 2001 at 11:42:09PM -0500 <20011201094659.A9044@lucon.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk "H . J . Lu" wrote: > > On Fri, Nov 30, 2001 at 11:42:09PM -0500, Todd Roy, Wanda Salter and Alice Salter-Roy wrote: > > Hi, > > I had a linux kernel linking problem with 2.11.92.0.12 and > > 2.11.92.0.12.3 > ... > > > > I reverted to 2.11.92.0.10 and all is well again. > > > > I updated the release note for 2.11.92.0.12.3. Please read it carefully. > > ... > --- linux/arch/alpha/vmlinux.lds.in.discard Thu Nov 22 00:30:16 2001 > +++ linux/arch/alpha/vmlinux.lds.in Thu Nov 22 00:30:47 2001 > @@ -92,5 +92,5 @@ SECTIONS > .debug_typenames 0 : { *(.debug_typenames) } > .debug_varnames 0 : { *(.debug_varnames) } > > - /DISCARD/ : { *(.text.exit) *(.data.exit) } > + /DISCARD/ : { *(.text.exit) *(.data.exit) *(.exitcall.exit) } > } > --- linux/drivers/char/serial.c.discard Thu Nov 22 00:37:14 2001 > +++ linux/drivers/char/serial.c Thu Nov 22 10:54:54 2001 > @@ -4887,7 +4887,9 @@ static char serial_pci_driver_name[] = " > static struct pci_driver serial_pci_driver = { > name: serial_pci_driver_name, > probe: serial_init_one, > +#ifdef MODULE > remove: serial_remove_one, > +#endif > id_table: serial_pci_tbl, > }; > This is not sufficient. If CONFIG_HOTPLUG is defined, __devinit sections are still included in vmlinux. This is because those functions are required for hot-unplugging. This patch will cause hot-unplug for statically linked drivers to not work correctly, because the ->remove() method isn't available (it has a null pointer). The ifdef needs to be: #if defined(MODULE) || defined(CONFIG_HOTPLUG) I've just send a patch, which alters 59 kernel files to the kernel list. It's for 2.4.17-pre2 and will hopefully appear in 2.4.17-pre3. The easiest fix for earlier kernels is to edit arch/i386/vmlinux.lds.in and delete the entire /DISCARD/ section. From owner-linux-mips@oss.sgi.com Wed Dec 5 01:08:00 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5980l24771 for linux-mips-outgoing; Wed, 5 Dec 2001 01:08:00 -0800 Received: from topsns.toshiba-tops.co.jp (topsns.toshiba-tops.co.jp [202.230.225.5]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB597qo24768; Wed, 5 Dec 2001 01:07:52 -0800 Received: from inside-ms1.toshiba-tops.co.jp by topsns.toshiba-tops.co.jp via smtpd (for oss.sgi.com [216.32.174.27]) with SMTP; 5 Dec 2001 08:07:52 UT Received: from srd2sd.toshiba-tops.co.jp (gw-chiba7.toshiba-tops.co.jp [172.17.244.27]) by topsms.toshiba-tops.co.jp (Postfix) with ESMTP id 1BD6AB476; Wed, 5 Dec 2001 17:07:50 +0900 (JST) Received: by srd2sd.toshiba-tops.co.jp (8.9.3/3.5Wbeta-srd2sd) with ESMTP id RAA47483; Wed, 5 Dec 2001 17:07:49 +0900 (JST) Date: Wed, 05 Dec 2001 17:12:32 +0900 (JST) Message-Id: <20011205.171232.115909036.nemoto@toshiba-tops.co.jp> To: linux-mips@oss.sgi.com Cc: ralf@oss.sgi.com Subject: a small patch for latest (2.4.15+) unaligned.c From: Atsushi Nemoto X-Fingerprint: EC 9D B9 17 2E 89 D2 25 CE F5 5D 3D 12 29 2A AD X-Pgp-Public-Key: http://pgp.nic.ad.jp/cgi-bin/pgpsearchkey.pl?op=get&search=0xB6D728B1 Organization: TOSHIBA Personal Computer System Corporation X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk The latest arch/mips/kernel/unaligned.c loses some jump instructions in .fixup section. Here is a patch to fix it. This patch is created with linux_2_4 branch but can be applied to MAIN trunk also. --- linux-sgi-cvs/arch/mips/kernel/unaligned.c Tue Dec 4 11:40:12 2001 +++ linux.new/arch/mips/kernel/unaligned.c Wed Dec 5 17:02:57 2001 @@ -217,6 +217,7 @@ "3:\t.set\tat\n\t" ".section\t.fixup,\"ax\"\n\t" "4:\tli\t%1, %3\n\t" + "j\t3b\n\t" ".previous\n\t" ".section\t__ex_table,\"a\"\n\t" STR(PTR)"\t1b, 4b\n\t" @@ -256,6 +257,7 @@ "3:\n\t" ".section\t.fixup,\"ax\"\n\t" "4:\tli\t%0, %3\n\t" + "j\t3b\n\t" ".previous\n\t" ".section\t__ex_table,\"a\"\n\t" STR(PTR)"\t1b, 4b\n\t" @@ -283,6 +285,7 @@ "3:\n\t" ".section\t.fixup,\"ax\"\n\t" "4:\tli\t%0, %3\n\t" + "j\t3b\n\t" ".previous\n\t" ".section\t__ex_table,\"a\"\n\t" STR(PTR)"\t1b, 4b\n\t" --- Atsushi Nemoto From owner-linux-mips@oss.sgi.com Wed Dec 5 06:55:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5Et3903472 for linux-mips-outgoing; Wed, 5 Dec 2001 06:55:03 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5Esuo03460 for ; Wed, 5 Dec 2001 06:54:56 -0800 Message-Id: <200112051454.fB5Esuo03460@oss.sgi.com> Received: (qmail 11386 invoked from network); 5 Dec 2001 13:49:20 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 5 Dec 2001 13:49:20 -0000 Date: Wed, 5 Dec 2001 21:53:3 +0800 From: Zhang Fuxin To: Chris Dearman CC: "linux-mips@oss.sgi.com" Subject: Re: Re: 2.4.16 for algorithmics p6032 X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fB5Esvo03461 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk hi,Chris£¬ you can do anything you like to my code:) i have promised to release it months ago,but so busy I was the past months and i am shy to release ugly code. Sorry if it waste you time. Today I make some tests and get some fixes ,log is here (i was too sleepy last night,so most of them is stupy errors): 2001.12.05: arch/mips/defconfig-p6032: ide dma unstable,don't choose 'use dma by default when available' enable CONFIG_MTD_OBSOLETE_CHIPS & CONFIG_MTD_AMDSTD instead of CONFIG_MTD_CFI_AMDSTD for p6032 flash driver (to use the driver,mknod /dev/flash b 31 0,then you can cp to/from it) arch/mips/kernel/time.c: add code to display a banner using the little led on p6032. arch/mips/algor/p6032/kernel/setup.c: fix calculation of mips_counter_frequency,forget to div 2:( the diff on my site is updated. you probably will be more able to deal with the dma and board cache than me:). The spurious interrupt problem still there,i have added some code to work around it but don't know the reason. I have made a quick test with ltp, most of them passed,but some of the fs test and the syscall test failed,i will look into them soon if you have interest,i can give you more detail results ÔÚ 2001-12-05 12:37:00 you wrote£º >Zhang Fuxin wrote: >> >> hi,linux-mips, >> >> This mail seems lost,so i repost,i apologize if it duplicates >> : > > I've been tracking the 2.4 (now 2.5) kernel with my own P6032/P6064 >port. I did say I would send my stuff to Ralf to get it included in the >CVS tree. > > I can see that you have some good stuff here, so I'd like to >incorporate it into my code if that's OK with you. Then I *really* will >send this stuff to Ralf. > > Regards > Chris > >-- >Algorithmics,The Fruit Farm,Ely Road,Chittering,CAMBS CB5 9PH,ENGLAND >P: +44 1223 706200 F: +44 1223 706250 W: http://www.algor.co.uk Regards Zhang Fuxin fxzhang@ict.ac.cn From owner-linux-mips@oss.sgi.com Wed Dec 5 07:26:13 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5FQDf07189 for linux-mips-outgoing; Wed, 5 Dec 2001 07:26:13 -0800 Received: from oval.algor.co.uk (root@oval.algor.co.uk [62.254.210.250]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5FQ6o07186 for ; Wed, 5 Dec 2001 07:26:06 -0800 Received: from algor.co.uk (angel.algor.co.uk [62.254.210.234]) by oval.algor.co.uk (8.11.6/8.10.1) with ESMTP id fB5EPuZ22296; Wed, 5 Dec 2001 14:25:56 GMT Message-ID: <3C0E2E74.C1E7DF9F@algor.co.uk> Date: Wed, 05 Dec 2001 14:25:56 +0000 From: Chris Dearman Organization: Algorithmics Ltd X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.9-6 i686) X-Accept-Language: en MIME-Version: 1.0 To: Zhang Fuxin CC: "linux-mips@oss.sgi.com" Subject: Re: 2.4.16 for algorithmics p6032 References: <200112051354.fB5DstZ21095@oval.algor.co.uk> Content-Type: text/plain; charset=iso-8859-1 X-MIME-Autoconverted: from 8bit to quoted-printable by oval.algor.co.uk id fB5EPuZ22296 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fB5FQ7o07187 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Zhang Fuxin wrote: > > hi,Chris£¬ > you can do anything you like to my code:) > i have promised to release it months ago,but so busy I was the past > months and i am shy to release ugly code. Sorry if it waste you time. Thanks. We've followed very similar routes so there aren't so many differences :-) > > Today I make some tests and get some fixes ,log is here > (i was too sleepy last night,so most of them is stupy errors): > 2001.12.05: > arch/mips/defconfig-p6032: > ide dma unstable,don't choose 'use dma by default when available' Yes. I have had a look at this but haven't tracked it down yet. The only thing I know is that the buffer heads get corrupted, so I assume there is some interrupt locking problem somewhere. I know that DMA works in the MIPS 2.4.3 port. Were you using DMA in your 2.4.8 kernel? > you probably will be more able to deal with the dma and board cache Do you use the IOBC? I had to make some changes to pci.h and the ethernet driver to make them work properly. > than me:). The spurious interrupt problem still there,i have added some > code to work around it but don't know the reason. The spurious interrupts are caused by posted writes to PCI devices. The sequence is usually something like: o write device to clear interrupt (write gets posted) o enable CPU interrupts (interrupt is still pending) o CPU enters interrupt handler and reads 8259 which causes posted write to be flushed and so now there is no interrupt... The only fix is to do an explicit PCI (eg ISA port) before reenabling interrupts. The 2.4.x kernel reenables interrupts more quickly than the older kernel which is why it is more noticeable. > > I have made a quick test with ltp, most of them passed,but some of > the fs test and the syscall test failed,i will look into them soon > if you have interest,i can give you more detail results I've not used ltp, but if you do find anything useful I would be interested. Regards Chris -- Algorithmics,The Fruit Farm,Ely Road,Chittering,CAMBS CB5 9PH,ENGLAND P: +44 1223 706200 F: +44 1223 706250 W: http://www.algor.co.uk From owner-linux-mips@oss.sgi.com Wed Dec 5 07:40:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5Fera08744 for linux-mips-outgoing; Wed, 5 Dec 2001 07:40:53 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5Feio08741 for ; Wed, 5 Dec 2001 07:40:45 -0800 Message-Id: <200112051540.fB5Feio08741@oss.sgi.com> Received: (qmail 14691 invoked from network); 5 Dec 2001 14:35:09 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 5 Dec 2001 14:35:09 -0000 Date: Wed, 5 Dec 2001 22:38:55 +0800 From: Zhang Fuxin To: Chris Dearman CC: "linux-mips@oss.sgi.com" Subject: Re: Re: 2.4.16 for algorithmics p6032 X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fB5Fejo08742 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk hi,Chris£¬ ÔÚ 2001-12-05 14:25:00 you wrote£º >Zhang Fuxin wrote: >> >> hi,Chris£¬ >> you can do anything you like to my code:) >> i have promised to release it months ago,but so busy I was the past >> months and i am shy to release ugly code. Sorry if it waste you time. > > Thanks. We've followed very similar routes so there aren't so many >differences :-) > >> >> Today I make some tests and get some fixes ,log is here >> (i was too sleepy last night,so most of them is stupy errors): >> 2001.12.05: >> arch/mips/defconfig-p6032: >> ide dma unstable,don't choose 'use dma by default when available' > > Yes. I have had a look at this but haven't tracked it down yet. The >only thing I know is that the buffer heads get corrupted, so I assume >there is some interrupt locking problem somewhere. I know that DMA >works in the MIPS 2.4.3 port. Were you using DMA in your 2.4.8 kernel? Yes,it works well,at least much more stable for 2.4.16,a simple 'mtest01 -p80 -w'(alloc 80% memory to write) test can break the ide dma. > >> you probably will be more able to deal with the dma and board cache > > Do you use the IOBC? I had to make some changes to pci.h and the >ethernet driver to make them work properly. No. I had to make changes to generic code:),that's why i disable it. > >> than me:). The spurious interrupt problem still there,i have added some >> code to work around it but don't know the reason. > > The spurious interrupts are caused by posted writes to PCI devices. >The sequence is usually something like: > o write device to clear interrupt (write gets posted) > o enable CPU interrupts (interrupt is still pending) > o CPU enters interrupt handler and reads 8259 which causes posted >write > to be flushed and so now there is no interrupt... > > The only fix is to do an explicit PCI (eg ISA port) before reenabling >interrupts. The 2.4.x kernel reenables interrupts more quickly than the >older kernel which is why it is more noticeable. > Oh, thanks for your explanation. >> >> I have made a quick test with ltp, most of them passed,but some of >> the fs test and the syscall test failed,i will look into them soon >> if you have interest,i can give you more detail results > > I've not used ltp, but if you do find anything useful I would be >interested. > ok,i will let you know if something found > Regards > Chris > >-- >Algorithmics,The Fruit Farm,Ely Road,Chittering,CAMBS CB5 9PH,ENGLAND >P: +44 1223 706200 F: +44 1223 706250 W: http://www.algor.co.uk Regards Zhang Fuxin fxzhang@ict.ac.cn From owner-linux-mips@oss.sgi.com Wed Dec 5 07:54:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5FsYZ09049 for linux-mips-outgoing; Wed, 5 Dec 2001 07:54:34 -0800 Received: from mms1.broadcom.com (mms1.broadcom.com [63.70.210.58]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5FsVo09044 for ; Wed, 5 Dec 2001 07:54:31 -0800 Received: from 63.70.210.4 by mms1.broadcom.com with ESMTP (Broadcom MMS-1 SMTP Relay (MMS v4.7)); Wed, 05 Dec 2001 06:54:16 -0800 X-Server-Uuid: 1e1caf3a-b686-11d4-a6a3-00508bfc9ae5 Received: from dns-blr-2.blr.broadcom.com ([10.132.16.11]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id GAA21793 for ; Wed, 5 Dec 2001 06:54:28 -0800 (PST) Received: from adm-blr-001.blr.broadcom.com (adm-blr-001 [10.132.16.111] ) by dns-blr-2.blr.broadcom.com (8.9.1b+Sun/8.9.1) with ESMTP id UAA12488 for ; Wed, 5 Dec 2001 20:17:14 +0530 ( IST) Received: from broadcom.com ([10.132.64.110]) by adm-blr-001.blr.broadcom.com (8.9.1/8.9.1) with ESMTP id UAA18381 for ; Wed, 5 Dec 2001 20:17:18 +0530 (IST) Message-ID: <3C0E3628.9096FFF6@broadcom.com> Date: Wed, 05 Dec 2001 20:28:48 +0530 From: Nitin X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "linux-mips@oss.sgi.com" Subject: Booting from IDE X-WSS-ID: 1010EA92127799-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi, I have a very basic query. I have a MIPS Malta board. I attached a IDE hard disk to it and installed linux as per the instructions. At the end of the installation, system rebooted and control gone to the board monitor program(Yamon). How can I get the linux prompt? Do I need to write an application program which will read boot sector from hard disk, store it in memory and pass on control to that particular location?(If yes, is such application already available?) Or is there a other way of doing it. Thanks, Nitin From owner-linux-mips@oss.sgi.com Wed Dec 5 08:04:21 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5G4Lq09469 for linux-mips-outgoing; Wed, 5 Dec 2001 08:04:21 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5G4Ho09466 for ; Wed, 5 Dec 2001 08:04:17 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id HAA14313; Wed, 5 Dec 2001 07:04:09 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id HAA02642; Wed, 5 Dec 2001 07:04:09 -0800 (PST) Received: from mips.com (copsun14 [192.168.205.24]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB5F44A16400; Wed, 5 Dec 2001 16:04:04 +0100 (MET) Message-ID: <3C0E3764.4EC8FE58@mips.com> Date: Wed, 05 Dec 2001 16:04:04 +0100 From: Dan Temple X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Nitin CC: "linux-mips@oss.sgi.com" Subject: Re: Booting from IDE References: <3C0E3628.9096FFF6@broadcom.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk I guess you're installing as per: ftp://ftp/pub/linux/mips/installation/redhat7.1/INSTALL (If not, you might want to upgrade to that version). YAMON can't read the disk file system, so you have to TFTP the kernel to memory from a remote filesystem, and then run it. The instructions are in the above file under "Booting linux on the target". The latest version (2.02) of YAMON can read and write blocks from an IDE device (not a filesystem) so you could install a CompactFlash card and use that to store the kernel if you don't want to TFTP each time. There is also a $start environment variable if you want to auto-boot. /Dan Nitin wrote: > > Hi, > I have a very basic query. I have a MIPS Malta board. I attached a IDE > hard disk to it and installed linux as per the instructions. At the end > of the installation, system rebooted and control gone to the board > monitor program(Yamon). How can I get the linux prompt? Do I need to > write an application program which will read boot sector from hard disk, > > store it in memory and pass on control to that particular location?(If > yes, is such application already available?) Or is there a other way of > doing it. > > Thanks, > Nitin -- Dan Temple, Eng. Mgr. Tel: +45-44865512 MIPS Denmark Fax: +45-44865556 Lautrupvang 4B mailto:dant@mips.com DK-2750 Ballerup http://www.mips.com Denmark From owner-linux-mips@oss.sgi.com Wed Dec 5 08:10:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5GAm609953 for linux-mips-outgoing; Wed, 5 Dec 2001 08:10:48 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5GAio09948 for ; Wed, 5 Dec 2001 08:10:44 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id HAA14382; Wed, 5 Dec 2001 07:10:35 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id HAA02716; Wed, 5 Dec 2001 07:10:36 -0800 (PST) Received: from copsun18.mips.com (copsun18 [192.168.205.28]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB5FAWA16809; Wed, 5 Dec 2001 16:10:32 +0100 (MET) From: Hartvig Ekner Received: (from hartvige@localhost) by copsun18.mips.com (8.9.1/8.9.0) id QAA12575; Wed, 5 Dec 2001 16:10:33 +0100 (MET) Message-Id: <200112051510.QAA12575@copsun18.mips.com> Subject: Re: Booting from IDE To: dant@mips.com (Dan Temple) Date: Wed, 5 Dec 2001 16:10:33 +0100 (MET) Cc: nitin.borle@broadcom.com (Nitin), linux-mips@oss.sgi.com (linux-mips@oss.sgi.com) In-Reply-To: <3C0E3764.4EC8FE58@mips.com> from "Dan Temple" at Dec 05, 2001 04:04:04 PM X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk If you feel lucky, you can also reserve space on your disk for the kernel - either in a separate partition, or outside the area used by your current partitions. The YAMON 02.02 or later can read the kernel directly from disk and execute it. I do this on my Malta board with one disk. /Hartvig Dan Temple writes: > > I guess you're installing as per: > > ftp://ftp/pub/linux/mips/installation/redhat7.1/INSTALL > > (If not, you might want to upgrade to that version). > > YAMON can't read the disk file system, so you have to TFTP the kernel to memory from a remote filesystem, and then run it. The instructions are in the above file under "Booting linux on the target". > > The latest version (2.02) of YAMON can read and write blocks from an IDE device (not a filesystem) so you could install a CompactFlash card and use that to store the kernel if you don't want to TFTP each time. > > There is also a $start environment variable if you want to auto-boot. > > /Dan > > Nitin wrote: > > > > Hi, > > I have a very basic query. I have a MIPS Malta board. I attached a IDE > > hard disk to it and installed linux as per the instructions. At the end > > of the installation, system rebooted and control gone to the board > > monitor program(Yamon). How can I get the linux prompt? Do I need to > > write an application program which will read boot sector from hard disk, > > > > store it in memory and pass on control to that particular location?(If > > yes, is such application already available?) Or is there a other way of > > doing it. > > > > Thanks, > > Nitin From owner-linux-mips@oss.sgi.com Wed Dec 5 08:29:19 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5GTJU10477 for linux-mips-outgoing; Wed, 5 Dec 2001 08:29:19 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5GSDo10462 for ; Wed, 5 Dec 2001 08:28:18 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id VAA00177 for ; Tue, 4 Dec 2001 21:43:10 -0800 (PST) mail_from (hjl@lucon.org) Received: from lucon.org (lake.in.lucon.org [192.168.0.2]) by ocean.lucon.org (Postfix) with ESMTP id DF544125C1; Tue, 4 Dec 2001 18:48:50 -0800 (PST) Received: by lucon.org (Postfix, from userid 1000) id 27139EBC9; Sat, 1 Dec 2001 09:46:59 -0800 (PST) Date: Sat, 1 Dec 2001 09:46:59 -0800 From: "H . J . Lu" To: todd_m_roy@vermontel.net, bregor@anusf.anu.edu.au Cc: Kenneth Albanowski , Mat Hostetter , Andy Dougherty , Warner Losh , linux-mips@oss.sgi.com, Ron Guilmette , "Polstra; John" , "Hazelwood; Galen" , Ralf Baechle , Linas Vepstas , Feher Janos , Leonard Zubkoff , "Steven J. Hill" , linux-gcc@vger.kernel.org, GNU C Library , gcc@gcc.gnu.org Subject: Re: Problem with binutils 2.11.92.0.12 and ..12.3 Message-ID: <20011201094659.A9044@lucon.org> References: <3C085FA1.CCDC7100@vermontel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C085FA1.CCDC7100@vermontel.net>; from salteroy@vermontel.net on Fri, Nov 30, 2001 at 11:42:09PM -0500 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Nov 30, 2001 at 11:42:09PM -0500, Todd Roy, Wanda Salter and Alice Salter-Roy wrote: > Hi, > I had a linux kernel linking problem with 2.11.92.0.12 and > 2.11.92.0.12.3 > here is the listing: > > ld -m elf_i386 -T /usr/src/linux-2.4/arch/i386/vmlinux.lds -e stext > arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o > init/version.o \ > --start-group \ > arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o > fs/fs.o ipc/ipc.o \ > drivers/parport/driver.o drivers/char/char.o drivers/block/block.o > drivers/misc/misc.o drivers/net/net.o drivers/media/media.o > drivers/net/appletalk/appletalk.o drivers/ide/idedriver.o > drivers/cdrom/driver.o drivers/pci/driver.o drivers/pnp/pnp.o > drivers/video/video.o drivers/net/hamradio/hamradio.o drivers/md/mddev.o > \ > net/network.o \ > /usr/src/linux-2.4/arch/i386/lib/lib.a /usr/src/linux-2.4/lib/lib.a > /usr/src/linux-2.4/arch/i386/lib/lib.a \ > --end-group \ > -o vmlinux > drivers/char/char.o(.data+0x46b4): undefined reference to `local symbols > in discarded section .text.exit' > drivers/net/net.o(.data+0xf4): undefined reference to `local symbols in > discarded section .text.exit' > drivers/video/video.o(.data+0x1c14): undefined reference to `local > symbols in discarded section .text.exit' > make: *** [vmlinux] Error 1 > [supermoby] /usr/src/linux > root $ ld -version > GNU ld version 2.11.92.0.12.3 20011121 > Copyright 2001 Free Software Foundation, Inc. > This program is free software; you may redistribute it under the terms > of > the GNU General Public License. This program has absolutely no > warranty. > [supermoby] /usr/src/linux > root $exit > > I reverted to 2.11.92.0.10 and all is well again. > I updated the release note for 2.11.92.0.12.3. Please read it carefully. H.J. ---- This is the beta release of binutils 2.11.92.0.12.3 for Linux, which is based on binutils 2001 1121 in CVS on sourecware.cygnus.com plus various changes. It is purely for Linux. The Linux/mips support is added. You have to use # rpm --target=[mips|mipsel] -ta binutils-xx.xx.xx.xx.xx.tar.gz to build it. Or you can read mips/README in the source tree to apply the mips patches and build it by hand. FYI, the binutils man pages now are generated from the texinfo files during the build. As the result, those man pages may be changed for each build even if you only have done # ..../configure ... # make That means you may have many failures on the man pages when you apply the binutils diffs next time. Those failures can be safely ignored. You should remove all those man pages from your source tree by # find -name *.1 | xargs rm -f # find -name *.1.rej | xargs rm -f # find -name *.man | xargs rm -f # find -name *.man.rej | xargs rm -f I am planning to make the public release soon. Please test it as much as you can. Please report any bugs related to binutils 2.11.92.0.12.3 to hjl@lucon.org. For arm-linux targets, there are some important differences in behaviour between these tools and binutils 2.9.1.0.x. The linker emulation name has changed from elf32arm{26} to armelf_linux{26}. Also, the "-p" flag must be passed with the linker when working with object files (or static libraries) created using older versions of the assembler. If this flag is omitted the linker will silently generate bad output when given old input files. To get the correct behaviour from gcc, amend the *link section of your specs file as follows: *link: %{h*} %{version:-v} %{b} %{Wl,*:%*} %{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} %{rdynamic:-export-dynamic} %{!dynamic-linker: -dynamic-linker /lib/ld-linux.so.2} -X %{mbig-endian:-EB} %{mapcs-26:-m armelf_linux26} %{!mapcs-26:-m armelf_linux} -p Changes from binutils 2.11.92.0.12.3: 1. Fix a regression in 2.11.92.0.12 when linking with none-ELF object files. Changes from binutils 2.11.92.0.10: 1. Update from binutils 2001 1121. 2. Fix a linker symbol version bug for common symbols. 3. Update handling relocations against the discarded sections. You may need to apply the kernel patch enclosed here to your kernel source. If you still see things like drivers/char/char.o(.data+0x46b4): undefined reference to `local symbols in discarded section .text.exit' in the final kernel link, that means you have compiled a driver into the kernel which has a reference to the symbol in a discarded section. Please check all the builtin drivers and search for things like static struct pci_driver xxx_pci_driver = { ... remove: xxx_remove, ... }; Then check to see if xxx_remove is marked with __devexit like static void __devexit xxx_remove (struct pci_dev *dev) { ... } which means it will be discarded if the driver is builtin. If xxx_remove may be discarded, please make sure there is #ifdef MODULE remove: xxx_remove, #endif so that xxx_remove won't be included when the driver is builtin. 4. Support "-march=xxx -mipsN" for mips gas if they are compatible. Changes from binutils 2.11.92.0.7: 1. Update from binutils 2001 1021. 2. Fix the ELF/PPC linker. 3. Fix the ELF/cris linker. 4. Fix ELF strip. Changes from binutils 2.11.92.0.5: 1. Update from binutils 2001 1016. 2. Fix all breakages introduced in 2.11.92.0.12. Changes from binutils 2.11.90.0.31: 1. Update from binutils 2001 1005. 2. Support gcc 3.1 for ia64. 3. Support prelink for ELF/PPC. 4. Fix an ELF/x86 linker bug for Oracle. 5. Fix a weak symbol bug. 6. Support locale. Changes from binutils 2.11.90.0.29: 1. Update from binutils 2001 0830. 2. Fix a mips linker bug. Changes from binutils 2.11.90.0.27: 1. Update from binutils 2001 0827. 2. Fix an alpha assembler bug. 3. Fix an ia64 linker bug. 4. Fix a mips linker bug. 5. Support `-z combreloc|nocombreloc' in linker. Changes from binutils 2.11.90.0.25: 1. Update from binutils 2001 0810. 2. Fix an x86 linker bug. Changes from binutils 2.11.90.0.24: 1. Update from binutils 2001 0726. 2. Fix an x86 assembler bug. 3. "make check" in the windres test in binutils may call uudecode. We are working on it. 4. "make check" fails the windres test in binutils if the i386/pe is enabled in bfd. Fixed in the next release. 5. "make check" has 2 failures in the ld-selective test in ld on Linux/alpha. They should be marked xfail. Fixed in the next release. Changes from binutils 2.11.90.0.23: 1. Update from binutils 2001 0714. 2. Fix Sparc/ElF for Linux/sparc. 3. Fix Alpha/ELF for gcc 3.0. Changes from binutils 2.11.90.0.19: 1. Update from binutils 2001 0706. 2. Fix objcopy/strip broken by accident. 3. Avoid COPY relocs on ia32. 4. Fix the ia64 assembler. 5. This release may not work on Linux/sparc due to the unaligned relocation changes, which are not handled by all versions of glibc. The current glibc in CVS on sourceware should be ok. The last known working binutils for Linux/sparc is 2.11.90.0.8. We are working on it. Changes from binutils 2.11.90.0.15: 1. Update from binutils 2001 0620. 2. Fix a static linking the PIC object files on ia32. 3. Add the verion script support for --export-dynamic. It can be used to selectively export dynamic symbols from the executables. Changes from binutils 2.11.90.0.8: 1. Update from binutils 2001 0610. 2. Fix a gas bug for gcc 3.0. Changes from binutils 2.11.90.0.7: 1. Update from binutils 2001 0512. 2. Fix some P/III SSE 2 assembler bugs. 3. Fix DT_NEEDED and symbol version bugs. 4. Support hidden versioned symbols in DSOs. Changes from binutils 2.11.90.0.6: 1. Update from binutils 2001 0427. 2. Fix the -Bsymbolic bug introduced in binutils 2.11.90.0.5. Changes from binutils 2.11.90.0.5: 1. Update from binutils 2001 0425. 2. Update "ld --multilib-dir PATH". Changes from binutils 2.11.90.0.4: 1. Update from binutils 2001 0414. 2. Fix an ia64 assembler bug. 3. Change Linux/MIPS to use the SVR4 MIPS ABI instead of the IRIX ABI. since there are no supports for the IRIX ABI in glibc. The current Linux/MIPS targets are elf64-tradlittlemips for little endian MIPS instead of elf32-littlemips and elf64-tradbigmips for big endian MIPS instead of elf32-bigmips. Glibc, gcc and kernel may have to be modified for this change. Changes from binutils 2.11.90.0.1: 1. Update from binutils 2001 0401. 2. Fix a gas bug for the gcc from the CVS main trunk. It involves some changes in gas. I compiled kernel 2.2.18, gcc and glibc under Linux/ia32. The resulting binaries work fine. 3. Fix the linker core dump on unsupported ELF binaries. Changes from binutils 2.10.91.0.4: 1. Update from binutils 2001 0309. Changes from binutils 2.10.91.0.2: 1. Update from binutils 2001 0223. 2. More ia64 bug fixes. Changes from binutils 2.10.1.0.7: 1. Update from binutils 2001 0215. 2. More ia64 bug fixes. Support EFI and "ld -relax" on ia64. 3. Fix a weak definition, -Bsymbolic, non-PIC bug for ia32. Changes from binutils 2.10.1.0.4: 1. Update from binutils 2001 0206. 2. Enable the IA64 support. 3. Now you need to use # ld --oformat TARGET instead of # ld -oformat TARGET The Linux kernel build may be affected. BTW # ld --oformat TARGET should work with all previous releases of binutils. Changes from binutils 2.10.1.0.2: 1. Update from binutils 2000 1221. Changes from binutils 2.10.0.33: 1. Update from binutils 2000 1119. 2. It has some symbol versioning related updates. Changes from binutils 2.10.0.32: 1. Update from binutils 2000 1018. 2. A proper ELF/PPC visibility fix. 3. m68k-a.out is supposed to be fixed. Changes from binutils 2.10.0.31: 1. Update from binutils 2000 1014. 2. An ELF/PPC weak symbol bug fix. 3. A new linkonce section name approach. 4. m68k-a.out is still broken. To be fixed. Changes from binutils 2.10.0.29: 1. Update from binutils 2000 1011. 2. Back out the linkonce section name change so that C++ will work. A different approach is being worked on. 3. m68k-a.out is known to be broken. To be fixed. Changes from binutils 2.10.0.26: 1. Update from binutils 2000 1008. Changes from binutils 2.10.0.24: 1. Update from binutils 2000 0907. Changes from binutils 2.10.0.18: 1. Update from binutils 2000 0823. Fix DT_RPATH/DT_RUNPATH handling. Fix the ELF/ia32 DSO not compiled with PIC. 2. Try to fix the ELF visibility bug on PPC with glibc 2.2. Changes from binutils 2.10.0.12: 1. Update from binutils 2000 0720. 2. Fix the DT_NEEDED link bug. 3. Add the new DT_XXXX dynamic tags. Glibc 2.2 will use them at least on libpthread.so. Changes from binutils 2.10.0.9: 1. Update from binutils 2000 0701. Fix the parallel build in ld when PE is enabled. Changes from binutils 2.9.5.0.46: 1. Update from binutils 2000 0617. The demangler support for the new g++ ABI. Minor fix for the ELF visibility. Fix linking non-ELF relocatable object files under ELF with symbol versioning. 2. Support for linking PE relocatable object files under ia32/ELF. Changes from binutils 2.9.5.0.42: 1. Update from binutils 2000 0604. The ELF visibility attribuite should work correctly now. 2. The ia32 assembler has changed the way it assembles the "jmp" instructions to the global symbols. The old assembler will optimize the jump to the global symbol defined in the same source file so that no relocation will be used. The new assembler will use relocation for global jumps. It will mainly affect PIC asm code. The segment like .globl __setjmp __setjmp: ... jmp __sigsetjmp ... .globl __sigsetjmp __sigsetjmp: is no longer PIC safe since "jmp __sigsetjmp" jumps to a global symbol and relocation will be used. Instead, it can be changed to .globl __setjmp __setjmp: ... jmp sigsetjmp ... .globl __sigsetjmp __sigsetjmp: sigsetjmp: so that "jmp sigsetjmp" jumps to a local symbol and the new assembler will optimize out the relocation. Changes from binutils 2.9.5.0.41: 1. Update from binutils 2000 0512. 2. Add testsuite for ELF visibility. Changes from binutils 2.9.5.0.37: 1. Update from binutils 2000 0502. 2. Support STV_HIDDEN and STV_INTERNAL. Changes from binutils 2.9.5.0.35: 1. Update from binutils 2000 0418. 2. Fix an ld demangle style option bug. Changes from binutils 2.9.5.0.34: 1. Update from binutils 2000 0412. Fix a relocation bug which affects the Linux kernel compilation. 2. An ELF/PPC linker script update. Changes from binutils 2.9.5.0.33: 1. Update from binutils 2000 0404. Fix the bug report bug. Changes from binutils 2.9.5.0.32: 1. Update from binutils 2000 0403. Fix the 16bit ia32 assembler bug. Changes from binutils 2.9.5.0.31: 1. Update from binutils 2000 0331. Fix the Linux/ARM assembler bug. 2. Fix a Debian assembler security bug. Changes from binutils 2.9.5.0.29: 1. Update from binutils 2000 0319. 2. An ELF/alpha bug is fixed. Changes from binutils 2.9.5.0.27: 1. Update from binutils 2000 0301. 2. A demangler bug is fixed. 3. A better fix for undefined symbols with -Bsymbolic when building shared library. Changes from binutils 2.9.5.0.24: 1. Update from binutils 2000 0204. 2. Added -taso to linker on alpha. 3. Fixed a -shared -Bsymbolic bug when PIC is not used. Changes from binutils 2.9.5.0.22: 1. Update from binutils 2000 0113. 2. A symbol version bug is fixed. 3. A -Bsymbolic bug is fixed. Changes from binutils 2.9.5.0.21: 1. Update from binutils 1999 1202. 2. Remove a MIPS/ELF change. 3. Enable SOM for HPPA. Changes from binutils 2.9.5.0.19: 1. Update from binutils 1999 1122. An ia32 gas bug is fixed. Changes from binutils 2.9.5.0.16: 1. Update from binutils 1999 1104. 2. i370 is changed to use EM_S370 and ELFOSABI_LINUX. Update readelf. 3. Fix Compaq's demangler support. Changes from binutils 2.9.5.0.14: 1. Update from binutils 1999 1012. A gas bug which affects Linux 2.3.21 is fixed. 2. i370 update. 3. The new demangler code. You should use "--style=xxx" to select the demnangle style instead of "--lang=xxx". Changes from binutils 2.9.5.0.13: 1. Update from binutils 1999 0925. 2. Fix a -s and linker script bug. Changes from binutils 2.9.5.0.12: 1. Update from binutils 1999 0922. 2. i370 update. Changes from binutils 2.9.5.0.11: 1. Update from binutils 1999 0910. It fixed a PIC linker bug on ix86 and sparc introduced in the last release. 2. i370 update. Changes from binutils 2.9.5.0.10: 1. Update from binutils 1999 0906. It fixed a PIC linker bug on ix86 and sparc. 2. Remove elf/hppa since it is WIP. Changes from binutils 2.9.5.0.8: 1. Update from binutils 1999 0831. It allows spaces around '(' and ')' in x86 FP register names. Changes from binutils 2.9.5.0.7: 1. Update from binutils 1999 0821. 2. Some MIPS changes. Changes from binutils 2.9.5.0.6: 1. Update from binutils 1999 0813. 2. i370 update. Changes from binutils 2.9.5.0.5: 1. Update from binutils 1999 0809. An ELF/Sparc ld bug is fixed. Changes from binutils 2.9.5.0.4: 1. Update from binutils 1999 0806. A Solaris/Sparc gas bug is fixed. 2. Remove mips gas patches from binutils 2.9.1.0.25. Changes from binutils 2.9.5.0.3: 1. Update from binutils 1999 0801. 2. Support for real mode x86 gcc. Changes from binutils 2.9.4.0.8: 1. Update from binutils 1999 0719. A libc 5 related bug fix. 2. Fix a typo in mips gas. Changes from binutils 2.9.4.0.7: 1. Update from binutils 1999 0710. A weak symbol bug http://egcs.cygnus.com/ml/egcs-bugs/1999-07/msg00129.html is fixed. Changes from binutils 2.9.4.0.6: 1. Update from binutils 1999 0626. Changes from binutils 2.9.4.0.5: 1. Update from binutils 1999 0620. 2. Remove my fwait fix and use the one in cvs. 3. Use "--only-section=section" instead of "--extract-section=section". for objcopy. Changes from binutils 2.9.4.0.4: 1. Update from binutils 1999 0612. 2. Remove various temporary fixes of mine since those bugs are fixed now. Changes from binutils 2.9.4.0.3: 1. Update from binutils 1999 0611. 2. Remove my ELF/Alpha bfd changes. 3. Use the local symbol copy fix in binutils 1999 0611. Changes from binutils 2.9.4.0.2: 1. Update from binutils 1999 0607. 2. Remove my Sparc hacks. 3. Fix local symbol copy. Changes from binutils 2.9.4.0.1: 1. Update from binutils 1999 0606. 2. Restore relocation overflow checking in binutils 2.9.1.0.25 so that Linux kernel can build. 3. Fix i370 for the new gas. Changes from binutils 1999 0605: 1. Fix a -Bsymbolic bug for Linux/alpha. 2. Add ELF/i370. 3. Fix 8/16-bit relocations for i386. 4. Add --redefine-sym=old_form=new_form to objcopy. 5. Add "-j section" for objcopy. 6. Fix i386 disassembler for fwait. 7. Fix a Sparc asm bug. 8. Add Ada demangle support. 9. Fix MIPS/ELF bugs. 10. Add some vxworks suppport. 11. Fix a.out assembler. The file list: 1. binutils-2.11.92.0.12.3.tar.gz. Source code. 2. binutils-2.11.92.0.12-2.11.92.0.12.3.diff.gz. Patch against the previous beta source code. 3. binutils-2.11.92.0.12.3-1.i386.rpm. IA-32 binary RPM for RedHat 7.1. There is no separate source rpm. You can do # rpm -ta binutils-2.11.92.0.12.3.tar.gz to create both binary and source rpms. The primary sites for the beta Linux binutils are: 1. http://ftp.kernel.org/pub/linux/devel/binutils/ Thanks. H.J. Lu hjl@lucon.org 11/26/2001 --- --- linux/arch/alpha/vmlinux.lds.in.discard Thu Nov 22 00:30:16 2001 +++ linux/arch/alpha/vmlinux.lds.in Thu Nov 22 00:30:47 2001 @@ -92,5 +92,5 @@ SECTIONS .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } - /DISCARD/ : { *(.text.exit) *(.data.exit) } + /DISCARD/ : { *(.text.exit) *(.data.exit) *(.exitcall.exit) } } --- linux/drivers/char/serial.c.discard Thu Nov 22 00:37:14 2001 +++ linux/drivers/char/serial.c Thu Nov 22 10:54:54 2001 @@ -4887,7 +4887,9 @@ static char serial_pci_driver_name[] = " static struct pci_driver serial_pci_driver = { name: serial_pci_driver_name, probe: serial_init_one, +#ifdef MODULE remove: serial_remove_one, +#endif id_table: serial_pci_tbl, }; From owner-linux-mips@oss.sgi.com Wed Dec 5 08:31:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB5GVGV10598 for linux-mips-outgoing; Wed, 5 Dec 2001 08:31:16 -0800 Received: from deneb.localdomain (ga-cmng-u1-c3b-97.cmngga.adelphia.net [24.53.98.97]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB5GV9o10594 for ; Wed, 5 Dec 2001 08:31:09 -0800 Received: (from msalter@localhost) by deneb.localdomain (8.11.6/8.11.6) id fB5FV6N22409; Wed, 5 Dec 2001 10:31:06 -0500 Date: Wed, 5 Dec 2001 10:31:06 -0500 Message-Id: <200112051531.fB5FV6N22409@deneb.localdomain> X-Authentication-Warning: deneb.localdomain: msalter set sender to msalter@redhat.com using -f From: Mark Salter To: hartvige@mips.com CC: dant@mips.com, nitin.borle@broadcom.com, linux-mips@oss.sgi.com In-reply-to: <200112051510.QAA12575@copsun18.mips.com> (message from Hartvig Ekner on Wed, 5 Dec 2001 16:10:33 +0100 (MET)) Subject: Re: Booting from IDE References: <200112051510.QAA12575@copsun18.mips.com> Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Another possibility is to replace YAMON with RedBoot. http://sources.redhat.com/redboot/ RedBoot can load the kernel image directly from an ext2 filesystem on an IDE drive. You can also use it to put the kernel image and JFFS filesystem in flash for a diskless boot. --Mark >>>>> Hartvig Ekner writes: > If you feel lucky, you can also reserve space on your disk for the kernel - > either in a separate partition, or outside the area used by your current > partitions. The YAMON 02.02 or later can read the kernel directly from disk > and execute it. > I do this on my Malta board with one disk. > /Hartvig > Dan Temple writes: >> >> I guess you're installing as per: >> >> ftp://ftp/pub/linux/mips/installation/redhat7.1/INSTALL >> >> (If not, you might want to upgrade to that version). >> >> YAMON can't read the disk file system, so you have to TFTP the kernel to memory from a remote filesystem, and then run it. The instructions are in the above file under "Booting linux on the target". >> >> The latest version (2.02) of YAMON can read and write blocks from an IDE device (not a filesystem) so you could install a CompactFlash card and use that to store the kernel if you don't want to TFTP each time. >> >> There is also a $start environment variable if you want to auto-boot. >> >> /Dan >> >> Nitin wrote: >> > >> > Hi, >> > I have a very basic query. I have a MIPS Malta board. I attached a IDE >> > hard disk to it and installed linux as per the instructions. At the end >> > of the installation, system rebooted and control gone to the board >> > monitor program(Yamon). How can I get the linux prompt? Do I need to >> > write an application program which will read boot sector from hard disk, >> > >> > store it in memory and pass on control to that particular location?(If >> > yes, is such application already available?) Or is there a other way of >> > doing it. >> > >> > Thanks, >> > Nitin From owner-linux-mips@oss.sgi.com Wed Dec 5 18:39:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB62dY813299 for linux-mips-outgoing; Wed, 5 Dec 2001 18:39:34 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB62dVo13295 for ; Wed, 5 Dec 2001 18:39:31 -0800 Message-Id: <200112060239.fB62dVo13295@oss.sgi.com> Received: (qmail 19773 invoked from network); 6 Dec 2001 01:33:56 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 6 Dec 2001 01:33:56 -0000 Date: Thu, 6 Dec 2001 9:36:56 +0800 From: Zhang Fuxin To: "linux-mips@oss.sgi.com" Subject: Re: Re: Re: 2.4.16 for algorithmics p6032 X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk hi, >> >> Do you use the IOBC? I had to make some changes to pci.h and the >>ethernet driver to make them work properly. >No. I had to make changes to generic code:),that's why i disable it. ^^^^should be "hate" :) >> >>-- >>Algorithmics,The Fruit Farm,Ely Road,Chittering,CAMBS CB5 9PH,ENGLAND >>P: +44 1223 706200 F: +44 1223 706250 W: http://www.algor.co.uk > >Regards > Zhang Fuxin > fxzhang@ict.ac.cn Regards Zhang Fuxin fxzhang@ict.ac.cn From owner-linux-mips@oss.sgi.com Wed Dec 5 22:44:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB66iCi17384 for linux-mips-outgoing; Wed, 5 Dec 2001 22:44:12 -0800 Received: from surfers.oz.agile.tv (fw.oz.agile.tv [210.9.52.165]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB66hvo17381; Wed, 5 Dec 2001 22:43:57 -0800 Received: from agile.tv (IDENT:ldavies@tugun.oz.agile.tv [192.168.16.20]) by surfers.oz.agile.tv (8.11.2/8.11.2) with ESMTP id fB65hsv11606; Thu, 6 Dec 2001 15:43:54 +1000 Message-ID: <3C0F059A.30709@agile.tv> Date: Thu, 06 Dec 2001 15:43:54 +1000 From: Liam Davies Reply-To: ldavies@agile.tv, ldavies@agile.tv Organization: AgileTV Corporation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: linux-mips@oss.sgi.com CC: ralf@oss.sgi.com Subject: [PATCH] mips_atomic_set fixups (with LLSC) Content-Type: multipart/mixed; boundary="------------080604090303020704070407" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --------------080604090303020704070407 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit The kernel can be caused to crash when making the following syscall sysmips(MIPS_ATOMIC_SET, [unaligned addr], value, 0); The latest mips_atomic_set does not use the fixups that are defined for the ll/sc instructions. If an unaligned address is passed in we take the exception and unaligned.c:emulate_load_store_insn ignores the fixups for the ll/sc and sends a SIGBUS instead, thus causing the kernel to die. The patch is to make the ll/sc instructions lookup the fixup table and do them if present. Also the fixup for the instructions in scall_o32.S appears to be inappropriate, so the fixup is set to be bad_addr and an -EFAULT is returned from the syscall. Cheers ---- Liam Davies ldavies@agile.tv --------------080604090303020704070407 Content-Type: text/plain; name="atomic_set.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="atomic_set.patch" --- ../sgi-cvs/arch/mips/kernel/unaligned.c Mon Dec 3 10:49:23 2001 +++ arch/mips/kernel/unaligned.c Thu Dec 6 15:07:00 2001 @@ -114,12 +114,14 @@ * These are instructions that a compiler doesn't generate. We * can assume therefore that the code is MIPS-aware and * really buggy. Emulating these instructions would break the - * semantics anyway. + * semantics anyway. However, we do want to look at the exception + * table to see if we can exit gracefully. */ case ll_op: case lld_op: case sc_op: case scd_op: + goto fault; /* * For these instructions the only way to create an address --- ../sgi-cvs/arch/mips/kernel/scall_o32.S Mon Oct 8 09:56:02 2001 +++ arch/mips/kernel/scall_o32.S Thu Dec 6 15:34:47 2001 @@ -201,7 +201,7 @@ or a0, a0, a1 li v0, -EFAULT and a0, a0, v1 - bltz a0, 8f + bltz a0, bad_address #ifdef CONFIG_CPU_HAS_LLSC /* Ok, this is the ll/sc case. World is sane :-) */ @@ -211,8 +211,8 @@ beqz a0, 1b .section __ex_table,"a" - PTR 1b, bad_stack - PTR 2b, bad_stack + PTR 1b, bad_address + PTR 2b, bad_address .previous #else sw a1, 16(sp) @@ -256,8 +256,9 @@ no_mem: li v0, -ENOMEM jr ra -8: li v0, -EFAULT -9: jr ra +bad_address: + li v0, -EFAULT + jr ra END(mips_atomic_set) LEAF(sys_sysmips) --------------080604090303020704070407-- From owner-linux-mips@oss.sgi.com Wed Dec 5 23:31:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB67V7u18390 for linux-mips-outgoing; Wed, 5 Dec 2001 23:31:07 -0800 Received: from mms1.broadcom.com (mms1.broadcom.com [63.70.210.58]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB67V0o18387 for ; Wed, 5 Dec 2001 23:31:00 -0800 Received: from 63.70.210.4 by mms1.broadcom.com with ESMTP (Broadcom MMS-1 SMTP Relay (MMS v4.7)); Wed, 05 Dec 2001 22:30:42 -0800 X-Server-Uuid: 1e1caf3a-b686-11d4-a6a3-00508bfc9ae5 Received: from dns-blr-2.blr.broadcom.com ([10.132.16.11]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id WAA25856; Wed, 5 Dec 2001 22:30:54 -0800 (PST) Received: from adm-blr-001.blr.broadcom.com (adm-blr-001 [10.132.16.111] ) by dns-blr-2.blr.broadcom.com (8.9.1b+Sun/8.9.1) with ESMTP id LAA29883; Thu, 6 Dec 2001 11:53:39 +0530 (IST) Received: from broadcom.com ([10.132.64.110]) by adm-blr-001.blr.broadcom.com (8.9.1/8.9.1) with ESMTP id LAA19399; Thu, 6 Dec 2001 11:53:42 +0530 (IST) Message-ID: <3C0F119C.95A3B1FF@broadcom.com> Date: Thu, 06 Dec 2001 12:05:08 +0530 From: Nitin X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: "Mark Salter" cc: hartvige@mips.com, dant@mips.com, linux-mips@oss.sgi.com Subject: Re: Booting from IDE References: <200112051510.QAA12575@copsun18.mips.com> <200112051531.fB5FV6N22409@deneb.localdomain> X-WSS-ID: 1011CF18264012-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Thanks Dan, Hartvig and Mark. I could get the linux prompt according to the instruction given in the Install file Dan has suggested. I will update my Yamon and try auto booting also. -Nitin Mark Salter wrote: > Another possibility is to replace YAMON with RedBoot. > > http://sources.redhat.com/redboot/ > > RedBoot can load the kernel image directly from an ext2 filesystem > on an IDE drive. You can also use it to put the kernel image and > JFFS filesystem in flash for a diskless boot. > > --Mark > > >>>>> Hartvig Ekner writes: > > > If you feel lucky, you can also reserve space on your disk for the kernel - > > either in a separate partition, or outside the area used by your current > > partitions. The YAMON 02.02 or later can read the kernel directly from disk > > and execute it. > > > I do this on my Malta board with one disk. > > > /Hartvig > > > Dan Temple writes: > >> > >> I guess you're installing as per: > >> > >> ftp://ftp/pub/linux/mips/installation/redhat7.1/INSTALL > >> > >> (If not, you might want to upgrade to that version). > >> > >> YAMON can't read the disk file system, so you have to TFTP the kernel to memory from a remote filesystem, and then run it. The instructions are in the above file under "Booting linux on the target". > >> > >> The latest version (2.02) of YAMON can read and write blocks from an IDE device (not a filesystem) so you could install a CompactFlash card and use that to store the kernel if you don't want to TFTP each time. > >> > >> There is also a $start environment variable if you want to auto-boot. > >> > >> /Dan > >> > >> Nitin wrote: > >> > > >> > Hi, > >> > I have a very basic query. I have a MIPS Malta board. I attached a IDE > >> > hard disk to it and installed linux as per the instructions. At the end > >> > of the installation, system rebooted and control gone to the board > >> > monitor program(Yamon). How can I get the linux prompt? Do I need to > >> > write an application program which will read boot sector from hard disk, > >> > > >> > store it in memory and pass on control to that particular location?(If > >> > yes, is such application already available?) Or is there a other way of > >> > doing it. > >> > > >> > Thanks, > >> > Nitin From owner-linux-mips@oss.sgi.com Thu Dec 6 10:18:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6IIQN23211 for linux-mips-outgoing; Thu, 6 Dec 2001 10:18:26 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB6IILo23208 for ; Thu, 6 Dec 2001 10:18:22 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB6HHxZ05110; Thu, 6 Dec 2001 15:17:59 -0200 Date: Thu, 6 Dec 2001 15:17:59 -0200 From: Ralf Baechle To: ldavies@agile.tv Cc: linux-mips@oss.sgi.com Subject: Re: [PATCH] mips_atomic_set fixups (with LLSC) Message-ID: <20011206151759.H3325@dea.linux-mips.net> References: <3C0F059A.30709@agile.tv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C0F059A.30709@agile.tv>; from ldavies@agile.tv on Thu, Dec 06, 2001 at 03:43:54PM +1000 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 03:43:54PM +1000, Liam Davies wrote: > The kernel can be caused to crash when making the following syscall > sysmips(MIPS_ATOMIC_SET, [unaligned addr], value, 0); > > The latest mips_atomic_set does not use the fixups that are defined > for the ll/sc instructions. > > If an unaligned address is passed in we take the exception and > unaligned.c:emulate_load_store_insn ignores the fixups for the > ll/sc and sends a SIGBUS instead, thus causing the kernel to die. An unaligned ll/sc instruction in the kernel is a bug in itself as such it's not unaligned.c that is to blame. As such I'm going to checkin a patch that is close but not identical to your patch. Blame me for this bug, I *knew* and forgot about it ... Ralf From owner-linux-mips@oss.sgi.com Thu Dec 6 10:35:09 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6IZ9g23601 for linux-mips-outgoing; Thu, 6 Dec 2001 10:35:09 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6IZ8o23598 for ; Thu, 6 Dec 2001 10:35:08 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id 91022125C1; Thu, 6 Dec 2001 09:35:06 -0800 (PST) Date: Thu, 6 Dec 2001 09:35:06 -0800 From: "H . J . Lu" To: Ralf Baechle Cc: linux-mips@oss.sgi.com Subject: Why is byteorder removed from /proc/cpuinfo? Message-ID: <20011206093506.A6496@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk The byteorder field is emoved from /proc/cpuinfo in the current 2.4 kernel in CVS. It breaks config.guess used by all the GNU softwares. H.J. From owner-linux-mips@oss.sgi.com Thu Dec 6 10:36:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6IaWe23678 for linux-mips-outgoing; Thu, 6 Dec 2001 10:36:32 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB6Ia2o23634 for ; Thu, 6 Dec 2001 10:36:03 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB6HZxr09439 for linux-mips@oss.sgi.com; Thu, 6 Dec 2001 15:35:59 -0200 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB4JbCo04548 for ; Tue, 4 Dec 2001 11:37:12 -0800 Message-Id: <200112041937.fB4JbCo04548@oss.sgi.com> Received: (qmail 8208 invoked from network); 4 Dec 2001 18:31:28 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 4 Dec 2001 18:31:28 -0000 Date: Wed, 5 Dec 2001 2:35:3 +0800 From: Zhang Fuxin To: "linux-mips@oss.sgi.com" , Chris Dearman , Ian Chilton Subject: 2.4.16 kernel for algor p6032 X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk hi,linux-mips, Finally the 2.4 kernel seems calm down,I pay some time to cleanup my code for algorithmics p6032 board. Although it may still very experimental,i make it public here hoping that it will save sometime for someone else. You can get the source diff (against sgi cvs linux_2_4_branch Dec.3,about 50k) from: http://159.226.40.150/godson/mips-2.4.16-zfx.diff.gz (sorry i haven't a dns name) I am eager to get some feedback. There are Changelog and README in arch/mips/algor/ for your convenience,READ is post here: This is my code for algor p6032,many of them borrowed/inherit from algorithmics' 2.2 kernel(and others),but with a lot of cleanup(i think:) I have tried my best to make minimum changes to generic code. Testing platform: Algorithmics p6032 eval board,idt RC64474 CPU (with a 40G IBM 7200rpm ide disk,256M sdram memory,matrox G200 video card) Software: H.J.Lu's cross compile toolchain & redhat 7.1 port) Features: 1.new time,new irq,new pci,auto-pci,etc see this list: CONFIG_PCI=y CONFIG_NEW_PCI=y CONFIG_PCI_AUTO=y CONFIG_NEW_IRQ=y CONFIG_I8259=y CONFIG_HAVE_STD_PC_SERIAL_PORT=y CONFIG_NEW_TIME_C=y CONFIG_BOARD_SCACHE=y CONFIG_PC_KEYB=y CONFIG_NONCOHERENT_IO=y 2. frame buffer for matrox cards(that means you can use X windows) 3. a flash driver for easily rewriting of on board flash 4. ide,ethernet(pcnet32) with dma 5. with 2.4.16 patch(filesystem corruption fixed) TODO: 1. more test,e.g. with ltp or something I have run 2.4.8 for some time with good stablity,but this upgrade is done in one day,with many cleanups it will surely contain some bugs 2. on board cache support i haven't decided a elegant way to support the board cache 3. Important Notes: 1. the command line is fixed at arch/mips/kernel/setup.c for my convenience:),you should change to fit your need or comment it out and use pmon args 2. PIIX support for ide must be choosed,or the irq probe will lead to endless interruption. More information may present in Changelog.zfx. 2001.12.05 Zhang Fuxin, Institute of Computing Technology,Chinese Academy of Sciences have to get some sleep now:) Regards Zhang Fuxin fxzhang@ict.ac.cn From owner-linux-mips@oss.sgi.com Thu Dec 6 10:43:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6IhVQ26111 for linux-mips-outgoing; Thu, 6 Dec 2001 10:43:31 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6IhNo26104 for ; Thu, 6 Dec 2001 10:43:24 -0800 Received: from defiant.informatik.uni-bremen.de (defiant.informatik.uni-bremen.de [134.102.204.163]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id JAA09299 for ; Thu, 6 Dec 2001 09:43:19 -0800 (PST) mail_from (cbusse@defiant.informatik.uni-bremen.de) Received: (from cbusse@localhost) by defiant.informatik.uni-bremen.de (8.11.6/8.11.6/SuSE Linux 0.5) id fB6HQK216786 for linux-mips@oss.sgi.com; Thu, 6 Dec 2001 18:26:20 +0100 Date: Thu, 6 Dec 2001 18:26:20 +0100 From: carsten busse -- hladmin To: linux-mips@oss.sgi.com Subject: Linux on Indy, kernel compile (2.4.14) and xfree ... Message-ID: <20011206182620.A16589@defiant.informatik.uni-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello all, I'm relatively new to the SGI Indy Hardware, and it was quite a funny thing how I got involved using it ... Nevertheless I do have 4 indy's here in my project room, and one of these just for getting linux to run on it. what i've done already: i've installed the root-filesystem from oss.sgi.com/pub/linux/mips/redhat/test-7.0 and other packages from this directory (I've tried the 5.1-version before, but the tools were too old for me). The kernel 2.4.1 is running quite ok, but i couldn't get the XFree-rpm running XFree complains about some missing module information in libbitmap.a!? i will try and compile a new XFree 4.1.0, but first i'd like to use a newer kernel (i am trying 2.4.14 know, but the same is going for 2.4.16, which i've tried before i am using gcc 2.95.3, native mips The gfx hardware from what the kernel told me is: NG1: Revision 6, 8 bitplanes, REX3 revision B, VC2 revision A, xmap9 revision A, cmap revision D, bt445 revision D NG1: Screensize 1280x1024 is this maybe unsupported? i do not know how to decide if its ex or zx or whatsoever ... :( the virtual console is running with the newport driver from the kernel ) Now i found out, that there are some weird inconsistencies in the kernel source code, while compiling on mips-arch (a longer text, but all my steps are written down): include/asm/keyboard.h include/linux/vt_kern.h do define pckbd_rate in two different ways ((int *) and (int) as return-type) i've decided to use (int) return type for this function in include/linux/vt_kern.h in asm-i386 its not used , so i think its a not so necessary function drivers/char/pc_keyb.c, line 909 needed a small change, too (kbd_rate is the same as pckbd_rate through '#define kbd_rate pckbd_rate', so i inserted a new int-variable) line 800 i removed the static next: include/asm/softirq.h include/linux/interrupt.h -- overwrites __cpu_raise_softirq from asm/softirq.h, i removed this line in favor for the definition from asm-mips next: drivers/scsi/scsi_merge.c: In function '__init_io': drivers/scsi/scsi_merge.c:946 structure has no member named 'page' this is quite natural, the mips-definition in asm/scatterlist.h does not contain this var (but the one in asm-i386) so i've commented this one out, too, someone needs to put in an #ifdef statement, to determine if we want to compile on mips -> discard the line next: drivers/scsi/sgiwd93.c: in line 59,60 and 61 i inserted a cast to (unsigned long), otherwise the operation was invalid in line 102 and 174, the member of the struct is not called "regp" but "regs", and its not (wd33c93_regs *) but (wd33c93_regs) in line 293 and 327, the second parameter from wd33c93_init is not from type wd33c93_regs * but wd33c93_regs, so some hacking required next: drivers/scsi/st.c: 3236, 3268, 3342 same as with drivers/scsi/scsi_merge.c drivers/scsi/sg.c: 1547, 1634, 1792 dito next: drivers/sgi/char/rrm.c:74 and 75 the export from the .o-version does only function, when it is inserted in export-objs in Makefile ------ my question is, are these steps ok? or did i miss something, did something wrong? i thought these kernels should compile without problems ;)? ok, i will try the kernel (not before tomorrow, its already late enough), if it runs, it should be ok, or not? :) i do not know if these are all steps needed, because i want to finish for today. if theres something missing, i will update tomorrow thanks for any help, you may can give, wbr carsten flame me, if there is a doc/faq i've missed where all my answers are From owner-linux-mips@oss.sgi.com Thu Dec 6 10:50:45 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6IojI26441 for linux-mips-outgoing; Thu, 6 Dec 2001 10:50:45 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6IoSo26362 for ; Thu, 6 Dec 2001 10:50:28 -0800 Received: from mullein.sonytel.be (mail.sonytel.be [10.17.0.26]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id SAA12631; Thu, 6 Dec 2001 18:50:03 +0100 (MET) Date: Thu, 6 Dec 2001 18:50:04 +0100 (MET) From: Geert Uytterhoeven To: carsten busse -- hladmin cc: Linux/MIPS Development Subject: Re: Linux on Indy, kernel compile (2.4.14) and xfree ... In-Reply-To: <20011206182620.A16589@defiant.informatik.uni-bremen.de> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-959030623-1007661004=:20870" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---559023410-959030623-1007661004=:20870 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 6 Dec 2001, carsten busse -- hladmin wrote: > next: > drivers/scsi/scsi_merge.c: In function '__init_io': > drivers/scsi/scsi_merge.c:946 structure has no member named 'page' > > this is quite natural, the mips-definition in asm/scatterlist.h does not contain this var (but the one in asm-i386) > so i've commented this one out, too, > someone needs to put in an #ifdef statement, to determine if we want to compile on mips -> discard the line Just add the page field. We did the same on m68k. > next: > drivers/scsi/sgiwd93.c: > in line 59,60 and 61 i inserted a cast to (unsigned long), otherwise the operation was invalid > in line 102 and 174, the member of the struct is not called "regp" but "regs", and its not (wd33c93_regs *) but (wd33c93_regs) > in line 293 and 327, the second parameter from wd33c93_init is not from type wd33c93_regs * but wd33c93_regs, so some hacking required See attached email (from last Oct). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ---559023410-959030623-1007661004=:20870 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=mail Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=mail RnJvbSBnZWVydEBsaW51eC1tNjhrLm9yZyBUaHUgRGVjICA2IDE4OjQ4OjQw IDIwMDENCkRhdGU6IE1vbiwgMjkgT2N0IDIwMDEgMTA6MTY6MzQgKzAxMDAg KE1FVCkNCkZyb206IEdlZXJ0IFV5dHRlcmhvZXZlbiA8Z2V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---559023410-959030623-1007661004=:20870-- From owner-linux-mips@oss.sgi.com Thu Dec 6 10:53:15 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6IrFR26523 for linux-mips-outgoing; Thu, 6 Dec 2001 10:53:15 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6IrCo26519 for ; Thu, 6 Dec 2001 10:53:12 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id 88F80125C1; Thu, 6 Dec 2001 09:53:10 -0800 (PST) Date: Thu, 6 Dec 2001 09:53:10 -0800 From: "H . J . Lu" To: Ralf Baechle Cc: linux-mips@oss.sgi.com Subject: Re: Why is byteorder removed from /proc/cpuinfo? Message-ID: <20011206095310.A6933@lucon.org> References: <20011206093506.A6496@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011206093506.A6496@lucon.org>; from hjl@lucon.org on Thu, Dec 06, 2001 at 09:35:06AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 09:35:06AM -0800, H . J . Lu wrote: > The byteorder field is emoved from /proc/cpuinfo in the current 2.4 > kernel in CVS. It breaks config.guess used by all the GNU softwares. > > Here is a patch. H.J. ---- --- arch/mips/kernel/proc.c.endian Wed Dec 5 08:02:53 2001 +++ arch/mips/kernel/proc.c Thu Dec 6 09:41:35 2001 @@ -42,6 +42,12 @@ static int show_cpuinfo(struct seq_file mips_cpu.cputype : CPU_UNKNOWN], (version >> 4) & 0x0f, version & 0x0f, (fp_vers >> 4) & 0x0f, fp_vers & 0x0f); +#if __BIG_ENDIAN + seq_printf(m, "byteorder\t\t: big endian\n"); +#endif +#if __LITTLE_ENDIAN + seq_printf(m, "byteorder\t\t: little endian\n"); +#endif seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n", (loops_per_jiffy + 2500) / (500000/HZ), ((loops_per_jiffy + 2500) / (5000/HZ)) % 100); From owner-linux-mips@oss.sgi.com Thu Dec 6 10:57:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6Ivb626767 for linux-mips-outgoing; Thu, 6 Dec 2001 10:57:37 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB6IvXo26764 for ; Thu, 6 Dec 2001 10:57:33 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB6HvOV11234; Thu, 6 Dec 2001 15:57:24 -0200 Date: Thu, 6 Dec 2001 15:57:24 -0200 From: Ralf Baechle To: "H . J . Lu" Cc: linux-mips@oss.sgi.com Subject: Re: Why is byteorder removed from /proc/cpuinfo? Message-ID: <20011206155724.A11083@dea.linux-mips.net> References: <20011206093506.A6496@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011206093506.A6496@lucon.org>; from hjl@lucon.org on Thu, Dec 06, 2001 at 09:35:06AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 09:35:06AM -0800, H . J . Lu wrote: > The byteorder field is emoved from /proc/cpuinfo in the current 2.4 > kernel in CVS. It breaks config.guess used by all the GNU softwares. Grrr... In the past config.guess used gcc to compile a test program using gcc. I told sometime ago to whoever it was that I'm going to remove all non-cpu related information (endianess should be considered per _thread_ on MIPS!) from /proc/cpuinfo where it has no business; the /proc rewrite in 2.4.15 more or less forced me into this. Ralf From owner-linux-mips@oss.sgi.com Thu Dec 6 11:34:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6JYCw28126 for linux-mips-outgoing; Thu, 6 Dec 2001 11:34:12 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB6JY6o28123 for ; Thu, 6 Dec 2001 11:34:06 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB6IXmM11547; Thu, 6 Dec 2001 16:33:48 -0200 Date: Thu, 6 Dec 2001 16:33:48 -0200 From: Ralf Baechle To: Zhang Fuxin Cc: "linux-mips@oss.sgi.com" Subject: Re: config problem? Message-ID: <20011206163348.D8002@dea.linux-mips.net> References: <200112040451.fB44pto11151@oss.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112040451.fB44pto11151@oss.sgi.com>; from fxzhang@ict.ac.cn on Tue, Dec 04, 2001 at 11:50:09AM +0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 04, 2001 at 11:50:09AM +0800, Zhang Fuxin wrote: > when upgrading to current CVS 2_4_branch,I find that the configure > scripts seems problematic: > 1. drivers/hotplug doesn't exist,so line 421: > source "drivers/hotplug/config.in" > leads to failures of make xconfig/menuconfig RTFM ... But to make it easier for you: cvs update -d -P :-) > 2. drivers/sound/config.in line 37 type error > = 'y' should be = "y" Thanks, fixed. > 3.the newly added "Embed root filesys ramdisk.." is not in > any mainmenu block,so "statement not in menu" occurs Fixed also. > 'make config' is ok I wouldn't use anything else :-) Ralf From owner-linux-mips@oss.sgi.com Thu Dec 6 11:36:14 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6JaEq28201 for linux-mips-outgoing; Thu, 6 Dec 2001 11:36:14 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6Ja7o28194; Thu, 6 Dec 2001 11:36:07 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id DF79C125C1; Thu, 6 Dec 2001 10:36:05 -0800 (PST) Date: Thu, 6 Dec 2001 10:36:05 -0800 From: "H . J . Lu" To: Ralf Baechle Cc: linux-mips@oss.sgi.com, config-patches@gnu.org Subject: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011206103605.A7366@lucon.org> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011206155724.A11083@dea.linux-mips.net>; from ralf@oss.sgi.com on Thu, Dec 06, 2001 at 03:57:24PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 03:57:24PM -0200, Ralf Baechle wrote: > On Thu, Dec 06, 2001 at 09:35:06AM -0800, H . J . Lu wrote: > > > The byteorder field is emoved from /proc/cpuinfo in the current 2.4 > > kernel in CVS. It breaks config.guess used by all the GNU softwares. > > Grrr... In the past config.guess used gcc to compile a test program using > gcc. I told sometime ago to whoever it was that I'm going to remove > all non-cpu related information (endianess should be considered per > _thread_ on MIPS!) from /proc/cpuinfo where it has no business; the /proc > rewrite in 2.4.15 more or less forced me into this. > How about this patch? H.J. --- 2001-12-06 H.J. Lu (hjl@gnu.org) * config.guess: Properly handle Linux/mips. --- config.guess.mips Mon Nov 5 08:09:32 2001 +++ config.guess Thu Dec 6 10:31:40 2001 @@ -767,10 +767,21 @@ EOF echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; mips:Linux:*:*) - case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in - big) echo mips-unknown-linux-gnu && exit 0 ;; - little) echo mipsel-unknown-linux-gnu && exit 0 ;; - esac + eval $set_cc_for_build + cat >$dummy.c <; Thu, 6 Dec 2001 11:42:12 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB6Ifri11629; Thu, 6 Dec 2001 16:41:53 -0200 Date: Thu, 6 Dec 2001 16:41:53 -0200 From: Ralf Baechle To: "H . J . Lu" Cc: linux-mips@oss.sgi.com, config-patches@gnu.org Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011206164153.E8002@dea.linux-mips.net> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011206103605.A7366@lucon.org>; from hjl@lucon.org on Thu, Dec 06, 2001 at 10:36:05AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 10:36:05AM -0800, H . J . Lu wrote: > How about this patch? Looks good to me except that checking for __MIPSE[LB]__ should be sufficient. Anything that doesn't provide these two symbols wouldn't have the chance of a snowball in hell to work. Ralf From owner-linux-mips@oss.sgi.com Thu Dec 6 11:51:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6Jppv28906 for linux-mips-outgoing; Thu, 6 Dec 2001 11:51:51 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6Jpio28900; Thu, 6 Dec 2001 11:51:44 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id A11E8125C1; Thu, 6 Dec 2001 10:51:42 -0800 (PST) Date: Thu, 6 Dec 2001 10:51:42 -0800 From: "H . J . Lu" To: Ralf Baechle Cc: linux-mips@oss.sgi.com, config-patches@gnu.org Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011206105142.A7995@lucon.org> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> <20011206164153.E8002@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011206164153.E8002@dea.linux-mips.net>; from ralf@oss.sgi.com on Thu, Dec 06, 2001 at 04:41:53PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 04:41:53PM -0200, Ralf Baechle wrote: > On Thu, Dec 06, 2001 at 10:36:05AM -0800, H . J . Lu wrote: > > > How about this patch? > > Looks good to me except that checking for __MIPSE[LB]__ should be > sufficient. Anything that doesn't provide these two symbols wouldn't > have the chance of a snowball in hell to work. > I added those just in case someone wants to use a different compiler to bootstrap gcc on Linux/mips :-). I don't think it will hurt anyhing. H.J. From owner-linux-mips@oss.sgi.com Thu Dec 6 12:16:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6KGVY29571 for linux-mips-outgoing; Thu, 6 Dec 2001 12:16:31 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB6KGQo29565 for ; Thu, 6 Dec 2001 12:16:27 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB6JGH811903; Thu, 6 Dec 2001 17:16:17 -0200 Date: Thu, 6 Dec 2001 17:16:17 -0200 From: Ralf Baechle To: "H . J . Lu" Cc: linux-mips@oss.sgi.com, config-patches@gnu.org Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011206171617.B11840@dea.linux-mips.net> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> <20011206164153.E8002@dea.linux-mips.net> <20011206105142.A7995@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011206105142.A7995@lucon.org>; from hjl@lucon.org on Thu, Dec 06, 2001 at 10:51:42AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 10:51:42AM -0800, H . J . Lu wrote: > > > How about this patch? > > > > Looks good to me except that checking for __MIPSE[LB]__ should be > > sufficient. Anything that doesn't provide these two symbols wouldn't > > have the chance of a snowball in hell to work. > > > > I added those just in case someone wants to use a different compiler > to bootstrap gcc on Linux/mips :-). I don't think it will hurt anyhing. Sure, it won't. And those guys who don't use a Linux/MIPS compiler seem to be decieded to have _alot_ of extra fun anyway :-) Ralf From owner-linux-mips@oss.sgi.com Thu Dec 6 13:41:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB6LfPt31707 for linux-mips-outgoing; Thu, 6 Dec 2001 13:41:25 -0800 Received: from ns.dazone.co.kr (h211-235-225-1.rev.krline.net [211.235.225.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB6Levo31700 for ; Thu, 6 Dec 2001 13:40:58 -0800 Received: from kangwook (h211-235-225-20.rev.krline.net [211.235.225.20]) by ns.dazone.co.kr (8.11.3/8.11.3) with SMTP id fB6KcpT05697 for ; Fri, 7 Dec 2001 05:38:51 +0900 MIME-Version: 1.0 Message-Id: <3C0F68E8.02012@kangwook> Content-Type: Multipart/Mixed; boundary="Boundary-=_lNezfQbIWRZOrStHFnJXrqQUvLYF" Subject: ²À °ËÅäÇÏ¿© Áֽʽÿä From: news@workcrew.net Reply-To: news@workcrew.net Date: Fri, 7 Dec 2001 05:40:07 +0900 To: linux-mips@oss.sgi.com Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --Boundary-=_lNezfQbIWRZOrStHFnJXrqQUvLYF Content-Type: Text/HTML Content-Transfer-Encoding: base64 PGh0bWw+DQo8aGVhZD4NCjx0aXRsZT5XZWxjb21lIHRvIFdvcmtDcmV3Lm5ldCBQcm9tb3Rpb248 L3RpdGxlPg0KPHN0eWxlIHR5cGU9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L3RleHQvY3NzIj4N Cg0KPCEtLQ0KDQotLT4NCg0KPC9zdHlsZT4NCjxsaW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0i aHR0cDovL3d3dy53b3JrY3Jldy5uZXQvc3R5bGUuY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DQog ICAgICAgICAgICAgICAgICAgIDxkaXYgYWxpZ249ImNlbnRlciI+PGltZyBzcmM9Imh0dHA6Ly93 d3cud29ya2NyZXcubmV0L2ltZy9wYWNfaW1nMS5naWYiIHdpZHRoPSIxNTgiIGhlaWdodD0iMTEi PjwvZGl2Pg0KICAgICAgICAgICAgICAgICAgPC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZD4g DQogICAgICAgICAgICAgICAgICAgIDxkaXYgYWxpZ249ImNlbnRlciI+PC9kaXY+DQogICAgICAg ICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNvbHNwYW49IjIiPiANCiAg ICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVyIj48aW1nIHNyYz0iaHR0cDovL3d3 dy53b3JrY3Jldy5uZXQvaW1nL3BhY19pbWcyLmdpZiIgd2lkdGg9IjE2OSIgaGVpZ2h0PSIxMyI+ PC9kaXY+DQogICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGhl aWdodD0iMjAiPiANCiAgICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVyIj48L2Rp dj4NCiAgICAgICAgICAgICAgICAgIDwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQ+IA0KICAg ICAgICAgICAgICAgICAgICA8ZGl2IGFsaWduPSJjZW50ZXIiPjxpbWcgc3JjPSJodHRwOi8vd3d3 LndvcmtjcmV3Lm5ldC9pbWcvcGFjX2ltZzMuZ2lmIiB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjEzIj48 L2Rpdj4NCiAgICAgICAgICAgICAgICAgIDwvdGQ+DQogICAgICAgICAgICAgICAgPC90cj4NCiAg ICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSIzMCI+Jm5i c3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0idGQiPjxpbWcgc3JjPSJodHRw Oi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvbWFpbl9pY29uLmdpZiIgd2lkdGg9IjYiIGhlaWdodD0i MTAiPiANCiAgICAgICAgICAgICAgICAgICAgQ1BVIDo5M01IejwvdGQ+DQogICAgICAgICAgICAg ICAgICA8dGQ+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCB3aWR0aD0iMzAiPiZu YnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgd2lkdGg9IjEzMCIgY2xhc3M9InRkIj48 aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYiIHdpZHRo PSI2IiBoZWlnaHQ9IjEwIj4gDQogICAgICAgICAgICAgICAgICAgIMCluN7AzyAoU2VydmVyIMb3 x9QpPC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZD4mbmJzcDs8L3RkPg0KICAgICAgICAgICAg ICAgICAgPHRkPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAg ICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgPHRkIHJvd3NwYW49IjIiPiZuYnNwOzwvdGQ+ DQogICAgICAgICAgICAgICAgICA8dGQgd2lkdGg9IjEwMCIgY2xhc3M9InRkIj48aW1nIHNyYz0i aHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYiIHdpZHRoPSI2IiBoZWln aHQ9IjEwIj4gDQogICAgICAgICAgICAgICAgICAgIE1lbW9yeToyNTZNQiA8L3RkPg0KICAgICAg ICAgICAgICAgICAgPHRkIHJvd3NwYW49IjIiPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAg ICA8dGQgcm93c3Bhbj0iMiI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCBjbGFz cz0idGQiPjxpbWcgc3JjPSJodHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvbWFpbl9pY29uLmdp ZiIgd2lkdGg9IjYiIGhlaWdodD0iMTAiPiANCiAgICAgICAgICAgICAgICAgICAgwM675y++97mr sPy4ri8mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIHJvd3NwYW49IjIiPiZuYnNw OzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgcm93c3Bhbj0iMiI+Jm5ic3A7PC90ZD4NCiAg ICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAg ICAgICA8dGQgd2lkdGg9IjEwMCIgY2xhc3M9InRkIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3Jr Y3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYiIHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4gDQogICAg ICAgICAgICAgICAgICAgIEhEIDogMjBHQjwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgY2xh c3M9InRkIj4mbmJzcDsmbmJzcDu/tb73wfa/+CC9w726xds8L3RkPg0KICAgICAgICAgICAgICAg IDwvdHI+DQogICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgIDx0ZD4mbmJz cDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJ0ZCI+Jm5ic3A7PC90ZD4NCiAg ICAgICAgICAgICAgICAgIDx0ZD4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkPiZu YnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgY2xhc3M9InRkIj48aW1nIHNyYz0iaHR0 cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYiIHdpZHRoPSI2IiBoZWlnaHQ9 IjEwIj4gDQogICAgICAgICAgICAgICAgICAgIMDPwaQvua68rS+47b7PILD8uK48L3RkPg0KICAg ICAgICAgICAgICAgICAgPHRkPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgcm93 c3Bhbj0iNSI+IA0KICAgICAgICAgICAgICAgICAgICA8ZGl2IGFsaWduPSJjZW50ZXIiPjxpbWcg c3JjPSJodHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvMzg3LmdpZiIgd2lkdGg9IjEzMiIgaGVp Z2h0PSI0NiI+PC9kaXY+DQogICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAg IDwvdHI+DQogICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgIDx0ZCBjb2xz cGFuPSIyIj4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkPiZuYnNwOzwvdGQ+DQog ICAgICAgICAgICAgICAgICA8dGQ+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCB3 aWR0aD0iMTMwIiBjbGFzcz0idGQiPjxpbWcgc3JjPSJodHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9p bWcvbWFpbl9pY29uLmdpZiIgd2lkdGg9IjYiIGhlaWdodD0iMTAiPiANCiAgICAgICAgICAgICAg ICAgICAgwPzA2rDhwOcvw+LF8LHZsPy4rjwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQ+Jm5i c3A7PC90ZD4NCiAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgIDx0cj4gDQog ICAgICAgICAgICAgICAgICA8dGQgY29sc3Bhbj0iMiI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAg ICAgICAgIDx0ZCByb3dzcGFuPSIzIj4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRk PiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgY2xhc3M9InRkIj48aW1nIHNyYz0i aHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYiIHdpZHRoPSI2IiBoZWln aHQ9IjEwIj4gDQogICAgICAgICAgICAgICAgICAgIMG2wfe1tS/B1rzSt888L3RkPg0KICAgICAg ICAgICAgICAgICAgPHRkIHJvd3NwYW49IjMiPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAg PC90cj4NCiAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgPHRkIGNvbHNw YW49IjIiIHJvd3NwYW49IjIiPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQ+Jm5i c3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0idGQiPjxpbWcgc3JjPSJodHRw Oi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvbWFpbl9pY29uLmdpZiIgd2lkdGg9IjYiIGhlaWdodD0i MTAiPiANCiAgICAgICAgICAgICAgICAgICAgxL+5wrTPxrw8L3RkPg0KICAgICAgICAgICAgICAg IDwvdHI+DQogICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgIDx0ZD4mbmJz cDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJ0ZCI+Jm5ic3A7Jm5ic3A7KLDU vcPGxy+8s7muwba75yk8L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAg IDwvdGFibGU+DQogICAgICAgICAgICAgIDx0YWJsZSB3aWR0aD0iNTkwIiBib3JkZXI9IjAiIGNl bGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+DQogICAgICAgICAgICAgICAgPHRyPiANCiAg ICAgICAgICAgICAgICAgIDx0ZCBjb2xzcGFuPSIzIiBoZWlnaHQ9IjEiPjxpbWcgc3JjPSJodHRw Oi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvanVtc3VuLmdpZiIgd2lkdGg9IjU5MCIgaGVpZ2h0PSIx Ij48L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgPHRyIGJnY29s b3I9IiNGRkZGRkYiPiANCiAgICAgICAgICAgICAgICAgIDx0ZCBoZWlnaHQ9IjUwIj48aW1nIHNy Yz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5fdGl0bGVfMS5naWYiIHdpZHRoPSIy NjgiIGhlaWdodD0iNDAiPjwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQ+Jm5ic3A7PC90ZD4N CiAgICAgICAgICAgICAgICAgIDx0ZD4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+ DQogICAgICAgICAgICAgIDwvdGFibGU+DQogICAgICAgICAgICAgIDx0YWJsZSB3aWR0aD0iNTg4 IiBib3JkZXI9IjAiIGNlbGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+DQogICAgICAgICAg ICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgIDx0ZCBiZ2NvbG9yPSIjRkZGRkZGIiBjb2xz cGFuPSIyIiB2YWxpZ249ImJvdHRvbSI+IA0KICAgICAgICAgICAgICAgICAgICA8ZGl2IGFsaWdu PSJyaWdodCI+PGltZyBzcmM9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9zYnNfaW1nMS5n aWYiIHdpZHRoPSIxNDciIGhlaWdodD0iNDUiPjwvZGl2Pg0KICAgICAgICAgICAgICAgICAgPC90 ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCBiZ2NvbG9yPSIjRkZGRkZGIiB3aWR0aD0iMjEyIiBy b3dzcGFuPSIzIj4gDQogICAgICAgICAgICAgICAgICAgIDxkaXYgYWxpZ249ImNlbnRlciI+IA0K ICAgICAgICAgICAgICAgICAgICAgIDx0YWJsZSB3aWR0aD0iMjEyIiBib3JkZXI9IjAiIGNlbGxz cGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI+DQogICAgICAgICAgICAgICAgICAgICAgICA8dHI+ IA0KICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY29sc3Bh bj0iMiI+PGltZyBzcmM9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9zYnNfaW1nMi5naWYi IHdpZHRoPSIxODYiIGhlaWdodD0iMTgiPjwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICA8 L3RyPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgICAg ICAgICAgPHRkIGJnY29sb3I9IiNGRkZGRkYiIHJvd3NwYW49IjUiIHdpZHRoPSI2NCI+PGltZyBz cmM9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9zYnNfaW1nNC5naWYiIHdpZHRoPSI2NCIg aGVpZ2h0PSI3OCI+PC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSIx MzAiIGNsYXNzPSJ0ZCIgYmdjb2xvcj0iI0ZGRkZGRiI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAg ICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAg ICAgICAgICAgICAgICAgICAgICA8dGQgd2lkdGg9IjEzMCIgY2xhc3M9InRkIiBiZ2NvbG9yPSIj RkZGRkZGIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5n aWYiIHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgICAg d2luZG93IDIwMDAgU2VydmVyPC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQog ICAgICAgICAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgICAgICAgICA8 dGQgY2xhc3M9InRkIiBiZ2NvbG9yPSIjRkZGRkZGIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3Jr Y3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYiIHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4gDQogICAg ICAgICAgICAgICAgICAgICAgICAgICAgRXhjaGFuZ2UgMjAwMDwvdGQ+DQogICAgICAgICAgICAg ICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAg ICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJ0ZCIgYmdjb2xvcj0iI0ZGRkZGRiI+PGltZyBz cmM9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9tYWluX2ljb24uZ2lmIiB3aWR0aD0iNiIg aGVpZ2h0PSIxMCI+IA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNRTCAyMDAwPC90ZD4N CiAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICA8 dHI+IA0KICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgY2xhc3M9InRkIiBiZ2NvbG9yPSIj RkZGRkZGIj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVy Ij48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5fcHJvZHVjdDE0Lmdp ZiIgd2lkdGg9IjkxIiBoZWlnaHQ9IjUzIj48L2Rpdj4NCiAgICAgICAgICAgICAgICAgICAgICAg ICAgPC90ZD4NCiAgICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAg ICAgICAgPC90YWJsZT4NCiAgICAgICAgICAgICAgICAgICAgPC9kaXY+DQogICAgICAgICAgICAg ICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIHJvd3NwYW49IjMiIGJnY29sb3I9IiNG RkZGRkYiIHdpZHRoPSIyMjAiPiANCiAgICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2Vu dGVyIj4gDQogICAgICAgICAgICAgICAgICAgICAgPHRhYmxlIHdpZHRoPSIyMTIiIGJvcmRlcj0i MCIgY2VsbHNwYWNpbmc9IjAiIGNlbGxwYWRkaW5nPSIwIj4NCiAgICAgICAgICAgICAgICAgICAg ICAgIDx0cj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZD4gDQogICAgICAgICAgICAg ICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVyIj48aW1nIHNyYz0iaHR0cDovL3d3dy53 b3JrY3Jldy5uZXQvaW1nL2luZGV4LmdpZiIgd2lkdGg9IjE5NCIgaGVpZ2h0PSIyMCIgdXNlbWFw PSIjTWFwIiBib3JkZXI9IjAiPjwvZGl2Pg0KICAgICAgICAgICAgICAgICAgICAgICAgICA8L3Rk Pg0KICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICAgICAgICA8 L3RhYmxlPg0KICAgICAgICAgICAgICAgICAgICAgIDxhIGhyZWY9Imh0dHA6Ly93d3cud29ya2Ny ZXcubmV0Ij48YnI+DQogICAgICAgICAgICAgICAgICAgICAgPGltZyBzcmM9Imh0dHA6Ly93d3cu d29ya2NyZXcubmV0L2ltZy9pbmRleF8xLmdpZiIgd2lkdGg9IjIxMiIgaGVpZ2h0PSI4NCIgYm9y ZGVyPSIwIj48L2E+PC9kaXY+DQogICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAg ICAgIDwvdHI+DQogICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgIDx0ZCBi Z2NvbG9yPSIjRkZGRkZGIj4gDQogICAgICAgICAgICAgICAgICAgIDxkaXYgYWxpZ249InJpZ2h0 Ij48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL3BsdXNlMS5naWYiIHdpZHRo PSI5IiBoZWlnaHQ9IjkiPjwvZGl2Pg0KICAgICAgICAgICAgICAgICAgPC90ZD4NCiAgICAgICAg ICAgICAgICAgIDx0ZCBiZ2NvbG9yPSIjRkZGRkZGIiB3aWR0aD0iMTAiPiZuYnNwOzwvdGQ+DQog ICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAg ICAgICAgPHRkIGJnY29sb3I9IiNGRkZGRkYiIGNvbHNwYW49IjIiIHZhbGlnbj0idG9wIj4gDQog ICAgICAgICAgICAgICAgICAgIDxkaXYgYWxpZ249InJpZ2h0Ij48aW1nIHNyYz0iaHR0cDovL3d3 dy53b3JrY3Jldy5uZXQvaW1nL3Nic19pbWc1LmdpZiIgd2lkdGg9IjE0NyIgaGVpZ2h0PSI0MCI+ PC9kaXY+DQogICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+DQog ICAgICAgICAgICAgIDwvdGFibGU+DQogICAgICAgICAgICAgIDxwPjxiPsDavLzH0SCzu7/rwLog PGEgaHJlZj0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQiPnd3dy53b3JrY3Jldy5uZXQ8L2E+wLsg DQogICAgICAgICAgICAgICAgwvzBtsfPvLy/5C48L2I+PC9wPg0KICAgICAgICAgICAgPC9kaXY+ DQogICAgICAgICAgPC90ZD4NCiAgICAgICAgPC90cj4NCiAgICAgICAgPHRyIGJnY29sb3I9IiNG Q0ZBRjkiPg0KICAgICAgICAgIDx0ZCBiZ2NvbG9yPSIjRkZGRkZGIiB3aWR0aD0iNTk2IiBoZWln aHQ9IjMwIj4gDQogICAgICAgICAgICA8ZGl2IGFsaWduPSJjZW50ZXIiPjxiPjxmb250IGNvbG9y PSIjNjY2NjY2Ij5Xb3JrQ3Jldy5uZXQgTmV3c2xldHRlcjwvZm9udD48L2I+IA0KICAgICAgICAg ICAgICC89r3FsMW6zrimIL/4x8+9w7TCILDmv+wgPGEgaHJlZj0ibWFpbHRvOm5ld3NAd29ya2Ny ZXcubmV0P3N1YmplY3Q9cmVtb3ZlIj48Yj6/qbHiPC9iPjwvYT64piANCiAgICAgICAgICAgICAg xay4r8fPvLy/5DwvZGl2Pg0KICAgICAgICAgIDwvdGQ+DQogICAgICAgIDwvdHI+DQogICA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YSBzaGFwZT0icmVj dCIgY29vcmRzPSIzODAsMyw0NjMsNTEiIGhyZWY9Imh0dHA6Ly93d3cuY29tcGFxLmNvLmtyIiB0 YXJnZXQ9Il9ibGFuayI+DQo8L21hcD4NCjwvYm9keT4NCjwvaHRtbD4NCg== --Boundary-=_lNezfQbIWRZOrStHFnJXrqQUvLYF-- From owner-linux-mips@oss.sgi.com Thu Dec 6 19:08:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB738qG09898 for linux-mips-outgoing; Thu, 6 Dec 2001 19:08:52 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB738go09895; Thu, 6 Dec 2001 19:08:42 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fB728xB29424; Thu, 6 Dec 2001 18:08:59 -0800 Message-ID: <3C1024A2.F3603F6A@mvista.com> Date: Thu, 06 Dec 2001 18:08:34 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips-kernel@lists.sourceforge.net, linux-mips@oss.sgi.com, ralf@oss.sgi.com Subject: [PATCH] pci_auto handles better when no IO/MEM behind P2P bridge Content-Type: multipart/mixed; boundary="------------DCA2F6226E833725CC283805" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --------------DCA2F6226E833725CC283805 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Any objections? Jun --------------DCA2F6226E833725CC283805 Content-Type: text/plain; charset=us-ascii; name="pci-auto-p2p-bridge-noiomem.011205.011206.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pci-auto-p2p-bridge-noiomem.011205.011206.patch" diff -Nru test/arch/mips/kernel/pci_auto.c.orig test/arch/mips/kernel/pci_auto.c --- test/arch/mips/kernel/pci_auto.c.orig Mon Nov 26 18:22:58 2001 +++ test/arch/mips/kernel/pci_auto.c Thu Dec 6 18:05:04 2001 @@ -252,9 +252,28 @@ int top_bus, int current_bus, int pci_devfn, - int sub_bus) + int sub_bus, + u32 prescan_pciauto_lower_iospc, + u32 prescan_pciauto_lower_memspc) { u32 temp; + u32 flag; + + /* + * [jsun] we cannot simply just write post scan value. + * If there is nothing behind P2P bridge, we need to + * turn off the IO/MEM addr decoding at all. + * The spec recommands to write higher BASE value than the LIMIT + * value. I think it works just fine if we disable appropriate + * bits in COMMAND register. + */ + flag = PCI_COMMAND_MASTER; + if (prescan_pciauto_lower_memspc != pciauto_lower_memspc) { + flag |= PCI_COMMAND_MEMORY; + } + if (prescan_pciauto_lower_iospc != pciauto_lower_iospc) { + flag |= PCI_COMMAND_IO; + } /* Configure bus number registers */ early_write_config_byte(hose, top_bus, current_bus, pci_devfn, @@ -278,8 +297,7 @@ early_read_config_dword(hose, top_bus, current_bus, pci_devfn, PCI_COMMAND, &temp); early_write_config_dword(hose, top_bus, current_bus, pci_devfn, - PCI_COMMAND, temp | PCI_COMMAND_IO | PCI_COMMAND_MEMORY - | PCI_COMMAND_MASTER); + PCI_COMMAND, temp | flag); } #define PCIAUTO_IDE_MODE_MASK 0x05 @@ -331,6 +349,9 @@ DBG("\n"); if ((pci_class >> 16) == PCI_CLASS_BRIDGE_PCI) { + u32 prescan_pciauto_lower_iospc; + u32 prescan_pciauto_lower_memspc; + DBG(" Bridge: primary=%.2x, secondary=%.2x\n", current_bus, sub_bus + 1); pciauto_prescan_setup_bridge(hose, top_bus, current_bus, @@ -338,10 +359,16 @@ DBG("Scanning sub bus %.2x, I/O 0x%.8x, Mem 0x%.8x\n", sub_bus + 1, pciauto_lower_iospc, pciauto_lower_memspc); + + prescan_pciauto_lower_iospc = pciauto_lower_iospc; + prescan_pciauto_lower_memspc = pciauto_lower_memspc; + sub_bus = pciauto_bus_scan(hose, top_bus, sub_bus+1); DBG("Back to bus %.2x\n", current_bus); pciauto_postscan_setup_bridge(hose, top_bus, current_bus, - pci_devfn, sub_bus); + pci_devfn, sub_bus, + prescan_pciauto_lower_iospc, + prescan_pciauto_lower_memspc); continue; } else if ((pci_class >> 16) == PCI_CLASS_STORAGE_IDE) { --------------DCA2F6226E833725CC283805-- From owner-linux-mips@oss.sgi.com Thu Dec 6 19:27:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB73Rhd10264 for linux-mips-outgoing; Thu, 6 Dec 2001 19:27:43 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB73Rbo10255; Thu, 6 Dec 2001 19:27:37 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fB72RtB30096; Thu, 6 Dec 2001 18:27:55 -0800 Message-ID: <3C102913.EDBD2EB@mvista.com> Date: Thu, 06 Dec 2001 18:27:31 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips-kernel@lists.sourceforge.net, linux-mips@oss.sgi.com, ralf@oss.sgi.com Subject: Re: [PATCH] pci_auto handles better when no IO/MEM behind P2P bridge References: <3C1024A2.F3603F6A@mvista.com> Content-Type: multipart/mixed; boundary="------------A437717BFF4D7DA85C567418" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --------------A437717BFF4D7DA85C567418 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Perhaps this one is better. It wastes a little PCI space, but looks more elegant... Is elegance still worth anything? :-) Jun --------------A437717BFF4D7DA85C567418 Content-Type: text/plain; charset=us-ascii; name="pci-auto-p2p-bridge-noiomem.011205.011206.b.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pci-auto-p2p-bridge-noiomem.011205.011206.b.patch" diff -Nru linux-2.4.16/arch/mips/kernel/pci_auto.c.orig linux-2.4.16/arch/mips/kernel/pci_auto.c --- linux-2.4.16/arch/mips/kernel/pci_auto.c.orig Mon Nov 26 18:22:58 2001 +++ linux-2.4.16/arch/mips/kernel/pci_auto.c Thu Dec 6 18:24:00 2001 @@ -256,6 +256,14 @@ { u32 temp; + /* + * [jsun] we always bump up baselines a little, so that if there + * nothing behind P2P bridge, we don't wind up overlapping IO/MEM + * spaces. + */ + pciauto_lower_memspc += 1; + pciauto_lower_iospc += 1; + /* Configure bus number registers */ early_write_config_byte(hose, top_bus, current_bus, pci_devfn, PCI_SUBORDINATE_BUS, sub_bus); --------------A437717BFF4D7DA85C567418-- From owner-linux-mips@oss.sgi.com Fri Dec 7 03:47:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7Bldb28473 for linux-mips-outgoing; Fri, 7 Dec 2001 03:47:39 -0800 Received: from river-bank.demon.co.uk (river-bank.demon.co.uk [193.237.18.135]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7BlZo28470 for ; Fri, 7 Dec 2001 03:47:35 -0800 Received: from river-bank.demon.co.uk(ratty.river-bank.demon.co.uk[192.168.0.4]) (863 bytes) by river-bank.demon.co.uk via smtpd with P:smtp/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) id for ; Fri, 7 Dec 2001 10:47:27 +0000 (GMT) (Smail-3.2.0.111 2000-Feb-17 #1 built 2001-Jan-12) Message-ID: <3C109DD7.3B768B6A@river-bank.demon.co.uk> Date: Fri, 07 Dec 2001 10:45:43 +0000 From: Phil Thompson Organization: At Home X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.4.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: v2.4 vs v2.5 in CVS Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Now that v2.5 is with us, how is the CVS going to be managed regarding the continued development of v2.4? Is a separate branch going to be created and maintained for the 2.4 series, or will those of us needing to work with the stable kernel have to take our own CVS snapshots now? Thanks, Phil From owner-linux-mips@oss.sgi.com Fri Dec 7 04:16:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7CGCn29457 for linux-mips-outgoing; Fri, 7 Dec 2001 04:16:12 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7CG9o29454 for ; Fri, 7 Dec 2001 04:16:09 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id DAA16486; Fri, 7 Dec 2001 03:15:47 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id DAA02228; Fri, 7 Dec 2001 03:15:45 -0800 (PST) Received: from mips.com (coppccl [172.17.27.2]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB7BFfA06918; Fri, 7 Dec 2001 12:15:41 +0100 (MET) Message-ID: <3C10A5CB.FB92B3A@mips.com> Date: Fri, 07 Dec 2001 12:19:39 +0100 From: Carsten Langgaard Organization: MIPS Technologies X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Guido Guenther CC: linux-mips@oss.sgi.com Subject: Re: Mozilla/Netscape on MIPS References: <3C0CDB7B.C13AE2B3@mips.com> <20011204161157.A9410@galadriel.physik.uni-konstanz.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Guido Guenther wrote: > On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > > There has previous been some request about running Mozilla on a MIPS > > system. > > We have put a bigendian and a littleendian image on our FTP site. > > > > It runs on the current RedHat7.1 distribution with some minor updates. > > The needed RPMs is also available on our FTP site: > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ > Were any special patches needed? Could you please also put the source > rpms there? Ok, I will put the sources on our FTP. Inorder to build the sources you also need to install some extra RPMs and rebuild crtbeginS.o, crti.o and libc_nonshared.a with the -Wa,-xgot option. > > Regards, > -- Guido From owner-linux-mips@oss.sgi.com Fri Dec 7 05:20:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7DKnu06689 for linux-mips-outgoing; Fri, 7 Dec 2001 05:20:49 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7DKeo06685 for ; Fri, 7 Dec 2001 05:20:40 -0800 Message-Id: <200112071320.fB7DKeo06685@oss.sgi.com> Received: (qmail 9777 invoked from network); 7 Dec 2001 12:15:23 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 7 Dec 2001 12:15:23 -0000 Date: Fri, 7 Dec 2001 20:18:39 +0800 From: Zhang Fuxin To: "linux-mips@oss.sgi.com" Subject: [PATCH] unaligned.c X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====_Dragon404255377684_=====" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --=====_Dragon404255377684_===== Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit hi,linux-mips, This patch does: 1.As Mr. Atsushi Nemoto has pointed out,the newest unaligned.c leave out several jb in the sw/sh emulation code.It will lead to oops if someone use unaligned addresses as syscall arguments to be stored to.Because the fixup code won't return to emulate_load_store_insn then. 2.when search_exception_table does find a fixup in emulate_load_store_insn,I think we should skip compute_return_epc(regs) in do_ade then.Or it will jump to wrong fixup position later. ltp failed the getsockname syscall test in this way: getsockname(fd,&sock,(int *)1) 1 is used at the position of &sinlen. then,kernel will finally call get_user to fetch the user provided len and cause a AdeL exception: get_user(len,ulen) (a fixup installed for the lw) ---->exception ---> do_ade ------>emulate_load_store_insn emulate fail --->exception <---fixup search_exception_table find the handler installed by get_user and change regs->cp0_epc to the fixup position <-------return compute_return_epc(regs) ADD another 4 to epc! <---------------- execution continues from fixup + 4,this omit the code to load -EFAULT to return value of get_user,may lead to further failures so i propose watch epc during emulate_load_store_insn,if it changes,then skip compute_return _epc 3.(optional,implemented)it may be better for search_exception_table & fixup_exception to use PC instead of regs->cp0_epc as arguments. PC points to the actual load/store instruction anyway, although this is for kernel code so it is almost impossible for user space accessing code to put load/store in a branch delay. 4.(optional,unimplemented) Will it be more efficient to put use emulation code of lw/lh/sw/sh before other impossible conditions? Am i missing something? BTW: Could somebody be so kind to explain the use of save_static_function?I know they build a pseudo function with a return, so call sys_sigsuspend will fall through to _sys_sigsuspend but what's the use? Nobody calls _sys_sigsuspend. Regards Zhang Fuxin fxzhang@ict.ac.cn --=====_Dragon404255377684_===== Content-Type: application/octet-stream; name="unaligned.c.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="unaligned.c.patch" MjE5YTIyMAo+IAkJCSJqXHQzYlxuXHQiCjI1OGEyNjAKPiAJCQkialx0M2Jcblx0IgoyODVhMjg4 Cj4gCQkJImpcdDNiXG5cdCIKMzMyYzMzNQo8IAlmaXh1cCA9IHNlYXJjaF9leGNlcHRpb25fdGFi bGUocmVncy0+Y3AwX2VwYyk7Ci0tLQo+IAlmaXh1cCA9IHNlYXJjaF9leGNlcHRpb25fdGFibGUo cGMpOwozMzVjMzM4CjwgCQluZXdfZXBjID0gZml4dXBfZXhjZXB0aW9uKGRwZl9yZWcsIGZpeHVw LCByZWdzLT5jcDBfZXBjKTsKLS0tCj4gCQluZXdfZXBjID0gZml4dXBfZXhjZXB0aW9uKGRwZl9y ZWcsIGZpeHVwLCBwYyk7CjM2MWEzNjUKPiAJdW5zaWduZWQgbG9uZyBvbGRlcGM7CjM4N2EzOTIK PiAJb2xkZXBjID0gcmVncy0+Y3AwX2VwYzsKMzkyYzM5Nyw0MDMKPCAJY29tcHV0ZV9yZXR1cm5f ZXBjKHJlZ3MpOwotLS0KPiAJCj4gCS8qIElmIGVwYyBjaGFuZ2VkIHVuZGVyIHVzLHRoZSBvbmx5 IHBvc3NpYmlsaXR5IGlzIHRoZSBleGNlcHRpb24KPiAJICogaXMgZm9yd2FyZGVkIHRvIG5ldyBs b2NhdGlvbiBkdXJpbmcgZml4dXAsdGhlbiB3ZSBjYW4ndCBjaGFuZ2UKPiAJICogaXQgaGVyZS0t emZ4Cj4gCSAqLwo+IAlpZiAob2xkZXBjID09IHJlZ3MtPmNwMF9lcGMpCj4gCQljb21wdXRlX3Jl dHVybl9lcGMocmVncyk7Cg== --=====_Dragon404255377684_=====-- From owner-linux-mips@oss.sgi.com Fri Dec 7 06:29:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7ETvJ08283 for linux-mips-outgoing; Fri, 7 Dec 2001 06:29:57 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7ETro08280 for ; Fri, 7 Dec 2001 06:29:53 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id FAA18074; Fri, 7 Dec 2001 05:29:39 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id FAA04141; Fri, 7 Dec 2001 05:29:38 -0800 (PST) Received: from mips.com (coppccl [172.17.27.2]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB7DTRA12170; Fri, 7 Dec 2001 14:29:34 +0100 (MET) Message-ID: <3C10C526.56F65E57@mips.com> Date: Fri, 07 Dec 2001 14:33:26 +0100 From: Carsten Langgaard Organization: MIPS Technologies X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: Mozilla/Netscape on MIPS References: <3C0CDB7B.C13AE2B3@mips.com> <20011204161157.A9410@galadriel.physik.uni-konstanz.de> <3C10A5CB.FB92B3A@mips.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Carsten Langgaard wrote: > Guido Guenther wrote: > > > On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > > > There has previous been some request about running Mozilla on a MIPS > > > system. > > > We have put a bigendian and a littleendian image on our FTP site. > > > > > > It runs on the current RedHat7.1 distribution with some minor updates. > > > The needed RPMs is also available on our FTP site: > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ > > Were any special patches needed? Could you please also put the source > > rpms there? > > Ok, I will put the sources on our FTP. > Inorder to build the sources you also need to install some extra RPMs and > rebuild crtbeginS.o, crti.o and libc_nonshared.a with the -Wa,-xgot option. It now on FTP, you will also find precompiled version of crtbeginS.o, crti.o and libc_nonshared.a (compiled with -Wa,-xgot). Please read the README.build file for howto build the sources. The link are: ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/src/ > > > > > Regards, > > -- Guido From owner-linux-mips@oss.sgi.com Fri Dec 7 07:29:15 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7FTF810789 for linux-mips-outgoing; Fri, 7 Dec 2001 07:29:15 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB7FT6o10785 for ; Fri, 7 Dec 2001 07:29:07 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB72lSd01402; Fri, 7 Dec 2001 00:47:28 -0200 Date: Fri, 7 Dec 2001 00:47:28 -0200 From: Ralf Baechle To: Atsushi Nemoto Cc: brad@ltc.com, linux-mips@oss.sgi.com Subject: Re: PATCH: spurious_count cleanup Message-ID: <20011207004727.F1202@dea.linux-mips.net> References: <20011201004526.A22248@dev1.ltc.com> <20011204.161928.28780490.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011204.161928.28780490.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Tue, Dec 04, 2001 at 04:19:28PM +0900 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 04, 2001 at 04:19:28PM +0900, Atsushi Nemoto wrote: > > --- arch/mips/kernel/entry.S 2001/11/27 01:26:46 1.32 > > +++ arch/mips/kernel/entry.S 2001/11/30 18:42:07 > > @@ -95,12 +95,12 @@ > > * Someone tried to fool us by sending an interrupt but we > > * couldn't find a cause for it. > > */ > > - lui t1,%hi(spurious_count) > > + lui t1,%hi(irq_err_count) > > .set reorder > > - lw t0,%lo(spurious_count)(t1) > > + lw t0,%lo(irq_err_count)(t1) > > .set noreorder > > addiu t0,1 > > - sw t0,%lo(spurious_count)(t1) > > + sw t0,%lo(irq_err_count)(t1) > > j ret_from_irq > > END(spurious_interrupt) The spurious_count vs. irq_err_count is already fixed in the meantime. For the rest of the function using noreorder was entirely pointless, so just removed those directives. Ralf From owner-linux-mips@oss.sgi.com Fri Dec 7 07:30:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7FU5R10905 for linux-mips-outgoing; Fri, 7 Dec 2001 07:30:05 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB7FU0o10893 for ; Fri, 7 Dec 2001 07:30:01 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB72Vh801337; Fri, 7 Dec 2001 00:31:43 -0200 Date: Fri, 7 Dec 2001 00:31:43 -0200 From: Ralf Baechle To: Ian Chilton Cc: Florian Lohoff , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) Message-ID: <20011207003143.E1202@dea.linux-mips.net> References: <20011203161921.B30391@woody.ichilton.co.uk> <20011203192543.A10394@paradigm.rfc822.org> <20011203224401.A31747@woody.ichilton.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011203224401.A31747@woody.ichilton.co.uk>; from ian@ichilton.co.uk on Mon, Dec 03, 2001 at 10:44:01PM +0000 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 03, 2001 at 10:44:01PM +0000, Ian Chilton wrote: > > Immediatly afterwards the massive ammount of IRQs. With 100Hz and 160 > > Chars across the screen - I would expect 1-2 lines/s on the screen. > > Instead the screen fills up within tens of seconds which seems to me > > like non acked IRQ. > > Weird.. > > Has any changes been made to the IRQ code lately? There indeed were and the guilty person already sent me a few fixes which I haven't applied yet. Ralf From owner-linux-mips@oss.sgi.com Fri Dec 7 07:56:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7FuSr12352 for linux-mips-outgoing; Fri, 7 Dec 2001 07:56:28 -0800 Received: from defiant.informatik.uni-bremen.de (defiant.informatik.uni-bremen.de [134.102.204.163]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7FuPo12349 for ; Fri, 7 Dec 2001 07:56:25 -0800 Received: (from cbusse@localhost) by defiant.informatik.uni-bremen.de (8.11.6/8.11.6/SuSE Linux 0.5) id fB7F2bF03203; Fri, 7 Dec 2001 16:02:37 +0100 Date: Fri, 7 Dec 2001 16:02:37 +0100 From: carsten busse To: Geert Uytterhoeven Cc: linux-mips@oss.sgi.com Subject: Re: Linux on Indy, kernel compile (2.4.14) and xfree ... Message-ID: <20011207160237.A2909@defiant.informatik.uni-bremen.de> References: <20011206182620.A16589@defiant.informatik.uni-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 06, 2001 at 06:50:04PM +0100, Geert Uytterhoeven wrote: > See attached email (from last Oct). > > Gr{oetje,eeting}s, > > Geert > thanks geert, this already helped a lot, but know i don't get any further. may be you have another solution for this in your pocket? in kernel/exit.c, there is a function defined called "release_task", which is used by arch/mips/kernel/irixsig.c . the problem is, that the symbol is not exported. i inserted an "EXPORT_SYMBOL(release_task);" into exit.c after the function, and inserted exit.o in the export-objs list in the kernel/Makefile, and "extern static void release_task(...)" into arch/mips/kernel/irixsig.c the problem is, that the linker is still unable to find the symbol when linking asm/mips/kernel/kernel.o :( does anyone know, what i did wrong? its a regular misunderstanding in using the export-objs list by me, i think. i already tried putting exit.o at the beginning and at the end of the list in kernel/Makefile, i didn't removed it from the obj-y list carsten From owner-linux-mips@oss.sgi.com Fri Dec 7 09:52:50 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7HqoW17026 for linux-mips-outgoing; Fri, 7 Dec 2001 09:52:50 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB7Hqgo17023 for ; Fri, 7 Dec 2001 09:52:43 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB7GqQu23739; Fri, 7 Dec 2001 14:52:26 -0200 Date: Fri, 7 Dec 2001 14:52:26 -0200 From: Ralf Baechle To: Marc Karasek Cc: linux-mips@oss.sgi.com Subject: Re: Serial Console on Malta broken? Message-ID: <20011207145225.B17998@dea.linux-mips.net> References: <1006808755.7860.5.camel@localhost.localdomain> <20011127175420.F29424@dea.linux-mips.net> <1006884537.2037.4.camel@localhost.localdomain> <20011207100937.D1347@dea.linux-mips.net> <1007741762.1387.3.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1007741762.1387.3.camel@localhost.localdomain>; from marc_karasek@ivivity.com on Fri, Dec 07, 2001 at 11:15:39AM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Dec 07, 2001 at 11:15:39AM -0500, Marc Karasek wrote: > I will try it as soon as I can. I also did some snooping and found that > the exception handler was not even getting fired. It was getting the > two interrupts (36, 38) but no other "exceptions/interrupts" at all. > Even spurious ones... It looked to me like the i8259 was locked up or > waiting for something. I put back in the old stuff. (Carsten sent me > the old malta_int.c and a patch file) And that works. > > Just a thought but, in looking at the two codes (old/new) the old one > seems to be more applicable for an embedded system. In that it treats > the interrupt controller as a set of registers. I know that it really > is a i8259, but most people will not put a southbridge in there embedded > design. They are more likely to have a fpga or asic that handles the > interrupts. In using the Malta as a reference design and linux as the > RTOS it might be better to have the old code for porting. As it will > probably be closer to the what the embedded design will be. If you're going to use a legacy i8259 interrupt controller it'll almost certainly reside on ports 0x20 / 0xa0 like the original controllers in the PC. Now, from a software point of few the i8259 is a pain in the lower part of the body so you better stay from it anyway. Any other interrupt controller can easily be plugged into the interrupt handling. Take a look at arch/mips/kernel/i8259.c's structure. Basically all it does is filling in a number of entries into the irq_desc[] array for interrupts 0 to 15, most important for understanding is the struct hw_interrupt_type i8259A_irq_type. It contains the name of the interrupt handler and a bunch of methods to enable, disable etc. an interrupt. Almost all the complexity is handled in hardware that way and code to support a particular interrupt controler is easily reusable, i8259.c being the primary example. Another example would be the Momenco Ocelot which mostly uses the RM7000's internal interrupt controller. The old code was such a pain in the a** to maintain that removing support for it was one of the first things I did for 2.5.0 and I won't accept any patches for 2.4 that use the old style interupt handling for new systems. Ralf From owner-linux-mips@oss.sgi.com Fri Dec 7 10:18:38 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7IIcJ17680 for linux-mips-outgoing; Fri, 7 Dec 2001 10:18:38 -0800 Received: from ns1.ltc.com (vsat-148-63-243-254.c3.sb4.mrt.starband.net [148.63.243.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7IIBo17674; Fri, 7 Dec 2001 10:18:16 -0800 Received: from dev1 (unknown [10.1.1.85]) by ns1.ltc.com (Postfix) with ESMTP id BFC3F590A9; Fri, 7 Dec 2001 12:17:08 -0500 (EST) Received: from brad by dev1 with local (Exim 3.32 #1 (Debian)) id 16COZo-0002Uc-00; Fri, 07 Dec 2001 12:14:20 -0500 Date: Fri, 7 Dec 2001 12:14:16 -0500 To: ralf@oss.sgi.com Cc: linux-mips@oss.sgi.com Subject: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Message-ID: <20011207121416.A9583@dev1.ltc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.20i From: "Bradley D. LaRonde" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk 2001-12-07 Bradley D. LaRonde * remove detrimental do {...} whiles * add sequence point to in[b,w,l] to prevent compiler from reordering * add const modifier to outs[b,w,l] (quiets some compiler warnings) --- linux-oss-2.4-2001-12-04/include/asm-mips/io.h Thu Dec 6 17:07:24 2001 +++ linux-patch/include/asm-mips/io.h Thu Dec 6 16:47:20 2001 @@ -63,7 +63,7 @@ extern const unsigned long mips_io_port_base; #define set_io_port_base(base) \ - do { * (unsigned long *) &mips_io_port_base = (base); } while (0) + *(unsigned long *)&mips_io_port_base = (base); /* * Thanks to James van Artsdalen for a better timing-fix than @@ -215,41 +215,37 @@ #define outb(val,port) \ -do { \ - *(volatile u8 *)(mips_io_port_base + (port)) = __ioswab8(val); \ -} while(0) + *(volatile u8 *)(mips_io_port_base + (port)) = __ioswab8(val) #define outw(val,port) \ -do { \ - *(volatile u16 *)(mips_io_port_base + (port)) = __ioswab16(val); \ -} while(0) + *(volatile u16 *)(mips_io_port_base + (port)) = __ioswab16(val) #define outl(val,port) \ -do { \ - *(volatile u32 *)(mips_io_port_base + (port)) = __ioswab32(val);\ -} while(0) + *(volatile u32 *)(mips_io_port_base + (port)) = __ioswab32(val) +/* Don't do {...} while(0) these. */ #define outb_p(val,port) \ -do { \ +({ \ *(volatile u8 *)(mips_io_port_base + (port)) = __ioswab8(val); \ SLOW_DOWN_IO; \ -} while(0) +}) #define outw_p(val,port) \ -do { \ +{ \ *(volatile u16 *)(mips_io_port_base + (port)) = __ioswab16(val);\ SLOW_DOWN_IO; \ -} while(0) +} #define outl_p(val,port) \ -do { \ +{ \ *(volatile u32 *)(mips_io_port_base + (port)) = __ioswab32(val);\ SLOW_DOWN_IO; \ -} while(0) +} -#define inb(port) (__ioswab8(*(volatile u8 *)(mips_io_port_base + (port)))) -#define inw(port) (__ioswab16(*(volatile u16 *)(mips_io_port_base + (port)))) -#define inl(port) (__ioswab32(*(volatile u32 *)(mips_io_port_base + (port)))) +/* As in include/asm-arm/io.h, introduce sequence points ({...}) to prevent gcc * from reordering. */ +#define inb(port) ({ unsigned int __v = __ioswab8(*(volatile u8 *)(mips_io_port_base + (port))); __v; }) +#define inw(port) ({ unsigned int __v = __ioswab16(*(volatile u16 *)(mips_io_port_base + (port))); __v; }) +#define inl(port) ({ unsigned int __v = __ioswab32(*(volatile u32 *)(mips_io_port_base + (port))); __v; }) #define inb_p(port) \ ({ \ @@ -278,7 +274,7 @@ __ioswab32(__val); \ }) -static inline void outsb(unsigned long port, void *addr, unsigned int count) +static inline void outsb(unsigned long port, const void *addr, unsigned int count) { while (count--) { outb(*(u8 *)addr, port); @@ -294,7 +290,7 @@ } } -static inline void outsw(unsigned long port, void *addr, unsigned int count) +static inline void outsw(unsigned long port, const void *addr, unsigned int count) { while (count--) { outw(*(u16 *)addr, port); @@ -310,7 +306,7 @@ } } -static inline void outsl(unsigned long port, void *addr, unsigned int count) +static inline void outsl(unsigned long port, const void *addr, unsigned int count) { while (count--) { outl(*(u32 *)addr, port); From owner-linux-mips@oss.sgi.com Fri Dec 7 10:31:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7IV4n17892 for linux-mips-outgoing; Fri, 7 Dec 2001 10:31:04 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7IUvo17889; Fri, 7 Dec 2001 10:30:57 -0800 Received: from mullein.sonytel.be (mail.sonytel.be [10.17.0.26]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id SAA26631; Fri, 7 Dec 2001 18:30:42 +0100 (MET) Date: Fri, 7 Dec 2001 18:30:43 +0100 (MET) From: Geert Uytterhoeven To: "Bradley D. LaRonde" cc: Ralf Baechle , Linux/MIPS Development Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers In-Reply-To: <20011207121416.A9583@dev1.ltc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, 7 Dec 2001, Bradley D. LaRonde wrote: > 2001-12-07 Bradley D. LaRonde > > * remove detrimental do {...} whiles > * add sequence point to in[b,w,l] to prevent compiler from reordering > * add const modifier to outs[b,w,l] (quiets some compiler warnings) > > > --- linux-oss-2.4-2001-12-04/include/asm-mips/io.h Thu Dec 6 17:07:24 2001 > +++ linux-patch/include/asm-mips/io.h Thu Dec 6 16:47:20 2001 > @@ -63,7 +63,7 @@ > extern const unsigned long mips_io_port_base; > > #define set_io_port_base(base) \ > - do { * (unsigned long *) &mips_io_port_base = (base); } while (0) > + *(unsigned long *)&mips_io_port_base = (base); Now consider someone writing if (...) set_io_port_base(...); else ... And see what happens... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Fri Dec 7 10:38:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7IcMR18032 for linux-mips-outgoing; Fri, 7 Dec 2001 10:38:22 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7Ic5o18029; Fri, 7 Dec 2001 10:38:06 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16COxF-0006Bu-00; Fri, 07 Dec 2001 12:38:33 -0500 Date: Fri, 7 Dec 2001 12:38:33 -0500 From: Daniel Jacobowitz To: Geert Uytterhoeven Cc: "Bradley D. LaRonde" , Ralf Baechle , Linux/MIPS Development Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Message-ID: <20011207123833.A23784@nevyn.them.org> References: <20011207121416.A9583@dev1.ltc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Dec 07, 2001 at 06:30:43PM +0100, Geert Uytterhoeven wrote: > On Fri, 7 Dec 2001, Bradley D. LaRonde wrote: > > 2001-12-07 Bradley D. LaRonde > > > > * remove detrimental do {...} whiles > > * add sequence point to in[b,w,l] to prevent compiler from reordering > > * add const modifier to outs[b,w,l] (quiets some compiler warnings) > > > > > > --- linux-oss-2.4-2001-12-04/include/asm-mips/io.h Thu Dec 6 17:07:24 2001 > > +++ linux-patch/include/asm-mips/io.h Thu Dec 6 16:47:20 2001 > > @@ -63,7 +63,7 @@ > > extern const unsigned long mips_io_port_base; > > > > #define set_io_port_base(base) \ > > - do { * (unsigned long *) &mips_io_port_base = (base); } while (0) > > + *(unsigned long *)&mips_io_port_base = (base); > > Now consider someone writing > > if (...) > set_io_port_base(...); > else > ... > > And see what happens... If Bradley loses the extra semicolon, what other problem is the do/while construct supposed to address? I seem to recall there being another problem case, but I can't remember what it is. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Fri Dec 7 11:04:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7J4iW18555 for linux-mips-outgoing; Fri, 7 Dec 2001 11:04:44 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7J4do18551; Fri, 7 Dec 2001 11:04:39 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fB7I4XG03887; Fri, 7 Dec 2001 13:04:33 -0500 Date: Fri, 7 Dec 2001 13:04:33 -0500 From: Jim Paris To: Daniel Jacobowitz Cc: Geert Uytterhoeven , "Bradley D. LaRonde" , Ralf Baechle , Linux/MIPS Development Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Message-ID: <20011207130433.A3806@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011207123833.A23784@nevyn.them.org>; from dan@debian.org on Fri, Dec 07, 2001 at 12:38:33PM -0500 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > > #define set_io_port_base(base) \ > > > - do { * (unsigned long *) &mips_io_port_base = (base); } while (0) > > > + *(unsigned long *)&mips_io_port_base = (base); > > If Bradley loses the extra semicolon, what other problem is the > do/while construct supposed to address? I seem to recall there being > another problem case, but I can't remember what it is. For that particular #define, I can't think of any problem cases. The do/while helps with multiple statements, gives you a new scope for variable declaration, and allows the code to do a break, but we don't need any of that here. -jim From owner-linux-mips@oss.sgi.com Fri Dec 7 11:05:13 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7J5Dq18617 for linux-mips-outgoing; Fri, 7 Dec 2001 11:05:13 -0800 Received: from mms3.broadcom.com (mms3.broadcom.com [63.70.210.38]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7J5Ao18608 for ; Fri, 7 Dec 2001 11:05:10 -0800 Received: from 63.70.210.4 by mms3.broadcom.com with ESMTP (Broadcom MMS-3 SMTP Relay (MMS v4.7)); Fri, 07 Dec 2001 10:05:01 -0800 X-Server-Uuid: 1e1caf3a-b686-11d4-a6a3-00508bfc9ae5 Received: from mail-sj1-1.sj.broadcom.com (mail-sj1-1.sj.broadcom.com [10.16.128.231]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id KAA24531 for ; Fri, 7 Dec 2001 10:05:08 -0800 (PST) Received: from broadcom.com (kwalker@dt-sj3-158 [10.21.64.158]) by mail-sj1-1.sj.broadcom.com (8.8.8/8.8.8/MS01) with ESMTP id KAA03799 for ; Fri, 7 Dec 2001 10:05:08 -0800 (PST) Message-ID: <3C1104D4.F700768A@broadcom.com> Date: Fri, 07 Dec 2001 10:05:08 -0800 From: "Kip Walker" Organization: Broadcom Corp. BPBU X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.5-beta4va3.20 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: .section problems in entry.S X-WSS-ID: 100FDB47525688-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk I just investigated assembler warnings coming from arch/mips/kernel/entry.S (checked out as of 12/07 00:00 UTC), and noticed the following. After expanding macros, you get something like: .text .section ".text.init" (from __INIT) .data (from PANIC) .previous (from PANIC) --> section is now .text.init .previous (from __FINIT) --> section is now .data, not .text as intended. Perhaps .pushsection and .popsection should be used in some or all macros like this? Or am I smoking crack? Kip From owner-linux-mips@oss.sgi.com Fri Dec 7 11:07:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7J7Hc18729 for linux-mips-outgoing; Fri, 7 Dec 2001 11:07:17 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB7J7Bo18724 for ; Fri, 7 Dec 2001 11:07:12 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB7I6aP24108; Fri, 7 Dec 2001 16:06:36 -0200 Date: Fri, 7 Dec 2001 16:06:36 -0200 From: Ralf Baechle To: Daniel Jacobowitz Cc: Geert Uytterhoeven , "Bradley D. LaRonde" , Linux/MIPS Development Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Message-ID: <20011207160636.B23798@dea.linux-mips.net> References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011207123833.A23784@nevyn.them.org>; from dan@debian.org on Fri, Dec 07, 2001 at 12:38:33PM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Dec 07, 2001 at 12:38:33PM -0500, Daniel Jacobowitz wrote: > > > - do { * (unsigned long *) &mips_io_port_base = (base); } while (0) > > > + *(unsigned long *)&mips_io_port_base = (base); > > > > Now consider someone writing > > > > if (...) > > set_io_port_base(...); > > else > > ... > > > > And see what happens... > > If Bradley loses the extra semicolon, what other problem is the > do/while construct supposed to address? I seem to recall there being > another problem case, but I can't remember what it is. There is imho not very much sense in such a macro / function being written in a way that returns any value, that is something like foo = set_io_port_base(...) doesn't make obvious sense. So it's written in a way which will take care of any attempt to use the return type. Ralf From owner-linux-mips@oss.sgi.com Fri Dec 7 11:15:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7JFR718933 for linux-mips-outgoing; Fri, 7 Dec 2001 11:15:27 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7JFMo18930; Fri, 7 Dec 2001 11:15:22 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fB7IFL603975; Fri, 7 Dec 2001 13:15:21 -0500 Date: Fri, 7 Dec 2001 13:15:21 -0500 From: Jim Paris To: Ralf Baechle Cc: Daniel Jacobowitz , Geert Uytterhoeven , "Bradley D. LaRonde" , Linux/MIPS Development Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Message-ID: <20011207131521.A3942@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> <20011207160636.B23798@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011207160636.B23798@dea.linux-mips.net>; from ralf@oss.sgi.com on Fri, Dec 07, 2001 at 04:06:36PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > There is imho not very much sense in such a macro / function being written > in a way that returns any value, that is something like > > foo = set_io_port_base(...) > > doesn't make obvious sense. So it's written in a way which will take care > of any attempt to use the return type. So Brad's way allows things that weren't allowed before. But does it break anything that works with the do/while construct? You can take care of attempts to use the return type by voiding it: #define set_io_port_base(base) \ (void)(*(unsigned long *)&mips_io_port_base = (base)) -jim From owner-linux-mips@oss.sgi.com Fri Dec 7 12:35:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7KZVn21983 for linux-mips-outgoing; Fri, 7 Dec 2001 12:35:31 -0800 Received: from ux11.sp.cs.cmu.edu (UX11.SP.CS.CMU.EDU [128.2.198.38]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7KZSo21980 for ; Fri, 7 Dec 2001 12:35:28 -0800 Received: from GLOVEBOX.AHS.RI.CMU.EDU by ux11.sp.cs.cmu.edu id aa11732; 7 Dec 2001 14:34 EST Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers From: Justin Carlson To: jim@jtan.com Cc: linux-mips@oss.sgi.com In-Reply-To: <20011207131521.A3942@neurosis.mit.edu> References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> <20011207160636.B23798@dea.linux-mips.net> <20011207131521.A3942@neurosis.mit.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 07 Dec 2001 14:36:28 -0500 Message-Id: <1007753789.1680.1.camel@GLOVEBOX.AHS.RI.CMU.EDU> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > So Brad's way allows things that weren't allowed before. But does > it break anything that works with the do/while construct? > > You can take care of attempts to use the return type by voiding it: > > #define set_io_port_base(base) \ > (void)(*(unsigned long *)&mips_io_port_base = (base)) > Maybe I missed this, but is there any reason for the patch, other then a personal preference of how to do macros that look like functions? I've seen gcc do strange non-optimal things with functions declared inlines, but I've never seen it generate bad code WRT to do{}while(0) constructs. Unless I'm missing something, this patch looks like a solution in search of a problem... -Justin From owner-linux-mips@oss.sgi.com Fri Dec 7 12:36:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7KaCX22075 for linux-mips-outgoing; Fri, 7 Dec 2001 12:36:12 -0800 Received: from gw-nl4.philips.com (gw-nl4.philips.com [212.153.190.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7Ka3o22065 for ; Fri, 7 Dec 2001 12:36:03 -0800 Received: from smtpscan-nl2.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl4.philips.com with ESMTP id UAA22246 for ; Fri, 7 Dec 2001 20:36:01 +0100 (CET) (envelope-from balaji.ramalingam@philips.com) From: balaji.ramalingam@philips.com Received: from smtpscan-nl2.philips.com(130.139.36.22) by gw-nl4.philips.com via mwrap (4.0a) id xma022244; Fri, 7 Dec 01 20:36:01 +0100 Received: from smtprelay-us1.philips.com (localhost [127.0.0.1]) by smtpscan-nl2.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id UAA11846 for ; Fri, 7 Dec 2001 20:36:00 +0100 (MET) Received: from arj001soh.diamond.philips.com (amsoh01.diamond.philips.com [161.88.79.212]) by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id NAA04775 for ; Fri, 7 Dec 2001 13:35:59 -0600 (CST) Subject: not getting the kernel prompt To: linux-mips@oss.sgi.com Date: Fri, 7 Dec 2001 11:36:43 -0800 Message-ID: X-MIMETrack: Serialize by Router on arj001soh/H/SERVER/PHILIPS(Release 5.0.5 |September 22, 2000) at 07/12/2001 13:39:56 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, I had been trying to get the linux kernel 2.4.3 on our latest mips core which is mips32 ISA complient. Finally I was able to boot the kernel after facing a lot of issues. But I was not able to get a kernel prompt. I got the below messages ########################################################################################## Detected 32MB of memory Loading MIPS32 MMU routines. CPU revision is: 00061200 Primary instruction cache 16kb, linesize 32 bytes (2 ways) Primary data cache 16kb, linesize 32 bytes (4 ways) Number of TLB entries 32. Linux version 2.4.3-MIPS-01.01 (ramaling@svlhp106.sv.sc.philips.com) (gcc version 3.0 2001042 2 (prerelease)) #11 Wed Nov 28 19:45:33 PST 2001 Determined physical RAM map: memory: 02000000 @ 00000000 (usable) Initial ramdisk at: 0x8010e000 (1916920 bytes) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ram rw console=ttyS0 calculating viper_offset... 00001200(4608) CPU frequency in quickturn 0.46 MHz Memory: 29184k/32768k available (603k kernel code, 3584k reserved, 1923k data, 36k init) Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) Checking for 'wait' instruction... available. POSIX conformance testing by UNIFIX Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 block: queued sectors max/low 19333kB/6444kB, 64 slots per queue RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize RAMDISK: Compressed image found at block 0 crc errorFreeing initrd memory: 1871k freed VFS: Mounted root (ext2 filesystem) . Freeing unused kernel memory: 36k freed Warning: unable to open an initial console. attempt to access beyond end of device 01:00: rw=0, want=7771, limit=4096 ########################################################################################## I played around the ramdisk image and made sure that the /etc has fstab file with /dev/ram entry in it. Also there is a inittab file with /sbin/agetty entry to take care of the console ttyS0. I'm using the ttyS00 device (COM1) for both printing the debug messages as well as getting the kernel prompt. I dont know where I'm messing up. PLEASE give me some tips. Any help would be greatly appreciated. regards, Balaji Finished kernel_thread; Going to do unlock and cpu_idle Linux NET4.0 for Linux 2.4 From owner-linux-mips@oss.sgi.com Fri Dec 7 12:38:45 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7Kcj022191 for linux-mips-outgoing; Fri, 7 Dec 2001 12:38:45 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7Kcio22188 for ; Fri, 7 Dec 2001 12:38:44 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fB7JcfA04410; Fri, 7 Dec 2001 14:38:41 -0500 Date: Fri, 7 Dec 2001 14:38:41 -0500 From: Jim Paris To: balaji.ramalingam@philips.com Cc: linux-mips@oss.sgi.com Subject: Re: not getting the kernel prompt Message-ID: <20011207143841.A4403@neurosis.mit.edu> Reply-To: jim@jtan.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from balaji.ramalingam@philips.com on Fri, Dec 07, 2001 at 11:36:43AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > Warning: unable to open an initial console. Make sure you have a valid /dev/console (or just use devfs) -jim From owner-linux-mips@oss.sgi.com Fri Dec 7 12:40:40 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7Kee822383 for linux-mips-outgoing; Fri, 7 Dec 2001 12:40:40 -0800 Received: from www.transvirtual.com (root@www.transvirtual.com [206.14.214.140]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7Keco22376 for ; Fri, 7 Dec 2001 12:40:38 -0800 Received: from www.transvirtual.com (jsimmons@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fB7JeM6n012583; Fri, 7 Dec 2001 11:40:22 -0800 Received: from localhost (jsimmons@localhost) by www.transvirtual.com (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fB7JeKMZ012575; Fri, 7 Dec 2001 11:40:21 -0800 X-Authentication-Warning: www.transvirtual.com: jsimmons owned process doing -bs Date: Fri, 7 Dec 2001 11:40:18 -0800 (PST) From: James Simmons To: balaji.ramalingam@philips.com cc: linux-mips@oss.sgi.com Subject: Re: not getting the kernel prompt In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > RAMDISK: Compressed image found at block 0 > crc errorFreeing initrd memory: 1871k freed > VFS: Mounted root (ext2 filesystem) . > Freeing unused kernel memory: 36k freed > Warning: unable to open an initial console. > attempt to access beyond end of device > 01:00: rw=0, want=7771, limit=4096 > > ########################################################################################## > > I played around the ramdisk image and made sure that the /etc has fstab file > with /dev/ram entry in it. Also there is a inittab file with /sbin/agetty entry to take > care of the console ttyS0. Do you have a /dev/console on that ramdisk? From owner-linux-mips@oss.sgi.com Fri Dec 7 12:43:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7KhnZ22511 for linux-mips-outgoing; Fri, 7 Dec 2001 12:43:49 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7Khko22508 for ; Fri, 7 Dec 2001 12:43:46 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fB7Jhh504444; Fri, 7 Dec 2001 14:43:43 -0500 Date: Fri, 7 Dec 2001 14:43:43 -0500 From: Jim Paris To: Justin Carlson Cc: linux-mips@oss.sgi.com Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Message-ID: <20011207144343.A4417@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> <20011207160636.B23798@dea.linux-mips.net> <20011207131521.A3942@neurosis.mit.edu> <1007753789.1680.1.camel@GLOVEBOX.AHS.RI.CMU.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1007753789.1680.1.camel@GLOVEBOX.AHS.RI.CMU.EDU>; from justinca@ri.cmu.edu on Fri, Dec 07, 2001 at 02:36:28PM -0500 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > Maybe I missed this, but is there any reason for the patch, other then > a personal preference of how to do macros that look like functions? > I've seen gcc do strange non-optimal things with functions declared > inlines, but I've never seen it generate bad code WRT to do{}while(0) > constructs. > > Unless I'm missing something, this patch looks like a solution in search > of a problem... In the case of set_io_port_base, I see no real reason. But for the out[b,w,l] functions, having the do/while can prevent constructs that might otherwise make sense, like for(i=0;i<10;i++,outb(i,port)) { ... } Okay, so it's a bad example, but.. :) Maybe Brad has a better one. -jim From owner-linux-mips@oss.sgi.com Fri Dec 7 13:04:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7L4bC23110 for linux-mips-outgoing; Fri, 7 Dec 2001 13:04:37 -0800 Received: from gw-nl5.philips.com (gw-nl5.philips.com [212.153.235.99]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7L4Vo23105 for ; Fri, 7 Dec 2001 13:04:31 -0800 Received: from smtpscan-nl4.philips.com (localhost.philips.com [127.0.0.1]) by gw-nl5.philips.com with ESMTP id VAA11437; Fri, 7 Dec 2001 21:04:27 +0100 (MET) (envelope-from balaji.ramalingam@philips.com) From: balaji.ramalingam@philips.com Received: from smtpscan-nl4.philips.com(130.139.36.24) by gw-nl5.philips.com via mwrap (4.0a) id xma011435; Fri, 7 Dec 01 21:04:27 +0100 Received: from smtprelay-us1.philips.com (localhost [127.0.0.1]) by smtpscan-nl4.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id VAA09892; Fri, 7 Dec 2001 21:04:26 +0100 (MET) Received: from arj001soh.diamond.philips.com (amsoh01.diamond.philips.com [161.88.79.212]) by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id OAA11781; Fri, 7 Dec 2001 14:04:24 -0600 (CST) Subject: Re: not getting the kernel prompt To: linux-mips@oss.sgi.com Cc: jsimmons@transvirtual.com, jim@jtan.com Date: Fri, 7 Dec 2001 12:05:09 -0800 Message-ID: X-MIMETrack: Serialize by Router on arj001soh/H/SERVER/PHILIPS(Release 5.0.5 |September 22, 2000) at 07/12/2001 14:08:22 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello Folks, I do have a /dev/console in the ramdisk. ################################################ [root@svlhp106 dev]# cd /mnt/ramdisk_raj/ [root@svlhp106 ramdisk_raj]# cd dev [root@svlhp106 dev]# ll console crw--w--w- 1 root root 5, 1 Aug 9 15:16 console [root@svlhp106 dev]# ll ttyS0 crw-rw-rw- 1 root root 4, 64 Aug 9 15:16 ttyS0 [root@svlhp106 dev]# #################################################### regards, Balaji Jim Paris on 12/07/2001 11:38:41 AM Please respond to jim@jtan.com To: Balaji Ramalingam/SVL/SC/PHILIPS@AMEC cc: linux-mips@oss.sgi.com Subject: Re: not getting the kernel prompt Classification: > Warning: unable to open an initial console. Make sure you have a valid /dev/console (or just use devfs) -jim From owner-linux-mips@oss.sgi.com Fri Dec 7 13:16:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7LG5N23514 for linux-mips-outgoing; Fri, 7 Dec 2001 13:16:05 -0800 Received: from www.transvirtual.com (root@www.transvirtual.com [206.14.214.140]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7LG4o23508 for ; Fri, 7 Dec 2001 13:16:04 -0800 Received: from www.transvirtual.com (jsimmons@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fB7KFn6n014866; Fri, 7 Dec 2001 12:15:49 -0800 Received: from localhost (jsimmons@localhost) by www.transvirtual.com (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fB7KFm7W014858; Fri, 7 Dec 2001 12:15:48 -0800 X-Authentication-Warning: www.transvirtual.com: jsimmons owned process doing -bs Date: Fri, 7 Dec 2001 12:15:47 -0800 (PST) From: James Simmons To: balaji.ramalingam@philips.com cc: linux-mips@oss.sgi.com, jim@jtan.com Subject: Re: not getting the kernel prompt In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > I do have a /dev/console in the ramdisk. Do you have some kind of console device compiled in? Also do you have a /dev/tty? Hey we all make mistakes. From owner-linux-mips@oss.sgi.com Fri Dec 7 13:23:21 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7LNLE23918 for linux-mips-outgoing; Fri, 7 Dec 2001 13:23:21 -0800 Received: from ns1.ltc.com (vsat-148-63-243-254.c3.sb4.mrt.starband.net [148.63.243.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7LNAo23913 for ; Fri, 7 Dec 2001 13:23:11 -0800 Received: from prefect (unknown [10.1.1.86]) by ns1.ltc.com (Postfix) with SMTP id A72F6590A9; Fri, 7 Dec 2001 15:22:07 -0500 (EST) Message-ID: <01b801c17f5d$0af02180$5601010a@prefect> From: "Bradley D. LaRonde" To: , "Justin Carlson" Cc: References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> <20011207160636.B23798@dea.linux-mips.net> <20011207131521.A3942@neurosis.mit.edu> <1007753789.1680.1.camel@GLOVEBOX.AHS.RI.CMU.EDU> <20011207144343.A4417@neurosis.mit.edu> Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers Date: Fri, 7 Dec 2001 15:23:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk ----- Original Message ----- From: "Jim Paris" To: "Justin Carlson" Cc: Sent: Friday, December 07, 2001 2:43 PM Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers > > Maybe I missed this, but is there any reason for the patch, other then > > a personal preference of how to do macros that look like functions? > > I've seen gcc do strange non-optimal things with functions declared > > inlines, but I've never seen it generate bad code WRT to do{}while(0) > > constructs. > > > > Unless I'm missing something, this patch looks like a solution in search > > of a problem... No Justin. See below. > In the case of set_io_port_base, I see no real reason. But for the > out[b,w,l] functions, having the do/while can prevent constructs that > might otherwise make sense, like > > for(i=0;i<10;i++,outb(i,port)) { > ... > } > > Okay, so it's a bad example, but.. :) Maybe Brad has a better one. >From drivers/net/wireless/heremes.h: /* Register access convenience macros */ #define hermes_read_reg(hw, off) (inw((hw)->iobase + (off))) #define hermes_write_reg(hw, off, val) (outw_p((val), (hw)->iobase + (off))) #define hermes_read_regn(hw, name) (hermes_read_reg((hw), HERMES_##name)) #define hermes_write_regn(hw, name, val) (hermes_write_reg((hw), HERMES_##name, (val))) /* Note that for the next two, the count is in 16-bit words, not bytes */ #define hermes_read_data(hw, off, buf, count) (insw((hw)->iobase + (off), (buf), (count))) #define hermes_write_data(hw, off, buf, count) (outsw((hw)->iobase + (off), (buf), (count))) That won't compile with the do {...} while(0)s left in io.h. My patch lets hermes.h (and all other io code that I've tested) compile. heremes.h compiles as-is on other platforms. Why should mips snub it for some dubious value of do {...} while(0)? Regards, Brad From owner-linux-mips@oss.sgi.com Fri Dec 7 13:43:19 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7LhJT24377 for linux-mips-outgoing; Fri, 7 Dec 2001 13:43:19 -0800 Received: from ux11.sp.cs.cmu.edu (UX11.SP.CS.CMU.EDU [128.2.198.38]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7LhFo24373 for ; Fri, 7 Dec 2001 13:43:15 -0800 Received: from GLOVEBOX.AHS.RI.CMU.EDU by ux11.sp.cs.cmu.edu id aa13071; 7 Dec 2001 15:42 EST Subject: Re: PATCH: io.h remove detrimental do {...} whiles, add sequence points, add const modifiers From: Justin Carlson To: "Bradley D. LaRonde" Cc: linux-mips@oss.sgi.com In-Reply-To: <01b801c17f5d$0af02180$5601010a@prefect> References: <20011207121416.A9583@dev1.ltc.com> <20011207123833.A23784@nevyn.them.org> <20011207160636.B23798@dea.linux-mips.net> <20011207131521.A3942@neurosis.mit.edu> <1007753789.1680.1.camel@GLOVEBOX.AHS.RI.CMU.EDU> <20011207144343.A4417@neurosis.mit.edu> <01b801c17f5d$0af02180$5601010a@prefect> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 07 Dec 2001 15:44:15 -0500 Message-Id: <1007757856.2046.3.camel@GLOVEBOX.AHS.RI.CMU.EDU> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, 2001-12-07 at 15:23, Bradley D. LaRonde wrote: > > Okay, so it's a bad example, but.. :) Maybe Brad has a better one. > > From drivers/net/wireless/heremes.h: > > > /* Register access convenience macros */ > #define hermes_read_reg(hw, off) (inw((hw)->iobase + (off))) > #define hermes_write_reg(hw, off, val) (outw_p((val), (hw)->iobase + (off))) > That won't compile with the do {...} while(0)s left in io.h. My patch lets > hermes.h (and all other io code that I've tested) compile. > > heremes.h compiles as-is on other platforms. Why should mips snub it for > some dubious value of do {...} while(0)? > Because using (foo(),bar()) syntax to cram in a compound statement is just silly and a bad idea IMHO. The real Right Thing is to fix the compiler and use inline functions instead of macros in just about all of these cases. But, given as this puts me in the category of wanting to change other people's code just for the sake of a preferred coding style, I suppose I have to cede the point. :) -Justin From owner-linux-mips@oss.sgi.com Fri Dec 7 15:34:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB7NYgs27421 for linux-mips-outgoing; Fri, 7 Dec 2001 15:34:42 -0800 Received: from smtp.psdc.com (smtp.psdc.com [209.125.203.83]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB7NYeo27418 for ; Fri, 7 Dec 2001 15:34:40 -0800 Received: (from ex2k [172.19.1.1]) by smtp.psdc.com (NAVGW 2.5.1.13) with SMTP id M2001120714350427937 for ; Fri, 07 Dec 2001 14:35:04 -0800 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: Where can I find the source code and binaries of SNMP client and server? X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Fri, 7 Dec 2001 14:28:41 -0800 Message-ID: <84CE342693F11946B9F54B18C1AB837B1D9486@ex2k.pcs.psdc.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Where can I find the source code and binaries of SNMP client and server? Thread-Index: AcF/boUfgf16okzsSc6OoEv5kw+cEA== From: "Steven Liu" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fB7NYeo27419 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi All: In my new project, I need SNMP client and server. Where can I find the source code and binaries of SNMP client and server? Please let me share the information if you know it. Thanks, Steven From owner-linux-mips@oss.sgi.com Fri Dec 7 16:03:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB803AX28427 for linux-mips-outgoing; Fri, 7 Dec 2001 16:03:10 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8030o28424 for ; Fri, 7 Dec 2001 16:03:00 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Fri, 7 Dec 2001 18:02:53 -0500 Message-ID: <25369470B6F0D41194820002B328BDD2195AD3@ATLOPS> From: Marc Karasek To: "'balaji.ramalingam@philips.com '" , "'linux-mips@oss.sgi.com '" Subject: RE: not getting the kernel prompt Date: Fri, 7 Dec 2001 18:02:52 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk It looks like your ramdisk is too large. Is it over 4096 (4k) in size? -----Original Message----- From: balaji.ramalingam@philips.com To: linux-mips@oss.sgi.com Sent: 12/7/01 2:36 PM Subject: not getting the kernel prompt Hello, I had been trying to get the linux kernel 2.4.3 on our latest mips core which is mips32 ISA complient. Finally I was able to boot the kernel after facing a lot of issues. But I was not able to get a kernel prompt. I got the below messages ######################################################################## ################## Detected 32MB of memory Loading MIPS32 MMU routines. CPU revision is: 00061200 Primary instruction cache 16kb, linesize 32 bytes (2 ways) Primary data cache 16kb, linesize 32 bytes (4 ways) Number of TLB entries 32. Linux version 2.4.3-MIPS-01.01 (ramaling@svlhp106.sv.sc.philips.com) (gcc version 3.0 2001042 2 (prerelease)) #11 Wed Nov 28 19:45:33 PST 2001 Determined physical RAM map: memory: 02000000 @ 00000000 (usable) Initial ramdisk at: 0x8010e000 (1916920 bytes) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ram rw console=ttyS0 calculating viper_offset... 00001200(4608) CPU frequency in quickturn 0.46 MHz Memory: 29184k/32768k available (603k kernel code, 3584k reserved, 1923k data, 36k init) Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) Checking for 'wait' instruction... available. POSIX conformance testing by UNIFIX Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 block: queued sectors max/low 19333kB/6444kB, 64 slots per queue RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize RAMDISK: Compressed image found at block 0 crc errorFreeing initrd memory: 1871k freed VFS: Mounted root (ext2 filesystem) . Freeing unused kernel memory: 36k freed Warning: unable to open an initial console. attempt to access beyond end of device 01:00: rw=0, want=7771, limit=4096 ######################################################################## ################## I played around the ramdisk image and made sure that the /etc has fstab file with /dev/ram entry in it. Also there is a inittab file with /sbin/agetty entry to take care of the console ttyS0. I'm using the ttyS00 device (COM1) for both printing the debug messages as well as getting the kernel prompt. I dont know where I'm messing up. PLEASE give me some tips. Any help would be greatly appreciated. regards, Balaji Finished kernel_thread; Going to do unlock and cpu_idle Linux NET4.0 for Linux 2.4 From owner-linux-mips@oss.sgi.com Fri Dec 7 16:30:50 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB80Uon29044 for linux-mips-outgoing; Fri, 7 Dec 2001 16:30:50 -0800 Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB80Ugo29041 for ; Fri, 7 Dec 2001 16:30:42 -0800 Received: (qmail 21700 invoked by uid 0); 7 Dec 2001 23:30:34 -0000 Received: from gierlitz.rfc822.org (HELO bogon.ms20.nix) (195.71.97.228) by mail.gmx.net (mp009-rz3) with SMTP; 7 Dec 2001 23:30:34 -0000 Received: by bogon.ms20.nix (Postfix, from userid 1000) id 90DF836CB6; Sat, 8 Dec 2001 00:30:57 +0100 (CET) Date: Sat, 8 Dec 2001 00:30:57 +0100 From: Guido Guenther To: linux-mips@oss.sgi.com Subject: Weird glibc trampoline problem on R4600 Message-ID: <20011208003057.A2264@bogon.ms20.nix> Mail-Followup-To: linux-mips@oss.sgi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi, At fist I have to appolgize for not havin' an easy testcase but maybe someone has any ideas anyway. When running this little shell script on an R4600 Indy: #! /bin/sh ./update-alternatives --install /usr/bin/vi vi /usr/bin/vim 20 --slave /usr/share/man/man1/vi.1.gz vi.1.gz /usr/share/man/man1/vim.1.g Which executes the perl script "update-alternatives" (attached to this mail) the process dies with a Segfault: agx@revamp:~$ ./vim.postinst ./vim.postinst: line 2: 282 Segmentation fault /usr/lib/debug/ld.so.1 /usr/bin/perl ./update-alternatives --install /usr/bin/vi vi /usr/bin/vim 20 --slave /usr/share/man/man1/vi.1.gz vi.1.gz /usr/share/man/man1/vim.1.gz A backtrace shows: agx@revamp:~/glibc-2.2.4/elf$ uname -a Linux revamp 2.4.16 #1 Mon Dec 3 19:47:43 CET 2001 mips unknown agx@revamp:~/glibc-2.2.4/elf$ gdb -c ../../core /usr/bin/perl GNU gdb 5.0.90-cvs (MI_OUT) Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "mips-linux"...(no debugging symbols found)... warning: core file may not match specified executable file. Core was generated by `/usr/lib/debug/ld.so.1 /usr/bin/perl ./update-alternatives --install /usr/bin/v'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libperl.so.5.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libperl.so.5.6 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /usr/lib/debug/ld.so.1...done. Loaded symbols for /usr/lib/debug/ld.so.1 #0 0x2ab45ff8 in Perl_sv_upgrade () from /usr/lib/libperl.so.5.6 (gdb) bt #0 0x2ab45ff8 in Perl_sv_upgrade () from /usr/lib/libperl.so.5.6 #1 0x2ab4b468 in Perl_sv_setsv () from /usr/lib/libperl.so.5.6 #2 0x2ab38444 in Perl_pp_sassign () from /usr/lib/libperl.so.5.6 #3 0x2ab37b60 in Perl_runops_standard () from /usr/lib/libperl.so.5.6 #4 0x2aabead4 in perl_run () from /usr/lib/libperl.so.5.6 #5 0x55560348 in _dl_runtime_resolve () at dl-runtime.c:229 #6 0x55560348 in _dl_runtime_resolve () at dl-runtime.c:229 #7 0x55560348 in _dl_runtime_resolve () at dl-runtime.c:229 #8 0x55560348 in _dl_runtime_resolve () at dl-runtime.c:229 [..."endlessly" repeated...] ---Type to continue, or q to quit---q Quit (gdb) frame 5 #5 0x55560348 in _dl_runtime_resolve () at dl-runtime.c:229 229 ELF_MACHINE_RUNTIME_TRAMPOLINE (gdb) info frame Stack level 5, frame at 0x7fff7cc8: pc = 0x55560348 in _dl_runtime_resolve (dl-runtime.c:229); saved pc 0x55560348 called by frame at 0x7fff7cf0, caller of frame at 0x7fff7ca0 source language c. Arglist at 0x7fff7cc8, args: Locals at 0x7fff7cc8, Previous frame's sp is 0x7fff7cc8 Saved registers: a0 at 0x7fff7cb0, a1 at 0x7fff7cb4, a2 at 0x7fff7cb8, a3 at 0x7fff7cbc, t7 at 0x7fff7cc4, gp at 0x7fff7cc0 ...so it seems the process is stuck in the glibc-trampoline. Some other interesting facts: - when using a libc6 with debugging symbols the problem disappears - when using perldebug the problem disappears - when not using a shell script but typing the command directly into the shell the segfault goes away(also when using a subshell() ) - it does not show up on R4000, R4400 or R5000 CPUs Any thoughts welcome, -- Guido From owner-linux-mips@oss.sgi.com Fri Dec 7 16:35:30 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB80ZUv29155 for linux-mips-outgoing; Fri, 7 Dec 2001 16:35:30 -0800 Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB80ZJo29152 for ; Fri, 7 Dec 2001 16:35:19 -0800 Received: (qmail 12647 invoked by uid 0); 7 Dec 2001 23:35:11 -0000 Received: from gierlitz.rfc822.org (HELO bogon.ms20.nix) (195.71.97.228) by mail.gmx.net (mp002-rz3) with SMTP; 7 Dec 2001 23:35:11 -0000 Received: by bogon.ms20.nix (Postfix, from userid 1000) id 6261636CB6; Sat, 8 Dec 2001 00:35:34 +0100 (CET) Date: Sat, 8 Dec 2001 00:35:34 +0100 From: Guido Guenther To: linux-mips@oss.sgi.com Subject: Re: Weird glibc trampoline problem on R4600 Message-ID: <20011208003534.A2285@bogon.ms20.nix> Mail-Followup-To: linux-mips@oss.sgi.com References: <20011208003057.A2264@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <20011208003057.A2264@bogon.ms20.nix> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline And here's the script. -- Guido --k1lZvvs/B4yU6o8G Content-Type: application/octet-stream Content-Disposition: attachment; filename="update-alternatives.gz" Content-Transfer-Encoding: base64 H4sICDJSETwAA3VwZGF0ZS1hbHRlcm5hdGl2ZXMA3Txrc+LItZ/hV7QxNrDmYU+Sqqwxk52a nd3KrY13ax65dWvG1yugMbJBImphr2uG+9tzzum31ALsSVLJpabGIHWfPn3ej5YOD9hgLbLB OE4GK54tWK9Xrzej6TJOpnE2agzuo2ywiMeD6erupjFkh+z9PBZsESecLdNpPIv5lI0f2V+i Oz6LF7zexIEwQc5G0E+afc8zEafJqHHW/7Z/9sd95tQP2Y+LdBwtGOAaR+MFF+dwj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viWnL65LMXZx0Jo9ctMUjJGTLNqB83+gy735HuisDu6DH agUwGO0mclHWKkyaQG94uFYk0pofHIdSvqXMK9v5nhXWYHyuW7vgoibSdTbBBadUNLVIOYcA C2OCCNmcnAaTPcbhzmOVpnVRP2T38fIcjMZDFkGsIUZ/ZOJh9Pv63wFqCz+ymFMAAA== --k1lZvvs/B4yU6o8G-- From owner-linux-mips@oss.sgi.com Fri Dec 7 18:53:02 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB82r2631186 for linux-mips-outgoing; Fri, 7 Dec 2001 18:53:02 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB82qso31183; Fri, 7 Dec 2001 18:52:54 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id 3B7D37CEE; Sat, 8 Dec 2001 01:52:34 +0000 (GMT) Date: Sat, 8 Dec 2001 01:52:34 +0000 From: Ian Chilton To: ralf@oss.sgi.com Cc: linux-mips@oss.sgi.com Subject: Kernel Problem? Message-ID: <20011208015234.B21905@woody.ichilton.co.uk> Reply-To: Ian Chilton Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, Just decided to test the kernel that worked on the Indy on my I2. Booted the debian installation tftpboot.img and installed debian to /dev/sda1. Now trying to boot the 2.4.16 kernel, but get: Command Monitor. Type "exit" to return to the menu. >> bootp():/vmlinux root=/dev/sda1 console=ttyS0 Setting $netaddr to 192.168.0.13 (from server ) Obtaining /vmlinux from server | [and it stops here...think it was too quick to finish transfering..] Any ideas? Thanks Ian From owner-linux-mips@oss.sgi.com Sat Dec 8 06:16:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8EGPp12447 for linux-mips-outgoing; Sat, 8 Dec 2001 06:16:25 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8EGHo12444 for ; Sat, 8 Dec 2001 06:16:17 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id FAA02743; Sat, 8 Dec 2001 05:16:09 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id FAA00576; Sat, 8 Dec 2001 05:16:06 -0800 (PST) Received: from mips.com (coppccl [172.17.27.2]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB8DG0A12249; Sat, 8 Dec 2001 14:16:01 +0100 (MET) Message-ID: <3C121382.1DE7CA05@mips.com> Date: Sat, 08 Dec 2001 14:20:02 +0100 From: Carsten Langgaard Organization: MIPS Technologies X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: balaji.ramalingam@philips.com CC: linux-mips@oss.sgi.com Subject: Re: not getting the kernel prompt References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk balaji.ramalingam@philips.com wrote: > Hello, > > I had been trying to get the linux kernel 2.4.3 on our > latest mips core which is mips32 ISA complient. > > Finally I was able to boot the kernel after facing a lot of > issues. But I was not able to get a kernel prompt. > I got the below messages > > ########################################################################################## > > Detected 32MB of memory > Loading MIPS32 MMU routines. > CPU revision is: 00061200 > Primary instruction cache 16kb, linesize 32 bytes (2 ways) > Primary data cache 16kb, linesize 32 bytes (4 ways) > Number of TLB entries 32. > Linux version 2.4.3-MIPS-01.01 (ramaling@svlhp106.sv.sc.philips.com) (gcc version 3.0 2001042 > 2 (prerelease)) #11 Wed Nov 28 19:45:33 PST 2001 > Determined physical RAM map: > memory: 02000000 @ 00000000 (usable) > Initial ramdisk at: 0x8010e000 (1916920 bytes) > On node 0 totalpages: 8192 > zone(0): 8192 pages. > zone(1): 0 pages. > zone(2): 0 pages. > Kernel command line: root=/dev/ram rw console=ttyS0 > calculating viper_offset... 00001200(4608) > CPU frequency in quickturn 0.46 MHz > Memory: 29184k/32768k available (603k kernel code, 3584k reserved, 1923k data, 36k init) > Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) > Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) > Page-cache hash table entries: 8192 (order: 3, 32768 bytes) > Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) > Checking for 'wait' instruction... available. > POSIX conformance testing by UNIFIX > Based upon Swansea University Computer Society NET3.039 > Starting kswapd v1.8 > block: queued sectors max/low 19333kB/6444kB, 64 slots per queue > RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize > RAMDISK: Compressed image found at block 0 > crc errorFreeing initrd memory: 1871k freed You get a CRC error from the ramdisk images. It look like you need to increase the configuration setting of your ramdisk. Try set CONFIG_BLK_DEV_RAM_SIZE to 18432. > VFS: Mounted root (ext2 filesystem) . > Freeing unused kernel memory: 36k freed > Warning: unable to open an initial console. > attempt to access beyond end of device > 01:00: rw=0, want=7771, limit=4096 > > ########################################################################################## > > I played around the ramdisk image and made sure that the /etc has fstab file > with /dev/ram entry in it. Also there is a inittab file with /sbin/agetty entry to take > care of the console ttyS0. > > I'm using the ttyS00 device (COM1) for both printing the debug messages as well > as getting the kernel prompt. I dont know where I'm messing up. > > PLEASE give me some tips. > Any help would be greatly appreciated. > > regards, > Balaji > > Finished kernel_thread; Going to do unlock and cpu_idle > > Linux NET4.0 for Linux 2.4 From owner-linux-mips@oss.sgi.com Sat Dec 8 07:11:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8FBWI13806 for linux-mips-outgoing; Sat, 8 Dec 2001 07:11:32 -0800 Received: from mail.gmx.net (sproxy.gmx.de [213.165.64.20]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8FBSo13803 for ; Sat, 8 Dec 2001 07:11:28 -0800 Received: (qmail 1760 invoked by uid 0); 8 Dec 2001 14:11:21 -0000 Received: from gierlitz.rfc822.org (HELO bogon.ms20.nix) (195.71.97.228) by mail.gmx.net (mp011-rz3) with SMTP; 8 Dec 2001 14:11:21 -0000 Received: by bogon.ms20.nix (Postfix, from userid 1000) id 4E872366B9; Sat, 8 Dec 2001 15:11:42 +0100 (CET) Date: Sat, 8 Dec 2001 15:11:42 +0100 From: Guido Guenther To: linux-mips@oss.sgi.com Subject: understanding elf_machine_load_address Message-ID: <20011208141141.GA11437@bogon.ms20.nix> Mail-Followup-To: linux-mips@oss.sgi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi, I'm trying to understand to following snippet from glibc's sysdeps/mips/dl-machine.h: elf_machine_load_address (void) { ElfW(Addr) addr; asm (" .set noreorder\n" " la %0, here\n" " bltzal $0, here\n" " nop\n" "here: subu %0, $31, %0\n" " .set reorder\n" : "=r" (addr) : /* No inputs */ : "$31"); return addr; } As of my understanding addr is zero since $31-%0 is always zero(%0 stored (before the subu) the address of 'here', as does $31 after the bltzal). Please beat me with a cluebat. -- Guido From owner-linux-mips@oss.sgi.com Sat Dec 8 09:31:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8HV4Y15683 for linux-mips-outgoing; Sat, 8 Dec 2001 09:31:04 -0800 Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8HUwo15680 for ; Sat, 8 Dec 2001 09:30:58 -0800 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id C2F5C1E6D2; Sat, 8 Dec 2001 17:30:46 +0100 (MET) Received: from gromit.moeb ([192.168.27.3] ident=postfix) by arthur.inka.de with esmtp (Exim 3.30 #1) id 16CjFe-0001Pb-00; Sat, 08 Dec 2001 16:18:54 +0100 Received: by gromit.moeb (Postfix, from userid 207) id 9BB4F1EA2F; Sat, 8 Dec 2001 16:18:53 +0100 (CET) Mail-Copies-To: never To: Guido Guenther Cc: linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address References: <20011208141141.GA11437@bogon.ms20.nix> From: Andreas Jaeger Date: Sat, 08 Dec 2001 16:18:53 +0100 In-Reply-To: <20011208141141.GA11437@bogon.ms20.nix> (Guido Guenther's message of "Sat, 8 Dec 2001 15:11:42 +0100") Message-ID: Lines: 49 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Guido Guenther writes: > Hi, > I'm trying to understand to following snippet from glibc's > sysdeps/mips/dl-machine.h: That one is really a bit tricky but it should be correct. You should add the comment in front: /* Return the run-time load address of the shared object. */ > elf_machine_load_address (void) > { > ElfW(Addr) addr; > asm (" .set noreorder\n" > " la %0, here\n" load address this object has at build time (that's the address objdump prints) and which is different than the current address (a shared library can be loaded to any address and elf_machine_load_address is called before relocation). > " bltzal $0, here\n" > " nop\n" > "here: subu %0, $31, %0\n" Subtract shared address of "here" from address of "here" at build time - and you know at which address byte 0 of the shared library is loaded. > " .set reorder\n" > : "=r" (addr) > : /* No inputs */ > : "$31"); > return addr; > } > > As of my understanding addr is zero since $31-%0 is always > zero(%0 stored (before the subu) the address of 'here', as does $31 > after the bltzal). Please beat me with a cluebat. Enough cluebat? Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj From owner-linux-mips@oss.sgi.com Sat Dec 8 09:35:55 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8HZt015786 for linux-mips-outgoing; Sat, 8 Dec 2001 09:35:55 -0800 Received: from hlubocky.del.cz (hlubocky.del.cz [212.27.221.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8HZno15783; Sat, 8 Dec 2001 09:35:50 -0800 Received: from ladis (helo=localhost) by hlubocky.del.cz with local-esmtp (Exim 3.12 #1 (Debian)) id 16CkRw-0003oW-00; Sat, 08 Dec 2001 17:35:40 +0100 Date: Sat, 8 Dec 2001 17:35:39 +0100 (CET) From: Ladislav Michl To: Ralf Baechle cc: Ian Chilton , Florian Lohoff , linux-mips@oss.sgi.com Subject: Re: 2.4.16 success on Indy (was Re: 2.4.16 success on Decstation 5000/150) In-Reply-To: <20011207003143.E1202@dea.linux-mips.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by oss.sgi.com id fB8HZpo15784 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, 7 Dec 2001, Ralf Baechle wrote: > > Has any changes been made to the IRQ code lately? > > There indeed were and the guilty person already sent me a few fixes which > I haven't applied yet. There is another bug i know about. When you powerup machine calibrating delay loop takes approx. 70 sec (on Indy 100MHz). It seems that no (timer) interrupt arrive during this delay. I didn't notice that, because i only rebooted machine when i was testing it (in this case, everything works well). I'll fix it as soon (monday) as i return from mountains. Laïa From owner-linux-mips@oss.sgi.com Sat Dec 8 09:38:59 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8HcxQ15862 for linux-mips-outgoing; Sat, 8 Dec 2001 09:38:59 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8Hcwo15859 for ; Sat, 8 Dec 2001 09:38:58 -0800 Received: from galadriel.physik.uni-konstanz.de [134.34.144.79] (8) by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian)) id 16CkV5-0004VP-00; Sat, 08 Dec 2001 17:38:55 +0100 Received: from agx by galadriel.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16CkTq-0003FR-00; Sat, 08 Dec 2001 17:37:38 +0100 Date: Sat, 8 Dec 2001 17:37:38 +0100 From: Guido Guenther To: Andreas Jaeger Cc: linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address Message-ID: <20011208173737.A12469@galadriel.physik.uni-konstanz.de> Mail-Followup-To: Andreas Jaeger , linux-mips@oss.sgi.com References: <20011208141141.GA11437@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from aj@suse.de on Sat, Dec 08, 2001 at 04:18:53PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 08, 2001 at 04:18:53PM +0100, Andreas Jaeger wrote: > Enough cluebat? Yes. Thanks. -- Guido From owner-linux-mips@oss.sgi.com Sat Dec 8 09:49:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8Hn1Z16010 for linux-mips-outgoing; Sat, 8 Dec 2001 09:49:01 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8Hmuo16006 for ; Sat, 8 Dec 2001 09:48:57 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16Ckd7-0005NT-00; Sat, 08 Dec 2001 11:47:13 -0500 Date: Sat, 8 Dec 2001 11:47:13 -0500 From: Daniel Jacobowitz To: Andreas Jaeger Cc: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address Message-ID: <20011208114713.A20432@nevyn.them.org> References: <20011208141141.GA11437@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 08, 2001 at 04:18:53PM +0100, Andreas Jaeger wrote: > > " bltzal $0, here\n" > > " nop\n" > > "here: subu %0, $31, %0\n" > > Subtract shared address of "here" from address of "here" at build time > - and you know at which address byte 0 of the shared library is > loaded. Wait a second. Does bltzal fill in $31 even on a not-taken branch? Because bltzal $0 should never be taken. My handy MIPS reference and SPIM seem to agree that it won't fill in $31. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Sat Dec 8 12:46:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8KkNh18072 for linux-mips-outgoing; Sat, 8 Dec 2001 12:46:23 -0800 Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8KkJo18069 for ; Sat, 8 Dec 2001 12:46:19 -0800 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 8FD221E71A; Sat, 8 Dec 2001 20:46:12 +0100 (MET) Received: from gromit.moeb ([192.168.27.3] ident=postfix) by arthur.inka.de with esmtp (Exim 3.30 #1) id 16CnMn-0002Dp-00; Sat, 08 Dec 2001 20:42:33 +0100 Received: by gromit.moeb (Postfix, from userid 207) id 32C621EA2F; Sat, 8 Dec 2001 20:42:32 +0100 (CET) Mail-Copies-To: never To: Daniel Jacobowitz Cc: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address References: <20011208141141.GA11437@bogon.ms20.nix> <20011208114713.A20432@nevyn.them.org> From: Andreas Jaeger Date: Sat, 08 Dec 2001 20:42:32 +0100 In-Reply-To: <20011208114713.A20432@nevyn.them.org> (Daniel Jacobowitz's message of "Sat, 8 Dec 2001 11:47:13 -0500") Message-ID: Lines: 32 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Daniel Jacobowitz writes: > On Sat, Dec 08, 2001 at 04:18:53PM +0100, Andreas Jaeger wrote: >> > " bltzal $0, here\n" >> > " nop\n" >> > "here: subu %0, $31, %0\n" >> >> Subtract shared address of "here" from address of "here" at build time >> - and you know at which address byte 0 of the shared library is >> loaded. > > Wait a second. Does bltzal fill in $31 even on a not-taken branch? > Because bltzal $0 should never be taken. My handy MIPS reference and > SPIM seem to agree that it won't fill in $31. That's what I've asked myself also when fixing the dynamic linker. But Ralf convinced me that $31 will get filled in (and I verified that it did) - otherwise the dynamic linker would not work on any system at all. But it might be worth checking if Guido notices a problem. Btw. could anybody send me a patch documenting this instruction so that next time everybody knows directly what's going on? Thanks, Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj From owner-linux-mips@oss.sgi.com Sat Dec 8 13:25:20 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8LPKr18869 for linux-mips-outgoing; Sat, 8 Dec 2001 13:25:20 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8LPIo18866 for ; Sat, 8 Dec 2001 13:25:18 -0800 Received: from galadriel.physik.uni-konstanz.de [134.34.144.79] (8) by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian)) id 16Co25-0005Lw-00; Sat, 08 Dec 2001 21:25:13 +0100 Received: from agx by galadriel.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16Co0r-0003I0-00; Sat, 08 Dec 2001 21:23:57 +0100 Date: Sat, 8 Dec 2001 21:23:57 +0100 From: Guido Guenther To: Andreas Jaeger Cc: Daniel Jacobowitz , linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address Message-ID: <20011208212357.A12633@galadriel.physik.uni-konstanz.de> Mail-Followup-To: Andreas Jaeger , Daniel Jacobowitz , linux-mips@oss.sgi.com References: <20011208141141.GA11437@bogon.ms20.nix> <20011208114713.A20432@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from aj@suse.de on Sat, Dec 08, 2001 at 08:42:32PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 08, 2001 at 08:42:32PM +0100, Andreas Jaeger wrote: [..snip..] > That's what I've asked myself also when fixing the dynamic linker. > But Ralf convinced me that $31 will get filled in (and I verified that > it did) - otherwise the dynamic linker would not work on any system at > all. > > But it might be worth checking if Guido notices a problem. Not in elf_machine_load_address but in _dl_runtime_resolve(see my other posting), I just came across it when looking at dl-machine.h. -- Guido From owner-linux-mips@oss.sgi.com Sat Dec 8 13:57:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8Lvie19522 for linux-mips-outgoing; Sat, 8 Dec 2001 13:57:44 -0800 Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8Lveo19519 for ; Sat, 8 Dec 2001 13:57:40 -0800 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 108451E741; Sat, 8 Dec 2001 21:57:34 +0100 (MET) Received: from gromit.moeb ([192.168.27.3] ident=postfix) by arthur.inka.de with esmtp (Exim 3.30 #1) id 16CoS1-0002kL-00; Sat, 08 Dec 2001 21:52:01 +0100 Received: by gromit.moeb (Postfix, from userid 207) id 77A811EA2F; Sat, 8 Dec 2001 21:52:01 +0100 (CET) Mail-Copies-To: never To: Daniel Jacobowitz Cc: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address References: <20011208141141.GA11437@bogon.ms20.nix> <20011208114713.A20432@nevyn.them.org> From: Andreas Jaeger Date: Sat, 08 Dec 2001 21:52:01 +0100 In-Reply-To: <20011208114713.A20432@nevyn.them.org> (Daniel Jacobowitz's message of "Sat, 8 Dec 2001 11:47:13 -0500") Message-ID: Lines: 26 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Daniel Jacobowitz writes: > On Sat, Dec 08, 2001 at 04:18:53PM +0100, Andreas Jaeger wrote: >> > " bltzal $0, here\n" >> > " nop\n" >> > "here: subu %0, $31, %0\n" >> >> Subtract shared address of "here" from address of "here" at build time >> - and you know at which address byte 0 of the shared library is >> loaded. > > Wait a second. Does bltzal fill in $31 even on a not-taken branch? > Because bltzal $0 should never be taken. My handy MIPS reference and > SPIM seem to agree that it won't fill in $31. I just checked the MIPS R4000 Microprocessor Manual, 2nd Ed. by Joe Heinrich and it mentions "Unconditanally, the address of the instruction after the delay slot is placed in the link register, $31". Therefore the code is correct. Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj From owner-linux-mips@oss.sgi.com Sat Dec 8 14:03:18 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB8M3Il19723 for linux-mips-outgoing; Sat, 8 Dec 2001 14:03:18 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB8M3Eo19720 for ; Sat, 8 Dec 2001 14:03:14 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16Cock-00007T-00; Sat, 08 Dec 2001 16:03:06 -0500 Date: Sat, 8 Dec 2001 16:03:06 -0500 From: Daniel Jacobowitz To: Andreas Jaeger Cc: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: understanding elf_machine_load_address Message-ID: <20011208160306.A385@nevyn.them.org> References: <20011208141141.GA11437@bogon.ms20.nix> <20011208114713.A20432@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 08, 2001 at 09:52:01PM +0100, Andreas Jaeger wrote: > Daniel Jacobowitz writes: > > > On Sat, Dec 08, 2001 at 04:18:53PM +0100, Andreas Jaeger wrote: > >> > " bltzal $0, here\n" > >> > " nop\n" > >> > "here: subu %0, $31, %0\n" > >> > >> Subtract shared address of "here" from address of "here" at build time > >> - and you know at which address byte 0 of the shared library is > >> loaded. > > > > Wait a second. Does bltzal fill in $31 even on a not-taken branch? > > Because bltzal $0 should never be taken. My handy MIPS reference and > > SPIM seem to agree that it won't fill in $31. > > I just checked the MIPS R4000 Microprocessor Manual, 2nd Ed. by Joe > Heinrich and it mentions "Unconditanally, the address of the > instruction after the delay slot is placed in the link register, $31". > Therefore the code is correct. OK, thanks. Yet another thing that changed between my simulator and my hardware :) -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Sat Dec 8 20:38:19 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB94cJr27133 for linux-mips-outgoing; Sat, 8 Dec 2001 20:38:19 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB94bVo27119 for ; Sat, 8 Dec 2001 20:37:31 -0800 Message-Id: <200112090437.fB94bVo27119@oss.sgi.com> Received: (qmail 10508 invoked from network); 9 Dec 2001 03:32:31 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 9 Dec 2001 03:32:31 -0000 Date: Sun, 9 Dec 2001 11:35:10 +0800 From: Zhang Fuxin To: Hartvig Ekner CC: "linux-mips@oss.sgi.com" Subject: Re: Re: XF86Config & startup log X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====_Dragon015425401645_=====" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --=====_Dragon015425401645_===== Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable hi,Hartvig Ekner=A3=AC Hi,I have finished native-compiling a whole x windows package. the generated /usr/X11R6 is about 33MB in gzip form.I am afraid i can't offer it on my website because net traffic is expensive for me(~$0.3/MB).But I do have some free channel to put it out:) so if you can offer a place to upload i am willing to help. This one should work for you.And it includes much more than my cross-compiled one--I didn't disable anything except fonts and non-mga non-fbdev drivers(to save some time). Below I will give out my experience to achieve it(not too= difficult): Work starts from the source rpm at = http://oss.sgi.com/pub/linux/mips/redhat/7.1/SRPM/XFree86-4.1.0-= 0.9.0.1.src.rpm 1,rpm -i to install it,then cd /usr/src/redhat/SPECS and rpm= -bp XFree86.spec (you may have to resolve some dependency first),then you get a= unzip tree under /usr/src/redhat/BUILD/XFree86-4.1.0/ 2.'make World &> out' ... it fails when 'make clean' in fonts dir, saying that no= target named 'clean'; so i add a clean target to fonts/IMakefile,disable BuildFonts= should work.(config/cf/host.def) 3.'make World &> out' again (this time it should run till finish but with failures,check= the output 'out') ok ,we find that Several subdirs not make for some reason,lead= to link failure the generating XFree86 and others.(Seach '\*\*\*' in the= output to find errors) and there are some code which need to be patched. do: 1. disable unnecessary drivers & SuperProbe(i patched it,but disable will be more= convenient) etc in config/cf/xfree86.cf 2. If you don't need XIE,PEX,GL extension,you can disable= it,they are not made for some reason(Makefile'fault),i manually make them after all= other problem resolved 3. patch .../hw/xfree86/common/compiler.h(see the patch) patch Xserver/cfb/stipmips.s --->add '#define MIPSEL' 4. Xserver/hw/xfree86/input/Makefile subdirs target is not 'make' before 'all' is 'make',so i add= a dependency to 'all': all:: Congigure all.subdirs but it is auto-generated,if you use make World= later,please modify Imakefile instead(i am not familiar with imake,you have to figure it= out by yourself),or ,see the Notes below. 5.'make World &> out' again. This time it should run to finish and generates XFree86. If= not,check the output Notes: i resolve most of the problem incrementally,no need to= make World too many times One way i think feasible is like this: prepare the source patch the source edit host.def xfree86.def edit some Imakefile make World This way you may succeed in one time. good luck. =D4=DA 2001-12-07 09:26:00 you wrote=A3=BA >Hello Zhang, > >Thank you for the files. > >one more question: We have everything on the Malta board= running >(with 2.4.3 though, not 2.4.16 yet) except the X-server. > >Is there anything that should prevent me from using your binary= X-server >on our setup, when everything else is identical (G200 HW etc)? > >If so, could I get my hands on a copy of your X-server (binary= preferred, >but source also welcome!) which works on your system? If not,= could you >let me know exactly which X-server source you started from, and= then >I'll try to build it myself (but native this time). > >BTW, why did you cross-compile the Xserver? Once you have the= basic >system up, it seems much less painful to get things compiling= native. > >/Hartvig > >Zhang Fuxin writes: >> >> >> hi,Hartvig Ekner=3DA3=3DAC >> Here are my files. >> but the build process can't be described in short:(. >> I started from a rpm package from redhat7(or similar= standard=3D >> distribution),did >> everything to make it cross-compile,very ugly and=3D >> painful.Basically, >> repeat if errors >> make World &> out, >> read out,correct errors it reports >> until done >> beside changes to config files,i remember there were= problems=3D >> due to the sequence >> when it cross-builded a problem and wanted to execute it. >> From the list,I think someone else should have more= elegant=3D >> way. And i will try >> H.J.Lu's source in oss.sgi.com when having time. Regards Zhang Fuxin fxzhang@ict.ac.cn --=====_Dragon015425401645_===== Content-Type: application/octet-stream; name="compiler.h.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="compiler.h.patch" ODY0YTg2NSw5MjUKPiAjaWZkZWYgbGludXgJLyogZG9uJ3QgbWVzcyB3aXRoIG90aGVyIE9TcyAq Lwo+IAo+IC8qCj4gICogRUdDUyAxLjEga25vd3MgYWJvdXQgYXJiaXRyYXJ5IHVuYWxpZ25lZCBs b2FkcyAoYW5kIHdlIGRvbid0IHN1cHBvcnQgb2xkZXIKPiAgKiB2ZXJzaW9ucyBhbnl3YXkuIERl ZmluZSBzb21lIHBhY2tlZCBzdHJ1Y3R1cmVzIHRvIHRhbGsgYWJvdXQgc3VjaCB0aGluZ3MKPiAg KiB3aXRoLgo+ICAqLwo+IAo+IHN0cnVjdCBfX3VuYV91MzIgeyB1bnNpZ25lZCBpbnQgICB4IF9f YXR0cmlidXRlX18oKHBhY2tlZCkpOyB9Owo+IHN0cnV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nN0IHVuc2lnbmVkIGludCB2YWwpCj4gewo+ IAl1bnNpZ25lZCBsb25nIGFkZHIgPSAoKHVuc2lnbmVkIGxvbmcpYmFzZSkgKyBvZmZzZXQ7Cj4g Cj4gCV9fYXNtX18gX192b2xhdGlsZV9fKCJzdyAlMCwgMCglMSkiCj4gCQkJICAgICA6IC8qIE5v IG91dHB1dHMgKi8KPiAJCQkgICAgIDogInIiICh2YWwpLCAiciIgKGFkZHIpKTsKPiB9Cj4gI2Vu ZGlmCj4gCj4gI2RlZmluZSBtZW1fYmFycmllcigpIFwKPiBfX2FzbV9fIF9fdm9sYXRpbGVfXygJ CQkJCVwKPiAJIiMgcHJldmVudCBpbnN0cnVjdGlvbnMgYmVpbmcgbW92ZWQgYXJvdW5kXG5cdCIJ XAo+IAkiLnNldFx0bm9yZW9yZGVyXG5cdCIJCQkJXAo+IAkiIyA4IG5vcHMgdG8gZm9vbCB0aGUg UjQ0MDAgcGlwZWxpbmVcblx0IglcCj4gCSJub3A7bm9wO25vcDtub3A7bm9wO25vcDtub3A7bm9w XG5cdCIJCVwKPiAJIi5zZXRcdHJlb3JkZXIiCQkJCQlcCj4gCTogLyogbm8gb3V0cHV0ICovCQkJ CVwKPiAJOiAvKiBubyBpbnB1dCAqLwkJCQlcCj4gCTogIm1lbW9yeSIpCj4gI2RlZmluZSB3cml0 ZV9tZW1fYmFycmllcigpIG1lbV9iYXJyaWVyKCkKPiAKPiAjZWxzZSAgLyogIWxpbnV4ICovCjg3 NGE5MzYKPiAjZW5kaWYgLyogIWxpbnV4ICovCg== --=====_Dragon015425401645_===== Content-Type: application/octet-stream; name="XF86Config-4" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="XF86Config-4" U2VjdGlvbiAiU2VydmVyTGF5b3V0IgoJSWRlbnRpZmllciAgICAgIlhGcmVlODYgQ29uZmlndXJl ZCIKCVNjcmVlbiAgICAgIDAgICJTY3JlZW4wIiAwIDAKCUlucHV0RGV2aWNlICAgICJNb3VzZTAi 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SG9yaXpTeW5jICAgICAzMC4wLTU0LjAKIyAg ICAgICAgVmVydFJlZnJlc2ggICA1MC4wLTkwLjAKRW5kU2VjdGlvbgoKU2VjdGlvbiAiRGV2aWNl IgoJIyMjIEF2YWlsYWJsZSBEcml2ZXIgb3B0aW9ucyBhcmU6LQogICAgICAgICMjIyBWYWx1ZXM6 IDxpPjogaW50ZWdlciwgPGY+OiBmbG9hdCwgPGJvb2w+OiAiVHJ1ZSIvIkZhbHNlIiwKICAgICAg ICAjIyMgPHN0cmluZz46ICJTdHJpbmciLCA8ZnJlcT46ICI8Zj4gSHova0h6L01IeiIKICAgICAg ICAjIyMgW2FyZ106IGFyZyBvcHRpb25hbAogICAgICAgICNPcHRpb24gICAgICJTV2N1cnNvciIg ICAgICAgICAgIAkjIFs8Ym9vbD5dCiAgICAgICAgI09wdGlvbiAgICAgIkhXY3Vyc29yIiAgICAg ICAgICAgCSMgWzxib29sPl0KICAgICAgICAjT3B0aW9uICAgICAiUGNpUmV0cnkiICAgICAgICAg ICAJIyBbPGJvb2w+XQogICAgICAgICNPcHRpb24gICAgICJTeW5jT25HcmVlbiIgICAgICAgIAkj IFs8Ym9vbD5dCiAgICAgICAgI09wdGlvbiAgICAgIk5vQWNjZWwiICAgICAgICAgICAgCSMgWzxi b29sPl0KICAgICAgICAjT3B0aW9uICAgICAiU2hvd0NhY2hlIiAgICAgICAgICAJIyBbPGJvb2w+ XQogICAgICAgICNPcHRpb24gICAgICJPdmVybGF5IiAgICAgICAgICAgIAkjIFs8c3RyPl0KICAg ICAgICAjT3B0aW9uICAgICAiTUdBU0RSQU0iICAgICAgICAgICAJIyBbPGJvb2w+XQogICAgICAg ICNPcHRpb24gICAgICJTaGFkb3dGQiIgICAgICAgICAgIAkjIFs8Ym9vbD5dCiAgICAgICAgI09w dGlvbiAgICAgIlVzZUZCRGV2IiAgICAgICAgICAgCSMgWzxib29sPl0KICAgICAgICAjT3B0aW9u ICAgICAiQ29sb3JLZXkiICAgICAgICAgICAJIyA8aT4KICAgICAgICAjT3B0aW9uICAgICAiU2V0 TWNsayIgICAgICAgICAgICAJIyA8ZnJlcT4KICAgICAgICAjT3B0aW9uICAgICAiT3ZlcmNsb2Nr TWVtIiAgICAgICAJIyBbPGJvb2w+XQogICAgICAgICNPcHRpb24gICAgICJWaWRlb0tleSIgICAg ICAgICAgIAkjIDxpPgogICAgICAgICNPcHRpb24gICAgICJSb3RhdGUiICAgICAgICAgICAgIAkj IFs8c3RyPl0KICAgICAgICAjT3B0aW9uICAgICAiVGV4dHVyZWRWaWRlbyIgICAgICAJIyBbPGJv b2w+XQogICAgICAgICNPcHRpb24gICAgICJDcnRjMkhhbGYiICAgICAgICAgIAkjIFs8Ym9vbD5d CiAgICAgICAgI09wdGlvbiAgICAgIkNydGMyUmFtIiAgICAgICAgICAgCSMgPGk+CiAgICAgICAg I09wdGlvbiAgICAgIkludDEwIiAgICAgICAgICAgICAgCSMgWzxib29sPl0KICAgICAgICAjT3B0 aW9uICAgICAiQUdQTW9kZSIgICAgICAgICAgICAJIyA8aT4KICAgICAgICAjT3B0aW9uICAgICAi RGlnaXRhbFNjcmVlbiIgICAgICAJIyBbPGJvb2w+XQogICAgICAgICNPcHRpb24gICAgICJUViIg ICAgICAgICAgICAgICAgIAkjIFs8Ym9vbD5dCiAgICAgICAgI09wdGlvbiAgICAgIlRWU3RhbmRh cmQiICAgICAgICAgCSMgWzxzdHI+XQogICAgICAgICNPcHRpb24gICAgICJDYWJsZVR5cGUiICAg ICAgICAgIAkjIFs8c3RyPl0KICAgICAgICAjT3B0aW9uICAgICAiTm9IYWwiICAgICAgICAgICAg ICAJIyBbPGJvb2w+XQogICAgICAgICNPcHRpb24gICAgICJTd2FwcGVkSGVhZCIgICAgICAgIAkj IFs8Ym9vbD5dCiAgICAgICAgI09wdGlvbiAgICAgIkRSSSIgICAgICAgICAgICAgICAgCSMgWzxi b29sPl0KCUlkZW50aWZpZXIgICJDYXJkMCIKCURyaXZlciAgICAgICJtZ2EiCglWZW5kb3JOYW1l ICAiTWF0cm94IgoJQm9hcmROYW1lICAgIk1HQSBHMjAwIFBDSSIKCUJ1c0lEICAgICAgICJQQ0k6 MDoxNDowIgogICAgICAgIFZpZGVvUmFtICAgIDE2Mzg0CkVuZFNlY3Rpb24KClNlY3Rpb24gIlNj cmVlbiIKCUlkZW50aWZpZXIgIlNjcmVlbjAiCglEZXZpY2UgICAgICJDYXJkMCIKCU1vbml0b3Ig ICAgIk1vbml0b3IwIgoJRGVmYXVsdENvbG9yRGVwdGggMjQKCVN1YlNlY3Rpb24gIkRpc3BsYXki CgkJRGVwdGggICAgIDEKCUVuZFN1YlNlY3Rpb24KCVN1YlNlY3Rpb24gIkRpc3BsYXkiCgkJRGVw dGggICAgIDQKCUVuZFN1YlNlY3Rpb24KCVN1YlNlY3Rpb24gIkRpc3BsYXkiCgkJRGVwdGggICAg IDgKCUVuZFN1YlNlY3Rpb24KCVN1YlNlY3Rpb24gIkRpc3BsYXkiCgkJRGVwdGggICAgIDE1CglF bmRTdWJTZWN0aW9uCglTdWJTZWN0aW9uICJEaXNwbGF5IgoJCURlcHRoICAgICAxNgoJRW5kU3Vi U2VjdGlvbgoJU3ViU2VjdGlvbiAiRGlzcGxheSIKCQlEZXB0aCAgICAgMjQKCQlNb2RlcyAgIjgw MHg2MDAiICI2NDB4NDgwIgoJRW5kU3ViU2VjdGlvbgpFbmRTZWN0aW9uCgo= --=====_Dragon015425401645_===== Content-Type: application/octet-stream; name="XFree86.0.log" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="XFree86.0.log" ClhGcmVlODYgVmVyc2lvbiA0LjEuMCAoUmVkIEhhdCBMaW51eCByZWxlYXNlOiA0LjEuMC0wLjku MC4xKSAvIFggV2luZG93IFN5c3RlbQoocHJvdG9jb2wgVmVyc2lvbiAxMSwgcmV2aXNpb24gMCwg dmVuZG9yIHJlbGVhc2UgNjUxMCkKUmVsZWFzZSBEYXRlOiAyIEp1bmUgMjAwMQoJSWYgdGhlIHNl cn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Hg4IG1vbm8gcGF0dGVybiBmaWxsZWQgcmVjdGFuZ2xlcwoJOHg4IG1v bm8gcGF0dGVybiBmaWxsZWQgdHJhcGV6b2lkcwoJSW5kaXJlY3QgQ1BVIHRvIFNjcmVlbiBjb2xv ciBleHBhbnNpb24KCVNjcmVlbiB0byBTY3JlZW4gY29sb3IgZXhwYW5zaW9uCglTb2xpZCBMaW5l cwoJRGFzaGVkIExpbmVzCglTY2FubGluZSBJbWFnZSBXcml0ZXMKCU9mZnNjcmVlbiBQaXhtYXBz CglTZXR0aW5nIHVwIHRpbGUgYW5kIHN0aXBwbGUgY2FjaGU6CgkJMzIgMTI4eDEyOCBzbG90cwoJ CTE4IDI1NngyNTYgc2xvdHMKCQk3IDUxMng1MTIgc2xvdHMKKD09KSBNR0EoMCk6IEJhY2tpbmcg c3RvcmUgZGlzYWJsZWQKKD09KSBNR0EoMCk6IFNpbGtlbiBtb3VzZSBlbmFibGVkCihJSSkgTUdB KDApOiBVc2luZyBvdmVybGF5IHZpZGVvCig9PSkgTUdBKDApOiBEaXJlY3QgcmVuZGVyaW5nIGRp c2FibGVkCigqKikgT3B0aW9uICJQcm90b2NvbCIgIlBTLzIiCigqKikgTW91c2UwOiBQcm90b2Nv bDogIlBTLzIiCigqKikgT3B0aW9uICJDb3JlUG9pbnRlciIKKCoqKSBNb3VzZTA6IENvcmUgUG9p bnRlcgooKiopIE9wdGlvbiAiRGV2aWNlIiAiL2Rldi9tb3VzZSIKKD09KSBNb3VzZTA6IEJ1dHRv bnM6IDMKKElJKSBLZXlib2FyZCAiS2V5Ym9hcmQwIiBoYW5kbGVkIGJ5IGxlZ2FjeSBkcml2ZXIK KElJKSBYSU5QVVQ6IEFkZGluZyBleHRlbmRlZCBpbnB1dCBkZXZpY2UgIk1vdXNlMCIgKHR5cGU6 IE1PVVNFKQo= --=====_Dragon015425401645_=====-- From owner-linux-mips@oss.sgi.com Sat Dec 8 22:35:58 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB96Zwm28475 for linux-mips-outgoing; Sat, 8 Dec 2001 22:35:58 -0800 Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB96Zro28472 for ; Sat, 8 Dec 2001 22:35:53 -0800 Received: from unknown (HELO garrickevansw2k) (12.236.169.95) by smtp.mail.vip.sc5.yahoo.com with SMTP; 9 Dec 2001 05:35:52 -0000 Message-ID: <00a301c18073$5d29a810$6401a8c0@autodesk.com> From: "Garrick Evans" To: "Carsten Langgaard" , "Guido Guenther" , References: <3C0CDB7B.C13AE2B3@mips.com> <20011204161157.A9410@galadriel.physik.uni-konstanz.de> <3C10A5CB.FB92B3A@mips.com> <3C10C526.56F65E57@mips.com> Subject: Re: Mozilla/Netscape on MIPS Date: Sat, 8 Dec 2001 21:35:51 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk this is a debug/test debug no? i mean it chews up RAM... got a thinner version? ----- Original Message ----- From: "Carsten Langgaard" To: "Guido Guenther" ; Sent: Friday, December 07, 2001 5:33 AM Subject: Re: Mozilla/Netscape on MIPS > Carsten Langgaard wrote: > > > Guido Guenther wrote: > > > > > On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > > > > There has previous been some request about running Mozilla on a MIPS > > > > system. > > > > We have put a bigendian and a littleendian image on our FTP site. > > > > > > > > It runs on the current RedHat7.1 distribution with some minor updates. > > > > The needed RPMs is also available on our FTP site: > > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ > > > Were any special patches needed? Could you please also put the source > > > rpms there? > > > > Ok, I will put the sources on our FTP. > > Inorder to build the sources you also need to install some extra RPMs and > > rebuild crtbeginS.o, crti.o and libc_nonshared.a with the -Wa,-xgot option. > > It now on FTP, you will also find precompiled version of crtbeginS.o, crti.o > and libc_nonshared.a (compiled with -Wa,-xgot). > Please read the README.build file for howto build the sources. > > The link are: > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/src/ > > > > > > > > > Regards, > > > -- Guido _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From owner-linux-mips@oss.sgi.com Sun Dec 9 06:17:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB9EH5N06736 for linux-mips-outgoing; Sun, 9 Dec 2001 06:17:05 -0800 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB9EGwo06733 for ; Sun, 9 Dec 2001 06:16:58 -0800 Message-Id: <200112091416.fB9EGwo06733@oss.sgi.com> Received: (qmail 13776 invoked from network); 9 Dec 2001 12:52:02 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 9 Dec 2001 12:52:02 -0000 Date: Sun, 9 Dec 2001 20:54:47 +0800 From: Zhang Fuxin To: Chris Dearman CC: "linux-mips@oss.sgi.com" Subject: the cause of spurious interrupt problem X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk hi,Chris, days ago you said, > The spurious interrupts are caused by posted writes to PCI devices. >The sequence is usually something like: > o write device to clear interrupt (write gets posted) > o enable CPU interrupts (interrupt is still pending) > o CPU enters interrupt handler and reads 8259 which causes posted >write > to be flushed and so now there is no interrupt... > > The only fix is to do an explicit PCI (eg ISA port) before reenabling >interrupts. The 2.4.x kernel reenables interrupts more quickly than the >older kernel which is why it is more noticeable. > I am trying to find a better way to work around according to your analyse these days.But things are not working as expected at all.If spurious interrupts are caused by posted writes,then define SLOW_DOWN_IO or even REALLY_SLOW_IO in io.h should help; or,from bonito manual, i find read pciMSTAT register can ensure write is actually performed. but they all failed. Then all at a suddenly i find the REAL reason: the way we use to determine which interrupt happens has severe flaw.That code simply does this: isr = inb(0x20); irq = ffz(~isr); /* found first non zero bit,*/ if (irq == 2) { isr = inb(0xa0); irq = 8 + ffz(~isr); } ... In fact this interrupt is probably not triggered by IRQ'irq'.the IRR register has multiple bits set!On x86(including some non-x86 platform), the interrupting vector is fetched from the controller via bus, so it is accurate. But p6032 does not provide us such a vector and we use the above and fail:( Most popular sequence should look like this: irq A happens, mask A,send EOI IRQ B happens(A oops,spurious interrupt happens service A i have make a patch,now it leaves kernel/i8259.c untouched and working well(previous inb(0x60) hack suffer from characters lost).I have updated patch on my site.Pretty simple,just skip irqs with IRQ_INPROGRESS set. Also i notice that after new patch,all interrupt should be programed into edge trigger mode(with level trigger mode i've seen a IRQ7 spurious interrupt and the machine locked up during boot). Am i right? Regards Zhang Fuxin fxzhang@ict.ac.cn From owner-linux-mips@oss.sgi.com Sun Dec 9 11:53:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB9Jr3H11056 for linux-mips-outgoing; Sun, 9 Dec 2001 11:53:03 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB9Jr1o11051 for ; Sun, 9 Dec 2001 11:53:01 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB8JRgU08535; Sat, 8 Dec 2001 17:27:42 -0200 Date: Sat, 8 Dec 2001 17:26:27 -0200 From: Ralf Baechle To: linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: CVS branches Message-ID: <20011208172627.A3385@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Some of you may already have noticed, I've created a cvs branch linux_2_4 for versions from 2.4.16 on. The main branch has 2.5 and on. For those of you who are not familiar with cvs branches - when doing a checkout or update just add the option -rlinux_2_4. This is only necessary once as cvs will remember on which branch you're on. To get back to the main branch use the option -A. This is a slow operation so most people will want to use separate directories for each branch. Ralf From owner-linux-mips@oss.sgi.com Sun Dec 9 12:18:00 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB9KI0W18132 for linux-mips-outgoing; Sun, 9 Dec 2001 12:18:00 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB9KHso18127 for ; Sun, 9 Dec 2001 12:17:54 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id LAA15428; Sun, 9 Dec 2001 11:17:42 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id LAA20845; Sun, 9 Dec 2001 11:17:40 -0800 (PST) Received: from mips.com (coppccl [172.17.27.2]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fB9JHYA03241; Sun, 9 Dec 2001 20:17:34 +0100 (MET) Message-ID: <3C13B9C1.94C050DD@mips.com> Date: Sun, 09 Dec 2001 20:21:37 +0100 From: Carsten Langgaard Organization: MIPS Technologies X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Garrick Evans CC: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: Mozilla/Netscape on MIPS References: <3C0CDB7B.C13AE2B3@mips.com> <20011204161157.A9410@galadriel.physik.uni-konstanz.de> <3C10A5CB.FB92B3A@mips.com> <3C10C526.56F65E57@mips.com> <00a301c18073$5d29a810$6401a8c0@autodesk.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk No it's not a debug/test version, that would chew even more memory, but you should be able to build a less "hungry" version yourself. Just grip the sources and disable whatever you don't need. /Carsten Garrick Evans wrote: > this is a debug/test debug no? i mean it chews up RAM... got a thinner > version? > > ----- Original Message ----- > From: "Carsten Langgaard" > To: "Guido Guenther" ; > Sent: Friday, December 07, 2001 5:33 AM > Subject: Re: Mozilla/Netscape on MIPS > > > Carsten Langgaard wrote: > > > > > Guido Guenther wrote: > > > > > > > On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > > > > > There has previous been some request about running Mozilla on a MIPS > > > > > system. > > > > > We have put a bigendian and a littleendian image on our FTP site. > > > > > > > > > > It runs on the current RedHat7.1 distribution with some minor > updates. > > > > > The needed RPMs is also available on our FTP site: > > > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ > > > > Were any special patches needed? Could you please also put the source > > > > rpms there? > > > > > > Ok, I will put the sources on our FTP. > > > Inorder to build the sources you also need to install some extra RPMs > and > > > rebuild crtbeginS.o, crti.o and libc_nonshared.a with the -Wa,-xgot > option. > > > > It now on FTP, you will also find precompiled version of crtbeginS.o, > crti.o > > and libc_nonshared.a (compiled with -Wa,-xgot). > > Please read the README.build file for howto build the sources. > > > > The link are: > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/src/ > > > > > > > > > > > > > Regards, > > > > -- Guido > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com From owner-linux-mips@oss.sgi.com Sun Dec 9 13:52:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB9LqNZ19579 for linux-mips-outgoing; Sun, 9 Dec 2001 13:52:23 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB9LqJo19570 for ; Sun, 9 Dec 2001 13:52:20 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB9KqIV17396 for linux-mips@oss.sgi.com; Sun, 9 Dec 2001 18:52:18 -0200 Received: from mailgw2.netvision.net.il (mailgw2.netvision.net.il [194.90.1.9]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f496jOF14499 for ; Tue, 8 May 2001 23:45:25 -0700 Received: from athena.home.krftech.com ([194.90.113.98]) by mailgw2.netvision.net.il (8.9.3/8.9.3) with SMTP id JAA18019 for ; Wed, 9 May 2001 09:47:02 +0300 (IDT) Content-Type: Multipart/Mixed; charset="iso-8859-1"; boundary="------------Boundary-00=_HU22LNXVCMMQKT2S2W1J" From: Shay Deloya Reply-To: shay@jungo.com Organization: Jungo Corp. To: linux-mips@oss.sgi.com Subject: no bss cause strange values in insmod and ELF Date: Wed, 9 May 2001 09:47:05 +0300 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01050909285902.01140@athena.home.krftech.com> Content-Transfer-Encoding: 8bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --------------Boundary-00=_HU22LNXVCMMQKT2S2W1J Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Continuing my previous problem... I have created a module with no bss , and compiled it with kernel 2.2. Comparing this module with same code that has bss and acts OK. Inserting the module with modutiles 2.2.2/ busybox insmod causes a relocation overflow message , the reasons are: 1.in function obj_relocate: corrupted intsym->secidx value (not the needed index in the ELF) for some .text segments, other segments get their index value OK. the ELF file seems to be OK. 2. in function arch_apply_relocation: the wrong index (secidx=1006a1e8) cause R_MIPS_26 symbols (jump commands) to have the value of obj_reloc_overflow and then causes relocation overflow. Does anyone knows why same module that has a variable in bss acts fine and the one without bss causes Relocation overflow in MIPS ? (in x86 there is no problem). Searching the code I see there is no initialization of the secidx , is it a problem of wrong reading of ELF files by insmod ? Attached the two ELF files , and obj_relocate values. Thanks, Shay Deloya ______________________________________ Software Developer Jungo - R&D email: shay@jungo.com web: http://www.jungo.com Phone: 1-877-514-0537(USA) +972-9-8859365(Worldwide) ext. 221 Fax: 1-877-514-0538(USA) +972-9-8859366(Worldwide) --------------Boundary-00=_HU22LNXVCMMQKT2S2W1J Content-Type: text/plain; charset="iso-8859-1"; name="elf.with_bss" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="elf.with_bss" RUxGIEhlYWRlcjoKICBNYWdpYzogICA3ZiA0NSA0YyA0NiAwMSAwMiAwMSAwMCAwMCAwMCAwMCAw MCAwMCAwMCAwMCAwMCAKICBDbGFzczogICAgICAgICAgICAgICAgICAgICAgICAgICAgIEVMRjMy CiAgRGF0YTogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAyJ3MgY29tcGxlbWVudCwgYmln IGVuZGlhbgogIFZlcnNpb246ICAgICAgICAgICAgICAgICAgICAgICAgICAgMSAoY3VycmVudCkK ICBPUy9BQkk6ICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVOSVggLSBTeXN0ZW0gVgogIEFC SSBWZXJzaW9uOiAgICAgICAgICAgICAgICAgICAgICAgMAogIFR5cGU6ICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgUkVMIChSZWxvY2F0YWJsZSBmaWxlKQogIE1hY2hpbmU6ICAgICAgICAg ICAgICAgICAgICAgICAgICAgTUlQUyBSMzAwMCBiaWctZW5kaWFuCiAgVmVyc2lvbjogICAgICAg ICAgICAgICAgICAgICAgICAgICAweDEKICBFbnRyeSBwb2ludCBhZGRyZXNzOiAgICAgICAgICAg ICAgIDB4MAogIFN0YXJ0IG9mIHByb2dyYW0gaGVhZGVyczogICAgICAgICAgMCAoYnl0ZXMgaW50 byBmaWxlKQogIFN0YXJ0IG9mIHNlY3Rpb24gaGVhZGVyczogICAgICAgICAgNDcyOCAoYnl0ZXMg aW50byBmaWxlKQogIEZsYWdzOiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgxMDAwMDAw MSwgbm9yZW9yZGVyLCBtaXBzMgogIFNpemUgb2YgdGhpcyBoZWFkZXI6ICAgICAgICAgICAgICAg NTIgKGJ5dGVzKQogIFNpemUgb2YgcHJvZ3JhbSBoZWFkZXJzOiAgICAgICAgICAgMCAoYnl0ZXMp CiAgTnVtYmVyIG9mIHByb2dyYW0gaGVhZGVyczogICAgICAgICAwCiAgU2l6ZSBvZiBzZWN0aW9u IGhlYWRlcnM6ICAgICAgICAgICA0MCAoYnl0ZXMpCiAgTnVtYmVyIG9mIHNlY3Rpb24gaGVhZGVy czogICAgICAgICAxNQogIFNlY3Rpb24gaGVhZGVyIHN0cmluZyB0YWJsZSBpbmRleDogMTIKClNl Y3Rpb24gSGVhZGVyczoKICBbTnJdIE5hbWUgICAgICAgICAgICAgIFR5cGUgICAgICAgICAgICBB ZGRyICAgICBPZmYgICAgU2l6ZSAgIEVTIEZsZyBMayBJbmYgQWwKICBbIDBdICAgICAgICAgICAg ICAgICAgIE5VTEwgICAgICAgICAgICAwMDAwMDAwMCAwMDAwMDAgMDAwMDAwIDAwICAgICAgMCAg IDAgMAogIFsgMV0gLnRleHQgICAgICAgICAgICAgUFJPR0JJVFMgICAgICAgIDAwMDAwMDAwIDAw MDA0MCAwMDA1YzAgMDAgIEFYICAwICAgMCAxNgogIFsgMl0gLnJlbC50ZXh0ICAgICAgICAgUkVM ICAgICAgICAgICAgIDAwMDAwMDAwIDAwMTg1NCAwMDA1MTggMDggICAgIDEzICAgMSA0CiAgWyAz XSAuZGF0YSAgICAgICAgICAgICBQUk9HQklUUyAgICAgICAgMDAwMDAwMDAgMDAwNjAwIDAwMDA1 MCAwMCBXQSAgIDAgICAwIDE2CiAgWyA0XSAucmVsLmRhdGEgICAgICAgICBSRUwgICAgICAgICAg ICAgMDAwMDAwMDAgMDAxZDZjIDAwMDAzOCAwOCAgICAgMTMgICAzIDQKICBbIDVdIC5ic3MgICAg ICAgICAgICAgIE5PQklUUyAgICAgICAgICAwMDAwMDAwMCAwMDA2NTAgMDAwMDEwIDAwIFdBICAg MCAgIDAgMTYKICBbIDZdIC5yZWdpbmZvICAgICAgICAgIE1JUFNfUkVHSU5GTyAgICAwMDAwMDAw MCAwMDA2NTAgMDAwMDE4IDAxICBBICAgMCAgIDAgNAogIFsgN10gLm1kZWJ1ZyAgICAgICAgICAg TUlQU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wncyBOYW1lCiAgMDAwMDAwMDggIDAwMjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDBjICAwMDIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAyOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwMmMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDM4ICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAzYyAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwNDggIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDRjICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDA1MCAgMDFiMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwNTQgIDAxYjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDYwICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIF9fdGhp c19tb2R1bGUgICAgICAgICAgICAKICAwMDAwMDA2NCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAwOTQgIDAwMjA0 IFJfTUlQU18yNiAgICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDljICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIF9fdGhp c19tb2R1bGUgICAgICAgICAgICAKICAwMDAwMDBhMCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAwYWMgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGIwICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDBiNCAgMDFiMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwYjggIDAxYjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGM4ICAwMWQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIGF0bV9k ZXZfZGVyZWdpc3RlciAgICAgICAKICAwMDAwMDBjYyAgMDFkMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBhdG1fZGV2X2RlcmVnaXN0ZXIgICAgICAgCiAgMDAwMDAwZDggIDAxZTA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAga2ZyZWUgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGRjICAwMWUwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIGtmcmVl ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDBlOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwZWMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGY4ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDBmYyAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxMDAgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTA0ICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDEyMCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxMjQgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTNjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDE0MCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxNDQgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTQ4ICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDE1OCAgMDFmMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBrbWFsbG9jICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxNWMgIDAxZjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAga21hbGxvYyAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTc0ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDE3OCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxN2MgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTgwICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDE4YyAgMDAyMDQgUl9NSVBTXzI2ICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxOTQgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTk4ICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDFhMCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxYTQgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMWE4ICAwMjAwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIGF0bV9k ZXZfcmVnaXN0ZXIgICAgICAgICAKICAwMDAwMDFhYyAgMDIwMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBhdG1fZGV2X3JlZ2lzdGVyICAgICAgICAgCiAgMDAwMDAxYzggIDAwMjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMWNjICAwMDIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDFkNCAgMDIyMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICByZXF1ZXN0X2lycSAgICAgICAgICAgICAgCiAgMDAwMDAxZDggIDAyMjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcmVxdWVzdF9pcnEgICAgICAgICAgICAg IAogIDAwMDAwMWVjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDFmMCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxZjQgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMWY4ICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDIwNCAgMDAyMDQgUl9NSVBTXzI2ICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyMGMgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjEwICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDIxNCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyMTggIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjI0ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDIyOCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyMmMgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjMwICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDI1NCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyNTggIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjY4ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDI2YyAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyNzAgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjc0ICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDI4MCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyODQgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjkwICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDI5NCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyOTggIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjljICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDJiOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyYmMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMmNjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDJkMCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyZDQgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMmQ4ICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDJlNCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyZTggIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMmY0ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDJmOCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyZmMgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzAwICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDMxOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzMWMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzJjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDMzMCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzMzQgIDAxYjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzM4ICAwMWIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDM0OCAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAzNGMgIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgX190aGlzX21vZHVsZSAgICAgICAgICAg IAogIDAwMDAwMzY4ICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDM2YyAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzN2MgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzgwICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDM4NCAgMDFiMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzODggIDAxYjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2E0ICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDNhOCAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzYjggIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2JjICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDNjMCAgMDFiMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzYzQgIDAxYjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2Q0ICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIF9fdGhp c19tb2R1bGUgICAgICAgICAgICAKICAwMDAwMDNkOCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAzZjQgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2Y4ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQwOCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0MGMgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDEwICAwMWIwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQxNCAgMDFiMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0MmMgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDMwICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ0MCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0NDQgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDQ4ICAwMWIwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ0YyAgMDFiMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0NTggIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDVjICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ2OCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0NmMgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDcwICAwMWIwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ3NCAgMDFiMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0OTAgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDk0ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRhNCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0YTggIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGFjICAwMWIwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRiMCAgMDFiMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0YmMgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGMwICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRjYyAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0ZDAgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGQ0ICAwMWIwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRkOCAgMDFiMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0ZjQgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGY4ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDUwYyAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1MTAgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTE0ICAwMWIwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDUxOCAgMDFiMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1MjQgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTI4ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDUzNCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1M2MgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTUwICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDU1NCAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1NjQgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTY4ICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDU2YyAgMDFiMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1NzAgIDAxYjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTdjICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDU4MCAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1OGMgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTkwICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDU5NCAgMDFiMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1OTggIDAxYjA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAoKUmVsb2NhdGlvbiBzZWN0aW9uICcucmVsLmRhdGEnIGF0IG9mZnNldCAweDFkNmMgY29udGFp bnMgNyBlbnRyaWVzOgogIE9mZnNldCAgICBJbmZvICBUeXBlICAgICAgICAgICAgU3ltYm9sJ3Mg VmFsdWUgIFN5bWJvbCdzIE5hbWUKICAwMDAwMDAwNCAgMDAyMDIgUl9NSVBTXzMyICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwMDggIDAwMjAy IFJfTUlQU18zMiAgICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDBjICAwMDIwMiBSX01JUFNfMzIgICAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAxOCAgMDAyMDIgUl9NSVBTXzMyICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwMjQgIDAwMjAy IFJfTUlQU18zMiAgICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDI4ICAwMDIwMiBSX01JUFNfMzIgICAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAzOCAgMDAyMDIgUl9NSVBTXzMyICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCgpTeW1ib2wgdGFibGUgJy5z eW10YWInIGNvbnRhaW5zIDM2IGVudHJpZXM6CiAgTnVtOiAgICBWYWx1ZSAgU2l6ZSBUeXBlICAg IEJpbmQgICBPdCAgTmR4IE5hbWUKICAgIDA6ICAgICAgICAwICAgICAwIE5PVFlQRSAgTE9DQUwg ICAwICBVTkQgCiAgICAxOiAgICAgICAgMCAgICAgMCBTRUNUSU9OIExPQ0FMICAgMCAgICA5IAog ICAgMjogICAgICAgIDAgICAgIDAgU0VDVElPTiBMT0NBTCAgIDAgICAgMSAKICAgIDM6ICAgICAg ICAwICAgICAwIFNFQ1RJT04gTE9DQUwgICAwICAgIDMgCiAgICA0OiAgICAgICAgMCAgICAgMCBT RUNUSU9OIExPQ0FMICAgMCAgIDEwIAogICAgNTogICAgICAgIDAgICAgIDAgU0VDVElPTiBMT0NB TCAgIDAgICAgNSAKICAgIDY6ICAgICAgICAwICAgICAwIFNFQ1RJT04gTE9DQUwgICAwICAgIDYg CiAgICA3OiAgICAgICAgMCAgICAgMCBTRUNUSU9OIExPQ0FMICAgMCAgICA3IAogICAgODogICAg ICAgIDAgICAgIDAgU0VDVElPTiBMT0NBTCAgIDAgICAgOCAKICAgIDk6ICAgICAgICAwICAgICAw IFNFQ1RJT04gTE9DQUwgICAwICAgMTEgCiAgIDEwOiAgICAgICAgMCAgICAgMCBOT1RZUEUgIExP Q0FMICAgMCAgICAxIGdjYzJfY29tcGlsZWQuCiAgIDExOiAgICAgICAgMCAgICAgMCBOT1RZUEUg IExPQ0FMICAgMCAgICAxIF9fZ251X2NvbXBpbGVkX2MKICAgMTI6ICAgICAgICAwICAgIDI4IE9C SkVDVCAgR0xPQkFMICAwICAgIDkgX19tb2R1bGVfa2VybmVsX3ZlcnNpb24KICAgMTM6ICAgICAg ICAwICAgICA0IE9CSkVDVCAgTE9DQUwgICAwICAgMTAgX2Jvbml0bwogICAxNDogICAgICAgIDAg ICAgNjAgT0JKRUNUICBMT0NBTCAgIDAgICAgMyBhdG1fb3BzCiAgIDE1OiAgICAgIDMxOCAgIDE0 MCBGVU5DICAgIExPQ0FMICAgMCAgICAxIGlkZF9vcGVuCiAgIDE2OiAgICAgIDNhNCAgIDEzNiBG VU5DICAgIExPQ0FMICAgMCAgICAxIGlkZF9jbG9zZQogICAxNzogICAgICA0OTAgICAxMDAgRlVO QyAgICBMT0NBTCAgIDAgICAgMSBpZGRfaW9jdGwKICAgMTg6ICAgICAgMjU0ICAgMTAwIEZVTkMg ICAgTE9DQUwgICAwICAgIDEgaWRkX3NlbmQKICAgMTk6ICAgICAgNGY0ICAgIDkyIEZVTkMgICAg TE9DQUwgICAwICAgIDEgaWRkX3BoeV9wdXQKICAgMjA6ICAgICAgNTUwICAgMTAwIEZVTkMgICAg TE9DQUwgICAwICAgIDEgaWRkX3BoeV9nZXQKICAgMjE6ICAgICAgNDJjICAgMTAwIEZVTkMgICAg TE9DQUwgICAwICAgIDEgaWRkX3Byb2NfcmVhZAogICAyMjogICAgICAgM2MgICAgIDQgT0JKRUNU ICBHTE9CQUwgIDAgICAgMyB0aGVfY2FyZAogICAyMzogICAgICAgNDAgICAgIDQgT0JKRUNUICBH TE9CQUwgIDAgICAgMyBkYmdfbHZsCiAgIDI0OiAgICAgICAgMCAgICA0MCBGVU5DICAgIEdMT0JB TCAgMCAgICAxIGluaXRfbW9kdWxlCiAgIDI1OiAgICAgIDEyMCAgIDMwOCBGVU5DICAgIExPQ0FM ICAgMCAgICAxIGlkZF9pbml0X2NhcmQKICAgMjY6ICAgICAgIDI4ICAgMjQ4IEZVTkMgICAgR0xP QkFMICAwICAgIDEgY2xlYW51cF9tb2R1bGUKICAgMjc6ICAgICAgICAwICAgICAwIE9CSkVDVCAg R0xPQkFMICAwICBVTkQgcHJpbnRrCiAgIDI4OiAgICAgICAgMCAgICAgMCBPQkpFQ1QgIEdMT0JB TCAgMCAgVU5EIF9fdGhpc19tb2R1bGUKICAgMjk6ICAgICAgICAwICAgICAwIE9CSkVDVCAgR0xP QkFMICAwICBVTkQgYXRtX2Rldl9kZXJlZ2lzdGVyCiAgIDMwOiAgICAgICAgMCAgICAgMCBPQkpF Q1QgIEdMT0JBTCAgMCAgVU5EIGtmcmVlCiAgIDMxOiAgICAgICAgMCAgICAgMCBPQkpFQ1QgIEdM T0JBTCAgMCAgVU5EIGttYWxsb2MKICAgMzI6ICAgICAgICAwICAgICAwIE9CSkVDVCAgR0xPQkFM ICAwICBVTkQgYXRtX2Rldl9yZWdpc3RlcgogICAzMzogICAgICAyYjggICAgOTYgRlVOQyAgICBM T0NBTCAgIDAgICAgMSBpZGRfaXJxX2hhbmRsZXIKICAgMzQ6ICAgICAgICAwICAgICAwIE9CSkVD VCAgR0xPQkFMICAwICBVTkQgcmVxdWVzdF9pcnEKICAgMzU6ICAgICAgICAwICAgICA0IE9CSkVD VCAgTE9DQUwgICAwICAgIDUgZGlzcGxheV9zdHJpbmcKCk5vIHZlcnNpb24gaW5mb3JtYXRpb24g Zm91bmQgaW4gdGhpcyBmaWxlLgo= --------------Boundary-00=_HU22LNXVCMMQKT2S2W1J Content-Type: text/plain; charset="iso-8859-1"; name="elf.no_bss" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="elf.no_bss" RUxGIEhlYWRlcjoKICBNYWdpYzogICA3ZiA0NSA0YyA0NiAwMSAwMiAwMSAwMCAwMCAwMCAwMCAw MCAwMCAwMCAwMCAwMCAKICBDbGFzczogICAgICAgICAgICAgICAgICAgICAgICAgICAgIEVMRjMy CiAgRGF0YTogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAyJ3MgY29tcGxlbWVudCwgYmln IGVuZGlhbgogIFZlcnNpb246ICAgICAgICAgICAgICAgICAgICAgICAgICAgMSAoY3VycmVudCkK ICBPUy9BQkk6ICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVOSVggLSBTeXN0ZW0gVgogIEFC SSBWZXJzaW9uOiAgICAgICAgICAgICAgICAgICAgICAgMAogIFR5cGU6ICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgUkVMIChSZWxvY2F0YWJsZSBmaWxlKQogIE1hY2hpbmU6ICAgICAgICAg ICAgICAgICAgICAgICAgICAgTUlQUyBSMzAwMCBiaWctZW5kaWFuCiAgVmVyc2lvbjogICAgICAg ICAgICAgICAgICAgICAgICAgICAweDEKICBFbnRyeSBwb2ludCBhZGRyZXNzOiAgICAgICAgICAg ICAgIDB4MAogIFN0YXJ0IG9mIHByb2dyYW0gaGVhZGVyczogICAgICAgICAgMCAoYnl0ZXMgaW50 byBmaWxlKQogIFN0YXJ0IG9mIHNlY3Rpb24gaGVhZGVyczogICAgICAgICAgNDcyOCAoYnl0ZXMg aW50byBmaWxlKQogIEZsYWdzOiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgxMDAwMDAw MSwgbm9yZW9yZGVyLCBtaXBzMgogIFNpemUgb2YgdGhpcyBoZWFkZXI6ICAgICAgICAgICAgICAg NTIgKGJ5dGVzKQogIFNpemUgb2YgcHJvZ3JhbSBoZWFkZXJzOiAgICAgICAgICAgMCAoYnl0ZXMp CiAgTnVtYmVyIG9mIHByb2dyYW0gaGVhZGVyczogICAgICAgICAwCiAgU2l6ZSBvZiBzZWN0aW9u IGhlYWRlcnM6ICAgICAgICAgICA0MCAoYnl0ZXMpCiAgTnVtYmVyIG9mIHNlY3Rpb24gaGVhZGVy czogICAgICAgICAxNQogIFNlY3Rpb24gaGVhZGVyIHN0cmluZyB0YWJsZSBpbmRleDogMTIKClNl Y3Rpb24gSGVhZGVyczoKICBbTnJdIE5hbWUgICAgICAgICAgICAgIFR5cGUgICAgICAgICAgICBB ZGRyICAgICBPZmYgICAgU2l6ZSAgIEVTIEZsZyBMayBJbmYgQWwKICBbIDBdICAgICAgICAgICAg ICAgICAgIE5VTEwgICAgICAgICAgICAwMDAwMDAwMCAwMDAwMDAgMDAwMDAwIDAwICAgICAgMCAg IDAgMAogIFsgMV0gLnRleHQgICAgICAgICAgICAgUFJPR0JJVFMgICAgICAgIDAwMDAwMDAwIDAw MDA0MCAwMDA1YzAgMDAgIEFYICAwICAgMCAxNgogIFsgMl0gLnJlbC50ZXh0ICAgICAgICAgUkVM ICAgICAgICAgICAgIDAwMDAwMDAwIDAwMTg1NCAwMDA1MTggMDggICAgIDEzICAgMSA0CiAgWyAz XSAuZGF0YSAgICAgICAgICAgICBQUk9HQklUUyAgICAgICAgMDAwMDAwMDAgMDAwNjAwIDAwMDA1 MCAwMCBXQSAgIDAgICAwIDE2CiAgWyA0XSAucmVsLmRhdGEgICAgICAgICBSRUwgICAgICAgICAg ICAgMDAwMDAwMDAgMDAxZDZjIDAwMDAzOCAwOCAgICAgMTMgICAzIDQKICBbIDVdIC5ic3MgICAg ICAgICAgICAgIE5PQklUUyAgICAgICAgICAwMDAwMDAwMCAwMDA2NTAgMDAwMDAwIDAwIFdBICAg MCAgIDAgMTYKICBbIDZdIC5yZWdpbmZvICAgICAgICAgIE1JUFNfUkVHSU5GTyAgICAwMDAwMDAw MCAwMDA2NTAgMDAwMDE4IDAxICBBICAgMCAgIDAgNAogIFsgN10gLm1kZWJ1ZyAgICAgICAgICAg TUlQU19ERUJVRyAgICAgIDAwMDAwMDAwIDAwMDY2OCAwMDA4NDggMDEgICAgICAwICAgMCA0CiAg WyA4XSAubm90ZSAgICAgICAgICAgICBOT1RFICAgICAgICAgICAgMDAwMDAwMDAgMDAwZWIwIDAw MDAxNCAwMCAgICAgIDAgICAwIDEKICBbIDldI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Xh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAyOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwMmMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDM4ICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAzYyAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwNDggIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDRjICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDA1MCAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwNTQgIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDYwICAwMWQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIF9fdGhp c19tb2R1bGUgICAgICAgICAgICAKICAwMDAwMDA2NCAgMDFkMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAwOTQgIDAwMjA0 IFJfTUlQU18yNiAgICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDljICAwMWQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIF9fdGhp c19tb2R1bGUgICAgICAgICAgICAKICAwMDAwMDBhMCAgMDFkMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAwYWMgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGIwICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDBiNCAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwYjggIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGM4ICAwMWUwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIGF0bV9k ZXZfZGVyZWdpc3RlciAgICAgICAKICAwMDAwMDBjYyAgMDFlMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBhdG1fZGV2X2RlcmVnaXN0ZXIgICAgICAgCiAgMDAwMDAwZDggIDAxZjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAga2ZyZWUgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGRjICAwMWYwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIGtmcmVl ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDBlOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwZWMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMGY4ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDBmYyAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxMDAgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTA0ICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDEyMCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxMjQgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTNjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDE0MCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxNDQgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTQ4ICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDE1OCAgMDIwMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBrbWFsbG9jICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxNWMgIDAyMDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAga21hbGxvYyAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTc0ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDE3OCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxN2MgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTgwICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDE4YyAgMDAyMDQgUl9NSVBTXzI2ICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxOTQgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMTk4ICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDFhMCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxYTQgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMWE4ICAwMjEwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIGF0bV9k ZXZfcmVnaXN0ZXIgICAgICAgICAKICAwMDAwMDFhYyAgMDIxMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBhdG1fZGV2X3JlZ2lzdGVyICAgICAgICAgCiAgMDAwMDAxYzggIDAwMjA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMWNjICAwMDIwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDFkNCAgMDIzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICByZXF1ZXN0X2lycSAgICAgICAgICAgICAgCiAgMDAwMDAxZDggIDAyMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcmVxdWVzdF9pcnEgICAgICAgICAgICAg IAogIDAwMDAwMWVjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDFmMCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAxZjQgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMWY4ICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDIwNCAgMDAyMDQgUl9NSVBTXzI2ICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyMGMgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjEwICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDIxNCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyMTggIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjI0ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDIyOCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyMmMgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjMwICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDI1NCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyNTggIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjY4ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDI2YyAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyNzAgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjc0ICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDI4MCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyODQgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjkwICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDI5NCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyOTggIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMjljICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDJiOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyYmMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMmNjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDJkMCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyZDQgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMmQ4ICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDJlNCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyZTggIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMmY0ICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDJmOCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAyZmMgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzAwICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDMxOCAgMDAzMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzMWMgIDAwMzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzJjICAwMDQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDMzMCAgMDA0MDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzMzQgIDAxYzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzM4ICAwMWMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDM0OCAgMDFkMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAzNGMgIDAxZDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgX190aGlzX21vZHVsZSAgICAgICAgICAg IAogIDAwMDAwMzY4ICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDM2YyAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzN2MgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwMzgwICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDM4NCAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzODggIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2E0ICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDNhOCAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzYjggIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2JjICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDNjMCAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAzYzQgIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2Q0ICAwMWQwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIF9fdGhp c19tb2R1bGUgICAgICAgICAgICAKICAwMDAwMDNkOCAgMDFkMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBfX3RoaXNfbW9kdWxlICAgICAgICAgICAgCiAgMDAwMDAzZjQgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwM2Y4ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQwOCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0MGMgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDEwICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQxNCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0MmMgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDMwICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ0MCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0NDQgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDQ4ICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ0YyAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0NTggIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDVjICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ2OCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0NmMgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDcwICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDQ3NCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0OTAgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNDk0ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRhNCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0YTggIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGFjICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRiMCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0YmMgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGMwICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRjYyAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0ZDAgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGQ0ICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDRkOCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA0ZjQgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNGY4ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDUwYyAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1MTAgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTE0ICAwMWMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIHByaW50 ayAgICAgICAgICAgICAgICAgICAKICAwMDAwMDUxOCAgMDFjMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1MjQgIDAwMzA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLmRhdGEgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTI4ICAwMDMwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDUzNCAgMDA0MDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICAucm9kYXRhICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1M2MgIDAwNDA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTUwICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDU1NCAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1NjQgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTY4ICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDU2YyAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1NzAgIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTdjICAwMDMwNSBSX01JUFNfSEkxNiAgICAgICAgICAgMDAwMDAwMDAgIC5kYXRh ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDU4MCAgMDAzMDYgUl9NSVBTX0xPMTYgICAgICAg ICAgIDAwMDAwMDAwICAuZGF0YSAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1OGMgIDAwNDA1 IFJfTUlQU19ISTE2ICAgICAgICAgICAwMDAwMDAwMCAgLnJvZGF0YSAgICAgICAgICAgICAgICAg IAogIDAwMDAwNTkwICAwMDQwNiBSX01JUFNfTE8xNiAgICAgICAgICAgMDAwMDAwMDAgIC5yb2Rh dGEgICAgICAgICAgICAgICAgICAKICAwMDAwMDU5NCAgMDFjMDUgUl9NSVBTX0hJMTYgICAgICAg ICAgIDAwMDAwMDAwICBwcmludGsgICAgICAgICAgICAgICAgICAgCiAgMDAwMDA1OTggIDAxYzA2 IFJfTUlQU19MTzE2ICAgICAgICAgICAwMDAwMDAwMCAgcHJpbnRrICAgICAgICAgICAgICAgICAg IAoKUmVsb2NhdGlvbiBzZWN0aW9uICcucmVsLmRhdGEnIGF0IG9mZnNldCAweDFkNmMgY29udGFp bnMgNyBlbnRyaWVzOgogIE9mZnNldCAgICBJbmZvICBUeXBlICAgICAgICAgICAgU3ltYm9sJ3Mg VmFsdWUgIFN5bWJvbCdzIE5hbWUKICAwMDAwMDAwOCAgMDAyMDIgUl9NSVBTXzMyICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwMGMgIDAwMjAy IFJfTUlQU18zMiAgICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDEwICAwMDIwMiBSX01JUFNfMzIgICAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAxYyAgMDAyMDIgUl9NSVBTXzMyICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCiAgMDAwMDAwMjggIDAwMjAy IFJfTUlQU18zMiAgICAgICAgICAgICAwMDAwMDAwMCAgLnRleHQgICAgICAgICAgICAgICAgICAg IAogIDAwMDAwMDJjICAwMDIwMiBSX01JUFNfMzIgICAgICAgICAgICAgMDAwMDAwMDAgIC50ZXh0 ICAgICAgICAgICAgICAgICAgICAKICAwMDAwMDAzYyAgMDAyMDIgUl9NSVBTXzMyICAgICAgICAg ICAgIDAwMDAwMDAwICAudGV4dCAgICAgICAgICAgICAgICAgICAgCgpTeW1ib2wgdGFibGUgJy5z eW10YWInIGNvbnRhaW5zIDM2IGVudHJpZXM6CiAgTnVtOiAgICBWYWx1ZSAgU2l6ZSBUeXBlICAg IEJpbmQgICBPdCAgTmR4IE5hbWUKICAgIDA6ICAgICAgICAwICAgICAwIE5PVFlQRSAgTE9DQUwg ICAwICBVTkQgCiAgICAxOiAgICAgICAgMCAgICAgMCBTRUNUSU9OIExPQ0FMICAgMCAgICA5IAog ICAgMjogICAgICAgIDAgICAgIDAgU0VDVElPTiBMT0NBTCAgIDAgICAgMSB0ZXh0CiAgICAzOiAg ICAgICAgMCAgICAgMCBTRUNUSU9OIExPQ0FMICAgMCAgICAzIGRhdGEKICAgIDQ6ICAgICAgICAw ICAgICAwIFNFQ1RJT04gTE9DQUwgICAwICAgMTAgcm9kYXRhIAogICAgNTogICAgICAgIDAgICAg IDAgU0VDVElPTiBMT0NBTCAgIDAgICAgNSBic3MKICAgIDY6ICAgICAgICAwICAgICAwIFNFQ1RJ T04gTE9DQUwgICAwICAgIDYgCiAgICA3OiAgICAgICAgMCAgICAgMCBTRUNUSU9OIExPQ0FMICAg MCAgICA3IAogICAgODogICAgICAgIDAgICAgIDAgU0VDVElPTiBMT0NBTCAgIDAgICAgOCAKICAg IDk6ICAgICAgICAwICAgICAwIFNFQ1RJT04gTE9DQUwgICAwICAgMTEgCiAgIDEwOiAgICAgICAg MCAgICAgMCBOT1RZUEUgIExPQ0FMICAgMCAgICAxIGdjYzJfY29tcGlsZWQuCiAgIDExOiAgICAg ICAgMCAgICAgMCBOT1RZUEUgIExPQ0FMICAgMCAgICAxIF9fZ251X2NvbXBpbGVkX2MKICAgMTI6 ICAgICAgICAwICAgIDI4IE9CSkVDVCAgR0xPQkFMICAwICA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ZVTkMgICAgR0xPQkFMICAwICAgIDEgY2xlYW51cF9tb2R1bGUKICAgMjg6ICAg ICAgICAwICAgICAwIE9CSkVDVCAgR0xPQkFMICAwICBVTkQgcHJpbnRrCiAgIDI5OiAgICAgICAg MCAgICAgMCBPQkpFQ1QgIEdMT0JBTCAgMCAgVU5EIF9fdGhpc19tb2R1bGUKICAgMzA6ICAgICAg ICAwICAgICAwIE9CSkVDVCAgR0xPQkFMICAwICBVTkQgYXRtX2Rldl9kZXJlZ2lzdGVyCiAgIDMx OiAgICAgICAgMCAgICAgMCBPQkpFQ1QgIEdMT0JBTCAgMCAgVU5EIGtmcmVlCiAgIDMyOiAgICAg ICAgMCAgICAgMCBPQkpFQ1QgIEdMT0JBTCAgMCAgVU5EIGttYWxsb2MKICAgMzM6ICAgICAgICAw ICAgICAwIE9CSkVDVCAgR0xPQkFMICAwICBVTkQgYXRtX2Rldl9yZWdpc3RlcgogICAzNDogICAg ICAyYjggICAgOTYgRlVOQyAgICBMT0NBTCAgIDAgICAgMSBpZGRfaXJxX2hhbmRsZXIKICAgMzU6 ICAgICAgICAwICAgICAwIE9CSkVDVCAgR0xPQkFMICAwICBVTkQgcmVxdWVzdF9pcnEKCk5vIHZl cnNpb24gaW5mb3JtYXRpb24gZm91bmQgaW4gdGhpcyBmaWxlLgo= --------------Boundary-00=_HU22LNXVCMMQKT2S2W1J Content-Type: text/plain; charset="iso-8859-1"; name="obj_relocate_log" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="obj_relocate_log" VmFsdWVzIG9mIGludHN5bSBpbiBvYmpfcmVsb2NhdGUgLCBqdXN0IGJlZm9yZSB0aGUgY2FsbCB0 byBvYmpfc3ltYm9sX2ZpbmFsX3ZhbHVlIGZ1bmN0aW9uCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PQpOTyBCU1MgUmVsb2NhdGlvbiBvdm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mR4PTI3IGludHN5bS0+c2VjaWR4PTEwMDAwCm9ial9yZWxv Y2F0ZTogIGludHN5bS0+bmFtZT1wcmludGssc3ltbmR4PTI3IGludHN5bS0+c2VjaWR4PTEwMDAw Cm9ial9yZWxvY2F0ZTogIGludHN5bS0+bmFtZT1fX3RoaXNfbW9kdWxlLHN5bW5keD0yOCBpbnRz eW0tPnNlY2lkeD1mCm9ial9yZWxvY2F0ZTogIGludHN5bS0+bmFtZT1fX3RoaXNfbW9kdWxlLHN5 bW5keD0yOCBpbnRzeW0tPnNlY2lkeD1mCm9ial9yZWxvY2F0ZTogIGludHN5bS0+bmFtZT0udGV4 dCxzeW1uZHg9MiBpbnRzeW0tPnNlY2lkeD0xCgo= --------------Boundary-00=_HU22LNXVCMMQKT2S2W1J-- From owner-linux-mips@oss.sgi.com Sun Dec 9 13:51:55 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB9LptD19554 for linux-mips-outgoing; Sun, 9 Dec 2001 13:51:55 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fB9Lppo19550 for ; Sun, 9 Dec 2001 13:51:51 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fB9Kpnm17390 for linux-mips@oss.sgi.com; Sun, 9 Dec 2001 18:51:49 -0200 Received: from mail.ict.ac.cn ([159.226.39.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB73jro10568 for ; Thu, 6 Dec 2001 19:45:53 -0800 Message-Id: <200112070345.fB73jro10568@oss.sgi.com> Received: (qmail 15287 invoked from network); 7 Dec 2001 02:40:32 -0000 Received: from unknown (HELO foxsen) (@159.226.40.150) by 159.226.39.4 with SMTP; 7 Dec 2001 02:40:32 -0000 Date: Fri, 7 Dec 2001 3:7:4 +0800 From: Zhang Fuxin To: Hartvig Ekner CC: "linux-mips@oss.sgi.com" Subject: XF86Config & startup log X-mailer: FoxMail 3.11 Release [cn] Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====_Dragon665211358614_=====" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --=====_Dragon665211358614_===== Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable hi,Hartvig Ekner=A3=AC Here are my files. but the build process can't be described in short:(. I started from a rpm package from redhat7(or similar standard= distribution),did everything to make it cross-compile,very ugly and= painful.Basically, repeat if errors make World &> out, read out,correct errors it reports until done beside changes to config files,i remember there were problems= due to the sequence when it cross-builded a problem and wanted to execute it. From the list,I think someone else should have more elegant= way. And i will try H.J.Lu's source in oss.sgi.com when having time. =D4=DA 2001-12-06 21:10:00 you wrote=A3=BA >Hello Zhang, > >I would be very interested in trying to get the video support= (using G200 >as you have) up and running on our Malta board with full X. > >Could you provide me with some more info, so that I can try to= repeat it? >E.g. the /etc/X11/XF86Config file, exactly what X server did you= use, >startup output when starting the server (cut & paste, or from >/var/log/XFree86.0.log or similar). > >Any information much appreciated! > >/Hartvig > >Zhang Fuxin writes: >> >> hi,Alinux-mips, >> Finally the 2.4 kernel seems calm down,I pay some time to= cleanup >> my code for algorithmics p6032 board. >> Although it may still very experimental,i make it public= here >> hoping that it will save sometime for someone else. >> You can get the source diff >> (against sgi cvs linux_2_4_branch Dec.3,about 50k) from: >> http://159.226.40.150/godson/mips-2.4.16-zfx.diff.gz >> (sorry i haven't a dns name) >> >> I am eager to get some feedback. >> >> There are Changelog and README in arch/mips/algor/ >> >> for your convenience,READ is post here: >> >> This is my code for algor p6032,many of them= borrowed/inherit from >> algorithmics' 2.2 kernel(and others),but with a lot of= cleanup(i think:) >> I have tried my best to make minimum changes to generic code. >> >> Testing platform: >> Algorithmics p6032 eval board,idt RC64474 CPU >> (with a 40G IBM 7200rpm ide disk,256M sdram= memory,matrox G200 video >> card) >> Software: H.J.Lu's cross compile toolchain & redhat 7.1= port) >> Features: >> 1.new time,new irq,new pci,auto-pci,etc >> see this list: >> CONFIG_PCI=3Dy >> CONFIG_NEW_PCI=3Dy >> CONFIG_PCI_AUTO=3Dy >> CONFIG_NEW_IRQ=3Dy >> CONFIG_I8259=3Dy >> CONFIG_HAVE_STD_PC_SERIAL_PORT=3Dy >> CONFIG_NEW_TIME_C=3Dy >> CONFIG_BOARD_SCACHE=3Dy >> CONFIG_PC_KEYB=3Dy >> CONFIG_NONCOHERENT_IO=3Dy >> >> 2. frame buffer for matrox cards(that means you can use= X windows) >> 3. a flash driver for easily rewriting of on board= flash >> 4. ide,ethernet(pcnet32) with dma >> 5. with 2.4.16 patch(filesystem corruption fixed) >> >> TODO: >> 1. more test,e.g. with ltp or something >> I have run 2.4.8 for some time with good stablity,but= this upgrade is >> =09 done in one day,with many cleanups >> =09 it will surely contain some bugs >> 2. on board cache support >> i haven't decided a elegant way to support the board= cache >> 3. >> >> Important Notes: >> 1. the command line is fixed at arch/mips/kernel/setup.c= for my convenience:),you should change to fit your need or= comment it out and use pmon args >> 2. PIIX support for ide must be choosed,or the irq probe= will lead to >> endless interruption. >> >> More information may present in Changelog.zfx. >> >> >> 2001.12.05 Zhang Fuxin,= >> =09=09 Institute of Computing Technology,Chinese Academy of= Sciences >> >> have to get some sleep now:) >> >> Regards >> Zhang Fuxin >> fxzhang@ict.ac.cn >> > > >-- > _ _ _____ ____ Hartvig Ekner = Mailto:hartvige@mips.com > |\ /| | |____)(____ Direct: +45 4486= 5503 > | \/ | | | _____) MIPS Denmark Switch: +45 4486= 5555 >T E C H N O L O G I E S http://www.mips.com Fax...: +45 4486= 5556 Regards Zhang Fuxin fxzhang@ict.ac.cn --=====_Dragon665211358614_===== Content-Type: application/octet-stream; name="XF86Config-4" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="XF86Config-4" CiMgRmlsZSBnZW5lcmF0ZWQgYnkgWEZkcmFrZS4KCiMgKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgojIFJlZmVyIHRv IHRoZSBYRjg2Q29uZmlnKDQvNSkgbWFuIHBhZ2UgZm9yIGRldGFpbHMgYWJvdXQgdGhlIGZvcm1h dCBvZgojIHRoaXMgZmlsZS4KIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCgpTZWN0aW9uICJGaWxlcyIKCiAgICBS Z2JQYXRoCSIvdXNyL1gxMVI2L2xpYi9YMTEvcmdiIgoKIyBNdWx0aXBsZSBGb250UGF0aCBlbnRy aWVzIGFyZSBhbGxvd2VkICh0aGV5IGFyZSBjb25jYXRlbmF0ZWQgdG9nZXRoZXIpCiMgQnkgZGVm YXVsdCwgTWFuZHJha2UgNi4wIGFuZCBsYXRlciBub3cgdXNlIGEgZm9udCBzZXJ2ZXIgaW5kZXBl bmRlbnQgb2YKIyB0aGUgWCBzZXJ2ZXIgdG8gcmVuZGVyIGZvbnRzLgoKICAgRm9udFBhdGggICAg Ii91c3IvWDExUjYvbGliL1gxMS9mb250cy9taXNjIgogICBGb250UGF0aCAgICAiL3Vzci9zaGFy ZS9mb250cy9kZWZhdWx0L1R5cGUxIgogICBGb250UGF0aCAgICAiL3Vzci9zaGFyZS9mb250cy9k ZWZhdWx0L2dob3N0c2NyaXB0IgoKRW5kU2VjdGlvbgoKIyAqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiMgU2VydmVy IGZsYWdzIHNlY3Rpb24uCiMgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKU2VjdGlvbiAiU2VydmVyRmxhZ3MiCgog ICAgIyBVbmNvbW1lbnQgdGhpcyB0byBjYXVzZSBhIGNvcmUgZHVtcCBhdCB0aGUgc3BvdCB3aGVy ZSBhIHNpZ25hbCBpcwogICAgIyByZWNlaXZlZC4gIFRoaXMgbWF5IGxlYXZlIHRoZSBjb25zb2xl IGluIGFuIHVudXNhYmxlIHN0YXRlLCBidXQgbWF5CiAgICAjIHByb3ZpZGUgYSBiZXR0ZXIgc3Rh Y2sgdHJhY2UgaW4gdGhlIGNvcmUgZHVtcCB0byBhaWQgaW4gZGVidWdnaW5nCiAgICAjTm9UcmFw U2lnbmFscwoKICAgICMgVW5jb21tZW50IHRoaXMgdG8gZGlzYWJsZSB0aGUgPENydGw+PEFsdD48 QlM+IHNlcnZlciBhYm9ydCBzZXF1ZW5jZQogICAgIyBUaGlzIGFsbG93cyBjbGllbnRzIHRvIHJl Y2VpdmUgdGhpcyBrZXkgZXZlbnQuCiAgICAjRG9udFphcAoKICAgICMgVW5jb21tZW50IHRoaXMg dG8gZGlzYWJsZSB0aGUgPENydGw+PEFsdD48S1BfKz4vPEtQXy0+IG1vZGUgc3dpdGNoaW5nCiAg ICAjIHNlcXVlbmNlcy4gIFRoaXMgYWxsb3dzIGNsaWVudHMgdG8gcmVjZWl2ZSB0aGVzZSBrZXkg ZXZlbnRzLgogICAgI0RvbnRab29tCgogICAgIyBUaGlzICBhbGxvd3MgIHRoZSAgc2VydmVyICB0 byBzdGFydCB1cCBldmVuIGlmIHRoZQogICAgIyBtb3VzZSBkZXZpY2UgY2FuJ3QgYmUgb3BlbmVk L2luaXRpYWxpc2VkLgogICAgQWxsb3dNb3VzZU9wZW5GYWlsCgpFbmRTZWN0aW9uCgojICoqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioKIyBJbnB1dCBkZXZpY2VzCiMgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKIyAqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq CiMgS2V5Ym9hcmQgc2VjdGlvbgojICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKClNlY3Rpb24gIklucHV0RGV2aWNl IgoKICAgIElkZW50aWZpZXIgIktleWJvYXJkMSIKICAgIERyaXZlciAgICAgICJLZXlib2FyZCIK ICAgIE9wdGlvbiAiQXV0b1JlcGVhdCIgICIyNTAgMzAiCgogICAgI09wdGlvbiAiWGtiUnVsZXMi ICJ4ZnJlZTg2IgogICAgI09wdGlvbiAiWGtiTW9kZWwiICJwYzEwNSIKICAgICNPcHRpb24gIlhr YkxheW91dCIgInVzIgoKRW5kU2VjdGlvbgoKIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiMgUG9pbnRlciBzZWN0 aW9uCiMgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKgoKU2VjdGlvbiAiSW5wdXREZXZpY2UiCgogICAgSWRlbnRpZmll ciAgIk1vdXNlMSIKICAgIERyaXZlciAgICAgICJtb3VzZSIKICAgIE9wdGlvbiAiUHJvdG9jb2wi ICAgICJQUy8yIgogICAgT3B0aW9uICJEZXZpY2UiICAgICAgIi9kZXYvcHNhdXgiCiAgICAjT3B0 aW9uICJFbXVsYXRlM0J1dHRvbnMiCiAgICAjT3B0aW9uICJFbXVsYXRlM1RpbWVvdXQiICAgICI1 MCIKCiMgQ2hvcmRNaWRkbGUgaXMgYW4gb3B0aW9uIGZvciBzb21lIDMtYnV0dG9uIExvZ2l0ZWNo IG1pY2UKCiMgICAgT3B0aW9uICJDaG9yZE1pZGRsZSIKCkVuZFNlY3Rpb24KCgoKU2VjdGlvbiAi TW9kdWxlIgoKIyBUaGlzIGxvYWRzIHRoZSBEQkUgZXh0ZW5zaW9uIG1vZHVsZS4KCiMgICAgTG9h ZAkiZGJlIgoKCiMgVGhpcyBsb2FkcyB0aGUgbWlzY2VsbGFuZW91cyBleHRlb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MIEZPUiBUSEUgQ09SUkVDVCBOVU1CRVJTLgogICAgSG9y aXpTeW5jICAzMC4wLTU0LjAKCgojIFZlcnRSZWZyZXNoIGlzIGluIEh6IHVubGVzcyB1bml0cyBh cmUgc3BlY2lmaWVkLgojIFZlcnRSZWZyZXNoIG1heSBiZSBhIGNvbW1hIHNlcGFyYXRlZCBsaXN0 IG9mIGRpc2NyZXRlIHZhbHVlcywgb3IgYQojIGNvbW1hIHNlcGFyYXRlZCBsaXN0IG9mIHJhbmdl cyBvZiB2YWx1ZXMuCiMgTk9URTogVEhFIFZBTFVFUyBIRVJFIEFSRSBFWEFNUExFUyBPTkxZLiAg UkVGRVIgVE8gWU9VUiBNT05JVE9SJ1MKIyBVU0VSIE1BTlVBTCBGT1IgVEhFIENPUlJFQ1QgTlVN QkVSUy4KICAgIFZlcnRSZWZyZXNoIDUwLjAtMTEwLjAKCgpFbmRTZWN0aW9uCgoKCiMgKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKgojIEdyYXBoaWNzIGRldmljZSBzZWN0aW9uCiMgKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKI1NlY3Rp b24gIkRldmljZSIKIyAgICBJZGVudGlmaWVyICJHZW5lcmljIFZHQSIKIyAgICBEcml2ZXIgICAg ICJ2Z2EiCiNFbmRTZWN0aW9uCgpTZWN0aW9uICJEZXZpY2UiCiAgICBJZGVudGlmaWVyICAiUklW QSBUTlQyIgogICAgVmVuZG9yTmFtZSAgIlVua25vd24iCiAgICBCb2FyZE5hbWUgICAiVW5rbm93 biIKICAgIERyaXZlciAgICAgICJmYmRldiIKICAgIFZpZGVvUmFtICAgIDE2Mzg0CiAgICAjIENs b2NrIGxpbmVzCiAgICBCdXNJRCAgICAgICAiUENJOjA6MGU6MCIKCiAgICAjIFVuY29tbWVudCBm b2xsb3dpbmcgb3B0aW9uIGlmIHlvdSBzZWUgYSBiaWcgd2hpdGUgYmxvY2sgICAgICAgIAogICAg IyBpbnN0ZWFkIG9mIHRoZSBjdXJzb3IhICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgCiAgICAjICAgIE9wdGlvbiAgICAgICJzd19jdXJzb3IiCgojIE9wdGlvbiAgICAg ICJEUE1TIgpFbmRTZWN0aW9uCgoKCiMgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgojIFNjcmVlbiBzZWN0aW9ucwoj ICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioKCgpTZWN0aW9uICJTY3JlZW4iCiAgICBJZGVudGlmaWVyICJzY3JlZW4x IgogICAgRGV2aWNlICAgICAgIlJJVkEgVE5UMiIKICAgIE1vbml0b3IgICAgICJNb25pdG9yMCIK ICAgIERlZmF1bHRDb2xvckRlcHRoIDI0CiAgICBTdWJzZWN0aW9uICJEaXNwbGF5IgogICAgICAg IERlcHRoICAgICAgIDgKICAgICAgICBNb2RlcyAgICAgICAiODAweDYwMCIgIjY0MHg0MDAiCiAg ICAgICAgVmlld1BvcnQgICAgMCAwCiAgICBFbmRTdWJzZWN0aW9uCiAgICBTdWJzZWN0aW9uICJE aXNwbGF5IgogICAgICAgIERlcHRoICAgICAgIDE2CiAgICAgICAgTW9kZXMgICAgICAgIjgwMHg2 MDAiICI2NDB4NDgwIgogICAgICAgIFZpZXdQb3J0ICAgIDAgMAogICAgRW5kU3Vic2VjdGlvbgog ICAgU3Vic2VjdGlvbiAiRGlzcGxheSIKICAgICAgICBEZXB0aCAgICAgICAyNAogICAgICAgIE1v ZGVzICAgICAgICI4MDB4NjAwIiAiNjQweDQ4MCIKICAgICAgICBWaWV3UG9ydCAgICAwIDAKICAg IEVuZFN1YnNlY3Rpb24KICAgIFN1YnNlY3Rpb24gIkRpc3BsYXkiCiAgICAgICAgRGVwdGggICAg ICAgMzIKICAgICAgICBNb2RlcyAgICAgICAiODAweDYwMCIgIjY0MHg0ODAiCiAgICAgICAgVmll d1BvcnQgICAgMCAwCiAgICBFbmRTdWJzZWN0aW9uCkVuZFNlY3Rpb24KCg== --=====_Dragon665211358614_===== Content-Type: application/octet-stream; name="out" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="out" CgpYRnJlZTg2IFZlcnNpb24gNC4xLjAgKFJlZCBIYXQgTGludXggcmVsZWFzZTogNC4xLjAtMC45 LjAuMSkgLyBYIFdpbmRvdyBTeXN0ZW0KKHByb3RvY29sIFZlcnNpb24gMTEsIHJldmlzaW9uIDAs IHZlbmRvciByZWxlYXNlIDY1MTApClJlbGVhc2UgRGF0ZTogMiBKdW5lIDIwMDEKCUlmIHRoZSBz ZXJ2ZXIgaXMgb2xkZXIgdGhhbiA2LTEyIG1vbnRocywgb3IgaWYgeW91ciBjYXJkIGlzCgluZXdl ciB0aGFuIHRoZSBhYm92ZSBkYXRlLCBsb29rIGZvciBhIG5ld2VyIHZlcnNpb24gYmVmb3JlCgly ZXBvcnRpbmcgcHJvYmxlbXMuICAoU2VlIGh0dHA6Ly93d3cuWEZyZWU4Ni5PcmcvRkFRKQpCdWls ZCBPcGVyYXRpbmcgU3lzdGVtOiBMaW51eCAyLjQuNiBpNjg2IFtFTEZdIAooPT0pIExvZyBmaWxl OiAiL3Zhci9sb2cvWEZyZWU4Ni4wLmxvZyIsIFRpbWU6IFR1ZSBBcHIgMTcgMDI6MDY6MTMgMjAw MQooPT0pIFVzaW5nIGNvbmZpZyBmaWxlOiAiL2V0Yy9YMTEvWEY4NkNvbmZpZy00IgpNYXJrZXJz OiAoLS0pIHByb2JlZCwgKCoqKSBmcm9tIGNvbmZpZyBmaWxlLCAoPT0pIGRlZmF1bHQgc2V0dGlu ZywKICAgICAgICAgKCsrKSBmcm9tIGNvbW1hbmQgbGluZSwgKCEhKSBub3RpY2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3J0ZWQgYnkgWGxpYiwgbG9jYWxlIHNldCB0byBDCldh cm5pbmc6IFggbG9jYWxlIG1vZGlmaWVycyBub3Qgc3VwcG9ydGVkLCB1c2luZyBkZWZhdWx0CkZh aWxlZCB0byBvcGVuIGlucHV0IG1ldGhvZAo= --=====_Dragon665211358614_=====-- From owner-linux-mips@oss.sgi.com Sun Dec 9 14:43:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fB9MhqB27149 for linux-mips-outgoing; Sun, 9 Dec 2001 14:43:52 -0800 Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fB9Mhio27146 for ; Sun, 9 Dec 2001 14:43:44 -0800 Received: from unknown (HELO garrickevansw2k) (12.236.169.95) by smtp.mail.vip.sc5.yahoo.com with SMTP; 9 Dec 2001 21:43:37 -0000 Message-ID: <004301c180fa$8ff06400$6501a8c0@autodesk.com> From: "Garrick Evans" To: "Carsten Langgaard" Cc: References: <3C0CDB7B.C13AE2B3@mips.com> <20011204161157.A9410@galadriel.physik.uni-konstanz.de> <3C10A5CB.FB92B3A@mips.com> <3C10C526.56F65E57@mips.com> <00a301c18073$5d29a810$6401a8c0@autodesk.com> <3C13B9C1.94C050DD@mips.com> Subject: Re: Mozilla/Netscape on MIPS Date: Sun, 9 Dec 2001 13:40:42 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk really? while the browser display works, there are only 2 menus "Debug" and "QA" and no text anywhere and none of the buttons work - in addition to consuming about 100+ mb of RAM anyway, i've been trying to build moz for a while now and it always crashes out when it hits the content/build dir thoughts? ----- Original Message ----- From: "Carsten Langgaard" To: "Garrick Evans" Cc: "Guido Guenther" ; Sent: Sunday, December 09, 2001 11:21 AM Subject: Re: Mozilla/Netscape on MIPS > No it's not a debug/test version, that would chew even more memory, but you > should be able to build a less "hungry" version yourself. > Just grip the sources and disable whatever you don't need. > > /Carsten > > Garrick Evans wrote: > > > this is a debug/test debug no? i mean it chews up RAM... got a thinner > > version? > > > > ----- Original Message ----- > > From: "Carsten Langgaard" > > To: "Guido Guenther" ; > > Sent: Friday, December 07, 2001 5:33 AM > > Subject: Re: Mozilla/Netscape on MIPS > > > > > Carsten Langgaard wrote: > > > > > > > Guido Guenther wrote: > > > > > > > > > On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > > > > > > There has previous been some request about running Mozilla on a MIPS > > > > > > system. > > > > > > We have put a bigendian and a littleendian image on our FTP site. > > > > > > > > > > > > It runs on the current RedHat7.1 distribution with some minor > > updates. > > > > > > The needed RPMs is also available on our FTP site: > > > > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ > > > > > Were any special patches needed? Could you please also put the source > > > > > rpms there? > > > > > > > > Ok, I will put the sources on our FTP. > > > > Inorder to build the sources you also need to install some extra RPMs > > and > > > > rebuild crtbeginS.o, crti.o and libc_nonshared.a with the -Wa,-xgot > > option. > > > > > > It now on FTP, you will also find precompiled version of crtbeginS.o, > > crti.o > > > and libc_nonshared.a (compiled with -Wa,-xgot). > > > Please read the README.build file for howto build the sources. > > > > > > The link are: > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/src/ > > > > > > > > > > > > > > > > > Regards, > > > > > -- Guido > > > > _________________________________________________________ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From owner-linux-mips@oss.sgi.com Sun Dec 9 17:07:19 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBA17JI30194 for linux-mips-outgoing; Sun, 9 Dec 2001 17:07:19 -0800 Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBA173o30190 for ; Sun, 9 Dec 2001 17:07:03 -0800 Received: from excalibur.cologne.de (pD95118BC.dip.t-dialin.net [217.81.24.188]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id BAA09520 for ; Mon, 10 Dec 2001 01:02:38 +0100 (MET) Received: from karsten by excalibur.cologne.de with local (Exim 3.12 #1 (Debian)) id 16DE1T-00058k-00 for ; Mon, 10 Dec 2001 01:10:19 +0100 Date: Mon, 10 Dec 2001 01:10:19 +0100 From: Karsten Merker To: linux-mips@oss.sgi.com Subject: [PATCH] /proc/systeminfo support Message-ID: <20011210011019.A19737@excalibur.cologne.de> Mail-Followup-To: Karsten Merker , linux-mips@oss.sgi.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-No-Archive: yes Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hallo, appended is a patch for implementing /proc/systeminfo, which shall contain system-specific (in contast to cpu-specific) information, in particular those parts of /proc/cpuinfo that were dropped with the 2.4.15 merge, but are needed by the Debian installer. Ralf, could you please check the patch in? Greetings, Karsten -- #include Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung. --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="proc_systeminfo.diff" diff -Nur /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/Documentation/Configure.help linux/Documentation/Configure.help --- /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/Documentation/Configure.help Sun Dec 2 12:34:33 2001 +++ linux/Documentation/Configure.help Mon Dec 10 00:51:13 2001 @@ -14087,6 +14087,15 @@ This option will enlarge your kernel by about 67 KB. Several programs depend on this, so everyone should say Y here. +/proc/systeminfo support (MIPS specific) +CONFIG_PROC_SYSTEMINFO + This option enables /proc/systeminfo, which gives system-specific + (in contrast to cpu-specific) information about the machine + the kernel is running on. This includes the machine type + (such as "DECstation 5000/1xx" and the endianess used by the + kernel (MIPS CPUs are bi-endian and userspace-endianess can be + different from kernelspace-endianess on some systems). + Support for PReP Residual Data CONFIG_PREP_RESIDUAL Some PReP systems have residual data passed to the kernel by the diff -Nur /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/Config.in linux/fs/Config.in --- /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/Config.in Sun Dec 2 12:34:53 2001 +++ linux/fs/Config.in Mon Dec 10 00:39:44 2001 @@ -60,6 +60,7 @@ tristate 'OS/2 HPFS file system support' CONFIG_HPFS_FS bool '/proc file system support' CONFIG_PROC_FS +dep_mbool ' /proc/systeminfo support on MIPS' CONFIG_PROC_SYSTEMINFO $CONFIG_MIPS $CONFIG_PROC_FS dep_bool '/dev file system support (EXPERIMENTAL)' CONFIG_DEVFS_FS $CONFIG_EXPERIMENTAL dep_bool ' Automatically mount at boot' CONFIG_DEVFS_MOUNT $CONFIG_DEVFS_FS diff -Nur /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/proc/proc_misc.c linux/fs/proc/proc_misc.c --- /filebase/cvs-trees/oss.sgi.com/linux-2.4/linux/fs/proc/proc_misc.c Sun Dec 2 12:34:55 2001 +++ linux/fs/proc/proc_misc.c Mon Dec 10 01:01:09 2001 @@ -13,6 +13,9 @@ * Changes: * Fulton Green : Encapsulated position metric calculations. * + * Karsten Merker : Addition of /proc/systeminfo, function + * systeminfo_read_proc + * , 2001/12/09 */ #include @@ -40,7 +43,9 @@ #include #include #include - +#ifdef CONFIG_PROC_SYSTEMINFO +#include +#endif #define LOAD_INT(x) ((x) >> FSHIFT) #define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100) @@ -202,6 +207,65 @@ return proc_calc_metrics(page, start, off, count, eof, len); } + +/* + * /proc/systeminfo added as replacement for the information + * that was dropped from /proc/cpuinfo with the 2.4.15 merge. + * This information is needed e.g. by the Debian installer. + * Based on the original /proc/cpuinfo code by Ralf Baechle + * , which was in arch/mips/kernel/proc.c before. + * Karsten Merker , 2001/12/09 + */ + +#ifdef CONFIG_PROC_SYSTEMINFO +static int systeminfo_read_proc(char *page, char **start, off_t off, + int count, int *eof, void *data) +{ + int len; + + const char *mach_group_names[] = GROUP_NAMES; + const char *mach_unknown_names[] = GROUP_UNKNOWN_NAMES; + const char *mach_jazz_names[] = GROUP_JAZZ_NAMES; + const char *mach_dec_names[] = GROUP_DEC_NAMES; + const char *mach_arc_names[] = GROUP_ARC_NAMES; + const char *mach_sni_rm_names[] = GROUP_SNI_RM_NAMES; + const char *mach_acn_names[] = GROUP_ACN_NAMES; + const char *mach_sgi_names[] = GROUP_SGI_NAMES; + const char *mach_cobalt_names[] = GROUP_COBALT_NAMES; + const char *mach_nec_ddb_names[] = GROUP_NEC_DDB_NAMES; + const char *mach_baget_names[] = GROUP_BAGET_NAMES; + const char *mach_cosine_names[] = GROUP_COSINE_NAMES; + const char *mach_galileo_names[] = GROUP_GALILEO_NAMES; + const char *mach_momenco_names[] = GROUP_MOMENCO_NAMES; + const char *mach_ite_names[] = GROUP_ITE_NAMES; + const char *mach_philips_names[] = GROUP_PHILIPS_NAMES; + const char *mach_globespan_names[] = GROUP_GLOBESPAN_NAMES; + const char *mach_sibyte_names[] = GROUP_SIBYTE_NAMES; + const char *mach_toshiba_names[] = GROUP_TOSHIBA_NAMES; + const char *mach_alchemy_names[] = GROUP_ALCHEMY_NAMES; + const char *mach_nec_vr41xx_names[] = GROUP_NEC_VR41XX_NAMES; + const char **mach_group_to_name[] = { mach_unknown_names, + mach_jazz_names, mach_dec_names, mach_arc_names, + mach_sni_rm_names, mach_acn_names, mach_sgi_names, + mach_cobalt_names, mach_nec_ddb_names, mach_baget_names, + mach_cosine_names, mach_galileo_names, mach_momenco_names, + mach_ite_names, mach_philips_names, mach_globespan_names, + mach_sibyte_names, mach_toshiba_names, mach_alchemy_names, + mach_nec_vr41xx_names}; + + len = sprintf(page, "system type : %s %s\n", + mach_group_names[mips_machgroup], + mach_group_to_name[mips_machgroup][mips_machtype]); +#if defined (__MIPSEB__) + len += sprintf(page + len, "kernel byteorder : big endian\n"); +#endif +#if defined (__MIPSEL__) + len += sprintf(page + len, "kernel byteorder : little endian\n"); +#endif + return proc_calc_metrics(page, start, off, count, eof, len); +} +#endif + extern struct seq_operations cpuinfo_op; static int cpuinfo_open(struct inode *inode, struct file *file) { @@ -526,6 +590,9 @@ {"swaps", swaps_read_proc}, {"iomem", memory_read_proc}, {"execdomains", execdomains_read_proc}, +#ifdef CONFIG_PROC_SYSTEMINFO + {"systeminfo", systeminfo_read_proc}, +#endif {NULL,} }; for (p = simple_ones; p->name; p++) --qMm9M+Fa2AknHoGS-- From owner-linux-mips@oss.sgi.com Sun Dec 9 17:18:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBA1Ilw30435 for linux-mips-outgoing; Sun, 9 Dec 2001 17:18:47 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBA1Iho30432 for ; Sun, 9 Dec 2001 17:18:43 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBA0IZZ14056; Sun, 9 Dec 2001 22:18:35 -0200 Date: Sun, 9 Dec 2001 22:18:35 -0200 From: Ralf Baechle To: Kip Walker Cc: linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011209221835.A11737@dea.linux-mips.net> References: <3C1104D4.F700768A@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C1104D4.F700768A@broadcom.com>; from kwalker@broadcom.com on Fri, Dec 07, 2001 at 10:05:08AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Dec 07, 2001 at 10:05:08AM -0800, Kip Walker wrote: > I just investigated assembler warnings coming from > arch/mips/kernel/entry.S (checked out as of 12/07 00:00 UTC), and > noticed the following. After expanding macros, you get something like: > > .text > > .section ".text.init" (from __INIT) > > .data (from PANIC) > .previous (from PANIC) > --> section is now .text.init > > .previous (from __FINIT) > --> section is now .data, not .text as intended. > > Perhaps .pushsection and .popsection should be used in some or all > macros like this? > > Or am I smoking crack? Certainly not. The problem is known and so far I've just hacked around it more or less elegant. But it's a trap and so I think we've got good reasons to force people to upgrade to a newer assembler than the current minimal version. The question is which - I don't like frequent tool upgrades. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 10 00:23:54 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBA8NsA23868 for linux-mips-outgoing; Mon, 10 Dec 2001 00:23:54 -0800 Received: from hypatia.brisbane.redhat.com (lulu.redhat.com.au [202.83.74.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBA8Nlo23864; Mon, 10 Dec 2001 00:23:47 -0800 Received: from scooby.brisbane.redhat.com (scooby.brisbane.redhat.com [172.16.5.228]) by hypatia.brisbane.redhat.com (8.11.6/8.11.0) with ESMTP id fBA7NP209619; Mon, 10 Dec 2001 17:23:27 +1000 Received: by scooby.brisbane.redhat.com (Postfix, from userid 500) id 505B91080F; Mon, 10 Dec 2001 18:23:24 +1100 (EST) From: Ben Elliston MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15380.25324.287595.674046@scooby.brisbane.redhat.com> Date: Mon, 10 Dec 2001 18:23:24 +1100 (EST) To: "H . J . Lu" Cc: Ralf Baechle , linux-mips@oss.sgi.com, config-patches@gnu.org Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: <20011206103605.A7366@lucon.org> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> X-Mailer: VM 6.75 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-linux-mips@oss.sgi.com Precedence: bulk >>>>> "H" == H J Lu writes: >> Grrr... In the past config.guess used gcc to compile a test program using >> gcc. I told sometime ago to whoever it was that I'm going to remove >> all non-cpu related information (endianess should be considered per >> _thread_ on MIPS!) from /proc/cpuinfo where it has no business; the /proc >> rewrite in 2.4.15 more or less forced me into this. H> How about this patch? Please, no. I have worked very hard to eliminate many of the instances where it has been necessary to compile dummy programs in config.guess. They are troublesome to many config.guess users. How about this instead? cpu=`cpp << EOF | grep ^mips #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) mipsel #endif #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) mips #endif EOF` if test -n "$cpu" ; then echo $cpu-unknown-linux-gnu && exit 0 fi Please try this out on a MIPS Linux system and, if it works, resubmit a new patch along these lines. Thanks, Ben From owner-linux-mips@oss.sgi.com Mon Dec 10 00:59:13 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBA8xDL24273 for linux-mips-outgoing; Mon, 10 Dec 2001 00:59:13 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBA8x3o24270 for ; Mon, 10 Dec 2001 00:59:03 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id XAA24953; Sun, 9 Dec 2001 23:58:52 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id XAA28061; Sun, 9 Dec 2001 23:58:52 -0800 (PST) Received: from mips.com (copsun17 [192.168.205.27]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fBA7wjA08572; Mon, 10 Dec 2001 08:58:48 +0100 (MET) Message-ID: <3C146B3B.B20CAA4C@mips.com> Date: Mon, 10 Dec 2001 08:58:51 +0100 From: Carsten Langgaard X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Garrick Evans CC: linux-mips@oss.sgi.com Subject: Re: Mozilla/Netscape on MIPS References: <3C0CDB7B.C13AE2B3@mips.com> <20011204161157.A9410@galadriel.physik.uni-konstanz.de> <3C10A5CB.FB92B3A@mips.com> <3C10C526.56F65E57@mips.com> <00a301c18073$5d29a810$6401a8c0@autodesk.com> <3C13B9C1.94C050DD@mips.com> <004301c180fa$8ff06400$6501a8c0@autodesk.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Garrick Evans wrote: > really? while the browser display works, there are only 2 menus "Debug" and > "QA" and no text anywhere and none of the buttons work - in addition to > consuming about 100+ mb of RAM Strange, that doesn't happen to me. > > anyway, i've been trying to build moz for a while now and it always crashes > out when it hits the content/build dir > > thoughts? Just read the README.build from our FTP site. ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/src/README.build > > ----- Original Message ----- > From: "Carsten Langgaard" > To: "Garrick Evans" > Cc: "Guido Guenther" ; > Sent: Sunday, December 09, 2001 11:21 AM > Subject: Re: Mozilla/Netscape on MIPS > > > No it's not a debug/test version, that would chew even more memory, but > you > > should be able to build a less "hungry" version yourself. > > Just grip the sources and disable whatever you don't need. > > > > /Carsten > > > > Garrick Evans wrote: > > > > > this is a debug/test debug no? i mean it chews up RAM... got a thinner > > > version? > > > > > > ----- Original Message ----- > > > From: "Carsten Langgaard" > > > To: "Guido Guenther" ; > > > Sent: Friday, December 07, 2001 5:33 AM > > > Subject: Re: Mozilla/Netscape on MIPS > > > > > > > Carsten Langgaard wrote: > > > > > > > > > Guido Guenther wrote: > > > > > > > > > > > On Tue, Dec 04, 2001 at 03:19:39PM +0100, Carsten Langgaard wrote: > > > > > > > There has previous been some request about running Mozilla on a > MIPS > > > > > > > system. > > > > > > > We have put a bigendian and a littleendian image on our FTP > site. > > > > > > > > > > > > > > It runs on the current RedHat7.1 distribution with some minor > > > updates. > > > > > > > The needed RPMs is also available on our FTP site: > > > > > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/ > > > > > > Were any special patches needed? Could you please also put the > source > > > > > > rpms there? > > > > > > > > > > Ok, I will put the sources on our FTP. > > > > > Inorder to build the sources you also need to install some extra > RPMs > > > and > > > > > rebuild crtbeginS.o, crti.o and libc_nonshared.a with the -Wa,-xgot > > > option. > > > > > > > > It now on FTP, you will also find precompiled version of crtbeginS.o, > > > crti.o > > > > and libc_nonshared.a (compiled with -Wa,-xgot). > > > > Please read the README.build file for howto build the sources. > > > > > > > > The link are: > > > > ftp://ftp.mips.com/pub/linux/mips/installation/apps/mozilla/src/ > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > -- Guido > > > > > > _________________________________________________________ > > > Do You Yahoo!? > > > Get your free @yahoo.com address at http://mail.yahoo.com > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com -- _ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com From owner-linux-mips@oss.sgi.com Mon Dec 10 02:42:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAAgmo25544 for linux-mips-outgoing; Mon, 10 Dec 2001 02:42:48 -0800 Received: from hypatia.brisbane.redhat.com (lulu.redhat.com.au [202.83.74.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAAgho25541; Mon, 10 Dec 2001 02:42:43 -0800 Received: from scooby.brisbane.redhat.com (scooby.brisbane.redhat.com [172.16.5.228]) by hypatia.brisbane.redhat.com (8.11.6/8.11.0) with ESMTP id fBA9gVP02609; Mon, 10 Dec 2001 19:42:31 +1000 Received: by scooby.brisbane.redhat.com (Postfix, from userid 500) id 6335710810; Mon, 10 Dec 2001 20:42:31 +1100 (EST) From: Ben Elliston MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15380.33671.382927.402138@scooby.brisbane.redhat.com> Date: Mon, 10 Dec 2001 20:42:31 +1100 (EST) To: "H . J . Lu" , Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: <15380.25324.287595.674046@scooby.brisbane.redhat.com> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> <15380.25324.287595.674046@scooby.brisbane.redhat.com> X-Mailer: VM 6.75 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-linux-mips@oss.sgi.com Precedence: bulk >>>>> "Ben" == Ben Elliston writes: Ben> cpu=`cpp << EOF | grep ^mips Of course, this needs some refinement. ;-) Perhaps we need to run through $(CC_FOR_BUILD) -E or somesuch; cpp is no good, as it won't know all of the magic '*MIPS*' #defines. Ben From owner-linux-mips@oss.sgi.com Mon Dec 10 04:13:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBACD1A27028 for linux-mips-outgoing; Mon, 10 Dec 2001 04:13:01 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBACCwo27025 for ; Mon, 10 Dec 2001 04:12:59 -0800 Received: from agx by gandalf.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16DOMd-0006Im-00; Mon, 10 Dec 2001 12:12:51 +0100 Date: Mon, 10 Dec 2001 12:12:51 +0100 From: Guido Guenther To: Zhang Fuxin Cc: linux-mips@oss.sgi.com Subject: Re: Re: XF86Config & startup log Message-ID: <20011210121251.B24000@gandalf.physik.uni-konstanz.de> Mail-Followup-To: Zhang Fuxin , linux-mips@oss.sgi.com References: <200112090437.fB94bVo27119@oss.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200112090437.fB94bVo27119@oss.sgi.com>; from fxzhang@ict.ac.cn on Sun, Dec 09, 2001 at 11:35:10AM +0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sun, Dec 09, 2001 at 11:35:10AM +0800, Zhang Fuxin wrote: [..snip..] > 1,rpm -i to install it,then cd /usr/src/redhat/SPECS and rpm -bp XFree86.spec > (you may have to resolve some dependency first),then you get a unzip tree under > /usr/src/redhat/BUILD/XFree86-4.1.0/ It might be a better idea to try xfree86-cvs it has loadable modules which speeds up recompiling/relinking a lot and furthermore has some of your problems fixed. -- Guido From owner-linux-mips@oss.sgi.com Mon Dec 10 07:21:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAFLGh29397 for linux-mips-outgoing; Mon, 10 Dec 2001 07:21:16 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAFLBo29393; Mon, 10 Dec 2001 07:21:11 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16DRIm-0007uT-00; Mon, 10 Dec 2001 09:21:04 -0500 Date: Mon, 10 Dec 2001 09:21:04 -0500 From: Daniel Jacobowitz To: Ben Elliston Cc: "H . J . Lu" , Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011210092104.A29953@nevyn.them.org> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> <15380.25324.287595.674046@scooby.brisbane.redhat.com> <15380.33671.382927.402138@scooby.brisbane.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15380.33671.382927.402138@scooby.brisbane.redhat.com> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 10, 2001 at 08:42:31PM +1100, Ben Elliston wrote: > >>>>> "Ben" == Ben Elliston writes: > > Ben> cpu=`cpp << EOF | grep ^mips > > Of course, this needs some refinement. ;-) Perhaps we need to run > through $(CC_FOR_BUILD) -E or somesuch; cpp is no good, as it won't > know all of the magic '*MIPS*' #defines. HJ's patch didn't compile anything; it ran code through $(CC_FOR_BUILD) -E :) -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Mon Dec 10 09:04:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAH4Rl08970 for linux-mips-outgoing; Mon, 10 Dec 2001 09:04:27 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAH4Jo08902; Mon, 10 Dec 2001 09:04:20 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id RAA25531; Mon, 10 Dec 2001 17:03:43 +0100 (MET) Date: Mon, 10 Dec 2001 17:03:41 +0100 (MET) From: "Maciej W. Rozycki" To: Ralf Baechle cc: Kip Walker , linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S In-Reply-To: <20011209221835.A11737@dea.linux-mips.net> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sun, 9 Dec 2001, Ralf Baechle wrote: > Certainly not. The problem is known and so far I've just hacked around > it more or less elegant. But it's a trap and so I think we've got good > reasons to force people to upgrade to a newer assembler than the current > minimal version. The question is which - I don't like frequent tool > upgrades. There are no working released binutils for a modern MIPS/Linux system, AFAIK. However, version 2.11.92 from the CVS seems to work reasonably well now, so chances are the next release will do as well. Maybe 2.12 will be a good candidate then, once it is released and tested a bit. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Mon Dec 10 10:19:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAIJ6410829 for linux-mips-outgoing; Mon, 10 Dec 2001 10:19:06 -0800 Received: from hlubocky.del.cz (hlubocky.del.cz [212.27.221.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAIIco10820 for ; Mon, 10 Dec 2001 10:18:38 -0800 Received: from ladis (helo=localhost) by hlubocky.del.cz with local-esmtp (Exim 3.12 #1 (Debian)) id 16DU3h-0002R6-00; Mon, 10 Dec 2001 18:17:42 +0100 Date: Mon, 10 Dec 2001 18:17:41 +0100 (CET) From: Ladislav Michl To: Ralf Baechle cc: Ian Chilton , Florian Lohoff , linux-mips@oss.sgi.com Subject: [PATCH] timer fix (was: Re: 2.4.16 success on Indy...) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk here it is. the only important change is of course in ip22-time.c the rest is for better look and feel only :-) Index: linux/arch/mips/sgi-ip22/ip22-reset.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-reset.c,v retrieving revision 1.1.2.1 diff -u -r1.1.2.1 ip22-reset.c --- linux/arch/mips/sgi-ip22/ip22-reset.c 2001/12/07 15:45:29 1.1.2.1 +++ linux/arch/mips/sgi-ip22/ip22-reset.c 2001/12/10 18:03:12 @@ -180,7 +180,7 @@ unsigned int buttons; buttons = hpc3mregs->panel; - hpc3mregs->panel = 3; /* power_interrupt | power_supply_on */ + hpc3mregs->panel = 0x03; /* power_interrupt | power_supply_on */ if (ioc_icontrol->istat1 & 2) { /* Wait until interrupt goes away */ disable_irq(SGI_PANEL_IRQ); @@ -190,7 +190,7 @@ add_timer(&debounce_timer); } - if (!(buttons & 2)) /* Power button was pressed */ + if (!(buttons & 0x02)) /* Power button was pressed */ power_button(); if (!(buttons & 0x40)) { /* Volume up button was pressed */ init_timer(&volume_timer); Index: linux/arch/mips/sgi-ip22/ip22-setup.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-setup.c,v retrieving revision 1.1.2.1 diff -u -r1.1.2.1 ip22-setup.c --- linux/arch/mips/sgi-ip22/ip22-setup.c 2001/12/07 15:45:29 1.1.2.1 +++ linux/arch/mips/sgi-ip22/ip22-setup.c 2001/12/10 18:03:13 @@ -61,7 +61,7 @@ indy_setup wouldn't work since kmalloc isn't initialized yet. */ indy_reboot_setup(); - return request_irq(SGI_KEYBOARD_IRQ, handler, 0, "keyboard", NULL); + return request_irq(SGI_KEYBD_IRQ, handler, 0, "keyboard", NULL); } static int sgi_aux_request_irq(void (*handler)(int, void *, struct pt_regs *)) Index: linux/arch/mips/sgi-ip22/ip22-time.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-time.c,v retrieving revision 1.1.2.1 diff -u -r1.1.2.1 ip22-time.c --- linux/arch/mips/sgi-ip22/ip22-time.c 2001/12/07 15:45:29 1.1.2.1 +++ linux/arch/mips/sgi-ip22/ip22-time.c 2001/12/10 18:03:13 @@ -127,12 +127,11 @@ return ((ct1 - ct0) / 5000) * 5000; } +/* + * Here we need to calibrate the cycle counter to at least be close. + */ void indy_time_init(void) { - /* Here we need to calibrate the cycle counter to at least be close. - * We don't need to actually register the irq handler because that's - * all done in indyIRQ.S. - */ struct sgi_ioc_timers *p; volatile unsigned char *tcwp, *tc2p; unsigned long r4k_ticks[3]; @@ -215,8 +214,16 @@ static void indy_timer_setup(struct irqaction *irq) { + unsigned long count; + /* over-write the handler, we use our own way */ irq->handler = no_action; + + /* set time for first interrupt */ + count = read_32bit_cp0_register(CP0_COUNT); + count += mips_counter_frequency / HZ; + write_32bit_cp0_register(CP0_COMPARE, count); + /* setup irqaction */ setup_irq(SGI_TIMER_IRQ, irq); } Index: linux/include/asm-mips/sgi/sgint23.h =================================================================== RCS file: /cvs/linux/include/asm-mips/sgi/sgint23.h,v retrieving revision 1.5 diff -u -r1.5 sgint23.h --- linux/include/asm-mips/sgi/sgint23.h 2001/11/23 01:06:57 1.5 +++ linux/include/asm-mips/sgi/sgint23.h 2001/12/10 18:04:59 @@ -64,7 +64,7 @@ * We map them to 0 */ #define SGI_VERT_IRQ SGINT_LOCAL2 + 0 /* INT3: newport vertical status */ #define SGI_EISA_IRQ SGINT_LOCAL2 + 3 /* EISA interrupts */ -#define SGI_KEYBOARD_IRQ SGINT_LOCAL2 + 4 /* keyboard */ +#define SGI_KEYBD_IRQ SGINT_LOCAL2 + 4 /* keyboard */ #define SGI_SERIAL_IRQ SGINT_LOCAL2 + 5 /* onboard serial */ /* INT2 occupies HPC PBUS slot 4, INT3 uses slot 6. */ @@ -227,8 +227,5 @@ extern struct sgi_ioc_ints *ioc_icontrol; extern struct sgi_ioc_timers *ioc_timers; extern volatile unsigned char *ioc_tclear; - -extern void sgint_init(void); -extern void indy_timer_init(void); #endif /* _ASM_SGI_SGINT23_H */ From owner-linux-mips@oss.sgi.com Mon Dec 10 11:00:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAJ01U11762 for linux-mips-outgoing; Mon, 10 Dec 2001 11:00:01 -0800 Received: from oval.algor.co.uk (root@oval.algor.co.uk [62.254.210.250]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAIxro11741 for ; Mon, 10 Dec 2001 10:59:53 -0800 Received: from gladsmuir.algor.co.uk (IDENT:root@gladsmuir.algor.co.uk [192.168.5.75]) by oval.algor.co.uk (8.11.6/8.10.1) with ESMTP id fBAHxim07081; Mon, 10 Dec 2001 17:59:44 GMT Received: (from dom@localhost) by gladsmuir.algor.co.uk (8.11.0/8.8.7) id fBAHxew09191; Mon, 10 Dec 2001 17:59:40 GMT From: Dominic Sweetman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15380.63500.561133.890301@gladsmuir.algor.co.uk> Date: Mon, 10 Dec 2001 17:59:40 +0000 (GMT) To: Zhang Fuxin Cc: Chris Dearman , "linux-mips@oss.sgi.com" Subject: Re: the cause of spurious interrupt problem In-Reply-To: <200112091416.fB9EGwo06733@oss.sgi.com> References: <200112091416.fB9EGwo06733@oss.sgi.com> X-Mailer: VM 6.72 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Zhang Fuxin (fxzhang@ict.ac.cn) writes: > Then all at a suddenly i find the REAL reason... I don't know whether you read the section "Tips on Programming South Bridge Interrupt Controllers" in our P-6032 user manual. It goes like this: * * * * The interrupt controllers inside the south bridge chip have to be software-compatible with the dual Intel 8259 controllers fitted to very old PCs. There are two 8-bit controllers inside the south bridge, a slave whose interrupt output becomes one of the eight inputs of the master controller. The 8259 is a very old device, dating from around 1980. Under the influence of contemporary minicomputer designs, the 8259 made a brave attempt to build an interrupt priority system in hardware for Intel 8-bit and 8086 CPUs. With the benefit of 20 years hindsight, we can see this was pretty silly (but that's a lot of hindsight, and the people who did it were much younger then). When separated from its Intel CPU, the 8259 is unable to do exciting things like automatically causing the CPU to vector to an appropriate interrupt vector location. Experience shows that allowing it to do anything complicated is likely to lead to trouble, so we suggest: 1. Don't use the 8259's priority logic. Instead, place both the master and slave controller into what the Intel manuals call Special Mask Mode. This disables all interrupt prioritisation; now any active and unmasked interrupt input will activate the interrupt output, which is enough. 2. Do not ever read the ISR (``in-service'') registers. They don't make sense outside of the priority scheme. If you want to know what individual interrupt lines are doing, look in the IRR (``interrupt request'') registers instead. (You'll have to use soft copies of the current mask values to tell which of these bits to attend to). 3. Conclude each interrupt service routine with a ``Specific end-of- interrupt (EOI)'' command to the 8259. In special mask mode this doesn't do anything to the priority, but it does serve to clear a latched interrupt, if there is one. (There are other ways of doing this). * * * * One or two of the PC interrupts must, I think, be edge-triggered: but most of them should not be. I know, it's a pain, you want to maximise compatibility with x86 drivers. But I suspect you're just burying problems which will surely rise again. -- Dominic Sweetman Algorithmics Ltd The Fruit Farm, Ely Road, Chittering, CAMBS CB5 9PH, ENGLAND phone: +44 1223 706200 / fax: +44 1223 706250 / home: +44 20 7226 0032 http://www.algor.co.uk From owner-linux-mips@oss.sgi.com Mon Dec 10 11:29:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAJT5l12679 for linux-mips-outgoing; Mon, 10 Dec 2001 11:29:05 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBAJT0o12676 for ; Mon, 10 Dec 2001 11:29:01 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBAISQM01297; Mon, 10 Dec 2001 16:28:26 -0200 Date: Mon, 10 Dec 2001 16:28:26 -0200 From: Ralf Baechle To: Ben Elliston Cc: "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011210162826.D24680@dea.linux-mips.net> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> <15380.25324.287595.674046@scooby.brisbane.redhat.com> <15380.33671.382927.402138@scooby.brisbane.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15380.33671.382927.402138@scooby.brisbane.redhat.com>; from bje@redhat.com on Mon, Dec 10, 2001 at 08:42:31PM +1100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 10, 2001 at 08:42:31PM +1100, Ben Elliston wrote: > Ben> cpu=`cpp << EOF | grep ^mips > > Of course, this needs some refinement. ;-) Perhaps we need to run > through $(CC_FOR_BUILD) -E or somesuch; cpp is no good, as it won't > know all of the magic '*MIPS*' #defines. Agreed but the basic idea is good. Also this solution is suitable for crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on properly installed libraries and headers might possibly of interest for building standalone software. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 10 11:40:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAJeRw13101 for linux-mips-outgoing; Mon, 10 Dec 2001 11:40:27 -0800 Received: from oval.algor.co.uk (root@oval.algor.co.uk [62.254.210.250]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAJeHo13098; Mon, 10 Dec 2001 11:40:17 -0800 Received: from gladsmuir.algor.co.uk (IDENT:root@gladsmuir.algor.co.uk [192.168.5.75]) by oval.algor.co.uk (8.11.6/8.10.1) with ESMTP id fBAIe4m09049; Mon, 10 Dec 2001 18:40:04 GMT Received: (from dom@localhost) by gladsmuir.algor.co.uk (8.11.0/8.8.7) id fBAIe0H09279; Mon, 10 Dec 2001 18:40:00 GMT From: Dominic Sweetman MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15381.384.341974.133229@gladsmuir.algor.co.uk> Date: Mon, 10 Dec 2001 18:40:00 +0000 (GMT) To: Ralf Baechle Cc: "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: Why is byteorder removed from /proc/cpuinfo? In-Reply-To: <20011206155724.A11083@dea.linux-mips.net> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> X-Mailer: VM 6.72 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf Baechle (ralf@oss.sgi.com) writes: > (endianess should be considered per _thread_ on MIPS!) I tried to ignore this, but I can't. Ralf, what an elegant idea, but it really doesn't make much sense. Ralf is influenced, I think, by the fact that MIPS CPUs have two endianness switches: a "one-time" select which needs to match some of the rest of the hardware in your system, and is picked at reset time, and the very dodgy status register 'RE' bit. RE ("reverse endianness in user mode") bit was invented in a fit of madness for the MIPS R4000. It was intended to make it possible to run binaries from the little-endian DECstation on a big-endian MIPS unix system. As far as I know, nobody ever did the software work to make such a thing happen, so nobody really ever found out if it would have worked. So yes, you could try to change the RE bit between threads... but threads generally expect to be able to share code and data. Now: 1. MIPS code is endianness-dependent (your big- and little-endian threads would require separate copies of any library function, for example); 2. MIPS data is endianness-dependent. The endianness-switch uses cheap and simple hardware and produces particularly nasty effects. That's OK when you are just doing a one-time select (effectively, the memory system inherits the CPU's endianness, hiding the nastiness). But a big-endian and little-endian thread sharing data will see everything mangled; in fact they'll only show mutual comprehension of data consisting of aligned words (either 32-bit or 64-bit, according to the underlying CPU). A feature which allows you to tell whether you've got a 64-bit CPU while running 32-bit code is not good. 3. The one-time endianness switch also controls some peripheral (chip interface) logic. The memory controller has to know the CPU's endianness to decode bus cycles, so the RE bit presumably must leave this alone: though on the original R4000 it happened that it didn't matter so long as the backward code stayed in cache... be that as it may, it means this whole thing is even more broken for 64-bit CPUs on a 32-bit bus, for example. So: a) Any MIPS system really does have an endianness: the kernel always runs in it. Since the kernel binary is already committed to either big- or little-endian, it really is fairly appropriate to have a compile-time flag to say which. b) Dynamic endianness is just plausible on a unix process basis (thread + address space), as originally planned: but the amount of kernel re-writing involved, plus a complete second set of dynamic libraries, plus endless problem in I/O make it easy to see why it never got done. Dynamic endianness on a per-thread basis would require fantasy hardware which operates differently from the way MIPS chips do... -- Dominic Sweetman Algorithmics Ltd The Fruit Farm, Ely Road, Chittering, CAMBS CB5 9PH, ENGLAND phone: +44 1223 706200 / fax: +44 1223 706250 / home: +44 20 7226 0032 http://www.algor.co.uk From owner-linux-mips@oss.sgi.com Mon Dec 10 11:53:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAJrQD13489 for linux-mips-outgoing; Mon, 10 Dec 2001 11:53:26 -0800 Received: from habanero.picante.com (picante.ne.mediaone.net [24.91.80.18]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAJrNo13486 for ; Mon, 10 Dec 2001 11:53:23 -0800 Received: from habanero.picante.com (gtaylor@habanero.picante.com [192.168.0.5]) by habanero.picante.com (8.12.1/8.12.1/Debian -2) with ESMTP id fBAIrGL4004125 for ; Mon, 10 Dec 2001 13:53:16 -0500 Message-Id: <200112101853.fBAIrGL4004125@habanero.picante.com> From: Grant Taylor To: linux-mips@oss.sgi.com Subject: Static register access from outside scall_o32.S Date: Mon, 10 Dec 2001 13:53:16 -0500 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi there. I'm porting vmadump (a process checkpoint module) to Linux/MIPS. The thing now works, but to make it go I had to adjust the entry and exit points in arch/mips/kernel/scall_o32.S such that they always do SAVE_ALL and RESTORE_ALL_AND_RET. Normally, it appears that "static" registers and probably a few others are either left alone by the kernel code or stored on the stack somewhere by the syscall and/or subsequent jump instructions. Anywho, the rub is that the vmadump code needs for the passed-in pt_regs to be complete, and needs for the syscall return path from it to fully restore from pt_regs if it has been modified. Obviously I'd like to do this without making all syscalls store everything. I see that marking the task for rescheduling will make all the registers be saved and restored, but that's either *after* I'm supposed to have copied all the register contents, or *before* I've written new information to the pt_regs, so that's not it. Is there any nice way to read and/or modifiy the static and other "!SOME" register values from within my system call implementation? I assume I can find them on the stack somewhere, but that seems awfully ugly. -- Grant Taylor - gtaylor@picante.com - http://www.picante.com/~gtaylor/ Linux Printing Website and HOWTO: http://www.linuxprinting.org/ From owner-linux-mips@oss.sgi.com Mon Dec 10 12:07:09 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAK79k14055 for linux-mips-outgoing; Mon, 10 Dec 2001 12:07:09 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBAK74o14019 for ; Mon, 10 Dec 2001 12:07:05 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBAJ6kl09431; Mon, 10 Dec 2001 17:06:46 -0200 Date: Mon, 10 Dec 2001 17:06:46 -0200 From: Ralf Baechle To: Dominic Sweetman Cc: "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: Why is byteorder removed from /proc/cpuinfo? Message-ID: <20011210170646.E24680@dea.linux-mips.net> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <15381.384.341974.133229@gladsmuir.algor.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15381.384.341974.133229@gladsmuir.algor.co.uk>; from dom@algor.co.uk on Mon, Dec 10, 2001 at 06:40:00PM +0000 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 10, 2001 at 06:40:00PM +0000, Dominic Sweetman wrote: > Dynamic endianness on a per-thread basis would require fantasy > hardware which operates differently from the way MIPS chips do... I used the term thread as the c0_status register which contains the RE bit is per process. Keeping it a per mm thing would require more effort for no good reason. Anyway, inside the Linux kernel threads and processes are basically the same thing. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 10 13:08:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAL8rK15855 for linux-mips-outgoing; Mon, 10 Dec 2001 13:08:53 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAL8Yo15850 for ; Mon, 10 Dec 2001 13:08:35 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 982D27F5; Mon, 10 Dec 2001 21:08:23 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id EE59148FD; Mon, 10 Dec 2001 21:07:57 +0100 (CET) Date: Mon, 10 Dec 2001 21:07:57 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Cc: klaus@mgnet.de, agx@sigxcpu.org Subject: [PATCH] sgiwd93.c fix for multiple disks Message-ID: <20011210200757.GA25722@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, the attached patch fixes part of the DMA problems we see with multiple disks and the sgiwd93.c with DISCONNECTs. Klaus patch formerly just disabled all DMA replacing it with PIO which is a major performance hit. This patch simply deletes all the HPC Scatter/Gather stuff thus we will see a couple more interrupts due to all segments beeing transferred individually. The transfer itself still happens with the HPC DMA thus the performance impact will not be that large. I am running a test right now but it seems the error is gone. This also touches the wd33c93.c generic part which brings us closer to mainstream as these to lines are a difference between the sgi/mips tree and the mainline kernel as we would need this kind of modification if we would do the scatter-gather DMA. Index: sgiwd93.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/drivers/scsi/sgiwd93.c,v retrieving revision 1.28 diff -u -r1.28 sgiwd93.c --- sgiwd93.c 2001/11/06 07:56:05 1.28 +++ sgiwd93.c 2001/12/10 20:06:01 @@ -115,42 +115,16 @@ =20 hdata->dma_dir =3D datainp; =20 - if(cmd->SCp.buffers_residual) { - struct scatterlist *slp =3D cmd->SCp.buffer; - int i, totlen =3D 0; - -#ifdef DEBUG_DMA - printk("SCLIST<"); -#endif - for(i =3D 0; i <=3D cmd->SCp.buffers_residual; i++) { -#ifdef DEBUG_DMA - printk("[%p,%d]", slp[i].address, slp[i].length); -#endif - fill_hpc_entries (&hcp, slp[i].address, slp[i].length); - totlen +=3D slp[i].length; - } -#ifdef DEBUG_DMA - printk(">tlen<%d>", totlen); -#endif - hdata->dma_bounce_len =3D totlen; /* a trick... */ - write_wd33c93_count(regs, totlen); - } else { - /* Non-scattered dma. */ -#ifdef DEBUG_DMA - printk("ONEBUF<%p,%d>", cmd->SCp.ptr, cmd->SCp.this_residual); -#endif - /* - * wd33c93 shouldn't pass us bogus dma_setups, but - * it does:-( The other wd33c93 drivers deal with - * it the same way (which isn't that obvious). - * IMHO a better fix would be, not to do these - * dma setups in the first place - */ - if (cmd->SCp.ptr =3D=3D NULL) - return 1; - fill_hpc_entries (&hcp, cmd->SCp.ptr,cmd->SCp.this_residual); - write_wd33c93_count(regs, cmd->SCp.this_residual); - } + /* + * wd33c93 shouldn't pass us bogus dma_setups, but + * it does:-( The other wd33c93 drivers deal with + * it the same way (which isn't that obvious). + * IMHO a better fix would be, not to do these + * dma setups in the first place + */ + if (cmd->SCp.ptr =3D=3D NULL) + return 1; + fill_hpc_entries (&hcp, cmd->SCp.ptr,cmd->SCp.this_residual); =20 /* To make sure, if we trip an HPC bug, that we transfer * every single byte, we tag on an extra zero length dma @@ -196,44 +170,6 @@ } hregs->ctrl =3D 0; =20 - /* See how far we got and update scatterlist state if necessary. */ - if(SCpnt->SCp.buffers_residual) { - struct scatterlist *slp =3D SCpnt->SCp.buffer; - int totlen, wd93_residual, transferred, i; - - /* Yep, we were doing the scatterlist thang. */ - totlen =3D hdata->dma_bounce_len; - wd93_residual =3D read_wd33c93_count(regp); - transferred =3D totlen - wd93_residual; - -#ifdef DEBUG_DMA - printk("tlen<%d>resid<%d>transf<%d> ", - totlen, wd93_residual, transferred); -#endif - - /* Avoid long winded partial-transfer search for common case. */ - if(transferred !=3D totlen) { - /* This is the nut case. */ -#ifdef DEBUG_DMA - printk("Jed was here..."); -#endif - for(i =3D 0; i <=3D SCpnt->SCp.buffers_residual; i++) { - if(slp[i].length >=3D transferred) - break; - transferred -=3D slp[i].length; - } - } else { - /* This is the common case. */ -#ifdef DEBUG_DMA - printk("did it all..."); -#endif - i =3D SCpnt->SCp.buffers_residual; - } - SCpnt->SCp.buffer =3D &slp[i]; - SCpnt->SCp.buffers_residual =3D SCpnt->SCp.buffers_residual - i; - SCpnt->SCp.ptr =3D (char *) slp[i].address; - SCpnt->SCp.this_residual =3D slp[i].length; - } #ifdef DEBUG_DMA printk("\n"); #endif Index: wd33c93.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/drivers/scsi/wd33c93.c,v retrieving revision 1.19 diff -u -r1.19 wd33c93.c --- wd33c93.c 2001/11/06 07:56:05 1.19 +++ wd33c93.c 2001/12/10 20:06:01 @@ -612,6 +612,7 @@ (is_dir_out(cmd))?DATA_OUT_DIR:DATA_IN_DIR)) write_wd33c93_count(regs, 0); /* guarantee a DATA_PHASE interr= upt */ else { + write_wd33c93_count(regs, cmd->SCp.this_residual); write_wd33c93(regs, WD_CONTROL, CTRL_IDI | CTRL_EDI | CTRL_DMA= ); hostdata->dma =3D D_DMA_RUNNING; } @@ -733,6 +734,7 @@ hostdata->dma_cnt++; #endif write_wd33c93(regs, WD_CONTROL, CTRL_IDI | CTRL_EDI | CTRL_DMA); + write_wd33c93_count(regs, cmd->SCp.this_residual); =20 if ((hostdata->level2 >=3D L2_DATA) || (hostdata->level2 =3D=3D L2_BASIC && cmd->SCp.phase =3D=3D 0)) { Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8FRYdUaz2rXW+gJcRAmVNAKCcO0G8PeOunfM7RaMNQAkytLfyLwCfVeK/ djg0UcMGNPP0j5KNt/BF5y0= =Pcy2 -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8-- From owner-linux-mips@oss.sgi.com Mon Dec 10 14:00:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBAM0nP17212 for linux-mips-outgoing; Mon, 10 Dec 2001 14:00:49 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBAM0go17207; Mon, 10 Dec 2001 14:00:43 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id MAA01710; Mon, 10 Dec 2001 12:56:13 -0800 (PST) mail_from (macro@ds2.pg.gda.pl) Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id VAA03969; Mon, 10 Dec 2001 21:24:55 +0100 (MET) Date: Mon, 10 Dec 2001 21:24:54 +0100 (MET) From: "Maciej W. Rozycki" Reply-To: "Maciej W. Rozycki" To: Ralf Baechle cc: Ben Elliston , "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: <20011210162826.D24680@dea.linux-mips.net> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, 10 Dec 2001, Ralf Baechle wrote: > Agreed but the basic idea is good. Also this solution is suitable for > crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on > properly installed libraries and headers might possibly of interest for > building standalone software. Hmm, I don't think config.guess is ever used for cross-compilation as the script's purpose is to guess the host and you need to specify one explicitly for a cross-compilation to happen. Anyway it's saner not to use build system properties to guess host system ones. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Mon Dec 10 16:35:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB0ZMX23406 for linux-mips-outgoing; Mon, 10 Dec 2001 16:35:22 -0800 Received: from hypatia.brisbane.redhat.com (lulu.redhat.com.au [202.83.74.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB0ZIo23402; Mon, 10 Dec 2001 16:35:18 -0800 Received: from localhost (bje@localhost) by hypatia.brisbane.redhat.com (8.11.6/8.11.0) with ESMTP id fBANYqq17561; Tue, 11 Dec 2001 09:34:52 +1000 Date: Tue, 11 Dec 2001 09:34:52 +1000 (EST) From: Ben Elliston X-X-Sender: To: Daniel Jacobowitz cc: "H . J . Lu" , Ralf Baechle , Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: <20011210092104.A29953@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > Of course, this needs some refinement. ;-) Perhaps we need to run > > through $(CC_FOR_BUILD) -E or somesuch; cpp is no good, as it won't > > know all of the magic '*MIPS*' #defines. > HJ's patch didn't compile anything; it ran code through > $(CC_FOR_BUILD) -E :) I must admit, I missed that. But I definitely noticed that it created temporary files, which are more trouble than they're worth. The number of people running ./configure as root is frightening. Ben From owner-linux-mips@oss.sgi.com Mon Dec 10 16:41:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB0fZ123727 for linux-mips-outgoing; Mon, 10 Dec 2001 16:41:35 -0800 Received: from hypatia.brisbane.redhat.com (lulu.redhat.com.au [202.83.74.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB0fUo23724; Mon, 10 Dec 2001 16:41:30 -0800 Received: from localhost (bje@localhost) by hypatia.brisbane.redhat.com (8.11.6/8.11.0) with ESMTP id fBANeoS17820; Tue, 11 Dec 2001 09:40:50 +1000 Date: Tue, 11 Dec 2001 09:40:50 +1000 (EST) From: Ben Elliston X-X-Sender: To: "Maciej W. Rozycki" cc: Ralf Baechle , "H . J . Lu" , Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on > > properly installed libraries and headers might possibly of interest for > > building standalone software. > Hmm, I don't think config.guess is ever used for cross-compilation as > the script's purpose is to guess the host and you need to specify one > explicitly for a cross-compilation to happen. Anyway it's saner not > to use build system properties to guess host system ones. You're close, but not quite correct. In a cross-compilation environment, the job of config.guess is to determine the type of the build system, which may be different to the host and will certainly be different to the target. Ben From owner-linux-mips@oss.sgi.com Mon Dec 10 17:04:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB14v524928 for linux-mips-outgoing; Mon, 10 Dec 2001 17:04:57 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB14po24924; Mon, 10 Dec 2001 17:04:51 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id BAA10583; Tue, 11 Dec 2001 01:04:33 +0100 (MET) Date: Tue, 11 Dec 2001 01:04:32 +0100 (MET) From: "Maciej W. Rozycki" To: Ben Elliston cc: Ralf Baechle , "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 11 Dec 2001, Ben Elliston wrote: > > Hmm, I don't think config.guess is ever used for cross-compilation as > > the script's purpose is to guess the host and you need to specify one > > explicitly for a cross-compilation to happen. Anyway it's saner not > > to use build system properties to guess host system ones. > > You're close, but not quite correct. In a cross-compilation environment, > the job of config.guess is to determine the type of the build system, It actually depends on the autoconf version -- historically it was backwards. Still, even if config.guess is used to determine the build system, the script need not care about the host, so there's no problem with the cross-compilation (apart from purity). > which may be different to the host and will certainly be different to the > target. Not necessarily, although unlikely, indeed. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Mon Dec 10 17:20:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB1KYF25882 for linux-mips-outgoing; Mon, 10 Dec 2001 17:20:34 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB1KUo25879; Mon, 10 Dec 2001 17:20:30 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id 381D5125C4; Mon, 10 Dec 2001 16:20:29 -0800 (PST) Date: Mon, 10 Dec 2001 16:20:28 -0800 From: "H . J . Lu" To: Ben Elliston Cc: Daniel Jacobowitz , Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011210162028.A10675@lucon.org> References: <20011210092104.A29953@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bje@redhat.com on Tue, Dec 11, 2001 at 09:34:52AM +1000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 11, 2001 at 09:34:52AM +1000, Ben Elliston wrote: > > > Of course, this needs some refinement. ;-) Perhaps we need to run > > > through $(CC_FOR_BUILD) -E or somesuch; cpp is no good, as it won't > > > know all of the magic '*MIPS*' #defines. > > > HJ's patch didn't compile anything; it ran code through > > $(CC_FOR_BUILD) -E :) > > I must admit, I missed that. But I definitely noticed that it created > temporary files, which are more trouble than they're worth. The number of > people running ./configure as root is frightening. I don't want to assume $(CC_FOR_BUILD) can take - as input. H.J. From owner-linux-mips@oss.sgi.com Mon Dec 10 17:23:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB1NPB26087 for linux-mips-outgoing; Mon, 10 Dec 2001 17:23:25 -0800 Received: from hypatia.brisbane.redhat.com (lulu.redhat.com.au [202.83.74.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB1NKo26060; Mon, 10 Dec 2001 17:23:21 -0800 Received: from scooby.brisbane.redhat.com (scooby.brisbane.redhat.com [172.16.5.228]) by hypatia.brisbane.redhat.com (8.11.6/8.11.0) with ESMTP id fBB0N6h18612; Tue, 11 Dec 2001 10:23:07 +1000 Received: by scooby.brisbane.redhat.com (Postfix, from userid 500) id 2228A1080F; Tue, 11 Dec 2001 11:23:06 +1100 (EST) From: Ben Elliston MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15381.20970.104442.533926@scooby.brisbane.redhat.com> Date: Tue, 11 Dec 2001 11:23:06 +1100 (EST) To: "H . J . Lu" Cc: Daniel Jacobowitz , Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: <20011210162028.A10675@lucon.org> References: <20011210092104.A29953@nevyn.them.org> <20011210162028.A10675@lucon.org> X-Mailer: VM 6.75 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-linux-mips@oss.sgi.com Precedence: bulk >>>>> "H" == H J Lu writes: H> I don't want to assume $(CC_FOR_BUILD) can take - as input. But you can assume that you're running on a MIPS Linux system. Ben From owner-linux-mips@oss.sgi.com Mon Dec 10 17:28:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB1SNm26427 for linux-mips-outgoing; Mon, 10 Dec 2001 17:28:23 -0800 Received: from ocean.lucon.org ([12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB1SKo26420; Mon, 10 Dec 2001 17:28:20 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id C9D71125C4; Mon, 10 Dec 2001 16:28:18 -0800 (PST) Date: Mon, 10 Dec 2001 16:28:18 -0800 From: "H . J . Lu" To: Ben Elliston Cc: Daniel Jacobowitz , Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011210162818.A10808@lucon.org> References: <20011210092104.A29953@nevyn.them.org> <20011210162028.A10675@lucon.org> <15381.20970.104442.533926@scooby.brisbane.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15381.20970.104442.533926@scooby.brisbane.redhat.com>; from bje@redhat.com on Tue, Dec 11, 2001 at 11:23:06AM +1100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 11, 2001 at 11:23:06AM +1100, Ben Elliston wrote: > >>>>> "H" == H J Lu writes: > > H> I don't want to assume $(CC_FOR_BUILD) can take - as input. > > But you can assume that you're running on a MIPS Linux system. > Why can't Linux/mips have another compiler? H.J. From owner-linux-mips@oss.sgi.com Mon Dec 10 18:55:45 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB2tj829394 for linux-mips-outgoing; Mon, 10 Dec 2001 18:55:45 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB2tZo29381 for ; Mon, 10 Dec 2001 18:55:35 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id A4EF27DD; Tue, 11 Dec 2001 02:55:24 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id DB46048FF; Tue, 11 Dec 2001 02:53:41 +0100 (CET) Date: Tue, 11 Dec 2001 02:53:41 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Cc: klaus@mgnet.de, agx@sigxcpu.org Subject: Re: [PATCH] sgiwd93.c fix for multiple disks Message-ID: <20011211015341.GA27203@paradigm.rfc822.org> References: <20011210200757.GA25722@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <20011210200757.GA25722@paradigm.rfc822.org> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 10, 2001 at 09:07:57PM +0100, Florian Lohoff wrote: > Hi, > the attached patch fixes part of the DMA problems we see with multiple > disks and the sgiwd93.c with DISCONNECTs. Klaus patch formerly just > disabled all DMA replacing it with PIO which is a major performance hit. >=20 > This patch simply deletes all the HPC Scatter/Gather stuff thus we will > see a couple more interrupts due to all segments beeing transferred > individually. The transfer itself still happens with the HPC DMA thus > the performance impact will not be that large. I am running a test right > now but it seems the error is gone. Ok - I am running the attached script right now which copies a kernel source tree from one disk to another disk in a loop. I ran this on the a 133Mhz R4600 Indy with 2 SCSI Disks on the same SCSI bus. Without the patch not a single cycle in this script made it through as on page in the binarys would be corrupted. Also a whole bunch of files of the source tree would be broken, mangled truncated - Whatever might happen. Nothing of this now happened while running the test for the last 5 hours. The machine is still up and running and kind of responsive. I am unsure if we should put this into CVS as it brings us correctness for the price of some performance penalty. #!/bin/sh TMP=3D`tempfile` MD5OUT=3D`tempfile` LOG=3D/home/flo/break/log SRC=3D/home/flo/break/ DST=3D/mnt/break/ [ ! -d $DST ] && mkdir $DST [ ! -d $DST ] && exit 1 while [ 1 ]; do =09 [ -d $DST/linux.bak ] && rm -rf $DST/linux.bak [ -d $DST/linux ] && mv $DST/linux $DST/linux.bak [ -d $DST/linux.bak.md5sum ] && rm -f $DST/linux.bak.md5sum [ -f $DST/linux.md5sum ] && mv $DST/linux.md5sum $DST/linux.bak.md5sum =09 rm -f $TMP $MD5OUT printf "Starting copy %s - " "`date +\"%y-%m-%d %H:%M:%S\"`" >$TMP (cd $SRC ; tar -cf - linux* ) | ( cd /$DST ; tar -xf - ; sync ) printf "Finished %s\n" "`date +\"%y-%m-%d %H:%M:%S\"`" >>$TMP printf "Checking md5sum %s - " "`date +\"%y-%m-%d %H:%M:%S\"`" >>$TMP md5sum -cv $DST/linux.md5sum >$MD5OUT 2>&1=20 totlines=3D`wc -l $MD5OUT | awk '{ print $1 }'` failedlines=3D`grep -v OK $MD5OUT | wc -l | awk '{ print $1 }'` printf "Finished %s\n" "`date +\"%y-%m-%d %H:%M:%S\"`" >>$TMP printf "%d files failed out of %d\n" $failedlines $totlines >>$TMP grep -v OK $MD5OUT >>$TMP cat $TMP >>$LOG done Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8FWclUaz2rXW+gJcRAkszAKCBKwTrO1JI3oYc8l3GAxDiGSc2NwCggsiY xHc2QLalsPRUkfbZbsMfPAs= =EYfW -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From owner-linux-mips@oss.sgi.com Mon Dec 10 20:58:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB4wV803205 for linux-mips-outgoing; Mon, 10 Dec 2001 20:58:31 -0800 Received: from gw-us4.philips.com (gw-us4.philips.com [63.114.235.90]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB4wNo03202 for ; Mon, 10 Dec 2001 20:58:23 -0800 Received: from smtpscan-us1.philips.com (localhost.philips.com [127.0.0.1]) by gw-us4.philips.com with ESMTP id VAA15368 for ; Mon, 10 Dec 2001 21:58:21 -0600 (CST) (envelope-from balaji.ramalingam@philips.com) From: balaji.ramalingam@philips.com Received: from smtpscan-us1.philips.com(167.81.233.25) by gw-us4.philips.com via mwrap (4.0a) id xma015364; Mon, 10 Dec 01 21:58:21 -0600 Received: from smtprelay-us1.philips.com (localhost [127.0.0.1]) by smtpscan-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id VAA07505 for ; Mon, 10 Dec 2001 21:58:20 -0600 (CST) Received: from arj001soh.diamond.philips.com (amsoh01.diamond.philips.com [161.88.79.212]) by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id VAA28446 for ; Mon, 10 Dec 2001 21:58:20 -0600 (CST) Subject: no kernel prompt To: linux-mips@oss.sgi.com Date: Mon, 10 Dec 2001 19:59:06 -0800 Message-ID: X-MIMETrack: Serialize by Router on arj001soh/H/SERVER/PHILIPS(Release 5.0.5 |September 22, 2000) at 10/12/2001 22:02:15 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello guys, I was able to sort out the console issue and know I think the kernel is able to open /dev/console and I 'm not getting that error message from the kernel saying unable to open console blau blau.. I also inserted some printk's in the init/main.c before and after the kernel executing /sbin/init. So I thing the kernel can execute the sbin/init. I replace the init fiel with a simple shell script which echo the "hello world" message. But still I cant see the hello message or kernel prompt on my screen apart from the below kernel messages. I'm using console=ttyS0 (com1). Can I use the same srial port (COM1 in my case) for both kernel debug messages as well as the console. Because my uart is fine. I also have the console, tty0, ttyS0 devices in the /dev in my ramdisk. I also have the /etc/fstab file which has the ramdisk entry and agetty in /etc/inittab. Still I dont get a kernel prompt. I'm running out of options. Is there a simple test which I can do to confirm that I dont have any issue with the console or with my ramdisk image? Please give me some tips and I would really appreciate it. regards, Balaji ########################################################################################## Detected 32MB of memory Loading MIPS32 MMU routines. CPU revision is: 00061200 Primary instruction cache 16kb, linesize 32 bytes (2 ways) Primary data cache 16kb, linesize 32 bytes (4 ways) Number of TLB entries 32. Linux version 2.4.3-MIPS-01.01 (ramaling@svlhp106.sv.sc.philips.com) (gcc version 3.0 2001042 2 (prerelease)) #1 Mon Dec 10 18:48:41 PST 2001 Determined physical RAM map: memory: 02000000 @ 00000000 (usable) Initial ramdisk at: 0x8010c000 ( 482280 bytes) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ram rw console=ttyS0 calculating viper_offset... 00001200(4608) CPU frequency in quickturn 0.46 MHz Memory: 30592k/32768k available (600k kernel code, 2176k reserved, 515k data, 36k init) Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) Checking for 'wait' instruction... available. POSIX conformance testing by UNIFIX Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 SCC2691/ProMIPS Serial Driver, version 0.01 ttyS00 at 0xb0800000 (irq = 1) block: queued sectors max/low 20272kB/6757kB, 64 slots per queue RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize RAMDISK: Compressed image found at block 0 Freeing initrd memory: 470k freed VFS: Mounted root (ext2 filesystem) . Freeing unused kernel memory: 36k freed ########################################################################################## From owner-linux-mips@oss.sgi.com Mon Dec 10 21:36:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB5abt03903 for linux-mips-outgoing; Mon, 10 Dec 2001 21:36:37 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB5aSo03900 for ; Mon, 10 Dec 2001 21:36:28 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Mon, 10 Dec 2001 23:36:21 -0500 Message-ID: <25369470B6F0D41194820002B328BDD2195AD9@ATLOPS> From: Marc Karasek To: "'balaji.ramalingam@philips.com '" , "'linux-mips@oss.sgi.com '" Subject: RE: no kernel prompt Date: Mon, 10 Dec 2001 23:36:20 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk I ran across something like this before. Whatever you are using for yourinit is it dynamically linked? If so try to statically link it. I was seeing something similar happen and it was because of a problem in the dynamic linking. It was failing to find the proper lib to continue, but could not dump any output to the terminal to tell me. It was a bear to find ... :-) -----Original Message----- From: balaji.ramalingam@philips.com To: linux-mips@oss.sgi.com Sent: 12/10/01 10:59 PM Subject: no kernel prompt Hello guys, I was able to sort out the console issue and know I think the kernel is able to open /dev/console and I 'm not getting that error message from the kernel saying unable to open console blau blau.. I also inserted some printk's in the init/main.c before and after the kernel executing /sbin/init. So I thing the kernel can execute the sbin/init. I replace the init fiel with a simple shell script which echo the "hello world" message. But still I cant see the hello message or kernel prompt on my screen apart from the below kernel messages. I'm using console=ttyS0 (com1). Can I use the same srial port (COM1 in my case) for both kernel debug messages as well as the console. Because my uart is fine. I also have the console, tty0, ttyS0 devices in the /dev in my ramdisk. I also have the /etc/fstab file which has the ramdisk entry and agetty in /etc/inittab. Still I dont get a kernel prompt. I'm running out of options. Is there a simple test which I can do to confirm that I dont have any issue with the console or with my ramdisk image? Please give me some tips and I would really appreciate it. regards, Balaji ######################################################################## ################## Detected 32MB of memory Loading MIPS32 MMU routines. CPU revision is: 00061200 Primary instruction cache 16kb, linesize 32 bytes (2 ways) Primary data cache 16kb, linesize 32 bytes (4 ways) Number of TLB entries 32. Linux version 2.4.3-MIPS-01.01 (ramaling@svlhp106.sv.sc.philips.com) (gcc version 3.0 2001042 2 (prerelease)) #1 Mon Dec 10 18:48:41 PST 2001 Determined physical RAM map: memory: 02000000 @ 00000000 (usable) Initial ramdisk at: 0x8010c000 ( 482280 bytes) On node 0 totalpages: 8192 zone(0): 8192 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ram rw console=ttyS0 calculating viper_offset... 00001200(4608) CPU frequency in quickturn 0.46 MHz Memory: 30592k/32768k available (600k kernel code, 2176k reserved, 515k data, 36k init) Dentry-cache hash table entries: 4096 (order: 3, 32768 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 2048 (order: 2, 16384 bytes) Checking for 'wait' instruction... available. POSIX conformance testing by UNIFIX Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 SCC2691/ProMIPS Serial Driver, version 0.01 ttyS00 at 0xb0800000 (irq = 1) block: queued sectors max/low 20272kB/6757kB, 64 slots per queue RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize RAMDISK: Compressed image found at block 0 Freeing initrd memory: 470k freed VFS: Mounted root (ext2 filesystem) . Freeing unused kernel memory: 36k freed ######################################################################## ################## From owner-linux-mips@oss.sgi.com Tue Dec 11 01:58:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBB9w6F11139 for linux-mips-outgoing; Tue, 11 Dec 2001 01:58:06 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBB9w2o11127 for ; Tue, 11 Dec 2001 01:58:02 -0800 Received: from agx by gandalf.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16Dijg-0001VG-00; Tue, 11 Dec 2001 09:58:00 +0100 Date: Tue, 11 Dec 2001 09:58:00 +0100 From: Guido Guenther To: linux-mips@oss.sgi.com Cc: flo@rfc822.org, klaus@mgnet.de Subject: Re: [PATCH] sgiwd93.c fix for multiple disks Message-ID: <20011211095759.A5689@gandalf.physik.uni-konstanz.de> Mail-Followup-To: linux-mips@oss.sgi.com, flo@rfc822.org, klaus@mgnet.de References: <20011210200757.GA25722@paradigm.rfc822.org> <20011211015341.GA27203@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011211015341.GA27203@paradigm.rfc822.org>; from flo@rfc822.org on Tue, Dec 11, 2001 at 02:53:41AM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 11, 2001 at 02:53:41AM +0100, Florian Lohoff wrote: > On Mon, Dec 10, 2001 at 09:07:57PM +0100, Florian Lohoff wrote: > > Hi, > > the attached patch fixes part of the DMA problems we see with multiple > > disks and the sgiwd93.c with DISCONNECTs. Klaus patch formerly just > > disabled all DMA replacing it with PIO which is a major performance hit. > > > > This patch simply deletes all the HPC Scatter/Gather stuff thus we will > > see a couple more interrupts due to all segments beeing transferred > > individually. The transfer itself still happens with the HPC DMA thus > > the performance impact will not be that large. I am running a test right > > now but it seems the error is gone. > > Ok - I am running the attached script right now which copies a kernel > source tree from one disk to another disk in a loop. I ran this on the a > 133Mhz R4600 Indy with 2 SCSI Disks on the same SCSI bus. Without the > patch not a single cycle in this script made it through as on page in > the binarys would be corrupted. Also a whole bunch of files of the source > tree would be broken, mangled truncated - Whatever might happen. Nothing > of this now happened while running the test for the last 5 hours. The > machine is still up and running and kind of responsive. > > I am unsure if we should put this into CVS as it brings us correctness > for the price of some performance penalty. Can you very roughly estimate the performance hit - let's say the slow down when copying the whole kernel-tree once? -- Guido From owner-linux-mips@oss.sgi.com Tue Dec 11 02:37:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBBAbOS13068 for linux-mips-outgoing; Tue, 11 Dec 2001 02:37:24 -0800 Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBBAbFo13065 for ; Tue, 11 Dec 2001 02:37:15 -0800 Received: from gate.mgnet.de (pD957B530.dip.t-dialin.net [217.87.181.48]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id KAA17975 for ; Tue, 11 Dec 2001 10:37:11 +0100 (MET) Received: (qmail 25211 invoked from network); 11 Dec 2001 09:36:01 -0000 Received: from spock.mgnet.de (192.168.1.4) by gate.mgnet.de with SMTP; 11 Dec 2001 09:36:01 -0000 Date: Tue, 11 Dec 2001 10:37:11 +0100 (CET) From: Klaus Naumann To: Guido Guenther cc: Linux/MIPS list , Florian Lohoff , klaus@mgnet.de Subject: Re: [PATCH] sgiwd93.c fix for multiple disks In-Reply-To: <20011211095759.A5689@gandalf.physik.uni-konstanz.de> Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811071-388443371-1008063431=:2714" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. ---1463811071-388443371-1008063431=:2714 Content-Type: TEXT/PLAIN; charset=US-ASCII > > I am unsure if we should put this into CVS as it brings us correctness > > for the price of some performance penalty. > Can you very roughly estimate the performance hit - let's say the slow > down when copying the whole kernel-tree once? > -- Guido Hi all, I've done some bonnie++ tests and everything looks good IMHO. See attachments (new_speed is with lolo's patch and old_speed without). I vote for commit. Cool work ! Cya, Klaus -- Full Name : Klaus Naumann | (http://www.mgnet.de/) (Germany) Nickname : Spock | Org.: Mad Guys Network Phone / FAX : ++49/177/7862964 | E-Mail: (spock@mgnet.de) PGP Key : www.mgnet.de/keys/key_spock.txt ---1463811071-388443371-1008063431=:2714 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=old_speed Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=old_speed VmVyc2lvbiAgMS4wMiAgICAgICAtLS0tLS1TZXF1ZW50aWFsIE91dHB1dC0t LS0tLSAtLVNlcXVlbnRpYWwgSW5wdXQtIC0tUmFuZG9tLQ0KICAgICAgICAg ICAgICAgICAgICAtUGVyIENoci0gLS1CbG9jay0tIC1SZXdyaXRlLSAtUGVy IENoci0gLS1CbG9jay0tIC0tU2Vla3MtLQ0KTWFjaGluZSAgICAgICAgU2l6 ZSBLL3NlYyAlQ1AgSy9zZWMgJUNQIEsvc2VjICVDUCBLL3NlYyAlQ1AgSy9z ZWMgJUNQICAvc2VjICVDUA0KaXZ5ICAgICAgICAgICAgMzY4TSAgMTQxNSAg OTUgIDI0MzcgICA3ICAxMDAzICAgNCAgMTIwOCAgODEgIDIyOTggICA2ICA5 MC43ICAgMg0KICAgICAgICAgICAgICAgICAgICAtLS0tLS1TZXF1ZW50aWFs IENyZWF0ZS0tLS0tLSAtLS0tLS0tLVJhbmRvbSBDcmVhdGUtLS0tLS0tLQ0K ICAgICAgICAgICAgICAgICAgICAtQ3JlYXRlLS0gLS1SZWFkLS0tIC1EZWxl dGUtLSAtQ3JlYXRlLS0gLS1SZWFkLS0tIC1EZWxldGUtLQ0KICAgICAgICAg ICAgICBmaWxlcyAgL3NlYyAlQ1AgIC9zZWMgJUNQICAvc2VjICVDUCAgL3Nl YyAlQ1AgIC9zZWMgJUNQICAvc2VjICVDUA0KICAgICAgICAgICAgICAgICAx NiAgIDIzNSAgOTkgKysrKysgKysrIDEzODcxICA5OCAgIDI0MiAgOTkgKysr KysgKysrICAgODk4ICA5OQ0KaXZ5LDM2OE0sMTQxNSw5NSwyNDM3LDcsMTAw Myw0LDEyMDgsODEsMjI5OCw2LDkwLjcsMiwxNiwyMzUsOTksKysrKyssKysr LDEzODcxLDk4LDI0Miw5OSwrKysrKywrKyssODk4LDk5DQo= ---1463811071-388443371-1008063431=:2714 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=new_speed Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=new_speed VmVyc2lvbiAgMS4wMiAgICAgICAtLS0tLS1TZXF1ZW50aWFsIE91dHB1dC0t LS0tLSAtLVNlcXVlbnRpYWwgSW5wdXQtIC0tUmFuZG9tLQ0KICAgICAgICAg ICAgICAgICAgICAtUGVyIENoci0gLS1CbG9jay0tIC1SZXdyaXRlLSAtUGVy IENoci0gLS1CbG9jay0tIC0tU2Vla3MtLQ0KTWFjaGluZSAgICAgICAgU2l6 ZSBLL3NlYyAlQ1AgSy9zZWMgJUNQIEsvc2VjICVDUCBLL3NlYyAlQ1AgSy9z ZWMgJUNQICAvc2VjICVDUA0KaXZ5ICAgICAgICAgICAgMzY4TSAgMTM0OCAg OTEgIDI0NjggICA3ICAgODM2ICAgMyAgMTI5NyAgODcgIDIxNzggICA1ICA5 MS4wICAgMg0KICAgICAgICAgICAgICAgICAgICAtLS0tLS1TZXF1ZW50aWFs IENyZWF0ZS0tLS0tLSAtLS0tLS0tLVJhbmRvbSBDcmVhdGUtLS0tLS0tLQ0K ICAgICAgICAgICAgICAgICAgICAtQ3JlYXRlLS0gLS1SZWFkLS0tIC1EZWxl dGUtLSAtQ3JlYXRlLS0gLS1SZWFkLS0tIC1EZWxldGUtLQ0KICAgICAgICAg ICAgICBmaWxlcyAgL3NlYyAlQ1AgIC9zZWMgJUNQICAvc2VjICVDUCAgL3Nl YyAlQ1AgIC9zZWMgJUNQICAvc2VjICVDUA0KICAgICAgICAgICAgICAgICAx NiAgIDIyMCAgOTkgKysrKysgKysrIDEzNDQwICA5OCAgIDIzMiAgOTkgKysr KysgKysrICAgNzgwICA5OQ0KaXZ5LDM2OE0sMTM0OCw5MSwyNDY4LDcsODM2 LDMsMTI5Nyw4NywyMTc4LDUsOTEuMCwyLDE2LDIyMCw5OSwrKysrKywrKyss MTM0NDAsOTgsMjMyLDk5LCsrKysrLCsrKyw3ODAsOTkNCg== ---1463811071-388443371-1008063431=:2714-- From owner-linux-mips@oss.sgi.com Tue Dec 11 02:56:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBBAuWV13746 for linux-mips-outgoing; Tue, 11 Dec 2001 02:56:32 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBBAuOo13743 for ; Tue, 11 Dec 2001 02:56:24 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 96F5B83F; Tue, 11 Dec 2001 10:56:13 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A4F2748FF; Tue, 11 Dec 2001 10:55:48 +0100 (CET) Date: Tue, 11 Dec 2001 10:55:48 +0100 From: Florian Lohoff To: Klaus Naumann Cc: Guido Guenther , Linux/MIPS list , klaus@mgnet.de Subject: Re: [PATCH] sgiwd93.c fix for multiple disks Message-ID: <20011211095548.GB399@paradigm.rfc822.org> References: <20011211095759.A5689@gandalf.physik.uni-konstanz.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 11, 2001 at 10:37:11AM +0100, Klaus Naumann wrote: > Hi all, >=20 > I've done some bonnie++ tests and everything looks good IMHO. > See attachments (new_speed is with lolo's patch and old_speed without). > I vote for commit. Cool work ! It looks like this is statistical distortion as some numbers went up. It looks at least that there is no real difference ... > Version 1.02 ------Sequential Output------ --Sequential Input- --R= andom- > -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --S= eeks-- > Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /s= ec %CP > ivy 368M 1415 95 2437 7 1003 4 1208 81 2298 6 90= .7 2 > ------Sequential Create------ --------Random Create--= ------ > -Create-- --Read--- -Delete-- -Create-- --Read--- -De= lete-- > files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /s= ec %CP > 16 235 99 +++++ +++ 13871 98 242 99 +++++ +++ 8= 98 99 > ivy,368M,1415,95,2437,7,1003,4,1208,81,2298,6,90.7,2,16,235,99,+++++,+++,= 13871,98,242,99,+++++,+++,898,99 > Version 1.02 ------Sequential Output------ --Sequential Input- --R= andom- > -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --S= eeks-- > Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /s= ec %CP > ivy 368M 1348 91 2468 7 836 3 1297 87 2178 5 91= .0 2 > ------Sequential Create------ --------Random Create--= ------ > -Create-- --Read--- -Delete-- -Create-- --Read--- -De= lete-- > files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /s= ec %CP > 16 220 99 +++++ +++ 13440 98 232 99 +++++ +++ 7= 80 99 > ivy,368M,1348,91,2468,7,836,3,1297,87,2178,5,91.0,2,16,220,99,+++++,+++,1= 3440,98,232,99,+++++,+++,780,99 I would commit that too with some additional comments that the HPC is capable of doing scatter-gather but this does not mix with the wd33 framwork which has no support for that. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8FdgkUaz2rXW+gJcRAlWpAKC/kwHl1XGkzBWHzVMhp2cSH2ALGgCfZwRl J0LG1JCgpbEQmWa+aO2txGo= =tUtw -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl-- From owner-linux-mips@oss.sgi.com Tue Dec 11 03:06:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBBB6Y914074 for linux-mips-outgoing; Tue, 11 Dec 2001 03:06:34 -0800 Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBBB6Uo14068 for ; Tue, 11 Dec 2001 03:06:31 -0800 Received: from gate.mgnet.de (pD957B530.dip.t-dialin.net [217.87.181.48]) by post.webmailer.de (8.9.3/8.8.7) with SMTP id LAA29161 for ; Tue, 11 Dec 2001 11:02:06 +0100 (MET) Received: (qmail 25285 invoked from network); 11 Dec 2001 10:05:12 -0000 Received: from spock.mgnet.de (192.168.1.4) by gate.mgnet.de with SMTP; 11 Dec 2001 10:05:12 -0000 Date: Tue, 11 Dec 2001 11:06:22 +0100 (CET) From: Klaus Naumann To: Florian Lohoff cc: Guido Guenther , Linux/MIPS list , klaus@mgnet.de Subject: Re: [PATCH] sgiwd93.c fix for multiple disks In-Reply-To: <20011211095548.GB399@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 11 Dec 2001, Florian Lohoff wrote: > It looks like this is statistical distortion as some numbers went up. > It looks at least that there is no real difference ... Yeah it looks the same to me (BTW, before someone asks - the machine was bootet freshly before each test ;) ) > I would commit that too with some additional comments that the HPC > is capable of doing scatter-gather but this does not mix with the wd33 > framwork which has no support for that. While you're at it could you also change the wrong comment in wd33c93 stating that the first interrupt after DMA init is always the DMA complete int ? Also killing the Amiga reference might be good as more drivers depend on this framework - not only amiga (i.e. ppc-something). Cya, Klaus -- Full Name : Klaus Naumann | (http://www.mgnet.de/) (Germany) Nickname : Spock | Org.: Mad Guys Network Phone / FAX : ++49/177/7862964 | E-Mail: (spock@mgnet.de) PGP Key : www.mgnet.de/keys/key_spock.txt From owner-linux-mips@oss.sgi.com Tue Dec 11 08:39:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBBGdgT29394 for linux-mips-outgoing; Tue, 11 Dec 2001 08:39:42 -0800 Received: from ux3.sp.cs.cmu.edu (UX3.SP.CS.CMU.EDU [128.2.198.103]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBBGdVo29390 for ; Tue, 11 Dec 2001 08:39:31 -0800 Received: from GS256.SP.CS.CMU.EDU by ux3.sp.cs.cmu.edu id aa07164; 11 Dec 2001 10:39 EST Subject: RE: no kernel prompt From: Justin Carlson To: Marc Karasek Cc: linux-mips@oss.sgi.com In-Reply-To: <25369470B6F0D41194820002B328BDD2195AD9@ATLOPS> References: <25369470B6F0D41194820002B328BDD2195AD9@ATLOPS> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-oVNvjeFXAym9xp/m5Ksq" X-Mailer: Evolution/0.99.2 (Preview Release) Date: 11 Dec 2001 10:39:02 -0500 Message-Id: <1008085142.1022.21.camel@gs256.sp.cs.cmu.edu> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --=-oVNvjeFXAym9xp/m5Ksq Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2001-12-10 at 23:36, Marc Karasek wrote: > I ran across something like this before. Whatever you are using for > yourinit is it dynamically linked? If so try to statically link it. I w= as > seeing something similar happen and it was because of a problem in the > dynamic linking. It was failing to find the proper lib to continue, but > could not dump any output to the terminal to tell me. It was a bear to f= ind > ... :-)=20 >=20 > -----Original Message----- > From: balaji.ramalingam@philips.com > To: linux-mips@oss.sgi.com > Sent: 12/10/01 10:59 PM > Subject: no kernel prompt >=20 >=20 >=20 > Hello guys, >=20 > I was able to sort out the console issue and know I think the kernel is > able to open /dev/console and I 'm not getting that error message from > the kernel saying > unable to open console blau blau.. >=20 > I also inserted some printk's in the init/main.c before and after the > kernel executing /sbin/init. > So I thing the kernel can execute the sbin/init. I replace the init fiel > with a simple > shell script which echo the "hello world" message. >=20 I'm I reading this right, in that you've got something like this: ... printk("Going to exec init\n"); execve("/sbin/init"); printk("After exec\n"); ... And you're seeing both printk's come out? Or are you seeing just the=20 first one? If you're seeing both, then the exec is failing. But=20 you should see another message about failing to exec init if that was the case. Also, something I've been bitten by; if you replace /sbin/init with something that outputs and exits, the kernel will panic when init exits, and so your output can be lost, depending on the driver=20 used for the output. =20 Try something like this: #include #include int main() { char msg[] =3D "Hello, world!\n"; write(1, msg, sizeof(msg)); while(1) {} } this avoids having to load all of a shell interpreter just to do some=20 output. Link the binary statically (with -static in gcc) and use it as /sbin/init. =20 If you still don't see output, you'll have to start tracing your way into the exec path to see where things are failing. Look at do_execve() in fs/exec.c, and fs/binfmt_elf.c (assuming your=20 init is in elf format). > Is there a simple test which I can do to confirm that I dont have any > issue with > the console or with my ramdisk image? The fact that you are successfully mounting a root filesystem seems to indicate that your ramdisk is OK (at least, it's a valid filesystem).=20 There's nothing that's come out of the console yet, though. -Justin --=-oVNvjeFXAym9xp/m5Ksq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8FiiW47Lg4cGgb74RAurOAJ9rom11qWh3G7B66GxUUQ0eBFLfcgCgpZoZ zwvFBJmgi8i0jcEBh/DWIn8= =fr4F -----END PGP SIGNATURE----- --=-oVNvjeFXAym9xp/m5Ksq-- From owner-linux-mips@oss.sgi.com Tue Dec 11 09:25:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBBHPQO06643 for linux-mips-outgoing; Tue, 11 Dec 2001 09:25:26 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBBHP3o06242 for ; Tue, 11 Dec 2001 09:25:04 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBBDU8W30810; Tue, 11 Dec 2001 11:30:08 -0200 Date: Tue, 11 Dec 2001 11:30:08 -0200 From: Ralf Baechle To: Ben Elliston Cc: "Maciej W. Rozycki" , "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011211113008.A30693@dea.linux-mips.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bje@redhat.com on Tue, Dec 11, 2001 at 09:40:50AM +1000 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 11, 2001 at 09:40:50AM +1000, Ben Elliston wrote: > > > crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on > > > properly installed libraries and headers might possibly of interest for > > > building standalone software. > > > Hmm, I don't think config.guess is ever used for cross-compilation as > > the script's purpose is to guess the host and you need to specify one > > explicitly for a cross-compilation to happen. Anyway it's saner not > > to use build system properties to guess host system ones. > > You're close, but not quite correct. In a cross-compilation environment, > the job of config.guess is to determine the type of the build system, > which may be different to the host and will certainly be different to the > target. In case of Linux/MIPS it could guess wether it's a little endian or big endian configuration and emit mips-unknown-gnu-linux or mipsel-unknown-gnu-linux that is taking away the burden of the user knowing about the right endianess for his target - specifying mips-linux as target should then be sufficient. Does that sound sane or would overriding the users explicitly give targetname (or even hostname for a native build) be considered a bad thing? Ralf From owner-linux-mips@oss.sgi.com Tue Dec 11 16:02:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBC02Vj26272 for linux-mips-outgoing; Tue, 11 Dec 2001 16:02:31 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBC017o26230 for ; Tue, 11 Dec 2001 16:01:08 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBBN10A23115; Tue, 11 Dec 2001 21:01:00 -0200 Date: Tue, 11 Dec 2001 21:01:00 -0200 From: Ralf Baechle To: linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: cpuinfo Message-ID: <20011211210100.A21552@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ok, the damage of no longer having /proc/cpuinfo was a bit too large it seems so here is a patch to retrofit it. Patch against 2.5 but should work for 2.4 also. Ralf Index: arch/mips/arc/identify.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/arc/identify.c,v retrieving revision 1.5 diff -u -r1.5 identify.c --- arch/mips/arc/identify.c 2001/03/18 23:29:04 1.5 +++ arch/mips/arc/identify.c 2001/12/11 22:46:55 @@ -17,17 +17,35 @@ #include struct smatch { - char *name; + char *arcname; + char *liname; int group; int type; int flags; }; static struct smatch mach_table[] = { - {"SGI-IP22", MACH_GROUP_SGI, MACH_SGI_INDY, PROM_FLAG_ARCS}, - {"Microsoft-Jazz", MACH_GROUP_JAZZ, MACH_MIPS_MAGNUM_4000, 0}, - {"PICA-61", MACH_GROUP_JAZZ, MACH_ACER_PICA_61, 0}, - {"RM200PCI", MACH_GROUP_SNI_RM, MACH_SNI_RM200_PCI, 0} + { "SGI-IP22", + "SGI Indy", + MACH_GROUP_SGI, + MACH_SGI_INDY, + PROM_FLAG_ARCS + }, { "Microsoft-Jazz", + "Jazz MIPS_Magnum_4000", + MACH_GROUP_JAZZ, + MACH_MIPS_MAGNUM_4000, + 0 + }, { "PICA-61", + "Jazz Acer_PICA_61", + "MACH_GROUP_JAZZ", + MACH_ACER_PICA_61, + 0 + }, { "RM200PCI", + "SNI RM200_PCI", + MACH_GROUP_SNI_RM, + MACH_SNI_RM200_PCI, + 0 + } }; int prom_flags; @@ -37,7 +55,7 @@ int i; for (i = 0; i < (sizeof(mach_table) / sizeof (mach_table[0])); i++) { - if (!strcmp(s, mach_table[i].name)) + if (!strcmp(s, mach_table[i].arcname)) return &mach_table[i]; } prom_printf("\nYeee, could not determine architecture type <%s>\n", @@ -48,6 +66,13 @@ return NULL; } +char *system_type; + +const char *get_system_type(void) +{ + return system_type; +} + void __init prom_identify_arch(void) { pcomponent *p; @@ -60,6 +85,7 @@ p = prom_getchild(PROM_NULL_COMPONENT); printk("ARCH: %s\n", p->iname); mach = string_to_mach(p->iname); + system_type = mach->liname; mips_machgroup = mach->group; mips_machtype = mach->type; Index: arch/mips/au1000/pb1000/init.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/au1000/pb1000/init.c,v retrieving revision 1.4 diff -u -r1.4 init.c --- arch/mips/au1000/pb1000/init.c 2001/08/28 15:58:03 1.4 +++ arch/mips/au1000/pb1000/init.c 2001/12/11 22:46:55 @@ -44,6 +44,11 @@ extern void __init prom_init_cmdline(void); extern char *prom_getenv(char *envname); +const char *get_system_type(void) +{ + return "Alchemy PB1000"; +} + int __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { unsigned char *memsize_str; Index: arch/mips/baget/prom/init.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/baget/prom/init.c,v retrieving revision 1.7 diff -u -r1.7 init.c --- arch/mips/baget/prom/init.c 2001/01/28 03:44:51 1.7 +++ arch/mips/baget/prom/init.c 2001/12/11 22:46:55 @@ -9,6 +9,12 @@ char arcs_cmdline[COMMAND_LINE_SIZE]; +const char *get_system_type(void) +{ + /* Should probably return one of "BT23-201", "BT23-202" */ + return "Baget"; +} + void __init prom_init(unsigned int mem_upper) { mem_upper = PHYSADDR(mem_upper); Index: arch/mips/ddb5074/prom.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/ddb5074/prom.c,v retrieving revision 1.6 diff -u -r1.6 prom.c --- arch/mips/ddb5074/prom.c 2000/12/13 19:43:03 1.6 +++ arch/mips/ddb5074/prom.c 2001/12/11 22:46:55 @@ -15,6 +15,11 @@ char arcs_cmdline[COMMAND_LINE_SIZE]; +const char *get_system_type(void) +{ + return "NEC DDB Vrc-5074"; +} + void __init prom_init(const char *s) { int i = 0; Index: arch/mips/ddb5xxx/common/prom.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/ddb5xxx/common/prom.c,v retrieving revision 1.2 diff -u -r1.2 prom.c --- arch/mips/ddb5xxx/common/prom.c 2001/09/26 01:37:34 1.2 +++ arch/mips/ddb5xxx/common/prom.c 2001/12/11 22:46:55 @@ -25,6 +25,17 @@ char arcs_cmdline[COMMAND_LINE_SIZE]; +const char *get_system_type(void) +{ +#if defined(CONFIG_DDB5074) + return "NEC DDB Vrc-5074"; +#elif defined(CONFIG_DDB5476) + return "NEC DDB Vrc-5476"; +#elif defined(CONFIG_DDB5477) + return "NEC DDB Vrc-5477"; +#endif +} + /* [jsun@junsun.net] PMON passes arguments in C main() style */ void __init prom_init(int argc, const char **arg) { Index: arch/mips/dec/prom/identify.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/dec/prom/identify.c,v retrieving revision 1.4 diff -u -r1.4 identify.c --- arch/mips/dec/prom/identify.c 2001/09/06 13:12:01 1.4 +++ arch/mips/dec/prom/identify.c 2001/12/11 22:46:55 @@ -19,6 +19,26 @@ extern unsigned long mips_machgroup; extern unsigned long mips_machtype; +extern unsigned long mips_machtype; +const char *get_system_type(void) +{ + static char system[32]; + int called = 0; + const char *dec_system_strings[] = { "unknown", "DECstation 2100/3100", + "DECstation 5100", "DECstation 5000/200", "DECstation 5000/1xx", + "Personal DECstation 5000/xx", "DECstation 5000/2x0", + "DECstation 5400", "DECstation 5500", "DECstation 5800" + }; + + if (called == 0) { + called = 1; + strcpy(system, "Digital "); + strcat(system, dec_system_strings[mips_machtype]); + } + + return system; +} + void __init prom_identify_arch (unsigned int magic) { unsigned char dec_cpunum, dec_firmrev, dec_etc; Index: arch/mips/galileo-boards/ev64120/setup.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/galileo-boards/ev64120/setup.c,v retrieving revision 1.8 diff -u -r1.8 setup.c --- arch/mips/galileo-boards/ev64120/setup.c 2001/11/25 09:25:53 1.8 +++ arch/mips/galileo-boards/ev64120/setup.c 2001/12/11 22:46:55 @@ -149,22 +149,25 @@ } -/******************************************************************** - *SetUpBootInfo - +const char *get_system_type(void) +{ + return "Galileo EV64120A"; +} + +/* + * SetUpBootInfo - * - *This function is called at very first stages of kernel startup. - *It specifies for the kernel the evaluation board that the linux - *is running on. Then it saves the eprom parameters that holds the - *command line, memory size etc... + * This function is called at very first stages of kernel startup. + * It specifies for the kernel the evaluation board that the linux + * is running on. Then it saves the eprom parameters that holds the + * command line, memory size etc... * - *Inputs : - *argc - nothing - *argv - holds a pointer to the eprom parameters - *envp - nothing - * - *Outpus : - * - *********************************************************************/ + * Inputs : + * argc - nothing + * argv - holds a pointer to the eprom parameters + * envp - nothing + */ + void SetUpBootInfo(int argc, char **argv, char **envp) { mips_machgroup = MACH_GROUP_GALILEO; Index: arch/mips/galileo-boards/ev96100/init.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/galileo-boards/ev96100/init.c,v retrieving revision 1.3 diff -u -r1.3 init.c --- arch/mips/galileo-boards/ev96100/init.c 2001/08/29 00:26:15 1.3 +++ arch/mips/galileo-boards/ev96100/init.c 2001/12/11 22:46:55 @@ -151,6 +151,10 @@ return 0; } +const char *get_system_type(void) +{ + return "Galileo EV96100"; +} void __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { Index: arch/mips/gt64120/momenco_ocelot/prom.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/gt64120/momenco_ocelot/prom.c,v retrieving revision 1.3 diff -u -r1.3 prom.c --- arch/mips/gt64120/momenco_ocelot/prom.c 2001/06/14 21:47:15 1.3 +++ arch/mips/gt64120/momenco_ocelot/prom.c 2001/12/11 22:46:55 @@ -34,6 +34,11 @@ char arcs_cmdline[COMMAND_LINE_SIZE]; +const char *get_system_type(void) +{ + return "Momentum Ocelot"; +} + /* [jsun@junsun.net] PMON passes arguments in C main() style */ void __init prom_init(int argc, const char **arg) { Index: arch/mips/hp-lj/setup.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/hp-lj/setup.c,v retrieving revision 1.2 diff -u -r1.2 setup.c --- arch/mips/hp-lj/setup.c 2001/11/27 15:29:00 1.2 +++ arch/mips/hp-lj/setup.c 2001/12/11 22:46:55 @@ -26,6 +26,10 @@ int remote_debug = 0; #endif +const char *get_system_type(void) +{ + return "HP LaserJet"; /* But which exactly? */ +} static void (*timer_interrupt_service)(int irq, void *dev_id, struct pt_regs * regs) = NULL; Index: arch/mips/ite-boards/ivr/init.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/ite-boards/ivr/init.c,v retrieving revision 1.1 diff -u -r1.1 init.c --- arch/mips/ite-boards/ivr/init.c 2001/03/16 12:34:03 1.1 +++ arch/mips/ite-boards/ivr/init.c 2001/12/11 22:46:55 @@ -52,6 +52,10 @@ #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) #define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK) +const char *get_system_type(void) +{ + return "Globespan IVR"; +} int __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { Index: arch/mips/ite-boards/qed-4n-s01b/init.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/ite-boards/qed-4n-s01b/init.c,v retrieving revision 1.2 diff -u -r1.2 init.c --- arch/mips/ite-boards/qed-4n-s01b/init.c 2001/03/16 12:44:20 1.2 +++ arch/mips/ite-boards/qed-4n-s01b/init.c 2001/12/11 22:46:55 @@ -52,6 +52,10 @@ #define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT) #define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK) +const char *get_system_type(void) +{ + return "ITE QED-4N-S01B"; +} int __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { Index: arch/mips/jmr3927/rbhma3100/init.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/jmr3927/rbhma3100/init.c,v retrieving revision 1.1 diff -u -r1.1 init.c --- arch/mips/jmr3927/rbhma3100/init.c 2001/11/26 12:01:09 1.1 +++ arch/mips/jmr3927/rbhma3100/init.c 2001/12/11 22:46:55 @@ -47,6 +47,15 @@ extern char *prom_getenv(char *envname); unsigned long mips_nofpu = 0; +const char *get_system_type(void) +{ + return "Toshiba" +#ifdef CONFIG_TOSHIBA_JMR3927 + "JMR_TX3927" +#endif + ; +} + extern void puts(unsigned char *cp); int __init prom_init(int argc, char **argv, char **envp, int *prom_vec) { Index: arch/mips/kernel/proc.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/kernel/proc.c,v retrieving revision 1.29 diff -u -r1.29 proc.c --- arch/mips/kernel/proc.c 2001/12/07 19:28:43 1.29 +++ arch/mips/kernel/proc.c 2001/12/11 22:46:55 @@ -35,6 +35,12 @@ return 0; #endif + /* + * For the first processor also print the system type + */ + if (n == 0) + seq_printf(m, "system type\t\t: %s\n", get_system_type()); + seq_printf(m, "processor\t\t: %ld\n", n); sprintf(fmt, "cpu model\t\t: %%s V%%d.%%d%s\n", (mips_cpu.options & MIPS_CPU_FPU) ? " FPU V%d.%d" : ""); Index: arch/mips/mips-boards/atlas/atlas_setup.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/mips-boards/atlas/atlas_setup.c,v retrieving revision 1.7 diff -u -r1.7 atlas_setup.c --- arch/mips/mips-boards/atlas/atlas_setup.c 2001/03/15 23:48:54 1.7 +++ arch/mips/mips-boards/atlas/atlas_setup.c 2001/12/11 22:46:55 @@ -47,6 +47,11 @@ extern void mips_reboot_setup(void); +const char *get_system_type(void) +{ + return "MIPS Atlas"; +} + void __init atlas_setup(void) { #ifdef CONFIG_REMOTE_DEBUG Index: arch/mips/mips-boards/malta/malta_setup.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/mips-boards/malta/malta_setup.c,v retrieving revision 1.7 diff -u -r1.7 malta_setup.c --- arch/mips/mips-boards/malta/malta_setup.c 2001/07/19 11:37:12 1.7 +++ arch/mips/mips-boards/malta/malta_setup.c 2001/12/11 22:46:55 @@ -65,6 +65,12 @@ #define STANDARD_IO_RESOURCES (sizeof(standard_io_resources)/sizeof(struct resource)) +const char *get_system_type(void) +{ + return "MIPS Malta"; +} + + void __init malta_setup(void) { #ifdef CONFIG_REMOTE_DEBUG Index: arch/mips/philips/nino/prom.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/philips/nino/prom.c,v retrieving revision 1.6 diff -u -r1.6 prom.c --- arch/mips/philips/nino/prom.c 2001/11/24 14:03:19 1.6 +++ arch/mips/philips/nino/prom.c 2001/12/11 22:46:55 @@ -25,6 +25,11 @@ extern unsigned long tx3912fb_size; #endif +const char *get_system_type(void) +{ + return "Philips Nino"; +} + /* Do basic initialization */ void __init prom_init(int argc, char **argv, unsigned long magic, int *prom_vec) { Index: arch/mips/sgi-ip22/ip22-hpc.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/sgi-ip22/ip22-hpc.c,v retrieving revision 1.1 diff -u -r1.1 ip22-hpc.c --- arch/mips/sgi-ip22/ip22-hpc.c 2001/11/27 15:57:11 1.1 +++ arch/mips/sgi-ip22/ip22-hpc.c 2001/12/11 22:46:55 @@ -26,6 +26,8 @@ int sgi_guiness = 0; int sgi_boardid; +extern char *system_type; + void __init sgihpc_init(void) { unsigned long sid, crev, brev; @@ -51,12 +53,14 @@ #endif sgi_guiness = 1; mips_machtype = MACH_SGI_INDY; + strcat(system_type, "Indy"); } else { #ifdef DEBUG_SGIHPC prom_printf("FULLHOUSE "); #endif mips_machtype = MACH_SGI_INDIGO2; sgi_guiness = 0; + strcat(system_type, "Indigo2"); } sgi_boardid = brev; Index: arch/mips/sibyte/swarm/setup.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/sibyte/swarm/setup.c,v retrieving revision 1.4 diff -u -r1.4 setup.c --- arch/mips/sibyte/swarm/setup.c 2001/12/02 17:44:09 1.4 +++ arch/mips/sibyte/swarm/setup.c 2001/12/11 22:46:55 @@ -64,6 +64,10 @@ #endif +const char *get_system_type(void) +{ + return "SiByte Swarm"; +} #ifdef CONFIG_BLK_DEV_IDE_SWARM static int swarm_ide_default_irq(ide_ioreg_t base) Index: arch/mips/vr4181/osprey/prom.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/vr4181/osprey/prom.c,v retrieving revision 1.1 diff -u -r1.1 prom.c --- arch/mips/vr4181/osprey/prom.c 2001/10/02 23:27:11 1.1 +++ arch/mips/vr4181/osprey/prom.c 2001/12/11 22:46:55 @@ -23,6 +23,11 @@ char arcs_cmdline[COMMAND_LINE_SIZE]; +const char *get_system_type(void) +{ + return "NEC_Vr41xx Osprey"; +} + /* * [jsun] right now we assume it is the nec debug monitor, which does * not pass any arguments. Index: include/asm-mips/bootinfo.h =================================================================== RCS file: /home/pub/cvs/linux/include/asm-mips/bootinfo.h,v retrieving revision 1.44 diff -u -r1.44 bootinfo.h --- include/asm-mips/bootinfo.h 2001/12/03 07:48:32 1.44 +++ include/asm-mips/bootinfo.h 2001/12/11 22:46:56 @@ -34,18 +34,11 @@ #define MACH_GROUP_NEC_VR41XX 19 /* NEC Vr41xx based boards/gadgets */ #define MACH_GROUP_HP_LJ 20 /* Hewlett Packard LaserJet */ -#define GROUP_NAMES { "unknown", "Jazz", "Digital", "ARC", "SNI", "ACN", \ - "SGI", "Cobalt", "NEC DDB", "Baget", "Cosine", "Galileo", "Momentum", \ - "ITE", "Philips", "Globepspan", "SiByte", "Toshiba", "Alchemy", \ - "NEC Vr41xx", "HP LaserJet" } - /* * Valid machtype values for group unknown (low order halfword of mips_machtype) */ #define MACH_UNKNOWN 0 /* whatever... */ -#define GROUP_UNKNOWN_NAMES { "unknown" } - /* * Valid machtype values for group JAZZ */ @@ -53,8 +46,6 @@ #define MACH_MIPS_MAGNUM_4000 1 /* Mips Magnum 4000 "RC4030" */ #define MACH_OLIVETTI_M700 2 /* Olivetti M700-10 (-15 ??) */ -#define GROUP_JAZZ_NAMES { "Acer PICA 61", "Mips Magnum 4000", "Olivetti M700" } - /* * Valid machtype for group DEC */ @@ -69,33 +60,22 @@ #define MACH_DS5500 8 /* DECstation 5500 */ #define MACH_DS5800 9 /* DECstation 5800 */ -#define GROUP_DEC_NAMES { "unknown", "DECstation 2100/3100", "DECstation 5100", \ - "DECstation 5000/200", "DECstation 5000/1xx", "Personal DECstation 5000/xx", \ - "DECstation 5000/2x0", "DECstation 5400", "DECstation 5500", \ - "DECstation 5800" } - /* * Valid machtype for group ARC */ #define MACH_DESKSTATION_RPC44 0 /* Deskstation rPC44 */ #define MACH_DESKSTATION_TYNE 1 /* Deskstation Tyne */ -#define GROUP_ARC_NAMES { "Deskstation rPC44", "Deskstation Tyne" } - /* * Valid machtype for group SNI_RM */ #define MACH_SNI_RM200_PCI 0 /* RM200/RM300/RM400 PCI series */ -#define GROUP_SNI_RM_NAMES { "RM200 PCI" } - /* * Valid machtype for group ACN */ #define MACH_ACN_MIPS_BOARD 0 /* ACN MIPS single board */ -#define GROUP_ACN_NAMES { "ACN" } - /* * Valid machtype for group SGI */ @@ -103,15 +83,11 @@ #define MACH_SGI_CHALLENGE_S 1 /* The Challenge S server */ #define MACH_SGI_INDIGO2 2 /* The Indigo2 system */ -#define GROUP_SGI_NAMES { "Indy", "Challenge S", "Indigo2" } - /* * Valid machtype for group COBALT */ #define MACH_COBALT_27 0 /* Proto "27" hardware */ -#define GROUP_COBALT_NAMES { "Microserver 27" } - /* * Valid machtype for group NEC DDB */ @@ -119,68 +95,50 @@ #define MACH_NEC_DDB5476 1 /* NEC DDB Vrc-5476 */ #define MACH_NEC_DDB5477 2 /* NEC DDB Vrc-5477 */ -#define GROUP_NEC_DDB_NAMES { "Vrc-5074", "Vrc-5476", "Vrc-5477"} - /* * Valid machtype for group BAGET */ #define MACH_BAGET201 0 /* BT23-201 */ #define MACH_BAGET202 1 /* BT23-202 */ -#define GROUP_BAGET_NAMES { "BT23-201", "BT23-202" } - /* * Cosine boards. */ #define MACH_COSINE_ORION 0 -#define GROUP_COSINE_NAMES { "Orion" } - /* * Valid machtype for group GALILEO */ #define MACH_EV96100 0 /* EV96100 */ #define MACH_EV64120A 1 /* EV64120A */ -#define GROUP_GALILEO_NAMES { "EV96100" , "EV64120A" } - /* * Valid machtype for group MOMENCO */ #define MACH_MOMENCO_OCELOT 0 -#define GROUP_MOMENCO_NAMES { "Ocelot" } - /* * Valid machtype for group ITE */ #define MACH_QED_4N_S01B 0 /* ITE8172 based eval board */ -#define GROUP_ITE_NAMES { "QED-4N-S01B" } /* the actual board name */ - /* * Valid machtype for group Globespan */ #define MACH_IVR 0 /* IVR eval board */ -#define GROUP_GLOBESPAN_NAMES { "IVR" } /* the actual board name */ - /* * Valid machtype for group PHILIPS */ #define MACH_PHILIPS_NINO 0 /* Nino */ #define MACH_PHILIPS_VELO 1 /* Velo */ -#define GROUP_PHILIPS_NAMES { "Nino" , "Velo" } - /* * Valid machtype for group SIBYTE */ #define MACH_SWARM 0 -#define GROUP_SIBYTE_NAMES {"SWARM" } - /* * Valid machtypes for group Toshiba */ @@ -189,23 +147,16 @@ #define MACH_JMR 2 #define MACH_TOSHIBA_JMR3927 3 /* JMR-TX3927 CPU/IO board */ -#define GROUP_TOSHIBA_NAMES { "Pallas", "TopasCE", "JMR", "JMR TX3927" } - /* * Valid machtype for group Alchemy */ #define MACH_PB1000 0 /* Au1000-based eval board */ -#define GROUP_ALCHEMY_NAMES { "PB1000" } /* the actual board name */ - /* * Valid machtype for group NEC_VR41XX */ #define MACH_NEC_OSPREY 0 /* Osprey eval board */ -#define GROUP_NEC_VR41XX_NAMES { "Osprey" } - - /* * Valid cputype values */ @@ -272,6 +223,8 @@ #define BOOT_MEM_RESERVED 3 #ifndef __ASSEMBLY__ + +const char *get_system_type(void); extern unsigned long mips_machtype; extern unsigned long mips_machgroup; From owner-linux-mips@oss.sgi.com Tue Dec 11 16:11:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBC0Bir26601 for linux-mips-outgoing; Tue, 11 Dec 2001 16:11:44 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBC0Beo26598 for ; Tue, 11 Dec 2001 16:11:40 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16Dw3M-00080e-00; Tue, 11 Dec 2001 18:11:12 -0500 Date: Tue, 11 Dec 2001 18:11:12 -0500 From: Daniel Jacobowitz To: Ralf Baechle Cc: Ben Elliston , "Maciej W. Rozycki" , "H . J . Lu" , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) Message-ID: <20011211181112.A30778@nevyn.them.org> References: <20011211113008.A30693@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011211113008.A30693@dea.linux-mips.net> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 11, 2001 at 11:30:08AM -0200, Ralf Baechle wrote: > On Tue, Dec 11, 2001 at 09:40:50AM +1000, Ben Elliston wrote: > > > > > crosscompilation unlike the /proc/cpuinfo thing and doesn't rely on > > > > properly installed libraries and headers might possibly of interest for > > > > building standalone software. > > > > > Hmm, I don't think config.guess is ever used for cross-compilation as > > > the script's purpose is to guess the host and you need to specify one > > > explicitly for a cross-compilation to happen. Anyway it's saner not > > > to use build system properties to guess host system ones. > > > > You're close, but not quite correct. In a cross-compilation environment, > > the job of config.guess is to determine the type of the build system, > > which may be different to the host and will certainly be different to the > > target. > > In case of Linux/MIPS it could guess wether it's a little endian or big > endian configuration and emit mips-unknown-gnu-linux or > mipsel-unknown-gnu-linux that is taking away the burden of the user knowing > about the right endianess for his target - specifying mips-linux as target > should then be sufficient. Does that sound sane or would overriding the > users explicitly give targetname (or even hostname for a native build) be > considered a bad thing? Since specifying "mips-linux" is understood to mean big-endian right now, I'd say yes... -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Wed Dec 12 01:07:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBC97r321578 for linux-mips-outgoing; Wed, 12 Dec 2001 01:07:53 -0800 Received: from hypatia.brisbane.redhat.com (lulu.redhat.com.au [202.83.74.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBC97mo21575; Wed, 12 Dec 2001 01:07:49 -0800 Received: from scooby.brisbane.redhat.com (scooby.brisbane.redhat.com [172.16.5.228]) by hypatia.brisbane.redhat.com (8.11.6/8.11.0) with ESMTP id fBC87Zh00810; Wed, 12 Dec 2001 18:07:35 +1000 Received: by scooby.brisbane.redhat.com (Postfix, from userid 500) id 4B22A10810; Wed, 12 Dec 2001 19:07:34 +1100 (EST) From: Ben Elliston MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15383.4166.281762.897852@scooby.brisbane.redhat.com> Date: Wed, 12 Dec 2001 19:07:34 +1100 (EST) To: "H . J . Lu" Cc: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: PATCH: Handle Linux/mips (Re: Why is byteorder removed from /proc/cpuinfo?) In-Reply-To: <20011206103605.A7366@lucon.org> References: <20011206093506.A6496@lucon.org> <20011206155724.A11083@dea.linux-mips.net> <20011206103605.A7366@lucon.org> X-Mailer: VM 6.75 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-linux-mips@oss.sgi.com Precedence: bulk >>>>> "H" == H J Lu writes: H> How about this patch? Reluctantly accepted. I will apply to the FSF master copy tomorrow. Ben From owner-linux-mips@oss.sgi.com Wed Dec 12 16:46:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBD0kAn10035 for linux-mips-outgoing; Wed, 12 Dec 2001 16:46:10 -0800 Received: from t-mta7.odn.ne.jp (mfep7.odn.ne.jp [143.90.131.185]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBD0k6o10030 for ; Wed, 12 Dec 2001 16:46:06 -0800 Received: from computer ([61.209.74.127]) by t-mta7.odn.ne.jp with SMTP id <20011212234603691.LYNM.1476.t-mta7.odn.ne.jp@mta7.odn.ne.jp> for ; Thu, 13 Dec 2001 08:46:03 +0900 From: info To: Date: Thu, 13 Dec 2001 08:45:32 +0900 Subject: =?ISO-2022-JP?B?GyRCJDREczdIJE43bxsoQg==?= MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit X-Mailer: Oshirase-Mailer Message-Id: <20011212234603691.LYNM.1476.t-mta7.odn.ne.jp@mta7.odn.ne.jp> Sender: owner-linux-mips@oss.sgi.com Precedence: bulk $B#H#P!u%a%k%^%,1?1D?&%5%$%H$NJs=7@)%P!<%JDs7H$G$9!#(B $BE>?&5a?&5G'?t$K1~$8$F!X(B1000$B1_(B/$B7o!Y!"(B $B99$KE>?&7hDj$G4pK\E*$K!X(B1O$BK|1_(B/$B7o!Y$r$*;YJ'(B $B$$CW$7$^$9!#(B $B"($4Ds7H6b(B3000$B1_$r?JDhCW$7$^$9!#!J:#2s$N$_!K(B ----------------------------------------------------- $B"#1Q2qOC65:`HNGd$NJs=7@)%P!<%JDs7H$G$9!#(B $BGd>e#1%;%C%H$G!X(B6000$B1_!Y%P%C%/$G$9!#(B $B"($4Ds7H6b(B1000$B1_$r?JDhCW$7$^$9!#(B $B!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!="#(B $B"($4O"Mm$$$?$@$1$l$P>\:Y$r$*Aw$jCW$7$^$9!#(B $B$G$O!"$h$m$7$/$*4j$$?=$7>e$2$^$9!#(B $B"!$*Ld9g$;@lMQ%a!<%k(B complan@bigfoot.com $B%3%`!&%W%i%s;vL36I(B http://drive.to/career/ From owner-linux-mips@oss.sgi.com Thu Dec 13 05:36:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDDaAb31931 for linux-mips-outgoing; Thu, 13 Dec 2001 05:36:10 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDDa6o31927 for ; Thu, 13 Dec 2001 05:36:06 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 469E6853; Thu, 13 Dec 2001 13:35:55 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 58F5E44AC; Thu, 13 Dec 2001 13:35:22 +0100 (CET) Date: Thu, 13 Dec 2001 13:35:22 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: Current CVS on Indigo2 fail Message-ID: <20011213123522.GA32232@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable HI, i just tried to boot the current cvs as of a couple minutes old on an Indigo2 - It seemt the stuff crashes before its even able to print something on the screen. Anyone else ? Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GKCKUaz2rXW+gJcRArYoAJ9WjuZX9frMYSAgXhzg/lqLuHGJ4QCfaosU /Ausx1GIAaEsP1FLSzY3CqE= =UbjI -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8-- From owner-linux-mips@oss.sgi.com Thu Dec 13 05:52:36 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDDqar04342 for linux-mips-outgoing; Thu, 13 Dec 2001 05:52:36 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDDqXo03844 for ; Thu, 13 Dec 2001 05:52:33 -0800 Received: from agx by gandalf.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16EVLh-0003qO-00; Thu, 13 Dec 2001 13:52:29 +0100 Date: Thu, 13 Dec 2001 13:52:29 +0100 From: Guido Guenther To: flo@rfc822.org Cc: linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011213135229.C14699@gandalf.physik.uni-konstanz.de> Mail-Followup-To: flo@rfc822.org, linux-mips@oss.sgi.com References: <20011213123522.GA32232@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011213123522.GA32232@paradigm.rfc822.org>; from flo@rfc822.org on Thu, Dec 13, 2001 at 01:35:22PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 01:35:22PM +0100, Florian Lohoff wrote: > > HI, > i just tried to boot the current cvs as of a couple minutes old > on an Indigo2 - It seemt the stuff crashes before its even able to > print something on the screen. > > Anyone else ? Can this be the newport vs. I2 issue? I have (again) sent patches to Ralf to solve this problem... -- Guido From owner-linux-mips@oss.sgi.com Thu Dec 13 06:49:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDEnOF05886 for linux-mips-outgoing; Thu, 13 Dec 2001 06:49:24 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDEnIo05883 for ; Thu, 13 Dec 2001 06:49:18 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 83D4684E; Thu, 13 Dec 2001 14:49:07 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id EF42E44AC; Thu, 13 Dec 2001 14:48:27 +0100 (CET) Date: Thu, 13 Dec 2001 14:48:27 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011213134827.GA5630@paradigm.rfc822.org> References: <20011213123522.GA32232@paradigm.rfc822.org> <20011213135229.C14699@gandalf.physik.uni-konstanz.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20011213135229.C14699@gandalf.physik.uni-konstanz.de> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2001 at 01:52:29PM +0100, Guido Guenther wrote: > On Thu, Dec 13, 2001 at 01:35:22PM +0100, Florian Lohoff wrote: > >=20 > > HI, > > i just tried to boot the current cvs as of a couple minutes old > > on an Indigo2 - It seemt the stuff crashes before its even able to > > print something on the screen. > >=20 > Can this be the newport vs. I2 issue? I have (again) sent patches to Ralf > to solve this problem... Definitly ? Mind sending me (the list) the patches too ? Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GLGrUaz2rXW+gJcRAnDiAJ9nOjHWKzItJMcza7EASSN9b5EUagCgikvU KSCu7xWbD6vCAw70HWSgIA8= =zAOn -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4-- From owner-linux-mips@oss.sgi.com Thu Dec 13 07:07:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDF7in06338 for linux-mips-outgoing; Thu, 13 Dec 2001 07:07:44 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDF7fo06334 for ; Thu, 13 Dec 2001 07:07:41 -0800 Received: from galadriel.physik.uni-konstanz.de [134.34.144.79] (8) by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian)) id 16EWWR-00049G-00; Thu, 13 Dec 2001 15:07:39 +0100 Received: from agx by galadriel.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16EWVD-0003UE-00; Thu, 13 Dec 2001 15:06:23 +0100 Date: Thu, 13 Dec 2001 15:06:22 +0100 From: Guido Guenther To: linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011213150622.A13394@galadriel.physik.uni-konstanz.de> Mail-Followup-To: linux-mips@oss.sgi.com References: <20011213123522.GA32232@paradigm.rfc822.org> <20011213135229.C14699@gandalf.physik.uni-konstanz.de> <20011213134827.GA5630@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011213134827.GA5630@paradigm.rfc822.org>; from flo@rfc822.org on Thu, Dec 13, 2001 at 02:48:27PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 02:48:27PM +0100, Florian Lohoff wrote: > On Thu, Dec 13, 2001 at 01:52:29PM +0100, Guido Guenther wrote: > > On Thu, Dec 13, 2001 at 01:35:22PM +0100, Florian Lohoff wrote: > > > > > > HI, > > > i just tried to boot the current cvs as of a couple minutes old > > > on an Indigo2 - It seemt the stuff crashes before its even able to > > > print something on the screen. > > > > > Can this be the newport vs. I2 issue? I have (again) sent patches to Ralf > > to solve this problem... > > Definitly ? Mind sending me (the list) the patches too ? an old version is at: http://honk.physik.uni-konstanz.de/~agx/linux-mips/unsorted-patches/newport-dont-crash-i2-2001-03-25.diff This currently doesn't apply cleanly due to the arch/mips/kernel/sgi to arch/mips/sgi-ip22 movement, but that's just a one line change. I'll update it when back home. -- Guido From owner-linux-mips@oss.sgi.com Thu Dec 13 07:24:58 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDFOwG06636 for linux-mips-outgoing; Thu, 13 Dec 2001 07:24:58 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDFOro06631 for ; Thu, 13 Dec 2001 07:24:53 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id EE93E855; Thu, 13 Dec 2001 15:24:42 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A6E5E44AC; Thu, 13 Dec 2001 15:24:13 +0100 (CET) Date: Thu, 13 Dec 2001 15:24:13 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: Wrong /proc/cpuinfo on SGI Indy Message-ID: <20011213142413.GB12503@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, broken /proc/cpuinfo with current cvs: flo@revamp:~$ cat /proc/cpuinfo=20 system type : SGI IndyIndy processor : 0 cpu model : R4600 V2.0 FPU V2.0 BogoMIPS : 132.71 wait instruction : yes microsecond timers : yes extra interrupt vector : no hardware watchpoint : no VCED exceptions : not available VCEI exceptions : not available Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GLoNUaz2rXW+gJcRAsKPAJ9SmC8o8xDZcFDmgIoUIYMPPPJFmwCeJVoS sPuuQ9EsqImF+4LPE4IptLY= =mZMU -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl-- From owner-linux-mips@oss.sgi.com Thu Dec 13 07:25:11 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDFPBB06661 for linux-mips-outgoing; Thu, 13 Dec 2001 07:25:11 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDFOro06630; Thu, 13 Dec 2001 07:24:53 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id C1430854; Thu, 13 Dec 2001 15:24:42 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 78A6544AC; Thu, 13 Dec 2001 15:21:17 +0100 (CET) Date: Thu, 13 Dec 2001 15:21:17 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Cc: ralf@oss.sgi.com Subject: [PATCH] wback cache handling "optimized" in sgiwd93.c Message-ID: <20011213142117.GA12503@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, i again took a look at the sgiwd93.c wback cache handling - I found some space for improvement and cleanup: - init_hpc_chain has to flush to memory anyways - Add an dma_cache_wback_inv and delete from callers (Also a duplicate one reported a couple of months back) This one is inlined and only used in sgiwd93_detect which is __init) - fill_hpc_chain used to hit "dma_cache_wback_inv" for the area it=20 sets up the hpc chains. This is not need in case of read as we only would need to invalidate. Moved this to "dma_setup" and made the decision to hit dma_cache_wback_inv or dma_cache_inv depending on dma direction. I am running this patch now with success. It should improve read performance as we dont hit writeback on soon to be overwritten pages. I havent done performance analysis with bonnie etc. Index: drivers/scsi/sgiwd93.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/drivers/scsi/sgiwd93.c,v retrieving revision 1.28.2.1 diff -u -r1.28.2.1 sgiwd93.c --- drivers/scsi/sgiwd93.c 2001/12/11 18:11:33 1.28.2.1 +++ drivers/scsi/sgiwd93.c 2001/12/13 15:15:45 @@ -4,10 +4,13 @@ * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) * 1999 Andrew R. Baker (andrewb@uab.edu) * - Support for 2nd SCSI controller on Indigo2 + * 2001 Florian Lohoff (flo@rfc822.org) + * - Delete HPC scatter gather (Read corruption on=20 + * multiple disks) + * - Cleanup wback cache handling *=20 * (In all truth, Jed Schimmel wrote all this code.) * - * $Id: sgiwd93.c,v 1.19 2000/02/04 07:40:47 ralf Exp $ */ #include #include @@ -85,7 +88,6 @@ unsigned long physaddr; unsigned long count; =09 - dma_cache_wback_inv((unsigned long)addr,len); physaddr =3D PHYSADDR(addr); while (len) { /* @@ -104,7 +106,6 @@ static int dma_setup(Scsi_Cmnd *cmd, int datainp) { struct WD33C93_hostdata *hdata =3D (struct WD33C93_hostdata *)cmd->host->= hostdata; - const wd33c93_regs regs =3D hdata->regs; struct hpc3_scsiregs *hregs =3D (struct hpc3_scsiregs *) cmd->host->base; struct hpc_chunk *hcp =3D (struct hpc_chunk *) hdata->dma_bounce_buffer; =20 @@ -124,6 +125,7 @@ */ if (cmd->SCp.ptr =3D=3D NULL) return 1; + fill_hpc_entries (&hcp, cmd->SCp.ptr,cmd->SCp.this_residual); =20 /* To make sure, if we trip an HPC bug, that we transfer @@ -139,10 +141,14 @@ =20 /* Start up the HPC. */ hregs->ndptr =3D PHYSADDR(hdata->dma_bounce_buffer); - if(datainp) + if(datainp) { + dma_cache_wback_inv((unsigned long) cmd->SCp.ptr, cmd->SCp.this_residual= ); hregs->ctrl =3D (HPC3_SCTRL_ACTIVE); - else + } else { + dma_cache_inv((unsigned long) cmd->SCp.ptr, cmd->SCp.this_residual); hregs->ctrl =3D (HPC3_SCTRL_ACTIVE | HPC3_SCTRL_DIR); + } + return 0; } =20 @@ -150,7 +156,6 @@ int status) { struct WD33C93_hostdata *hdata =3D (struct WD33C93_hostdata *)instance->h= ostdata; - const wd33c93_regs regp =3D hdata->regs; struct hpc3_scsiregs *hregs; =20 if (!SCpnt) @@ -199,6 +204,9 @@ }; hcp--; hcp->desc.pnext =3D PHYSADDR(buf); + + /* Force flush to memory */ + dma_cache_wback_inv((unsigned long) buf, PAGE_SIZE); } =20 int __init sgiwd93_detect(Scsi_Host_Template *SGIblows) @@ -229,7 +237,6 @@ return 0; } init_hpc_chain(buf); - dma_cache_wback_inv((unsigned long) buf, PAGE_SIZE); =20 regs.SASR =3D KSEG1ADDR (0x1fbc0003); /* HPC_SCSI_REG0 | 0x03 | KSEG1 */ regs.SCMD =3D KSEG1ADDR (0x1fbc0007); @@ -264,7 +271,6 @@ return 1; /* We registered host0 so return success*/ } init_hpc_chain(buf); - dma_cache_wback_inv((unsigned long) buf, PAGE_SIZE); =20 /* HPC_SCSI_REG1 | 0x03 | KSEG1 */ regs.SASR =3D KSEG1ADDR(0x1fbc8003); @@ -275,7 +281,6 @@ hdata1 =3D (struct WD33C93_hostdata *)sgiwd93_host1->hostdata; hdata1->no_sync =3D 0; hdata1->dma_bounce_buffer =3D (uchar *) (KSEG1ADDR(buf)); - dma_cache_wback_inv((unsigned long) buf, PAGE_SIZE); =09 if (request_irq(SGI_WD93_1_IRQ, sgiwd93_intr, 0, "SGI WD93", (void *) s= giwd93_host1)) { printk(KERN_WARNING "sgiwd93: Could not allocate irq %d (for host1).\n= ", SGI_WD93_1_IRQ); --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GLldUaz2rXW+gJcRAvqQAKDgY/TER2kWz+yPqdxUT5F7CoF7bwCgrNf9 mhR40H5MstA3yBw/2lgi/6Y= =UKoF -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- From owner-linux-mips@oss.sgi.com Thu Dec 13 09:40:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDHelS12657 for linux-mips-outgoing; Thu, 13 Dec 2001 09:40:47 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDHefo12654 for ; Thu, 13 Dec 2001 09:40:41 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 90AA6838; Thu, 13 Dec 2001 17:40:30 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 9E3FA44AF; Thu, 13 Dec 2001 17:39:53 +0100 (CET) Date: Thu, 13 Dec 2001 17:39:53 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Message-ID: <20011213163953.GB23023@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --Yylu36WmvOXNoKYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Something like this should be needed for current kernel to make autoconf happy ... Index: arch/mips/kernel/proc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/kernel/proc.c,v retrieving revision 1.27.2.3 diff -u -r1.27.2.3 proc.c --- arch/mips/kernel/proc.c 2001/12/12 13:45:58 1.27.2.3 +++ arch/mips/kernel/proc.c 2001/12/13 17:39:19 @@ -51,6 +51,11 @@ seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n", loops_per_jiffy / (500000/HZ), (loops_per_jiffy / (5000/HZ)) % 100); +#ifdef __MIBSEB__ + seq_printf(m, "byteorder\t\t: big endian\n"); +#else + seq_printf(m, "byteorder\t\t: little endian\n"); +#endif seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no"); seq_printf(m, "microsecond timers\t: %s\n", (mips_cpu.options & MIPS_CPU_COUNTER) ? "yes" : "no"); Flo =20 --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --Yylu36WmvOXNoKYn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GNnZUaz2rXW+gJcRAu3HAJ9CfctELPucTSS5jofXXogkv5zV4QCgwaKp Wv1q7TajBvn9sJMdfM/i1go= =cfxx -----END PGP SIGNATURE----- --Yylu36WmvOXNoKYn-- From owner-linux-mips@oss.sgi.com Thu Dec 13 10:01:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDI1Zo14453 for linux-mips-outgoing; Thu, 13 Dec 2001 10:01:35 -0800 Received: from ns1.ltc.com (vsat-148-63-243-254.c3.sb4.mrt.starband.net [148.63.243.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDI1Lo14447 for ; Thu, 13 Dec 2001 10:01:23 -0800 Received: from prefect (unknown [10.1.1.86]) by ns1.ltc.com (Postfix) with SMTP id 04CA9590A9; Thu, 13 Dec 2001 11:59:33 -0500 (EST) Message-ID: <06c701c183f7$d23eb410$5601010a@prefect> From: "Bradley D. LaRonde" To: "Florian Lohoff" , References: <20011213163953.GB23023@paradigm.rfc822.org> Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Date: Thu, 13 Dec 2001 12:01:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk For autoconf? Why need to ask the kernel? Aren't there other very simple ways of determining build endianness in userspace? Regards, Brad ----- Original Message ----- From: "Florian Lohoff" To: Sent: Thursday, December 13, 2001 11:39 AM Subject: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Something like this should be needed for current kernel to make autoconf happy ... --- arch/mips/kernel/proc.c 2001/12/12 13:45:58 1.27.2.3 +++ arch/mips/kernel/proc.c 2001/12/13 17:39:19 @@ -51,6 +51,11 @@ seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n", loops_per_jiffy / (500000/HZ), (loops_per_jiffy / (5000/HZ)) % 100); +#ifdef __MIBSEB__ + seq_printf(m, "byteorder\t\t: big endian\n"); +#else + seq_printf(m, "byteorder\t\t: little endian\n"); +#endif seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no"); seq_printf(m, "microsecond timers\t: %s\n", (mips_cpu.options & MIPS_CPU_COUNTER) ? "yes" : "no"); From owner-linux-mips@oss.sgi.com Thu Dec 13 10:02:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDI2gQ14530 for linux-mips-outgoing; Thu, 13 Dec 2001 10:02:42 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDI2Xo14488 for ; Thu, 13 Dec 2001 10:02:34 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 80A1583D; Thu, 13 Dec 2001 18:02:23 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id AE7B344AF; Thu, 13 Dec 2001 17:56:12 +0100 (CET) Date: Thu, 13 Dec 2001 17:56:12 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Message-ID: <20011213165612.GC23023@paradigm.rfc822.org> References: <20011213163953.GB23023@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QRj9sO5tAVLaXnSD" Content-Disposition: inline In-Reply-To: <20011213163953.GB23023@paradigm.rfc822.org> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --QRj9sO5tAVLaXnSD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2001 at 05:39:53PM +0100, Florian Lohoff wrote: > +#ifdef __MIBSEB__ ^^^ *Oergs* > + seq_printf(m, "byteorder\t\t: big endian\n"); > +#else > + seq_printf(m, "byteorder\t\t: little endian\n"); > +#endif > seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no"); > seq_printf(m, "microsecond timers\t: %s\n", > (mips_cpu.options & MIPS_CPU_COUNTER) ? "yes" : "no"); Index: arch/mips/kernel/proc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/kernel/proc.c,v retrieving revision 1.27.2.3 diff -u -r1.27.2.3 proc.c --- arch/mips/kernel/proc.c 2001/12/12 13:45:58 1.27.2.3 +++ arch/mips/kernel/proc.c 2001/12/13 17:47:22 @@ -51,6 +51,11 @@ seq_printf(m, "BogoMIPS\t\t: %lu.%02lu\n", loops_per_jiffy / (500000/HZ), (loops_per_jiffy / (5000/HZ)) % 100); +#ifdef __MIPSEB__ + seq_printf(m, "byteorder\t\t: big endian\n"); +#else + seq_printf(m, "byteorder\t\t: little endian\n"); +#endif seq_printf(m, "wait instruction\t: %s\n", cpu_wait ? "yes" : "no"); seq_printf(m, "microsecond timers\t: %s\n", (mips_cpu.options & MIPS_CPU_COUNTER) ? "yes" : "no"); Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --QRj9sO5tAVLaXnSD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GN2sUaz2rXW+gJcRAnnwAKCcc0L42EJzkmxlmC+DgSgAZuMWBgCg11iq ibU/tUKyrpIClEoHsdaFu3o= =Nc56 -----END PGP SIGNATURE----- --QRj9sO5tAVLaXnSD-- From owner-linux-mips@oss.sgi.com Thu Dec 13 10:02:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDI2gK14535 for linux-mips-outgoing; Thu, 13 Dec 2001 10:02:42 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDI2Xo14489 for ; Thu, 13 Dec 2001 10:02:34 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 9547784A; Thu, 13 Dec 2001 18:02:23 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id AEA1144AF; Thu, 13 Dec 2001 18:01:44 +0100 (CET) Date: Thu, 13 Dec 2001 18:01:44 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: [PATCH] add space and change to IP22 in arc/identify.c Was: Wrong /proc/cpuinfo on SGI Indy Message-ID: <20011213170144.GA25296@paradigm.rfc822.org> References: <20011213142413.GB12503@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <20011213142413.GB12503@paradigm.rfc822.org> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2001 at 03:24:13PM +0100, Florian Lohoff wrote: > Hi, > broken /proc/cpuinfo with current cvs: >=20 > flo@revamp:~$ cat /proc/cpuinfo=20 > system type : SGI IndyIndy > processor : 0 > cpu model : R4600 V2.0 FPU V2.0 > BogoMIPS : 132.71 > wait instruction : yes > microsecond timers : yes > extra interrupt vector : no > hardware watchpoint : no > VCED exceptions : not available > VCEI exceptions : not available Ok - I would suggest putting in this patch - It solves the issue that the System type is "SGI IP22" and the subtype is "Indy", "Indigo2" or=20 "Challenge S" which would also need a space. Index: arch/mips/arc/identify.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/arc/identify.c,v retrieving revision 1.5.2.1 diff -u -r1.5.2.1 identify.c --- arch/mips/arc/identify.c 2001/12/12 13:45:57 1.5.2.1 +++ arch/mips/arc/identify.c 2001/12/13 18:00:04 @@ -26,7 +26,7 @@ =20 static struct smatch mach_table[] =3D { { "SGI-IP22", - "SGI Indy", + "SGI IP22 ", MACH_GROUP_SGI, MACH_SGI_INDY, PROM_FLAG_ARCS Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GN74Uaz2rXW+gJcRApvsAJ9UHeybuuJa20vWzQdyFm2u56SHmgCglEYZ GW3eCWlSbHBaPJtOdovKXF4= =OcYT -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF-- From owner-linux-mips@oss.sgi.com Thu Dec 13 10:07:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDI7WJ14688 for linux-mips-outgoing; Thu, 13 Dec 2001 10:07:32 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDI7Ro14681 for ; Thu, 13 Dec 2001 10:07:27 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id D548883D; Thu, 13 Dec 2001 18:07:16 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A7D8A44AF; Thu, 13 Dec 2001 18:04:10 +0100 (CET) Date: Thu, 13 Dec 2001 18:04:10 +0100 From: Florian Lohoff To: "Bradley D. LaRonde" Cc: linux-mips@oss.sgi.com Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Message-ID: <20011213170410.GB25296@paradigm.rfc822.org> References: <20011213163953.GB23023@paradigm.rfc822.org> <06c701c183f7$d23eb410$5601010a@prefect> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tsOsTdHNUZQcU9Ye" Content-Disposition: inline In-Reply-To: <06c701c183f7$d23eb410$5601010a@prefect> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --tsOsTdHNUZQcU9Ye Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2001 at 12:01:34PM -0500, Bradley D. LaRonde wrote: >=20 > For autoconf? Why need to ask the kernel? Aren't there other very simple > ways of determining build endianness in userspace? >=20 There is - But autoconf in the current version is broken and needs this to gather the endianess - As we currently have to live with it this is a 2.4 issue - 2.5 should fix this and remove endianess from /proc/cpuinfo. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --tsOsTdHNUZQcU9Ye Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GN+KUaz2rXW+gJcRAutGAKCYwRKtU8ouc331UjLh2MAKIGdeDACfVWGu N0ZzEXVn5iJCKyZTQnwfjao= =jnNn -----END PGP SIGNATURE----- --tsOsTdHNUZQcU9Ye-- From owner-linux-mips@oss.sgi.com Thu Dec 13 10:07:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDI7Wd14693 for linux-mips-outgoing; Thu, 13 Dec 2001 10:07:32 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDI7Ro14682 for ; Thu, 13 Dec 2001 10:07:27 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id F32E584A; Thu, 13 Dec 2001 18:07:16 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 04FAF44AF; Thu, 13 Dec 2001 18:05:22 +0100 (CET) Date: Thu, 13 Dec 2001 18:05:22 +0100 From: Florian Lohoff To: "Bradley D. LaRonde" Cc: linux-mips@oss.sgi.com Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Message-ID: <20011213170522.GC25296@paradigm.rfc822.org> References: <20011213163953.GB23023@paradigm.rfc822.org> <06c701c183f7$d23eb410$5601010a@prefect> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FsscpQKzF/jJk6ya" Content-Disposition: inline In-Reply-To: <06c701c183f7$d23eb410$5601010a@prefect> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --FsscpQKzF/jJk6ya Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2001 at 12:01:34PM -0500, Bradley D. LaRonde wrote: > For autoconf? Why need to ask the kernel? Aren't there other very simple > ways of determining build endianness in userspace? >=20 Ah - Here is the responsible autoconf bit from config.guess: mips:Linux:*:*) case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in big) echo mips-unknown-linux-gnu && exit 0 ;; little) echo mipsel-unknown-linux-gnu && exit 0 ;; esac This has already been discussed and probably even fixed in autoconf upstream ... Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --FsscpQKzF/jJk6ya Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GN/SUaz2rXW+gJcRAmwCAKCGBSI6bvsVsTFbB+PA5CUl3D2SeQCg0IhQ Ic/7lJheJPfoVXBaRf6LQHA= =gZC0 -----END PGP SIGNATURE----- --FsscpQKzF/jJk6ya-- From owner-linux-mips@oss.sgi.com Thu Dec 13 10:10:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDIAlD14840 for linux-mips-outgoing; Thu, 13 Dec 2001 10:10:47 -0800 Received: from buzz.ichilton.co.uk (pc3-stoc4-0-cust138.mid.cable.ntl.com [213.107.175.138]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDIAio14837 for ; Thu, 13 Dec 2001 10:10:45 -0800 Received: by buzz.ichilton.co.uk (Postfix, from userid 100) id 4879E1CE5C7; Thu, 13 Dec 2001 17:10:41 +0000 (GMT) Date: Thu, 13 Dec 2001 17:10:41 +0000 From: Ian Chilton To: Florian Lohoff Cc: linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011213171041.A25225@buzz.ichilton.local> Reply-To: Ian Chilton References: <20011213123522.GA32232@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213123522.GA32232@paradigm.rfc822.org> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, > i just tried to boot the current cvs as of a couple minutes old > on an Indigo2 - It seemt the stuff crashes before its even able to > print something on the screen. > Anyone else ? Me - I told you about it in #mipslinux the other day, remember? Thanks Ian From owner-linux-mips@oss.sgi.com Thu Dec 13 10:11:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDIBYp14873 for linux-mips-outgoing; Thu, 13 Dec 2001 10:11:34 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDIBNo14867 for ; Thu, 13 Dec 2001 10:11:23 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 4A62F84A; Thu, 13 Dec 2001 18:11:13 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 6AB4944AF; Thu, 13 Dec 2001 18:10:43 +0100 (CET) Date: Thu, 13 Dec 2001 18:10:43 +0100 From: Florian Lohoff To: Guido Guenther Cc: linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011213171043.GD25296@paradigm.rfc822.org> References: <20011213123522.GA32232@paradigm.rfc822.org> <20011213135229.C14699@gandalf.physik.uni-konstanz.de> <20011213134827.GA5630@paradigm.rfc822.org> <20011213150622.A13394@galadriel.physik.uni-konstanz.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EP0wieDxd4TSJjHq" Content-Disposition: inline In-Reply-To: <20011213150622.A13394@galadriel.physik.uni-konstanz.de> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --EP0wieDxd4TSJjHq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 13, 2001 at 03:06:22PM +0100, Guido Guenther wrote: > > Definitly ? Mind sending me (the list) the patches too ? > an old version is at: > http://honk.physik.uni-konstanz.de/~agx/linux-mips/unsorted-patches/newp= ort-dont-crash-i2-2001-03-25.diff > This currently doesn't apply cleanly due to the arch/mips/kernel/sgi to > arch/mips/sgi-ip22 movement, but that's just a one line change. I'll > update it when back home. It solved the issue ... Here is the patch against current cvs Index: arch/mips/config.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/config.in,v retrieving revision 1.154.2.3 diff -u -r1.154.2.3 config.in --- arch/mips/config.in 2001/12/11 18:39:48 1.154.2.3 +++ arch/mips/config.in 2001/12/13 18:10:33 @@ -556,11 +556,10 @@ comment 'SGI Character devices' if [ "$CONFIG_VT" =3D "y" ]; then tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE - if [ "$CONFIG_SGI_NEWPORT_CONSOLE" !=3D "y" ]; then - define_bool CONFIG_DUMMY_CONSOLE y - else + if [ "$CONFIG_SGI_NEWPORT_CONSOLE" =3D "y" ]; then define_bool CONFIG_FONT_8x16 y fi + define_bool CONFIG_DUMMY_CONSOLE y fi endmenu fi Index: arch/mips/sgi-ip22/ip22-setup.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-setup.c,v retrieving revision 1.1.2.1 diff -u -r1.1.2.1 ip22-setup.c --- arch/mips/sgi-ip22/ip22-setup.c 2001/12/07 15:45:29 1.1.2.1 +++ arch/mips/sgi-ip22/ip22-setup.c 2001/12/13 18:10:33 @@ -182,19 +182,23 @@ =20 #ifdef CONFIG_VT #ifdef CONFIG_SGI_NEWPORT_CONSOLE - conswitchp =3D &newport_con; + if( mips_machtype =3D=3D MACH_SGI_INDY ) { + conswitchp =3D &newport_con; =20 - screen_info =3D (struct screen_info) { - 0, 0, /* orig-x, orig-y */ - 0, /* unused */ - 0, /* orig_video_page */ - 0, /* orig_video_mode */ - 160, /* orig_video_cols */ - 0, 0, 0, /* unused, ega_bx, unused */ - 64, /* orig_video_lines */ - 0, /* orig_video_isVGA */ - 16 /* orig_video_points */ - }; + screen_info =3D (struct screen_info) { + 0, 0, /* orig-x, orig-y */ + 0, /* unused */ + 0, /* orig_video_page */ + 0, /* orig_video_mode */ + 160, /* orig_video_cols */ + 0, 0, 0, /* unused, ega_bx, unused */ + 64, /* orig_video_lines */ + 0, /* orig_video_isVGA */ + 16 /* orig_video_points */ + }; + } else { + conswitchp =3D &dummy_con; + } #else conswitchp =3D &dummy_con; #endif Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --EP0wieDxd4TSJjHq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GOETUaz2rXW+gJcRAvA4AKCVwQFrdj2MdFRviBQJM+u+srNARwCdHMSH 5gXxVmY3oKpTM46h0QoGaoQ= =Ory0 -----END PGP SIGNATURE----- --EP0wieDxd4TSJjHq-- From owner-linux-mips@oss.sgi.com Thu Dec 13 10:12:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDICmU14978 for linux-mips-outgoing; Thu, 13 Dec 2001 10:12:48 -0800 Received: from ns1.ltc.com (vsat-148-63-243-254.c3.sb4.mrt.starband.net [148.63.243.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDICho14975 for ; Thu, 13 Dec 2001 10:12:44 -0800 Received: from prefect (unknown [10.1.1.86]) by ns1.ltc.com (Postfix) with SMTP id B2E35590A9; Thu, 13 Dec 2001 12:10:59 -0500 (EST) Message-ID: <070501c183f9$6b02de50$5601010a@prefect> From: "Bradley D. LaRonde" To: "Florian Lohoff" Cc: References: <20011213163953.GB23023@paradigm.rfc822.org> <06c701c183f7$d23eb410$5601010a@prefect> <20011213170410.GB25296@paradigm.rfc822.org> Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) Date: Thu, 13 Dec 2001 12:13:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk ----- Original Message ----- From: "Florian Lohoff" To: "Bradley D. LaRonde" Cc: Sent: Thursday, December 13, 2001 12:04 PM Subject: Re: [PATCH] /proc/cpuinfo endianess (autoconf dependencie) > There is - But autoconf in the current version is broken and needs > this to gather the endianess - As we currently have to live with it > this is a 2.4 issue - 2.5 should fix this and remove endianess from > /proc/cpuinfo. I understand, thanks for the explanation. So the patch should only go in the 2.4 branch? Regards, Brad From owner-linux-mips@oss.sgi.com Thu Dec 13 10:29:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDIT4p21475 for linux-mips-outgoing; Thu, 13 Dec 2001 10:29:04 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDISro21472 for ; Thu, 13 Dec 2001 10:28:53 -0800 Received: from agx by gandalf.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16EZf7-0001yq-00; Thu, 13 Dec 2001 18:28:49 +0100 Date: Thu, 13 Dec 2001 18:28:49 +0100 From: Guido Guenther To: Florian Lohoff Cc: linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011213182849.A7585@gandalf.physik.uni-konstanz.de> Mail-Followup-To: Florian Lohoff , linux-mips@oss.sgi.com References: <20011213123522.GA32232@paradigm.rfc822.org> <20011213135229.C14699@gandalf.physik.uni-konstanz.de> <20011213134827.GA5630@paradigm.rfc822.org> <20011213150622.A13394@galadriel.physik.uni-konstanz.de> <20011213171043.GD25296@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011213171043.GD25296@paradigm.rfc822.org>; from flo@rfc822.org on Thu, Dec 13, 2001 at 06:10:43PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 06:10:43PM +0100, Florian Lohoff wrote: > On Thu, Dec 13, 2001 at 03:06:22PM +0100, Guido Guenther wrote: > > > Definitly ? Mind sending me (the list) the patches too ? > > an old version is at: > > http://honk.physik.uni-konstanz.de/~agx/linux-mips/unsorted-patches/newport-dont-crash-i2-2001-03-25.diff > > This currently doesn't apply cleanly due to the arch/mips/kernel/sgi to > > arch/mips/sgi-ip22 movement, but that's just a one line change. I'll > > update it when back home. > > It solved the issue ... Here is the patch against current cvs Which is exactly what I sent to Ralf just yesterday evening ;-) -- Guido > > > Index: arch/mips/config.in > =================================================================== > RCS file: /cvs/linux/arch/mips/config.in,v > retrieving revision 1.154.2.3 > diff -u -r1.154.2.3 config.in > --- arch/mips/config.in 2001/12/11 18:39:48 1.154.2.3 > +++ arch/mips/config.in 2001/12/13 18:10:33 > @@ -556,11 +556,10 @@ > comment 'SGI Character devices' > if [ "$CONFIG_VT" = "y" ]; then > tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE > - if [ "$CONFIG_SGI_NEWPORT_CONSOLE" != "y" ]; then > - define_bool CONFIG_DUMMY_CONSOLE y > - else > + if [ "$CONFIG_SGI_NEWPORT_CONSOLE" = "y" ]; then > define_bool CONFIG_FONT_8x16 y > fi > + define_bool CONFIG_DUMMY_CONSOLE y > fi > endmenu > fi > Index: arch/mips/sgi-ip22/ip22-setup.c > =================================================================== > RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-setup.c,v > retrieving revision 1.1.2.1 > diff -u -r1.1.2.1 ip22-setup.c > --- arch/mips/sgi-ip22/ip22-setup.c 2001/12/07 15:45:29 1.1.2.1 > +++ arch/mips/sgi-ip22/ip22-setup.c 2001/12/13 18:10:33 > @@ -182,19 +182,23 @@ > > #ifdef CONFIG_VT > #ifdef CONFIG_SGI_NEWPORT_CONSOLE > - conswitchp = &newport_con; > + if( mips_machtype == MACH_SGI_INDY ) { > + conswitchp = &newport_con; > > - screen_info = (struct screen_info) { > - 0, 0, /* orig-x, orig-y */ > - 0, /* unused */ > - 0, /* orig_video_page */ > - 0, /* orig_video_mode */ > - 160, /* orig_video_cols */ > - 0, 0, 0, /* unused, ega_bx, unused */ > - 64, /* orig_video_lines */ > - 0, /* orig_video_isVGA */ > - 16 /* orig_video_points */ > - }; > + screen_info = (struct screen_info) { > + 0, 0, /* orig-x, orig-y */ > + 0, /* unused */ > + 0, /* orig_video_page */ > + 0, /* orig_video_mode */ > + 160, /* orig_video_cols */ > + 0, 0, 0, /* unused, ega_bx, unused */ > + 64, /* orig_video_lines */ > + 0, /* orig_video_isVGA */ > + 16 /* orig_video_points */ > + }; > + } else { > + conswitchp = &dummy_con; > + } > #else > conswitchp = &dummy_con; > #endif > > Flo > -- > Florian Lohoff flo@rfc822.org +49-5201-669912 > Nine nineth on september the 9th Welcome to the new billenium -- This kind of limitation can lead administrators to do irrational things, like install Windows. Clearly a fix was required. (lwn.net) From owner-linux-mips@oss.sgi.com Thu Dec 13 12:17:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDKHvj24263 for linux-mips-outgoing; Thu, 13 Dec 2001 12:17:57 -0800 Received: from real.realitydiluted.com (real.realitydiluted.com [208.242.241.164]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDKHno24260 for ; Thu, 13 Dec 2001 12:17:49 -0800 Received: from localhost.localdomain ([127.0.0.1] helo=cotw.com) by real.realitydiluted.com with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 16EbMV-0004GJ-00 for ; Thu, 13 Dec 2001 13:17:43 -0600 Message-ID: <3C18FED6.29254CF8@cotw.com> Date: Thu, 13 Dec 2001 13:17:42 -0600 From: "Steven J. Hill" Reply-To: sjhill@cotw.com X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.12-xfs i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: Inlining of certain functions prevent R3000 kernel from booting... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello. While trying to compile the latest CVS kernel, I notice that by not inlining certain functions my kernel boots fine. If I put the inlines back in, the kernel hangs and does not boot. Below are the three functions that I am unable to inline: **************************************************************** diff -urN -X cvs-exc.txt nino-linux/arch/mips/kernel/traps.c /opt/sgi-cvs/linux- 2.4/linux/arch/mips/kernel/traps.c --- nino-linux/arch/mips/kernel/traps.c Wed Dec 12 17:42:53 2001 +++ /opt/sgi-cvs/linux-2.4/linux/arch/mips/kernel/traps.c Sun Dec 2 05:34 :38 2001 @@ -100,7 +100,7 @@ static struct task_struct *ll_task = NULL; -static void simulate_ll(struct pt_regs *regp, unsigned int opcode) +static inline void simulate_ll(struct pt_regs *regp, unsigned int opcode) { unsigned long value, *vaddr; long offset; @@ -141,7 +141,7 @@ send_sig(signal, current, 1); } -static void simulate_sc(struct pt_regs *regp, unsigned int opcode) +static inline void simulate_sc(struct pt_regs *regp, unsigned int opcode) { unsigned long *vaddr, reg; long offset; diff -urN -X cvs-exc.txt nino-linux/arch/mips/kernel/unaligned.c /opt/sgi-cvs/li nux-2.4/linux/arch/mips/kernel/unaligned.c --- nino-linux/arch/mips/kernel/unaligned.c Wed Dec 12 17:47:27 2001 +++ /opt/sgi-cvs/linux-2.4/linux/arch/mips/kernel/unaligned.c Sat Dec 1 00:04 :49 2001 @@ -96,7 +96,7 @@ if ((long)(~(pc) & ((a) | ((a)+(s)))) < 0) \ goto sigbus; -static void emulate_load_store_insn(struct pt_regs *regs, +static inline void emulate_load_store_insn(struct pt_regs *regs, unsigned long addr, unsigned long pc ) { union mips_instruction insn; **************************************************************** I attempted to do a 'objdump -d' on the kernels with and without the inline statements to see if any registers might be getting hammered. I was not able to see anything obvious, but I did find it difficult to decipher things once inlining was enabled. I have placed the unstripped kernels in a tarball at: ftp://ftp.cotw.com/MIPS/mips-r3k-inline-kernels.tar.bz2 The cross toolchain was made up of: binutils-2.11.92.0.10 gcc-3.0.2 glibc-2.2.3 Is anyone else having problems like this? I am doing the Philips Nino port which has a PR31700 (R3000A core) chip in it. Thanks. -Steve -- Steven J. Hill - Embedded SW Engineer From owner-linux-mips@oss.sgi.com Thu Dec 13 13:46:00 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDLk0F00981 for linux-mips-outgoing; Thu, 13 Dec 2001 13:46:00 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBDLjvo00978 for ; Thu, 13 Dec 2001 13:45:57 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBDKjga09826; Thu, 13 Dec 2001 18:45:42 -0200 Date: Thu, 13 Dec 2001 18:45:42 -0200 From: Ralf Baechle To: "Maciej W. Rozycki" Cc: Kip Walker , linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213184541.A7171@dea.linux-mips.net> References: <20011209221835.A11737@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from macro@ds2.pg.gda.pl on Mon, Dec 10, 2001 at 05:03:41PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 10, 2001 at 05:03:41PM +0100, Maciej W. Rozycki wrote: > > Certainly not. The problem is known and so far I've just hacked around > > it more or less elegant. But it's a trap and so I think we've got good > > reasons to force people to upgrade to a newer assembler than the current > > minimal version. The question is which - I don't like frequent tool > > upgrades. > > There are no working released binutils for a modern MIPS/Linux system, > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > well now, so chances are the next release will do as well. Maybe 2.12 > will be a good candidate then, once it is released and tested a bit. What is the schedule for 2.12? Ralf From owner-linux-mips@oss.sgi.com Thu Dec 13 14:13:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDMD4W03810 for linux-mips-outgoing; Thu, 13 Dec 2001 14:13:04 -0800 Received: from iris1.csv.ica.uni-stuttgart.de (iris1.csv.ica.uni-stuttgart.de [129.69.118.2]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDMD2o03807 for ; Thu, 13 Dec 2001 14:13:02 -0800 Received: from rembrandt.csv.ica.uni-stuttgart.de (rembrandt.csv.ica.uni-stuttgart.de [129.69.118.42]) by iris1.csv.ica.uni-stuttgart.de (SGI-8.9.3/8.9.3) with ESMTP id WAA22597 for ; Thu, 13 Dec 2001 22:12:54 +0100 (MET) Received: from ica2_ts by rembrandt.csv.ica.uni-stuttgart.de with local (Exim 3.32 #1 (Debian)) id 16Ed9y-0005Nn-00 for ; Thu, 13 Dec 2001 22:12:54 +0100 Date: Thu, 13 Dec 2001 22:12:54 +0100 To: linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213221254.G487@rembrandt.csv.ica.uni-stuttgart.de> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213184541.A7171@dea.linux-mips.net> User-Agent: Mutt/1.3.23i From: Thiemo Seufer Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf Baechle wrote: [snip] > > There are no working released binutils for a modern MIPS/Linux system, > > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > > well now, so chances are the next release will do as well. Maybe 2.12 > > will be a good candidate then, once it is released and tested a bit. > > What is the schedule for 2.12? AFAIK it is to be done in parallel to the GCC schedule: 2001-12-15 Functionality freeze. 2002-02-15 Branch for gcc 3.1 and binutils 2.12. 2002-04-15 Release. Thiemo From owner-linux-mips@oss.sgi.com Thu Dec 13 14:28:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDMS7P04298 for linux-mips-outgoing; Thu, 13 Dec 2001 14:28:07 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDMS4o04295 for ; Thu, 13 Dec 2001 14:28:04 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16EdOS-0001os-00; Thu, 13 Dec 2001 16:27:52 -0500 Date: Thu, 13 Dec 2001 16:27:52 -0500 From: Daniel Jacobowitz To: Thiemo Seufer Cc: linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213162752.A6983@nevyn.them.org> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> <20011213221254.G487@rembrandt.csv.ica.uni-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213221254.G487@rembrandt.csv.ica.uni-stuttgart.de> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 10:12:54PM +0100, Thiemo Seufer wrote: > Ralf Baechle wrote: > [snip] > > > There are no working released binutils for a modern MIPS/Linux system, > > > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > > > well now, so chances are the next release will do as well. Maybe 2.12 > > > will be a good candidate then, once it is released and tested a bit. > > > > What is the schedule for 2.12? > > AFAIK it is to be done in parallel to the GCC schedule: > 2001-12-15 Functionality freeze. > 2002-02-15 Branch for gcc 3.1 and binutils 2.12. > 2002-04-15 Release. Where did you get this information from? -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Thu Dec 13 14:28:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDMSVc04330 for linux-mips-outgoing; Thu, 13 Dec 2001 14:28:31 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDMSGo04323; Thu, 13 Dec 2001 14:28:16 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16EdOq-0001p6-00; Thu, 13 Dec 2001 16:28:16 -0500 Date: Thu, 13 Dec 2001 16:28:16 -0500 From: Daniel Jacobowitz To: Ralf Baechle Cc: "Maciej W. Rozycki" , Kip Walker , linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213162816.B6983@nevyn.them.org> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213184541.A7171@dea.linux-mips.net> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 06:45:42PM -0200, Ralf Baechle wrote: > On Mon, Dec 10, 2001 at 05:03:41PM +0100, Maciej W. Rozycki wrote: > > > > Certainly not. The problem is known and so far I've just hacked around > > > it more or less elegant. But it's a trap and so I think we've got good > > > reasons to force people to upgrade to a newer assembler than the current > > > minimal version. The question is which - I don't like frequent tool > > > upgrades. > > > > There are no working released binutils for a modern MIPS/Linux system, > > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > > well now, so chances are the next release will do as well. Maybe 2.12 > > will be a good candidate then, once it is released and tested a bit. > > What is the schedule for 2.12? There isn't one yet; I'm hoping within three months. I'm going to try to roll the ball a little this week. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Thu Dec 13 14:37:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDMbro04603 for linux-mips-outgoing; Thu, 13 Dec 2001 14:37:53 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBDMbmo04600 for ; Thu, 13 Dec 2001 14:37:48 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBDLbUP06934; Thu, 13 Dec 2001 19:37:30 -0200 Date: Thu, 13 Dec 2001 19:37:30 -0200 From: Ralf Baechle To: Daniel Jacobowitz Cc: "Maciej W. Rozycki" , Kip Walker , linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213193730.A6724@dea.linux-mips.net> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> <20011213162816.B6983@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011213162816.B6983@nevyn.them.org>; from dan@debian.org on Thu, Dec 13, 2001 at 04:28:16PM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 04:28:16PM -0500, Daniel Jacobowitz wrote: > Date: Thu, 13 Dec 2001 16:28:16 -0500 > From: Daniel Jacobowitz > To: Ralf Baechle > Cc: "Maciej W. Rozycki" , > Kip Walker , linux-mips@oss.sgi.com > Subject: Re: .section problems in entry.S > > On Thu, Dec 13, 2001 at 06:45:42PM -0200, Ralf Baechle wrote: > > On Mon, Dec 10, 2001 at 05:03:41PM +0100, Maciej W. Rozycki wrote: > > > > > > Certainly not. The problem is known and so far I've just hacked around > > > > it more or less elegant. But it's a trap and so I think we've got good > > > > reasons to force people to upgrade to a newer assembler than the current > > > > minimal version. The question is which - I don't like frequent tool > > > > upgrades. > > > > > > There are no working released binutils for a modern MIPS/Linux system, > > > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > > > well now, so chances are the next release will do as well. Maybe 2.12 > > > will be a good candidate then, once it is released and tested a bit. > > > > What is the schedule for 2.12? > > There isn't one yet; I'm hoping within three months. I'm going to try > to roll the ball a little this week. Longer than I'd like to see. Anybody got a sufficiently hacked version of ~ 2.11? Ralf From owner-linux-mips@oss.sgi.com Thu Dec 13 14:41:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDMf6v04729 for linux-mips-outgoing; Thu, 13 Dec 2001 14:41:06 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDMf3o04726; Thu, 13 Dec 2001 14:41:03 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16EdbD-00020X-00; Thu, 13 Dec 2001 16:41:03 -0500 Date: Thu, 13 Dec 2001 16:41:03 -0500 From: Daniel Jacobowitz To: Ralf Baechle Cc: "Maciej W. Rozycki" , Kip Walker , linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213164103.A7673@nevyn.them.org> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> <20011213162816.B6983@nevyn.them.org> <20011213193730.A6724@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213193730.A6724@dea.linux-mips.net> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 07:37:30PM -0200, Ralf Baechle wrote: > Longer than I'd like to see. Anybody got a sufficiently hacked version > of ~ 2.11? Once I get a patch negotiated with Eric to make option parsing compatible with how we use it now, you'll be able to use 2.12 snapshots... -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Thu Dec 13 14:47:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDMlV205704 for linux-mips-outgoing; Thu, 13 Dec 2001 14:47:31 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBDMlSo05701 for ; Thu, 13 Dec 2001 14:47:29 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBDLlGT07015; Thu, 13 Dec 2001 19:47:16 -0200 Date: Thu, 13 Dec 2001 19:47:16 -0200 From: Ralf Baechle To: "Steven J. Hill" Cc: linux-mips@oss.sgi.com Subject: Re: Inlining of certain functions prevent R3000 kernel from booting... Message-ID: <20011213194716.C6724@dea.linux-mips.net> References: <3C18FED6.29254CF8@cotw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C18FED6.29254CF8@cotw.com>; from sjhill@cotw.com on Thu, Dec 13, 2001 at 01:17:42PM -0600 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 01:17:42PM -0600, Steven J. Hill wrote: > The cross toolchain was made up of: > > binutils-2.11.92.0.10 > gcc-3.0.2 ^^^^^ Ralf From owner-linux-mips@oss.sgi.com Thu Dec 13 15:14:11 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDNEBI06610 for linux-mips-outgoing; Thu, 13 Dec 2001 15:14:11 -0800 Received: from iris1.csv.ica.uni-stuttgart.de (iris1.csv.ica.uni-stuttgart.de [129.69.118.2]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDNE7o06607 for ; Thu, 13 Dec 2001 15:14:07 -0800 Received: from rembrandt.csv.ica.uni-stuttgart.de (rembrandt.csv.ica.uni-stuttgart.de [129.69.118.42]) by iris1.csv.ica.uni-stuttgart.de (SGI-8.9.3/8.9.3) with ESMTP id XAA23391 for ; Thu, 13 Dec 2001 23:13:59 +0100 (MET) Received: from ica2_ts by rembrandt.csv.ica.uni-stuttgart.de with local (Exim 3.32 #1 (Debian)) id 16Ee75-0005cK-00 for ; Thu, 13 Dec 2001 23:13:59 +0100 Date: Thu, 13 Dec 2001 23:13:59 +0100 To: linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213231359.I487@rembrandt.csv.ica.uni-stuttgart.de> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> <20011213221254.G487@rembrandt.csv.ica.uni-stuttgart.de> <20011213162752.A6983@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213162752.A6983@nevyn.them.org> User-Agent: Mutt/1.3.23i From: Thiemo Seufer Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Daniel Jacobowitz wrote: > On Thu, Dec 13, 2001 at 10:12:54PM +0100, Thiemo Seufer wrote: > > Ralf Baechle wrote: > > [snip] > > > > There are no working released binutils for a modern MIPS/Linux system, > > > > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > > > > well now, so chances are the next release will do as well. Maybe 2.12 > > > > will be a good candidate then, once it is released and tested a bit. > > > > > > What is the schedule for 2.12? > > > > AFAIK it is to be done in parallel to the GCC schedule: > > 2001-12-15 Functionality freeze. > > 2002-02-15 Branch for gcc 3.1 and binutils 2.12. > > 2002-04-15 Release. > > Where did you get this information from? The schedule for GCC can be found at http://gcc.gnu.org/develop.html . For the last binutils release there was some connection to the GCC schedule. I _assume_ the next release will be done in a similiar way due to the dependencies between both projects. Thiemo From owner-linux-mips@oss.sgi.com Thu Dec 13 15:21:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBDNLle06936 for linux-mips-outgoing; Thu, 13 Dec 2001 15:21:47 -0800 Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.6]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBDNLio06930 for ; Thu, 13 Dec 2001 15:21:44 -0800 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16EeEU-0002U6-00; Thu, 13 Dec 2001 17:21:38 -0500 Date: Thu, 13 Dec 2001 17:21:38 -0500 From: Daniel Jacobowitz To: Thiemo Seufer Cc: linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S Message-ID: <20011213172138.A9495@nevyn.them.org> References: <20011209221835.A11737@dea.linux-mips.net> <20011213184541.A7171@dea.linux-mips.net> <20011213221254.G487@rembrandt.csv.ica.uni-stuttgart.de> <20011213162752.A6983@nevyn.them.org> <20011213231359.I487@rembrandt.csv.ica.uni-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213231359.I487@rembrandt.csv.ica.uni-stuttgart.de> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 13, 2001 at 11:13:59PM +0100, Thiemo Seufer wrote: > Daniel Jacobowitz wrote: > > On Thu, Dec 13, 2001 at 10:12:54PM +0100, Thiemo Seufer wrote: > > > Ralf Baechle wrote: > > > [snip] > > > > > There are no working released binutils for a modern MIPS/Linux system, > > > > > AFAIK. However, version 2.11.92 from the CVS seems to work reasonably > > > > > well now, so chances are the next release will do as well. Maybe 2.12 > > > > > will be a good candidate then, once it is released and tested a bit. > > > > > > > > What is the schedule for 2.12? > > > > > > AFAIK it is to be done in parallel to the GCC schedule: > > > 2001-12-15 Functionality freeze. > > > 2002-02-15 Branch for gcc 3.1 and binutils 2.12. > > > 2002-04-15 Release. > > > > Where did you get this information from? > > The schedule for GCC can be found at http://gcc.gnu.org/develop.html . > For the last binutils release there was some connection to the GCC > schedule. I _assume_ the next release will be done in a similiar way > due to the dependencies between both projects. Actually, as far as I know there's never been a coupling between GCC and binutils releases. I'm going to try to get 2.12 out before GCC 3.1, though. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer From owner-linux-mips@oss.sgi.com Thu Dec 13 17:47:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE1lMq09199 for linux-mips-outgoing; Thu, 13 Dec 2001 17:47:22 -0800 Received: from sentinel.sanera.net (ns1.sanera.net [208.253.254.10] (may be forged)) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE1lKo09196 for ; Thu, 13 Dec 2001 17:47:21 -0800 Received: from icarus.sanera.net (icarus [192.168.254.11]) by sentinel.sanera.net (8.11.2/8.11.2) with ESMTP id fBE0lEu32093 for ; Thu, 13 Dec 2001 16:47:14 -0800 Received: from exceed2.sanera.net (exceed2.sanera.net [172.16.2.39]) by icarus.sanera.net (8.11.6/8.11.6) with SMTP id fBE0l9n02204 for ; Thu, 13 Dec 2001 16:47:09 -0800 Message-Id: <200112140047.fBE0l9n02204@icarus.sanera.net> Date: Thu, 13 Dec 2001 16:47:09 -0800 (PST) From: Krishna Kondaka Reply-To: Krishna Kondaka Subject: No bzImage target for MIPS To: linux-mips@oss.sgi.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: tFT7hkjA/rQmw3lDAKiyPQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi, There is no "bzImage" target in the mips linux Makefiles. Could you tell me why this is missing? If I want to generate a compressed image for linux on MIPS, how do I do it? Thanks Krishna From owner-linux-mips@oss.sgi.com Thu Dec 13 17:56:15 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE1uFL09343 for linux-mips-outgoing; Thu, 13 Dec 2001 17:56:15 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE1u6o09340 for ; Thu, 13 Dec 2001 17:56:08 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Thu, 13 Dec 2001 19:55:44 -0500 Message-ID: <25369470B6F0D41194820002B328BDD2195AE2@ATLOPS> From: Marc Karasek Reply-To: Krishna Kondaka To: "'Krishna Kondaka '" , "'linux-mips@oss.sgi.com '" Subject: RE: No bzImage target for MIPS Date: Thu, 13 Dec 2001 19:55:42 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk The support for decompression of a bzImage image is not supported in the MIPS kernel. If you do just a "make zImage" I believe this will get you a "zipped" image file. -----Original Message----- From: Krishna Kondaka To: linux-mips@oss.sgi.com Sent: 12/13/01 7:47 PM Subject: No bzImage target for MIPS Hi, There is no "bzImage" target in the mips linux Makefiles. Could you tell me why this is missing? If I want to generate a compressed image for linux on MIPS, how do I do it? Thanks Krishna From owner-linux-mips@oss.sgi.com Thu Dec 13 18:08:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE28C510599 for linux-mips-outgoing; Thu, 13 Dec 2001 18:08:12 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE28Ao10596 for ; Thu, 13 Dec 2001 18:08:10 -0800 Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBE186B05578; Thu, 13 Dec 2001 17:08:06 -0800 Subject: Re: No bzImage target for MIPS From: Pete Popov To: Krishna Kondaka Cc: linux-mips In-Reply-To: <200112140047.fBE0l9n02204@icarus.sanera.net> References: <200112140047.fBE0l9n02204@icarus.sanera.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 13 Dec 2001 17:10:40 -0800 Message-Id: <1008292240.27799.134.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 2001-12-13 at 16:47, Krishna Kondaka wrote: > Hi, > > There is no "bzImage" target in the mips linux Makefiles. Could > you tell me why this is missing? If I want to generate a > compressed image for linux on MIPS, how do I do it? Download the linux-mips drop-in tree from sourceforge.net. Take a look at arch/mips/zboot. The only zImage support in that directory is for the Alchemy Pb1000 board. That's one way to do it and I basically copied it from the ppc tree. You'll have to do some work to add support for whatever board you want, but the example should be sufficient, if you're a developer. If you're a casual user, unfortunately you're out of luck. Pete From owner-linux-mips@oss.sgi.com Thu Dec 13 19:36:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE3aqr11982 for linux-mips-outgoing; Thu, 13 Dec 2001 19:36:52 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE3ado11954 for ; Thu, 13 Dec 2001 19:36:40 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 3C32D83D; Fri, 14 Dec 2001 03:36:29 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 1445B41FC; Fri, 14 Dec 2001 03:35:46 +0100 (CET) Date: Fri, 14 Dec 2001 03:35:46 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: [PATCH] use Hit_invalidate in dma_cache_inv / fix sgiwd93.c Message-ID: <20011214023545.GB25759@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --Y7xTucakfITjPcLV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Here is a short patch for actually letting dma_cache_inv use=20 invalidate. As it might happen if we are not cache-line aligned we need to flush the non-aligned start and end. To take that decision might actually take longer than just flush it thus we simply do it. This would make the case for size<=3Ddc_lsize slower by the factor of a cache_flush on a non-dirty line. I would consider this the non common case because using DMA for something <=3D dc_lsize is also a not very optimal decision. Currently i am unsure about interlocking/timing on 2 cache instructions on the same cache line and i have no documentation at hand. Probably=20 its better to put the flush_dcache behind the while loop. I would be happy to hear comments on this. I am currently running my test again although it might be as Ralf pointed out that this only might lead to problems on devices like tape streamers. If anyone has a streamer handy i would be happy to hear experiences. If i would have known how to interpret HPC3 documentation you would not have to apply the other attached patch - But as life goes i was able to detect my own disability by filesystem corruption :) Index: arch/mips/mm/c-r4k.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/mm/c-r4k.c,v retrieving revision 1.3 diff -u -r1.3 c-r4k.c --- arch/mips/mm/c-r4k.c 2001/11/30 13:28:06 1.3 +++ arch/mips/mm/c-r4k.c 2001/12/14 02:20:20 @@ -1211,9 +1211,14 @@ =20 a =3D addr & ~(dc_lsize - 1); end =3D (addr + size) & ~(dc_lsize - 1); - while (1) { - flush_dcache_line(a); /* Hit_Writeback_Inv_D */ - if (a =3D=3D end) break; + + flush_dcache_line(a); /* Hit_Writeback_Inv_D */ + flush_dcache_line(end); + + a+=3Ddc_lsize; + + while (andptr =3D PHYSADDR(hdata->dma_bounce_buffer); if(datainp) { - dma_cache_wback_inv((unsigned long) cmd->SCp.ptr, cmd->SCp.this_residual= ); + dma_cache_inv((unsigned long) cmd->SCp.ptr, cmd->SCp.this_residual); hregs->ctrl =3D (HPC3_SCTRL_ACTIVE); } else { - dma_cache_inv((unsigned long) cmd->SCp.ptr, cmd->SCp.this_residual); + dma_cache_wback_inv((unsigned long) cmd->SCp.ptr, cmd->SCp.this_residual= ); hregs->ctrl =3D (HPC3_SCTRL_ACTIVE | HPC3_SCTRL_DIR); } =20 --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --Y7xTucakfITjPcLV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GWWBUaz2rXW+gJcRApz5AJ9o5R84jFaRC8l5RCU7KL50/GUjMwCdEuQM KRqruMT6TkhfqSx9Zb0L7PM= =f3Pm -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV-- From owner-linux-mips@oss.sgi.com Thu Dec 13 19:36:45 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE3aj011959 for linux-mips-outgoing; Thu, 13 Dec 2001 19:36:45 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE3ado11953 for ; Thu, 13 Dec 2001 19:36:40 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 0B955850; Fri, 14 Dec 2001 03:36:29 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 3E06B41FC; Fri, 14 Dec 2001 02:15:25 +0100 (CET) Date: Fri, 14 Dec 2001 02:15:25 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: [PATCH] complete indy timer fix - one liner missing Message-ID: <20011214011525.GA25759@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, just a short one liner to let the current cvs compile ... Ralf - You forgot this one ...: Index: sgi-ip22/ip22-setup.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/linux/arch/mips/sgi-ip22/ip22-setup.c,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 ip22-setup.c --- sgi-ip22/ip22-setup.c 2001/12/13 22:14:01 1.1.2.2 +++ sgi-ip22/ip22-setup.c 2001/12/14 02:14:40 @@ -61,7 +61,7 @@ indy_setup wouldn't work since kmalloc isn't initialized yet. */ indy_reboot_setup(); =20 - return request_irq(SGI_KEYBD_IRQ, handler, 0, "keyboard", NULL); + return request_irq(SGI_KEYBOARD_IRQ, handler, 0, "keyboard", NULL); } =20 static int sgi_aux_request_irq(void (*handler)(int, void *, struct pt_regs= *)) Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GVKtUaz2rXW+gJcRAmoJAJ964zQzX/aSvYNCe8KGwylG5oSk2wCgoN6C j2IMEX/MX8UN4nFw1YYPvk4= =CEQ+ -----END PGP SIGNATURE----- --ibTvN161/egqYuK8-- From owner-linux-mips@oss.sgi.com Thu Dec 13 20:30:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE4U6B12625 for linux-mips-outgoing; Thu, 13 Dec 2001 20:30:06 -0800 Received: from idiom.com (espin@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE4Soo12607 for ; Thu, 13 Dec 2001 20:28:50 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id TAA73374; Thu, 13 Dec 2001 19:28:46 -0800 (PST) Date: Thu, 13 Dec 2001 19:28:46 -0800 From: Geoffrey Espin To: Pete Popov Cc: Krishna Kondaka , linux-mips Subject: Re: No bzImage target for MIPS Message-ID: <20011213192846.A36207@idiom.com> References: <200112140047.fBE0l9n02204@icarus.sanera.net> <1008292240.27799.134.camel@zeus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <1008292240.27799.134.camel@zeus>; from Pete Popov on Thu, Dec 13, 2001 at 05:10:40PM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > There is no "bzImage" target in the mips linux Makefiles. Could > > you tell me why this is missing? If I want to generate a > > compressed image for linux on MIPS, how do I do it? I guess Bill Gates was right, he practically created the Open Source movement by "providing" an excellent BIOS. One of Embedded Linux's unspoken "problems" is lack of truly universal boot program. GRUB is as univeral as x86, not! Ppcboot is one of the best, but notice the 'ppc' in the name? I gather that PMON is used by many in MIPS... but that is another secret you won't find revealed, even in Jun Sun's execellent MIPS Porting Guide. :-) COming from a certain proprietary RTOS, I believe, using the OS itself, as the "boot monitor" is best approach. All reusable code, fastest bootstrap (i.e. no 2nd stage loading), etc... But, of course, not optimal for size, though my image is 1.3M which includes a 580K cramfs ramdisk. > Download the linux-mips drop-in tree from sourceforge.net. Take a look > at arch/mips/zboot. The only zImage support in that directory is for > the Alchemy Pb1000 board. That's one way to do it and I basically I finally did rework this. I have a single 360 line "/misc.c" file, a /Boot.make included by arch/linux/boot/Makefile, and /boot.S. There is no cut & pasting of code elsewhere in the linux tree, there are no new directories (zboot, compressed, blah-blah). Its just glue that sticks in front of vmlinux.bin.gz. Where is Korva (AKA Markham), for now. Support for compressed, or not, plus linking a kernel to run at low memory or high. Running at 'high' allows the kernel to load another kernel into 'low' memory without burning flash. All selectable from "make menuconfig". Keeping up with sf.net is one of my failings... so no patch, sorry. Attached are the key files, if anyone thinks this is worth pursuing. Geoff -- Geoffrey Espin espin@idiom.com -- =misc.c========================================================================= /* * For Korva/Markham MIPS by Geoffrey Espin espin@idiom.com * Based on numerous predecessors including... * * Author: Johnnie Peters * Editor: Tom Rini * Ported by Pete Popov to * Copyright 2000-2001 MontaVista Software Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include #include "../../../fs/jffs2/zlib.c" /**/ #include "../../../lib/ctype.c" #undef __HAVE_ARCH_MEMCPY #undef __HAVE_ARCH_MEMSET #include "../../../lib/string.c" #define CONFIG_REMOTE_DEBUG #include "../korva/dbg_io.c" extern char _end[]; /* end of bss */ int printk(const char *fmt, ...); void putc(const char c); void gunzip(void *, int, unsigned char *, int *); /* NEC KORVA/MARKHAM */ #define DELAY(n) { volatile int x,y; for (x=0;x<100000*(n);x++) y=x; } #define LED(n) *(volatile unsigned char*)0xb000001c = (n) #define ZIMAGE_OFFSET 0x00010000 /* 64k per Makefile/VMA/vrboot */ #define ZIMAGE_SIZE 0x00200000 /* 2M */ #define AVAIL_RAM_START (PAGE_ALIGN((int)_end)) /* scratch area after image */ #define AVAIL_RAM_SIZE 0x00100000 /* 1M */ char *avail_ram; /* used by zalloc */ char *end_avail; void decompress_kernel(void) { char *zimage_start; int zimage_size; int i; for (i = 0; i < 8; i++) { LED(1 << (7 - i)); DELAY(5); } /* fix for dbg_io.c on Korva/Markham */ *((volatile uint8 *) (0xb0000000 + 0)) |= 0x8; /* GMR = 0x8 UCSEL (uart) */ avail_ram = (char *) AVAIL_RAM_START; /* used by zalloc */ end_avail = (char *) (AVAIL_RAM_START + AVAIL_RAM_SIZE); zimage_start = (char *) (FLASHADDR + ZIMAGE_OFFSET); zimage_size = ZIMAGE_SIZE; printk("\nUncompressing from %#x to %#x\n", zimage_start, LOADADDR); #if 0 printk("zImage [0-4]: %#x %#x %#x %#x\n", ((unsigned long *) zimage_start)[0], ((unsigned long *) zimage_start)[1], ((unsigned long *) zimage_start)[2], ((unsigned long *) zimage_start)[3]); #endif gunzip((void *) LOADADDR, 0x00400000, zimage_start, &zimage_size); #if 0 printk("entry [0-4]: %#x %#x %#x %#x (at %#x size %d)\n", ((unsigned long *) KERNEL_ENTRY)[0], ((unsigned long *) KERNEL_ENTRY)[1], ((unsigned long *) KERNEL_ENTRY)[2], ((unsigned long *) KERNEL_ENTRY)[3], KERNEL_ENTRY, zimage_size); #endif printk("Booting Linux at %#x\n", KERNEL_ENTRY); for (i = 0; i < 8; i++) { LED(1 << (i)); DELAY(5); } /* XXX returning and letting boot.S jump used to work? */ if (1) { __asm__ __volatile__("jr\t%0"::"r"(KERNEL_ENTRY)); } } void exit(void) { printk("\nexit\n"); while (1) ; } void putc(const char c) { #define serial_putc(ch) putDebugChar(ch) serial_putc(c); if (c == '\n') serial_putc('\r'); } void * zalloc(void *x, unsigned items, unsigned size) { void *p = avail_ram; size *= items; size = (size + 7) & -8; avail_ram += size; if (avail_ram > end_avail) { printk("oops... zalloc(%#x, %d, %#x) out of memory\n", (int) x, items, size); p = NULL; } return p; } void zfree(void *x, void *addr) { } void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp) { #define HEAD_CRC 2 #define EXTRA_FIELD 4 #define ORIG_NAME 8 #define COMMENT 0x10 #define RESERVED 0xe0 #define DEFLATED 8 z_stream s; int r, i, flags; /* skip header */ i = 10; flags = src[3]; if (src[2] != DEFLATED || (flags & RESERVED) != 0) { printk("bad gzipped data\n"); exit(); } if ((flags & EXTRA_FIELD) != 0) i = 12 + src[10] + (src[11] << 8); if ((flags & ORIG_NAME) != 0) while (src[i++] != 0) ; if ((flags & COMMENT) != 0) while (src[i++] != 0) ; if ((flags & HEAD_CRC) != 0) i += 2; if (i >= *lenp) { printk("gunzip: ran out of data in header\n"); exit(); } s.zalloc = zalloc; s.zfree = zfree; r = inflateInit2(&s, -MAX_WBITS); if (r != Z_OK) { printk("inflateInit2 returned %#x\n", r); exit(); } s.next_in = src + i; s.avail_in = *lenp - i; s.next_out = dst; s.avail_out = dstlen; r = inflate(&s, Z_FINISH); if (r != Z_OK && r != Z_STREAM_END) { printk("inflate returned %#x\n", r); exit(); } *lenp = s.next_out - (unsigned char *) dst; inflateEnd(&s); } int _cvt(unsigned long val, char *buf, long radix, char *digits) { char temp[80]; char *cp = temp; int length = 0; if (val == 0) { /* Special case */ *cp++ = '0'; } else while (val) { *cp++ = digits[val % radix]; val /= radix; } while (cp != temp) { *buf++ = *--cp; length++; } *buf = '\0'; return (length); } #define is_digit(c) ((c >= '0') && (c <= '9')) void _vprintk(void (*putc) (const char), const char *fmt0, va_list ap) { char c, sign, *cp = 0; int left_prec, right_prec, zero_fill, length = 0, pad, pad_on_right; char buf[32]; long val; while ((c = *fmt0++)) { if (c == '%') { c = *fmt0++; left_prec = right_prec = pad_on_right = 0; if (c == '#') c = *fmt0++; /* ignore alternate fmt */ if (c == '-') { c = *fmt0++; pad_on_right++; } if (c == '0') { zero_fill = 1; c = *fmt0++; } else { zero_fill = 0; } while (is_digit(c)) { left_prec = (left_prec * 10) + (c - '0'); c = *fmt0++; } if (c == '.') { c = *fmt0++; zero_fill++; while (is_digit(c)) { right_prec = (right_prec * 10) + (c - '0'); c = *fmt0++; } } else { right_prec = left_prec; } sign = '\0'; switch (c) { case 'd': case 'x': case 'X': val = va_arg(ap, long); switch (c) { case 'd': if (val < 0) { sign = '-'; val = -val; } length = _cvt(val, buf, 10, "0123456789"); break; case 'x': length = _cvt(val, buf, 16, "0123456789abcdef"); break; case 'X': length = _cvt(val, buf, 16, "0123456789ABCDEF"); break; } cp = buf; break; case 's': cp = va_arg(ap, char *); length = strlen(cp); break; case 'c': c = va_arg(ap, long /*char */ ); (*putc) (c); continue; default: (*putc) ('?'); } pad = left_prec - length; if (sign != '\0') { pad--; } if (zero_fill) { c = '0'; if (sign != '\0') { (*putc) (sign); sign = '\0'; } } else { c = ' '; } if (!pad_on_right) { while (pad-- > 0) { (*putc) (c); } } if (sign != '\0') { (*putc) (sign); } while (length-- > 0) { (*putc) (c = *cp++); if (c == '\n') { (*putc) ('\r'); } } if (pad_on_right) { while (pad-- > 0) { (*putc) (c); } } } else { (*putc) (c); if (c == '\n') { (*putc) ('\r'); } } } } int printk(const char *fmt, ...) { va_list args; va_start(args, fmt); _vprintk(putc, fmt, args); va_end(args); return 0; } =boot.S========================================================================= /* * boot.S * * Modified by Geoffrey Espin for NEC Electronics * * Copyright (C) 1999 Bradley D. LaRonde * Copyright (C) 2001 Dai Itasaka * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include #include #include #include #include #define FLASH_BEGIN (FLASHADDR+0x00010000) // skip first 64k (this program) #define FLASH_END (FLASHADDR+0x00400000) // 4M; see Boot.make /* EC:7(CPU clock / 1), EP:0(1word/1cycle), AD:0(VR4000 compatible) M16:0(Disable), BE:1(Big endian), CS:1(+10), IC:4(16K), DC:3(8K) K0:2(Disable) 31 30 28 27 24 23 22 21 19 18 17 16 15 14 13 12 11 9 8 6 5 3 2 0 +---+-----+-----+---+-----+---+---+---+---+---+-----+---+-----+----+---+----+ | 0 | EC | EP | AD| 0 |M16| 0 | 1 | 0 | BE| 1 0 | CS| IC | DC | 0 | K0 | +---+-----+-----+---+-----+---+---+---+---+---+-----+---+-----+----+---+----+ EC : Tclock rate, EP : Transfer data pattern setting, AD : Accelerate data mode, M16 : MIPS16 ISA mode enable BE : BigEndian, CS : Cache Size mode Indication(fixed to 1) IC : Instruction Cache Size, DC : Data Cache Size, K0 : kseg0 coherency algorithm See uPD98501 Preliminary User's Manual, Chapter 2, page 156. */ #define KORVA_CONFIG_INIT_VAL_BE 0x7002d8c2 /*BE*/ #define KORVA_CONFIG_INIT_VAL 0x700258c2 /*LE*/ #define DEBUG #ifdef DEBUG #define DEBUG_LED 0xb000001c #define CHECKPOINT(n) li t4, n; sw t4, DEBUG_LED; #else #define CHECKPOINT(n) #endif LEAF(__start) .set mips3 .set noreorder nop // patched by script if using Kyoto-Micro ROM Emulator nop nop mtc0 zero, CP0_STATUS // disable interrupts mtc0 zero, CP0_CAUSE // clear interrupts li t0, KORVA_CONFIG_INIT_VAL mtc0 t0, CP0_CONFIG // make sure the cache is disabled mtc0 zero, CP0_WATCHLO mtc0 zero, CP0_WATCHHI // disable watch exception CHECKPOINT(0xB1) /* setup_hardware (was function, now PIC as may be linked at RAM) */ // check if the CPU is running at 66MHz or 100MHz lui t0, 0xb000 lw t1, 4(t0) // 0xb0000004 = GSR li t0, 2 // CCLKSEL and t0, t0, t1 beq zero, t0, clk100 lui t0, 0xb000 clk66: li t1, 0x120 // SDMDR sw t1, 0x108(t0) // *(0xb0000108) = 0x120; li t1, 0x000 // SDPTR sw t1, 0x110(t0) // *(0xb0000110) = 0x000; beq zero, zero, 1f nop clk100: li t1, 0x230 // SDMDR sw t1, 0x108(t0) // *(0xb0000108) = 0x230; li t1, 0x021 // SDPTR sw t1, 0x110(t0) // *(0xb0000110) = 0x021; 1: #if defined(CONFIG_NEC_MARKHAM_32MB) li t1, 0x3c2 // SDTSR 32M // CAB=0x02, RAB=0x40 BTM=0x0080 SIZE=0x300(32M) #else li t1, 0x1a1 // SDTSR 8M // CAB=0x01, RAB=0x20 BTM=0x0080 SIZE=0x100(8M) #endif sw t1, 0x10c(t0) // *(0xb000010c) = 0x1a1/0x3c2; // allow writing to flash parts li t1, 0x100 // RMMDR (00 4MB mode) WM=1 unmasked sw t1, 0x100(t0) // *(0xb0000100) = 0x000; li t1, 0x003 // RMATR FAT_8 sw t1, 0x104(t0) // *(0xb0000104) = 0x003; li t1, 0x000 // IMR sw t1, 0x00c(t0) // disable all INTs nop /* end of setup_hardware */ CHECKPOINT(0xB2) /* invalidate_cache (was function, now PIC as may be linked at RAM) */ mtc0 zero, CP0_TAGLO // invalidate the instruction cache li s0, 0x80000000 li s1, 0x80000000 + (1 << 14) // 16k 1: cache (2 << 2) | 0, (s0) add s0, 0x10 bne s0, s1, 1b nop mtc0 zero, CP0_TAGLO // invalidate the data cache li s0, 0x80000000 li s1, 0x80000000 + (1 << 13) // 8k 1: cache (2 << 2) | 1, (s0) add s0, 0x10 bne s0, s1, 1b nop nop /* end of invalidate_cache */ CHECKPOINT(0xB3) mfc0 t0, CP0_CONFIG // enable kseg0 caching ori t0, 0x1 // cached mtc0 t0, CP0_CONFIG CHECKPOINT(0xB4) #ifdef CONFIG_NEC_KORVA_COMPRESSED relocate: la sp, .stack move s0, a0 move s1, a1 move s2, a2 move s3, a3 la a0, __start li a1, FLASHADDR la a2, _edata subu t1, a2, a0 srl t1, t1, 2 /* copy text section */ li t0, 0 1: lw v0, 0(a1) nop sw v0, 0(a0) xor t0, t0, v0 addu a0, 4 bne a2, a0, 1b addu a1, 4 /* clear BSS */ la a0, _edata la a2, _end 2: sw zero, 0(a0) bne a2, a0, 2b addu a0, 4 /* now that code is in RAM we can jump okay */ // decompress kernel to ram la ra, 1f la t4, decompress_kernel // elsewhere in 'C' jr t4 #else /* actually we were linked at ROM so we're okay */ // copy kernel to ram la ra, 1f la t4, copy_kernel jr t4 #endif nop 1: CHECKPOINT(0xB5) // jump to kernel entry point li t4, KERNEL_ENTRY jr t4 nop nop END(__start) LEAF(copy_kernel) // copy kernel from ROM to RAM // Load s0 = src, s1 = src_end, s2 = dest. li s0, FLASH_BEGIN li s1, FLASH_END li s2, LOADADDR sw zero, (s2) sw zero, 4(s2) sw zero, 8(s2) sw zero, 12(s2) 1: // Only update LED once in a while. and t0, s0, 0xffff bne t0, zero, 2f // Show copy progress on LED. srl t0, s0, 16 sh t0, DEBUG_LED 2: // Copy src to dest. lw t0, (s0) bne t0, zero, 3f nop sw zero, (s2) beq zero, zero, 4f nop 3: sw t0, (s2) 4: // Increment src and dest. add s0, 4 add s2, 4 // Loop if still more to go. bne s0, s1, 1b nop jr ra nop END(copy_kernel) #ifdef CONFIG_NEC_KORVA_COMPRESSED .comm .stack,4096*2,4 // used by relocate to call 'C' program #endif =Boot.make====================================================================== # Boot.make - used by ../boot/Makefile OBJCOPY = mipsel-linux-objcopy OBJCOPY_FLAGS = -R .stab -R .stabstr -R .comment -R .note -R .reginfo -R .mdebug OBJDUMP = mipsel-linux-objdump #OBJDUMP_HFLAGS = --disassemble-all -b srec -m mips:4600 -EL TOPDIR = ../../.. ifeq ($(LINUX_SRC),) LINUX_SRC=$(TOPDIR) endif VMLINUX=$(LINUX_SRC)/vmlinux SYSTEM_MAP=$(LINUX_SRC)/System.map ifeq ($(USERLAND),) USERLAND=$(LINUX_SRC)/../userland endif FLASHADDR = 0xbfc00000 # see arch/mips/Makefile LOADADDR # 0x10000 bottom 64k reserved by/for boot.S (FLASH_BEGIN) # 0x02000 additional 8k reserved RAM image vector table (see LOADADDR) ifdef CONFIG_NEC_MARKHAM_BOOTROM NN=10#in hex is 16M LOADADDR += 0x81002000 ZLOADADDR += 0x81402000# +4M VMA = 0x7f00e000 # 0x0-0x81000000+0x10000-0x2000 ZVMA = 0x7ebfe000 # 0x0-0x81402000 else NN=00 LOADADDR += 0x80002000 ZLOADADDR += 0x80402000# +4M VMA = 0x8000e000 # 0x0-0x80000000+0x10000-0x2000 ZVMA = 0x7fbfe000 # 0x0-0x80402000 endif KERNEL_ENTRY=$(shell awk '/kernel_entry/{print "0x" $$1}' $(LINUX_SRC)/System.map) override CFLAGS += -DKERNEL_ENTRY=$(KERNEL_ENTRY) -DNN=$(NN) override CFLAGS += -DLOADADDR=$(LOADADDR) -DFLASHADDR=$(FLASHADDR) -DZLOADADDR=$(ZLOADADDR) ifdef CONFIG_NEC_KORVA_COMPRESSED zbootroms: bin zsrec else bootroms: bin srec endif $(TOPDIR)/arch/$(ARCH)/ld.script.$(ZLOADADDR)_z: $(TOPDIR)/arch/$(ARCH)/ld.script.in sed -e 's/kernel_entry/__start/' -e 's/@@LOADADDR@@/$(ZLOADADDR)/' <$< >$@ ZLINKFLAGS += -T $(TOPDIR)/arch/$(ARCH)/ld.script.$(ZLOADADDR)_z misc.c: ../korva/misc.c @rm -f $@ cp $< $@ boot.S: ../korva/boot.S @rm -f $@ cp $< $@ #vrboot$(NN): boot.o vrboot$(NN): boot.o misc.o $(TOPDIR)/arch/$(ARCH)/ld.script.$(ZLOADADDR)_z @rm -f $@ ifdef CONFIG_NEC_KORVA_COMPRESSED $(LD) $(LDFLAGS) -static -EL -N -o $@ $(ZLINKFLAGS) boot.o misc.o else $(LD) $(LDFLAGS) -static -EL -N -o $@ -Ttext $(FLASHADDR) boot.o endif @rm -f $^ ../boot/misc.c ../boot/boot.S vmlinux$(NN): $(VMLINUX) @rm -f System$(NN).map cp -p $(SYSTEM_MAP) System$(NN).map cp -p $< $@ # move sections to 0, then add bfc00000 for ROMulator vrvmlinux$(NN)-0: vmlinux$(NN) vrboot$(NN) @rm -f $@ $(OBJCOPY) $(OBJCOPY_FLAGS) --change-addresses 0 -O binary \ vrboot$(NN) vrboot$(NN)-0.bin $(OBJCOPY) $(OBJCOPY_FLAGS) --change-addresses $(VMA) \ vmlinux$(NN) vmlinux$(NN)-0 $(OBJCOPY) $(OBJCOPY_FLAGS) --add-section .vrboot=vrboot$(NN)-0.bin \ --set-section-flags .vrboot=,alloc,load,readonly,code \ vmlinux$(NN)-0 vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc: vrvmlinux$(NN)-0 $(OBJCOPY) $(OBJCOPY_FLAGS) --change-address $(FLASHADDR) \ vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc # xxx-bfc.bin is for 'reload' & 'reburn' used on a running system vrvmlinux$(NN)-bfc.bin: vrvmlinux$(NN)-0 $(OBJCOPY) $(OBJCOPY_FLAGS) --change-address $(FLASHADDR) -O binary \ vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc.bin bin: vrvmlinux$(NN)-bfc vrvmlinux$(NN)-bfc.bin vrvmlinux$(NN)-0.srec: vrvmlinux$(NN)-0 $(OBJCOPY) $(OBJCOPY_FLAGS) -O srec --srec-forceS3 --gap-fill 0 \ vrvmlinux$(NN)-0 vrvmlinux$(NN)-0.srec $(OBJCOPY) $(OBJCOPY_FLAGS) --change-address $(FLASHADDR) -O srec \ vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc.srec srec: vrvmlinux$(NN)-0.srec # used by 'reburn' script for Korva (8M) which needs small 256K chunks split: @rm -rf split @mkdir split cd split && split -b 256k ../vrvmlinux00-bfc.bin vrvm # compressed... vmlinux$(NN).bin.gz: vmlinux$(NN) $(OBJCOPY) -S -O binary $< $<.bin gzip -vf $<.bin zvrvmlinux$(NN)-0: vmlinux$(NN).bin.gz vrboot$(NN) @rm -f $@ $(OBJCOPY) $(OBJCOPY_FLAGS) --change-addresses=$(ZVMA) \ vrboot$(NN) zvrboot$(NN)-0 $(OBJCOPY) $(OBJCOPY_FLAGS) --add-section .vmlinux=vmlinux$(NN).bin.gz \ --change-section-address .vmlinux=0x10000 \ --set-section-flags .vmlinux=,alloc,load,readonly,code \ zvrboot$(NN)-0 zvrvmlinux$(NN)-0 zvrvmlinux$(NN)-0.srec: zvrvmlinux$(NN)-0 $(OBJCOPY) $(OBJCOPY_FLAGS) -O srec --srec-forceS3 \ zvrvmlinux$(NN)-0 zvrvmlinux$(NN)-0.srec $(OBJCOPY) $(OBJCOPY_FLAGS) -O srec --srec-forceS3 \ --change-address 0xbfc00000 \ zvrvmlinux$(NN)-0 zvrvmlinux$(NN)-bfc.srec zsrec: zvrvmlinux$(NN)-0.srec clean:: @rm -f System* vrvmlinux* vmlinux* vrboot* zvrvmlinux* ================================================================================ From owner-linux-mips@oss.sgi.com Thu Dec 13 20:52:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE4qgt12768 for linux-mips-outgoing; Thu, 13 Dec 2001 20:52:42 -0800 Received: from yog-sothoth.sgi.com (eugate.sgi.com [192.48.160.10]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE4qco12764 for ; Thu, 13 Dec 2001 20:52:39 -0800 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by yog-sothoth.sgi.com (980305.SGI.8.8.8-aspam-6.2/980304.SGI-aspam-europe) via ESMTP id EAA997594 for ; Fri, 14 Dec 2001 04:52:13 +0100 (CET) mail_from (kaos@ocs.com.au) Received: from kao2.melbourne.sgi.com (kao2.melbourne.sgi.com [134.14.55.180]) by nodin.corp.sgi.com (8.11.4/8.11.2/nodin-1.0) with ESMTP id fBE3pS417866063; Thu, 13 Dec 2001 19:51:29 -0800 (PST) Received: by kao2.melbourne.sgi.com (Postfix, from userid 16331) id 2AA94300090; Fri, 14 Dec 2001 14:51:26 +1100 (EST) Received: from kao2.melbourne.sgi.com (localhost [127.0.0.1]) by kao2.melbourne.sgi.com (Postfix) with ESMTP id D3EC896; Fri, 14 Dec 2001 14:51:26 +1100 (EST) X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 From: Keith Owens To: Geoffrey Espin Cc: linux-mips Subject: Re: No bzImage target for MIPS In-reply-to: Your message of "Thu, 13 Dec 2001 19:28:46 -0800." <20011213192846.A36207@idiom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 14 Dec 2001 14:51:21 +1100 Message-ID: <1901.1008301881@kao2.melbourne.sgi.com> Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 13 Dec 2001 19:28:46 -0800, Geoffrey Espin wrote: >=misc.c========================================================================= >#include "../../../fs/jffs2/zlib.c" /**/ >#include "../../../lib/ctype.c" I am phasing out the practice of ../ in kernel include paths. It is much better to do #include "zlib.c" #include "ctype.c" and the Makefile adds -I$(TOPDIR)/fs/jffs2 -I$(TOPDIR)/lib. Then when sources are moved from one directory to another, the source does not change, only the Makefile. Relative paths are a pain in the neck in Makefiles, they are even more of a pain in source code. >TOPDIR = ../../.. TOPDIR := $(shell cd ../../..; /bin/pwd) is better, it returns an absolute path instead of a relative one. Keith Owens, kernel build maintainer From owner-linux-mips@oss.sgi.com Thu Dec 13 21:12:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBE5CPm13108 for linux-mips-outgoing; Thu, 13 Dec 2001 21:12:25 -0800 Received: from idiom.com (espin@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBE5CLo13104 for ; Thu, 13 Dec 2001 21:12:21 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id UAA96483; Thu, 13 Dec 2001 20:12:11 -0800 (PST) Date: Thu, 13 Dec 2001 20:12:10 -0800 From: Geoffrey Espin To: Keith Owens Cc: linux-mips Subject: Re: No bzImage target for MIPS Message-ID: <20011213201210.A86040@idiom.com> References: <20011213192846.A36207@idiom.com> <1901.1008301881@kao2.melbourne.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <1901.1008301881@kao2.melbourne.sgi.com>; from Keith Owens on Fri, Dec 14, 2001 at 02:51:21PM +1100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Keith, On Fri, Dec 14, 2001 at 02:51:21PM +1100, Keith Owens wrote: > >#include "../../../fs/jffs2/zlib.c" /**/ > >#include "../../../lib/ctype.c" > I am phasing out the practice of ../ in kernel include paths. It is > much better to do > #include "zlib.c" > #include "ctype.c" > and the Makefile adds -I$(TOPDIR)/fs/jffs2 -I$(TOPDIR)/lib. Then when I'll check around the tree. Doesn't matter to me. Both have crappy implications. I hate it when -I's pile up... and you don't know which directory takes precedence (esp. if there are duplicate names). > >TOPDIR = ../../.. > TOPDIR := $(shell cd ../../..; /bin/pwd) > is better, it returns an absolute path instead of a relative one. Hmmm, okay. I probably shouldn't even have this macro. I had hacked things earlier so I didn't have to run 'make' from linux/. Thanks for the quick feedback, mate! [I'll spare someone pointing out that I should have tried to use linux/lib/vsprintf.c. Missed it! What a newbie.] Geoff -- Geoffrey Espin espin@idiom.com From owner-linux-mips@oss.sgi.com Fri Dec 14 03:50:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEBoPI25435 for linux-mips-outgoing; Fri, 14 Dec 2001 03:50:25 -0800 Received: from dell.zentropix.co.uk ([212.74.13.151]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEBoJo25417 for ; Fri, 14 Dec 2001 03:50:20 -0800 Received: from lineo.com (IDENT:seh@localhost.localdomain [127.0.0.1]) by dell.zentropix.co.uk (8.9.3/8.9.3) with ESMTP id KAA21744 for ; Fri, 14 Dec 2001 10:50:15 GMT Message-ID: <3C19D967.58F2BC90@lineo.com> Date: Fri, 14 Dec 2001 10:50:15 +0000 From: Stuart Hughes X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.19-rthal3 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: problems with libpthread at start-up Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi everyone, I've successfully built and deployed a system using a toolchain I built using the instructions at: http://www.ltc.com/~brad/mips/mips-cross-toolchain, which were very helpful. This gives a combination of: binutils-2.11.90.0.25, gcc-3.0.1, glibc-2.2.3, linuxthreads-2.2.3 & glibc-2.2.3-mips-base-addr-got.diff A simple 'hello world' programs in both c and c++ work, statically and dynamically linked, but as soon as I try to link or use pthreads I get the following (dynamic linking): # ./helloc [helloc:23] Illegal instruction 00000003 at 2ad0847c ra=2ab76820 My ldd shows # /lib/ld.so.1 --list ./helloc libpthread.so.0 => //lib/libpthread.so.0 (0x2aaaa000) libc.so.6 => //lib/libc.so.6 (0x2ab05000) /lib/ld.so.1 => /lib/ld.so.1 (0x55550000) libgcc_s.so.1 => //lib/libgcc_s.so.1 (0x2acb1000) I'm running on an IDT79RC32334 It seems as though I must have missed a patch or something. Does anyone know if there is a fix for this. BTW, the hello program does not even create a pthread, all I did was add -lpthread onto the compile line. -- Regards, Stuart From owner-linux-mips@oss.sgi.com Fri Dec 14 07:49:34 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEFnYb02573 for linux-mips-outgoing; Fri, 14 Dec 2001 07:49:34 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEFmpo02558; Fri, 14 Dec 2001 07:48:51 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id PAA24298; Fri, 14 Dec 2001 15:47:28 +0100 (MET) Date: Fri, 14 Dec 2001 15:47:28 +0100 (MET) From: "Maciej W. Rozycki" To: Ralf Baechle cc: Daniel Jacobowitz , Kip Walker , linux-mips@oss.sgi.com Subject: Re: .section problems in entry.S In-Reply-To: <20011213193730.A6724@dea.linux-mips.net> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 13 Dec 2001, Ralf Baechle wrote: > Longer than I'd like to see. Anybody got a sufficiently hacked version > of ~ 2.11? My 2.11.2 appears rock-solid with one exception -- its as mishandles la when used in a 32-bit source after a 64-bit ISA has been set (with e.g. "set .mips3"). I just haven't bothered myself to fix it and switched to 2.11.92 instead. I have no idea if it works for ELF64, either. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Fri Dec 14 10:27:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEIRnQ05503 for linux-mips-outgoing; Fri, 14 Dec 2001 10:27:49 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEIRko05500 for ; Fri, 14 Dec 2001 10:27:46 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id CB4997CF5; Fri, 14 Dec 2001 17:27:39 +0000 (GMT) Date: Fri, 14 Dec 2001 17:27:39 +0000 From: Ian Chilton To: linux-mips@oss.sgi.com Subject: Current Kernel in CVS Broken Message-ID: <20011214172739.A28669@woody.ichilton.co.uk> Reply-To: Ian Chilton Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk 2.4 cvs broken mips-linux-gcc -I /home/ian/tmp/i2/linux/include/asm/gcc -D__KERNEL__ -I/home/ian/tmp/i2/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -c -o ip22-setup.o ip22-setup.c ip22-setup.c: In function `sgi_request_irq': ip22-setup.c:64: `SGI_KEYBD_IRQ' undeclared (first use in this function) ip22-setup.c:64: (Each undeclared identifier is reported only once ip22-setup.c:64: for each function it appears in.) make[1]: *** [ip22-setup.o] Error 1 make[1]: Leaving directory `/home/ian/tmp/i2/linux/arch/mips/sgi-ip22' make: *** [_dir_arch/mips/sgi-ip22] Error 2 Ian From owner-linux-mips@oss.sgi.com Fri Dec 14 10:43:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEIhqJ05680 for linux-mips-outgoing; Fri, 14 Dec 2001 10:43:52 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEIhlo05676 for ; Fri, 14 Dec 2001 10:43:47 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 0FA5284E; Fri, 14 Dec 2001 18:43:36 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id D14674241; Fri, 14 Dec 2001 18:43:04 +0100 (CET) Date: Fri, 14 Dec 2001 18:43:04 +0100 From: Florian Lohoff To: Ian Chilton Cc: linux-mips@oss.sgi.com Subject: Re: Current Kernel in CVS Broken Message-ID: <20011214174304.GA7510@paradigm.rfc822.org> References: <20011214172739.A28669@woody.ichilton.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <20011214172739.A28669@woody.ichilton.co.uk> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 14, 2001 at 05:27:39PM +0000, Ian Chilton wrote: > 2.4 cvs broken >=20 > mips-linux-gcc -I /home/ian/tmp/i2/linux/include/asm/gcc -D__KERNEL__ > -I/home/ian/tmp/i2/linux/include -Wall -Wstrict-prototypes > -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing > -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=3Dr4600 -mips2 -Wa,--trap > -pipe -c -o ip22-setup.o ip22-setup.c > ip22-setup.c: In function `sgi_request_irq': > ip22-setup.c:64: `SGI_KEYBD_IRQ' undeclared (first use in this > function) > ip22-setup.c:64: (Each undeclared identifier is reported only once > ip22-setup.c:64: for each function it appears in.) > make[1]: *** [ip22-setup.o] Error 1 > make[1]: Leaving directory `/home/ian/tmp/i2/linux/arch/mips/sgi-ip22' > make: *** [_dir_arch/mips/sgi-ip22] Error 2 You already have the fix in your inbox for a couple of hours which is a one liner. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8GjooUaz2rXW+gJcRAuvDAKCI/nEabjYWuX2k7THqDq97UMNP7wCaAzgs rb611oJZ4RxbA8BDTQcZ3Os= =CQfy -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- From owner-linux-mips@oss.sgi.com Fri Dec 14 11:08:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEJ8n806020 for linux-mips-outgoing; Fri, 14 Dec 2001 11:08:49 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEJ8ko06017 for ; Fri, 14 Dec 2001 11:08:46 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id 7FE887CF5; Fri, 14 Dec 2001 18:08:39 +0000 (GMT) Date: Fri, 14 Dec 2001 18:08:39 +0000 From: Ian Chilton To: Florian Lohoff Cc: linux-mips@oss.sgi.com Subject: Re: Current Kernel in CVS Broken Message-ID: <20011214180839.A28794@woody.ichilton.co.uk> Reply-To: Ian Chilton References: <20011214172739.A28669@woody.ichilton.co.uk> <20011214174304.GA7510@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <20011214174304.GA7510@paradigm.rfc822.org>; from flo@rfc822.org on Fri, Dec 14, 2001 at 06:43:04PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, Thanks for the reply! > You already have the fix in your inbox for a couple of hours which is a > one liner. Sorry my mistake. I found it now: Dec 14 Florian Lohoff ( 51) [PATCH] complete indy timer fix - one liner missing Do I also need both of these as well??: Dec 13 Florian Lohoff ( 106) Re: Current CVS on Indigo2 fail Dec 14 Florian Lohoff ( 123) [PATCH] use Hit_invalidate in dma_cache_inv / fix sgiwd93.c Thanks! Ian From owner-linux-mips@oss.sgi.com Fri Dec 14 11:22:30 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEJMUl06588 for linux-mips-outgoing; Fri, 14 Dec 2001 11:22:30 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEJL9o06574 for ; Fri, 14 Dec 2001 11:21:09 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id KAA07368 for ; Fri, 14 Dec 2001 10:20:28 -0800 (PST) mail_from (ppopov@mvista.com) Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBEI33B10133; Fri, 14 Dec 2001 10:03:05 -0800 Subject: Re: No bzImage target for MIPS From: Pete Popov To: Geoffrey Espin Cc: Krishna Kondaka , linux-mips In-Reply-To: <20011213192846.A36207@idiom.com> References: <200112140047.fBE0l9n02204@icarus.sanera.net> <1008292240.27799.134.camel@zeus> <20011213192846.A36207@idiom.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Dec 2001 10:05:47 -0800 Message-Id: <1008353149.27799.144.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 2001-12-13 at 19:28, Geoffrey Espin wrote: > > > > There is no "bzImage" target in the mips linux Makefiles. Could > > > you tell me why this is missing? If I want to generate a > > > compressed image for linux on MIPS, how do I do it? > > I guess Bill Gates was right, he practically created the Open > Source movement by "providing" an excellent BIOS. > > One of Embedded Linux's unspoken "problems" is lack of truly > universal boot program. GRUB is as univeral as x86, not! > Ppcboot is one of the best, but notice the 'ppc' in the name? > I gather that PMON is used by many in MIPS... but that is another > secret you won't find revealed, even in Jun Sun's execellent MIPS > Porting Guide. :-) The "original" pmon has outlived its purpose, although it's still found on many boards. I've become a fan of MIPS Tech's yamon; it's small, it works, it has just the features I need in an embedded system, and, did I say it works?. Unfortunately the code is released under NDA only. If MIPS opened the code, I think you would see it on many more boards. > COming from a certain proprietary RTOS, I believe, using the OS > itself, as the "boot monitor" is best approach. All reusable > code, fastest bootstrap (i.e. no 2nd stage loading), etc... But, > of course, not optimal for size, though my image is 1.3M which > includes a 580K cramfs ramdisk. That's fine once you've ported the kernel to your board. What do you do before that point? > > Download the linux-mips drop-in tree from sourceforge.net. Take a look > > at arch/mips/zboot. The only zImage support in that directory is for > > the Alchemy Pb1000 board. That's one way to do it and I basically > > I finally did rework this. I have a single 360 line "/misc.c" file, > a /Boot.make included by arch/linux/boot/Makefile, and /boot.S. > There is no cut & pasting of code elsewhere in the linux tree, there are > no new directories (zboot, compressed, blah-blah). Its just glue that > sticks in front of vmlinux.bin.gz. Where is Korva (AKA Markham), > for now. Support for compressed, or not, plus linking a kernel to run > at low memory or high. Running at 'high' allows the kernel to load > another kernel into 'low' memory without burning flash. All selectable > from "make menuconfig". > > Keeping up with sf.net is one of my failings... so no patch, sorry. > Attached are the key files, if anyone thinks this is worth pursuing. That's OK, I'm sure someone with interest in the Korva can create the patch. But I fail to see how having this code in every directory is better than having a separate boot directory like the ppc arch. The ppc-like zImage support I added is a bit different from the patch below. It assumes that you do have a boot loader and the 'kernel loader' is basically separate from the kernel image itself. Adding initrd support that's not statically compiled in the kernel should be pretty easy and I like that approach better than statically compiled initrd images. Pete > Geoff > -- > Geoffrey Espin espin@idiom.com > -- > > =misc.c========================================================================= > /* > * For Korva/Markham MIPS by Geoffrey Espin espin@idiom.com > * Based on numerous predecessors including... > * > * Author: Johnnie Peters > * Editor: Tom Rini > * Ported by Pete Popov to > * Copyright 2000-2001 MontaVista Software Inc. > * > * This program is free software; you can redistribute it and/or modify it > * under the terms of the GNU General Public License as published by the > * Free Software Foundation; either version 2 of the License, or (at your > * option) any later version. > * > * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED > * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF > * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN > * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, > * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT > * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF > * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON > * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT > * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF > * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > * > * You should have received a copy of the GNU General Public License along > * with this program; if not, write to the Free Software Foundation, Inc., > * 675 Mass Ave, Cambridge, MA 02139, USA. > */ > > #include > > #include > #include > > #include "../../../fs/jffs2/zlib.c" /**/ > #include "../../../lib/ctype.c" > #undef __HAVE_ARCH_MEMCPY > #undef __HAVE_ARCH_MEMSET > #include "../../../lib/string.c" > #define CONFIG_REMOTE_DEBUG > #include "../korva/dbg_io.c" > > extern char _end[]; /* end of bss */ > > int printk(const char *fmt, ...); > void putc(const char c); > > void gunzip(void *, int, unsigned char *, int *); > > /* NEC KORVA/MARKHAM */ > #define DELAY(n) { volatile int x,y; for (x=0;x<100000*(n);x++) y=x; } > #define LED(n) *(volatile unsigned char*)0xb000001c = (n) > > #define ZIMAGE_OFFSET 0x00010000 /* 64k per Makefile/VMA/vrboot */ > #define ZIMAGE_SIZE 0x00200000 /* 2M */ > > #define AVAIL_RAM_START (PAGE_ALIGN((int)_end)) /* scratch area after image */ > #define AVAIL_RAM_SIZE 0x00100000 /* 1M */ > > char *avail_ram; /* used by zalloc */ > char *end_avail; > > void > decompress_kernel(void) > { > char *zimage_start; > int zimage_size; > int i; > > for (i = 0; i < 8; i++) { > LED(1 << (7 - i)); > DELAY(5); > } > > /* fix for dbg_io.c on Korva/Markham */ > *((volatile uint8 *) (0xb0000000 + 0)) |= 0x8; /* GMR = 0x8 UCSEL (uart) */ > avail_ram = (char *) AVAIL_RAM_START; /* used by zalloc */ > end_avail = (char *) (AVAIL_RAM_START + AVAIL_RAM_SIZE); > > zimage_start = (char *) (FLASHADDR + ZIMAGE_OFFSET); > zimage_size = ZIMAGE_SIZE; > > printk("\nUncompressing from %#x to %#x\n", zimage_start, LOADADDR); > > #if 0 > printk("zImage [0-4]: %#x %#x %#x %#x\n", > ((unsigned long *) zimage_start)[0], > ((unsigned long *) zimage_start)[1], > ((unsigned long *) zimage_start)[2], > ((unsigned long *) zimage_start)[3]); > #endif > > gunzip((void *) LOADADDR, 0x00400000, zimage_start, &zimage_size); > > #if 0 > printk("entry [0-4]: %#x %#x %#x %#x (at %#x size %d)\n", > ((unsigned long *) KERNEL_ENTRY)[0], > ((unsigned long *) KERNEL_ENTRY)[1], > ((unsigned long *) KERNEL_ENTRY)[2], > ((unsigned long *) KERNEL_ENTRY)[3], KERNEL_ENTRY, zimage_size); > #endif > > printk("Booting Linux at %#x\n", KERNEL_ENTRY); > > for (i = 0; i < 8; i++) { > LED(1 << (i)); > DELAY(5); > } > > /* XXX returning and letting boot.S jump used to work? */ > if (1) { > __asm__ __volatile__("jr\t%0"::"r"(KERNEL_ENTRY)); > } > } > > void > exit(void) > { > printk("\nexit\n"); > while (1) ; > } > > void > putc(const char c) > { > #define serial_putc(ch) putDebugChar(ch) > > serial_putc(c); > if (c == '\n') > serial_putc('\r'); > } > > void * > zalloc(void *x, unsigned items, unsigned size) > { > void *p = avail_ram; > > size *= items; > size = (size + 7) & -8; > avail_ram += size; > if (avail_ram > end_avail) { > printk("oops... zalloc(%#x, %d, %#x) out of memory\n", > (int) x, items, size); > p = NULL; > } > return p; > } > > void > zfree(void *x, void *addr) > { > } > > void > gunzip(void *dst, int dstlen, unsigned char *src, int *lenp) > { > #define HEAD_CRC 2 > #define EXTRA_FIELD 4 > #define ORIG_NAME 8 > #define COMMENT 0x10 > #define RESERVED 0xe0 > > #define DEFLATED 8 > > z_stream s; > int r, i, flags; > > /* skip header */ > i = 10; > flags = src[3]; > if (src[2] != DEFLATED || (flags & RESERVED) != 0) { > printk("bad gzipped data\n"); > exit(); > } > if ((flags & EXTRA_FIELD) != 0) > i = 12 + src[10] + (src[11] << 8); > if ((flags & ORIG_NAME) != 0) > while (src[i++] != 0) ; > if ((flags & COMMENT) != 0) > while (src[i++] != 0) ; > if ((flags & HEAD_CRC) != 0) > i += 2; > if (i >= *lenp) { > printk("gunzip: ran out of data in header\n"); > exit(); > } > > s.zalloc = zalloc; > s.zfree = zfree; > r = inflateInit2(&s, -MAX_WBITS); > if (r != Z_OK) { > printk("inflateInit2 returned %#x\n", r); > exit(); > } > s.next_in = src + i; > s.avail_in = *lenp - i; > s.next_out = dst; > s.avail_out = dstlen; > r = inflate(&s, Z_FINISH); > if (r != Z_OK && r != Z_STREAM_END) { > printk("inflate returned %#x\n", r); > exit(); > } > *lenp = s.next_out - (unsigned char *) dst; > inflateEnd(&s); > } > > int > _cvt(unsigned long val, char *buf, long radix, char *digits) > { > char temp[80]; > char *cp = temp; > int length = 0; > if (val == 0) { /* Special case */ > *cp++ = '0'; > } else > while (val) { > *cp++ = digits[val % radix]; > val /= radix; > } > while (cp != temp) { > *buf++ = *--cp; > length++; > } > *buf = '\0'; > return (length); > } > > #define is_digit(c) ((c >= '0') && (c <= '9')) > > void > _vprintk(void (*putc) (const char), const char *fmt0, va_list ap) > { > char c, sign, *cp = 0; > int left_prec, right_prec, zero_fill, length = 0, pad, pad_on_right; > char buf[32]; > long val; > > while ((c = *fmt0++)) { > if (c == '%') { > c = *fmt0++; > left_prec = right_prec = pad_on_right = 0; > if (c == '#') > c = *fmt0++; /* ignore alternate fmt */ > > if (c == '-') { > c = *fmt0++; > pad_on_right++; > } > if (c == '0') { > zero_fill = 1; > c = *fmt0++; > } else { > zero_fill = 0; > } > while (is_digit(c)) { > left_prec = (left_prec * 10) + (c - '0'); > c = *fmt0++; > } > if (c == '.') { > c = *fmt0++; > zero_fill++; > while (is_digit(c)) { > right_prec = > (right_prec * 10) + (c - '0'); > c = *fmt0++; > } > } else { > right_prec = left_prec; > } > > sign = '\0'; > switch (c) { > case 'd': > case 'x': > case 'X': > val = va_arg(ap, long); > switch (c) { > case 'd': > if (val < 0) { > sign = '-'; > val = -val; > } > length = > _cvt(val, buf, 10, "0123456789"); > break; > case 'x': > length = > _cvt(val, buf, 16, > "0123456789abcdef"); > break; > case 'X': > length = > _cvt(val, buf, 16, > "0123456789ABCDEF"); > break; > } > cp = buf; > break; > case 's': > cp = va_arg(ap, char *); > length = strlen(cp); > break; > case 'c': > c = va_arg(ap, long /*char */ ); > (*putc) (c); > continue; > default: > (*putc) ('?'); > } > pad = left_prec - length; > if (sign != '\0') { > pad--; > } > if (zero_fill) { > c = '0'; > if (sign != '\0') { > (*putc) (sign); > sign = '\0'; > } > } else { > c = ' '; > } > if (!pad_on_right) { > while (pad-- > 0) { > (*putc) (c); > } > } > if (sign != '\0') { > (*putc) (sign); > } > while (length-- > 0) { > (*putc) (c = *cp++); > if (c == '\n') { > (*putc) ('\r'); > } > } > if (pad_on_right) { > while (pad-- > 0) { > (*putc) (c); > } > } > } else { > (*putc) (c); > if (c == '\n') { > (*putc) ('\r'); > } > } > } > } > > int > printk(const char *fmt, ...) > { > va_list args; > va_start(args, fmt); > _vprintk(putc, fmt, args); > va_end(args); > return 0; > } > > =boot.S========================================================================= > /* > * boot.S > * > * Modified by Geoffrey Espin for NEC Electronics > * > * Copyright (C) 1999 Bradley D. LaRonde > * Copyright (C) 2001 Dai Itasaka > * > * This file is subject to the terms and conditions of the GNU General Public > * License. See the file "COPYING" in the main directory of this archive > * for more details. > */ > > #include > > #include > #include > #include > #include > > #define FLASH_BEGIN (FLASHADDR+0x00010000) // skip first 64k (this program) > #define FLASH_END (FLASHADDR+0x00400000) // 4M; see Boot.make > > > /* > EC:7(CPU clock / 1), EP:0(1word/1cycle), AD:0(VR4000 compatible) > M16:0(Disable), BE:1(Big endian), CS:1(+10), IC:4(16K), DC:3(8K) > K0:2(Disable) > > 31 30 28 27 24 23 22 21 19 18 17 16 15 14 13 12 11 9 8 6 5 3 2 0 > +---+-----+-----+---+-----+---+---+---+---+---+-----+---+-----+----+---+----+ > | 0 | EC | EP | AD| 0 |M16| 0 | 1 | 0 | BE| 1 0 | CS| IC | DC | 0 | K0 | > +---+-----+-----+---+-----+---+---+---+---+---+-----+---+-----+----+---+----+ > EC : Tclock rate, EP : Transfer data pattern setting, > AD : Accelerate data mode, M16 : MIPS16 ISA mode enable > BE : BigEndian, CS : Cache Size mode Indication(fixed to 1) > IC : Instruction Cache Size, DC : Data Cache Size, > K0 : kseg0 coherency algorithm > > See uPD98501 Preliminary User's Manual, Chapter 2, page 156. > */ > > #define KORVA_CONFIG_INIT_VAL_BE 0x7002d8c2 /*BE*/ > #define KORVA_CONFIG_INIT_VAL 0x700258c2 /*LE*/ > > > #define DEBUG > #ifdef DEBUG > #define DEBUG_LED 0xb000001c > #define CHECKPOINT(n) li t4, n; sw t4, DEBUG_LED; > #else > #define CHECKPOINT(n) > #endif > > LEAF(__start) > .set mips3 > .set noreorder > > nop // patched by script if using Kyoto-Micro ROM Emulator > nop > nop > > mtc0 zero, CP0_STATUS // disable interrupts > mtc0 zero, CP0_CAUSE // clear interrupts > li t0, KORVA_CONFIG_INIT_VAL > mtc0 t0, CP0_CONFIG // make sure the cache is disabled > mtc0 zero, CP0_WATCHLO > mtc0 zero, CP0_WATCHHI // disable watch exception > > CHECKPOINT(0xB1) > > /* setup_hardware (was function, now PIC as may be linked at RAM) */ > > // check if the CPU is running at 66MHz or 100MHz > lui t0, 0xb000 > lw t1, 4(t0) // 0xb0000004 = GSR > li t0, 2 // CCLKSEL > and t0, t0, t1 > beq zero, t0, clk100 > lui t0, 0xb000 > > clk66: > li t1, 0x120 // SDMDR > sw t1, 0x108(t0) // *(0xb0000108) = 0x120; > li t1, 0x000 // SDPTR > sw t1, 0x110(t0) // *(0xb0000110) = 0x000; > > beq zero, zero, 1f > nop > > clk100: > li t1, 0x230 // SDMDR > sw t1, 0x108(t0) // *(0xb0000108) = 0x230; > li t1, 0x021 // SDPTR > sw t1, 0x110(t0) // *(0xb0000110) = 0x021; > > 1: > #if defined(CONFIG_NEC_MARKHAM_32MB) > li t1, 0x3c2 // SDTSR 32M > // CAB=0x02, RAB=0x40 BTM=0x0080 SIZE=0x300(32M) > #else > li t1, 0x1a1 // SDTSR 8M > // CAB=0x01, RAB=0x20 BTM=0x0080 SIZE=0x100(8M) > #endif > sw t1, 0x10c(t0) // *(0xb000010c) = 0x1a1/0x3c2; > > // allow writing to flash parts > li t1, 0x100 // RMMDR (00 4MB mode) WM=1 unmasked > sw t1, 0x100(t0) // *(0xb0000100) = 0x000; > > li t1, 0x003 // RMATR FAT_8 > sw t1, 0x104(t0) // *(0xb0000104) = 0x003; > > li t1, 0x000 // IMR > sw t1, 0x00c(t0) // disable all INTs > > nop > /* end of setup_hardware */ > > CHECKPOINT(0xB2) > > /* invalidate_cache (was function, now PIC as may be linked at RAM) */ > > mtc0 zero, CP0_TAGLO // invalidate the instruction cache > li s0, 0x80000000 > li s1, 0x80000000 + (1 << 14) // 16k > 1: > cache (2 << 2) | 0, (s0) > add s0, 0x10 > bne s0, s1, 1b > nop > > mtc0 zero, CP0_TAGLO // invalidate the data cache > li s0, 0x80000000 > li s1, 0x80000000 + (1 << 13) // 8k > 1: > cache (2 << 2) | 1, (s0) > add s0, 0x10 > bne s0, s1, 1b > nop > > nop > /* end of invalidate_cache */ > > CHECKPOINT(0xB3) > > mfc0 t0, CP0_CONFIG // enable kseg0 caching > ori t0, 0x1 // cached > mtc0 t0, CP0_CONFIG > > CHECKPOINT(0xB4) > > #ifdef CONFIG_NEC_KORVA_COMPRESSED > relocate: > la sp, .stack > move s0, a0 > move s1, a1 > move s2, a2 > move s3, a3 > > la a0, __start > > li a1, FLASHADDR > la a2, _edata > subu t1, a2, a0 > srl t1, t1, 2 > > /* copy text section */ > li t0, 0 > 1: lw v0, 0(a1) > nop > sw v0, 0(a0) > xor t0, t0, v0 > addu a0, 4 > bne a2, a0, 1b > addu a1, 4 > > /* clear BSS */ > la a0, _edata > la a2, _end > 2: sw zero, 0(a0) > bne a2, a0, 2b > addu a0, 4 > > /* now that code is in RAM we can jump okay */ > > // decompress kernel to ram > la ra, 1f > la t4, decompress_kernel // elsewhere in 'C' > jr t4 > #else > /* actually we were linked at ROM so we're okay */ > > // copy kernel to ram > la ra, 1f > la t4, copy_kernel > jr t4 > #endif > nop > 1: > > CHECKPOINT(0xB5) > > // jump to kernel entry point > li t4, KERNEL_ENTRY > jr t4 > nop > > nop > END(__start) > > > LEAF(copy_kernel) > // copy kernel from ROM to RAM > > // Load s0 = src, s1 = src_end, s2 = dest. > li s0, FLASH_BEGIN > li s1, FLASH_END > > li s2, LOADADDR > > sw zero, (s2) > sw zero, 4(s2) > sw zero, 8(s2) > sw zero, 12(s2) > > 1: > // Only update LED once in a while. > and t0, s0, 0xffff > bne t0, zero, 2f > > // Show copy progress on LED. > srl t0, s0, 16 > sh t0, DEBUG_LED > > 2: > // Copy src to dest. > lw t0, (s0) > bne t0, zero, 3f > nop > sw zero, (s2) > beq zero, zero, 4f > nop > 3: > sw t0, (s2) > 4: > // Increment src and dest. > add s0, 4 > add s2, 4 > > // Loop if still more to go. > bne s0, s1, 1b > nop > > jr ra > nop > END(copy_kernel) > > #ifdef CONFIG_NEC_KORVA_COMPRESSED > .comm .stack,4096*2,4 // used by relocate to call 'C' program > #endif > > =Boot.make====================================================================== > # Boot.make - used by ../boot/Makefile > > OBJCOPY = mipsel-linux-objcopy > OBJCOPY_FLAGS = -R .stab -R .stabstr -R .comment -R .note -R .reginfo -R .mdebug > OBJDUMP = mipsel-linux-objdump > #OBJDUMP_HFLAGS = --disassemble-all -b srec -m mips:4600 -EL > > TOPDIR = ../../.. > > ifeq ($(LINUX_SRC),) > LINUX_SRC=$(TOPDIR) > endif > VMLINUX=$(LINUX_SRC)/vmlinux > SYSTEM_MAP=$(LINUX_SRC)/System.map > > ifeq ($(USERLAND),) > USERLAND=$(LINUX_SRC)/../userland > endif > > FLASHADDR = 0xbfc00000 > > # see arch/mips/Makefile LOADADDR > # 0x10000 bottom 64k reserved by/for boot.S (FLASH_BEGIN) > # 0x02000 additional 8k reserved RAM image vector table (see LOADADDR) > > ifdef CONFIG_NEC_MARKHAM_BOOTROM > NN=10#in hex is 16M > LOADADDR += 0x81002000 > ZLOADADDR += 0x81402000# +4M > VMA = 0x7f00e000 # 0x0-0x81000000+0x10000-0x2000 > ZVMA = 0x7ebfe000 # 0x0-0x81402000 > else > NN=00 > LOADADDR += 0x80002000 > ZLOADADDR += 0x80402000# +4M > VMA = 0x8000e000 # 0x0-0x80000000+0x10000-0x2000 > ZVMA = 0x7fbfe000 # 0x0-0x80402000 > endif > > KERNEL_ENTRY=$(shell awk '/kernel_entry/{print "0x" $$1}' $(LINUX_SRC)/System.map) > > override CFLAGS += -DKERNEL_ENTRY=$(KERNEL_ENTRY) -DNN=$(NN) > override CFLAGS += -DLOADADDR=$(LOADADDR) -DFLASHADDR=$(FLASHADDR) -DZLOADADDR=$(ZLOADADDR) > > ifdef CONFIG_NEC_KORVA_COMPRESSED > zbootroms: bin zsrec > else > bootroms: bin srec > endif > > $(TOPDIR)/arch/$(ARCH)/ld.script.$(ZLOADADDR)_z: $(TOPDIR)/arch/$(ARCH)/ld.script.in > sed -e 's/kernel_entry/__start/' -e 's/@@LOADADDR@@/$(ZLOADADDR)/' <$< >$@ > > ZLINKFLAGS += -T $(TOPDIR)/arch/$(ARCH)/ld.script.$(ZLOADADDR)_z > > misc.c: ../korva/misc.c > @rm -f $@ > cp $< $@ > > boot.S: ../korva/boot.S > @rm -f $@ > cp $< $@ > > #vrboot$(NN): boot.o > vrboot$(NN): boot.o misc.o $(TOPDIR)/arch/$(ARCH)/ld.script.$(ZLOADADDR)_z > @rm -f $@ > ifdef CONFIG_NEC_KORVA_COMPRESSED > $(LD) $(LDFLAGS) -static -EL -N -o $@ $(ZLINKFLAGS) boot.o misc.o > else > $(LD) $(LDFLAGS) -static -EL -N -o $@ -Ttext $(FLASHADDR) boot.o > endif > @rm -f $^ ../boot/misc.c ../boot/boot.S > > vmlinux$(NN): $(VMLINUX) > @rm -f System$(NN).map > cp -p $(SYSTEM_MAP) System$(NN).map > cp -p $< $@ > > # move sections to 0, then add bfc00000 for ROMulator > vrvmlinux$(NN)-0: vmlinux$(NN) vrboot$(NN) > @rm -f $@ > $(OBJCOPY) $(OBJCOPY_FLAGS) --change-addresses 0 -O binary \ > vrboot$(NN) vrboot$(NN)-0.bin > $(OBJCOPY) $(OBJCOPY_FLAGS) --change-addresses $(VMA) \ > vmlinux$(NN) vmlinux$(NN)-0 > $(OBJCOPY) $(OBJCOPY_FLAGS) --add-section .vrboot=vrboot$(NN)-0.bin \ > --set-section-flags .vrboot=,alloc,load,readonly,code \ > vmlinux$(NN)-0 vrvmlinux$(NN)-0 > > vrvmlinux$(NN)-bfc: vrvmlinux$(NN)-0 > $(OBJCOPY) $(OBJCOPY_FLAGS) --change-address $(FLASHADDR) \ > vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc > > # xxx-bfc.bin is for 'reload' & 'reburn' used on a running system > vrvmlinux$(NN)-bfc.bin: vrvmlinux$(NN)-0 > $(OBJCOPY) $(OBJCOPY_FLAGS) --change-address $(FLASHADDR) -O binary \ > vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc.bin > > bin: vrvmlinux$(NN)-bfc vrvmlinux$(NN)-bfc.bin > > vrvmlinux$(NN)-0.srec: vrvmlinux$(NN)-0 > $(OBJCOPY) $(OBJCOPY_FLAGS) -O srec --srec-forceS3 --gap-fill 0 \ > vrvmlinux$(NN)-0 vrvmlinux$(NN)-0.srec > $(OBJCOPY) $(OBJCOPY_FLAGS) --change-address $(FLASHADDR) -O srec \ > vrvmlinux$(NN)-0 vrvmlinux$(NN)-bfc.srec > > srec: vrvmlinux$(NN)-0.srec > > # used by 'reburn' script for Korva (8M) which needs small 256K chunks > split: > @rm -rf split > @mkdir split > cd split && split -b 256k ../vrvmlinux00-bfc.bin vrvm > > # compressed... > > vmlinux$(NN).bin.gz: vmlinux$(NN) > $(OBJCOPY) -S -O binary $< $<.bin > gzip -vf $<.bin > > zvrvmlinux$(NN)-0: vmlinux$(NN).bin.gz vrboot$(NN) > @rm -f $@ > $(OBJCOPY) $(OBJCOPY_FLAGS) --change-addresses=$(ZVMA) \ > vrboot$(NN) zvrboot$(NN)-0 > $(OBJCOPY) $(OBJCOPY_FLAGS) --add-section .vmlinux=vmlinux$(NN).bin.gz \ > --change-section-address .vmlinux=0x10000 \ > --set-section-flags .vmlinux=,alloc,load,readonly,code \ > zvrboot$(NN)-0 zvrvmlinux$(NN)-0 > > zvrvmlinux$(NN)-0.srec: zvrvmlinux$(NN)-0 > $(OBJCOPY) $(OBJCOPY_FLAGS) -O srec --srec-forceS3 \ > zvrvmlinux$(NN)-0 zvrvmlinux$(NN)-0.srec > $(OBJCOPY) $(OBJCOPY_FLAGS) -O srec --srec-forceS3 \ > --change-address 0xbfc00000 \ > zvrvmlinux$(NN)-0 zvrvmlinux$(NN)-bfc.srec > > zsrec: zvrvmlinux$(NN)-0.srec > > clean:: > @rm -f System* vrvmlinux* vmlinux* vrboot* zvrvmlinux* > ================================================================================ From owner-linux-mips@oss.sgi.com Fri Dec 14 11:53:11 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEJrBA07210 for linux-mips-outgoing; Fri, 14 Dec 2001 11:53:11 -0800 Received: from idiom.com (espin@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEJqxo07206 for ; Fri, 14 Dec 2001 11:52:59 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id KAA44161; Fri, 14 Dec 2001 10:52:57 -0800 (PST) Date: Fri, 14 Dec 2001 10:52:57 -0800 From: Geoffrey Espin To: Pete Popov Cc: linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS Message-ID: <20011214105257.A15033@idiom.com> References: <200112140047.fBE0l9n02204@icarus.sanera.net> <1008292240.27799.134.camel@zeus> <20011213192846.A36207@idiom.com> <1008353149.27799.144.camel@zeus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <1008353149.27799.144.camel@zeus>; from Pete Popov on Fri, Dec 14, 2001 at 10:05:47AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > The "original" pmon has outlived its purpose, although it's still found > on many boards. I've become a fan of MIPS Tech's yamon; it's small, it > works, it has just the features I need in an embedded system, and, did I > say it works?. Unfortunately the code is released under NDA only. If > MIPS opened the code, I think you would see it on many more boards. I rest my case. Linux is GPL, last I checked. "LinuxMon", I'll dub it, solves the problem... for all architectures. :-) Attached is the trivial 'reload' script for loading linux on top of linux. It's just a wrapper for 'dd'. Oh yeah, your reset.c:xxx_restart() needs a quick check to see if a new kernel got loaded, and jump to it, instead of PROM. > > itself, as the "boot monitor" is best approach. All reusable > > code, fastest bootstrap (i.e. no 2nd stage loading), etc... But, > > of course, not optimal for size, though my image is 1.3M which > > includes a 580K cramfs ramdisk. > That's fine once you've ported the kernel to your board. What do you do > before that point? With a ROM Emulator, bringing up Linux is no harder than bringing up a boot monitor or any embedded RTOS, no? A day or three, if you are lucky and brilliant. A somewhat longer if you're not lucky. :-) Getting serial I/O is always the first nut to crack... with Monta Vista's dbg_io.c, this is greatly simplified. Of course, I'm not counting all the extra drivers (Ethernet, ...) and assuming a well supported architecture. > patch. But I fail to see how having this code in every > directory is better than having a separate boot directory like the ppc > arch. The ppc-like zImage support I added is a bit different from the I quite agree that initrd stuff is not right, or rather builtin ramdisk.o is not good for embedded. Having it attached to the end of vmlinux, possibly padded/aligned to a nice flash sector boundary should be the general rule. Having /Boot.make so one can customize the "make boot" target rule to do the right thing on a board-by-board basis seems to be the way to go. E.g. in arch/mips/boot/Makefile, simply: # # This file is subject to the terms and conditions of the GNU General Public # License. See the file "COPYING" in the main directory of this archive # for more details. # # Copyright (C) 1995, 1998, 2001 by Ralf Baechle # .S.s: $(CPP) $(CFLAGS) $< -o $*.s .S.o: $(CC) $(CFLAGS) -c $< -o $*.o ... ifdef CONFIG_NEC_KORVA include ../korva/Boot.make endif all: vmlinux.ecoff addinitrd ... BTW, does any actually build 'vmlinux.ecoff'? And sure, cluttering up yet another Makefile with CONFIG_XXX_BOARD is not desirable... rather some magic like: include $?{CONFIG_BOARD:common}/Boot.make would be nice. Geoff -- Geoffrey Espin espin@idiom.com -- =reload.sh====================================================================== #!/bin/sh IMAGE=vrvmlinux00-bfc.bin # 0M SKIP=64 # 64K for vrboot SEEK=8 # 8k (80002000) skip excep vecs to kernel offset if [ `sed -n -e 's/8\([0-9]\).*bzero/\1/p' /proc/ksyms` -eq 0 ] ; then echo "$0: kernel not running at high memory (e.g. 16M), use reboot" exit 1 fi if [ $# -eq 0 ] ; then echo "usage (nfs): $0 " echo "usage (ftp): $0 " exit 1 fi USER=$1 shift VM="/home/${USER}/linux/arch/mips/boot/${IMAGE}" if [ $# -eq 1 ] ; then PW=$1 shift VMI="ftp://${USER}:${PW}@10.1.1.1${VM}" VM=/tmp/${IMAGE} echo wget -c ${VMI} -O ${VM} wget -c ${VMI} -O ${VM} if [ $? -ne 0 ] ; then echo "wget failed" exit 1 fi else # using NFS fi echo dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc if [ $? -ne 0 ] ; then echo "dd failed" exit 1 fi reboot -- From owner-linux-mips@oss.sgi.com Fri Dec 14 12:09:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEK96Z07516 for linux-mips-outgoing; Fri, 14 Dec 2001 12:09:06 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEK8po07513 for ; Fri, 14 Dec 2001 12:08:51 -0800 Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBEJ8KB13599; Fri, 14 Dec 2001 11:08:20 -0800 Subject: Re: No bzImage target for MIPS From: Pete Popov To: Geoffrey Espin Cc: linux-mips In-Reply-To: <20011214105257.A15033@idiom.com> References: <200112140047.fBE0l9n02204@icarus.sanera.net> <1008292240.27799.134.camel@zeus> <20011213192846.A36207@idiom.com> <1008353149.27799.144.camel@zeus> <20011214105257.A15033@idiom.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Dec 2001 11:11:05 -0800 Message-Id: <1008357065.27799.163.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, 2001-12-14 at 10:52, Geoffrey Espin wrote: > > > The "original" pmon has outlived its purpose, although it's still found > > on many boards. I've become a fan of MIPS Tech's yamon; it's small, it > > works, it has just the features I need in an embedded system, and, did I > > say it works?. Unfortunately the code is released under NDA only. If > > MIPS opened the code, I think you would see it on many more boards. > > I rest my case. Linux is GPL, last I checked. "LinuxMon", I'll > dub it, solves the problem... for all architectures. :-) Attached > is the trivial 'reload' script for loading linux on top of linux. > It's just a wrapper for 'dd'. Oh yeah, your reset.c:xxx_restart() > needs a quick check to see if a new kernel got loaded, and jump > to it, instead of PROM. > > > > itself, as the "boot monitor" is best approach. All reusable > > > code, fastest bootstrap (i.e. no 2nd stage loading), etc... But, > > > of course, not optimal for size, though my image is 1.3M which > > > includes a 580K cramfs ramdisk. > > That's fine once you've ported the kernel to your board. What do you do > > before that point? > > With a ROM Emulator, bringing up Linux is no harder than bringing > up a boot monitor or any embedded RTOS, no? A day or three, if > you are lucky and brilliant. A somewhat longer if you're not > lucky. :-) Getting serial I/O is always the first nut to crack... > with Monta Vista's dbg_io.c, this is greatly simplified. Of > course, I'm not counting all the extra drivers (Ethernet, ...) > and assuming a well supported architecture. True, if you can use a rom emulator on the given board, which you can't do with all boards. But then you need to connect the emulator to the board every time you want to do something ... I don't know, give me a working boot loader with enet support and I'll take that instead. > > patch. But I fail to see how having this code in every > > directory is better than having a separate boot directory like the ppc > > arch. The ppc-like zImage support I added is a bit different from the > > I quite agree that initrd stuff is not right, or rather builtin > ramdisk.o is not good for embedded. Having it attached to the > end of vmlinux, possibly padded/aligned to a nice flash sector > boundary should be the general rule. Having /Boot.make > so one can customize the "make boot" target rule to do the right > thing on a board-by-board basis seems to be the way to go. Exactly. That's why the directory in arch/mips/zboot :-) BTW, I added the new zboot directory in sourceforge because arch/mips/boot was in the way and I didn't want to mess with that one. Ultimately I don't care if the zImage support is in each directory or in a new directory like arch/mips/zboot, as long as the support for zImages and, eventually, initrd, is there. BTW, if you don't package up your work in a patch that Ralf would take, the bits get lost over time. I don't know if you care, but that's how linux evolves so I hope you submit your patches upstream rather than allowing them to get lost in mailing lists. Pete > E.g. > in arch/mips/boot/Makefile, simply: > > # > # This file is subject to the terms and conditions of the GNU General Public > # License. See the file "COPYING" in the main directory of this archive > # for more details. > # > # Copyright (C) 1995, 1998, 2001 by Ralf Baechle > # > > .S.s: > $(CPP) $(CFLAGS) $< -o $*.s > .S.o: > $(CC) $(CFLAGS) -c $< -o $*.o > ... > ifdef CONFIG_NEC_KORVA > include ../korva/Boot.make > endif > > all: vmlinux.ecoff addinitrd > ... > > BTW, does any actually build 'vmlinux.ecoff'? > > And sure, cluttering up yet another Makefile with CONFIG_XXX_BOARD > is not desirable... rather some magic like: > > include $?{CONFIG_BOARD:common}/Boot.make > > would be nice. > > Geoff > -- > Geoffrey Espin espin@idiom.com > -- > =reload.sh====================================================================== > #!/bin/sh > > IMAGE=vrvmlinux00-bfc.bin # 0M > SKIP=64 # 64K for vrboot > SEEK=8 # 8k (80002000) skip excep vecs to kernel offset > > if [ `sed -n -e 's/8\([0-9]\).*bzero/\1/p' /proc/ksyms` -eq 0 ] ; then > echo "$0: kernel not running at high memory (e.g. 16M), use reboot" > exit 1 > fi > > if [ $# -eq 0 ] ; then > echo "usage (nfs): $0 " > echo "usage (ftp): $0 " > exit 1 > fi > > USER=$1 > shift > > VM="/home/${USER}/linux/arch/mips/boot/${IMAGE}" > > if [ $# -eq 1 ] ; then > PW=$1 > shift > VMI="ftp://${USER}:${PW}@10.1.1.1${VM}" > VM=/tmp/${IMAGE} > echo wget -c ${VMI} -O ${VM} > wget -c ${VMI} -O ${VM} > if [ $? -ne 0 ] ; then > echo "wget failed" > exit 1 > fi > else > # using NFS > fi > > echo dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc > dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc > > if [ $? -ne 0 ] ; then > echo "dd failed" > exit 1 > fi > > reboot > > -- From owner-linux-mips@oss.sgi.com Fri Dec 14 12:52:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEKqMi08544 for linux-mips-outgoing; Fri, 14 Dec 2001 12:52:22 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEKqKo08541 for ; Fri, 14 Dec 2001 12:52:20 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Fri, 14 Dec 2001 14:52:12 -0500 Message-ID: <25369470B6F0D41194820002B328BDD21423EC@ATLOPS> From: Dinesh Nagpure To: "'linux-mips@oss.sgi.com'" Subject: 2.4.16 on mips-malta, networking fails... Date: Fri, 14 Dec 2001 14:52:12 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, I am trying kernel v2.4.16 on mips-malta, but networking does not seem to be working for me. ping errors out saying sendto: Network is unreachable. I have AMD PCNet32 PCI support enabled under Network device support-Ethernet (10 or 100)- EISA, VLB, PCI and onboard controllers. Any ideas? Dinesh iVIVITY Inc. From owner-linux-mips@oss.sgi.com Fri Dec 14 13:04:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEL4Hw08843 for linux-mips-outgoing; Fri, 14 Dec 2001 13:04:17 -0800 Received: from ux3.sp.cs.cmu.edu (UX3.SP.CS.CMU.EDU [128.2.198.103]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEL49o08837 for ; Fri, 14 Dec 2001 13:04:11 -0800 Received: from GS256.SP.CS.CMU.EDU by ux3.sp.cs.cmu.edu id aa13675; 14 Dec 2001 15:03 EST Subject: Re: 2.4.16 on mips-malta, networking fails... From: Justin Carlson To: Dinesh Nagpure Cc: linux-mips@oss.sgi.com In-Reply-To: <25369470B6F0D41194820002B328BDD21423EC@ATLOPS> References: <25369470B6F0D41194820002B328BDD21423EC@ATLOPS> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ouRco7G2BSc6g6UBzKal" X-Mailer: Evolution/0.99.2 (Preview Release) Date: 14 Dec 2001 15:03:48 -0500 Message-Id: <1008360228.19224.18.camel@gs256.sp.cs.cmu.edu> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --=-ouRco7G2BSc6g6UBzKal Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2001-12-14 at 14:52, Dinesh Nagpure wrote: > Hello, > I am trying kernel v2.4.16 on mips-malta, but networking does not seem to= be > working for me. > ping errors out saying sendto: Network is unreachable. > I have AMD PCNet32 PCI support enabled under Network device support-Ether= net > (10 or 100)- EISA, VLB, PCI and onboard controllers.=20 > Any ideas? >=20 Is the network device being detected by the driver, e.g. do you see any status messages from the driver on bootup? What commands are you using to initialize the interface? What does ifconfig say? How about route -n? -Justin --=-ouRco7G2BSc6g6UBzKal Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8Glsk47Lg4cGgb74RArH2AJ4+szAIm+I8aqXY7JXyG01w2vH+IACgpBgW liJPF06XhjWUc5t6m5xC4Ak= =OWGg -----END PGP SIGNATURE----- --=-ouRco7G2BSc6g6UBzKal-- From owner-linux-mips@oss.sgi.com Fri Dec 14 13:25:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBELP4K09722 for linux-mips-outgoing; Fri, 14 Dec 2001 13:25:04 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBELP0o09718 for ; Fri, 14 Dec 2001 13:25:00 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBEKOH418573; Fri, 14 Dec 2001 18:24:17 -0200 Date: Fri, 14 Dec 2001 18:24:17 -0200 From: Ralf Baechle To: Florian Lohoff Cc: linux-mips@oss.sgi.com Subject: Re: [PATCH] complete indy timer fix - one liner missing Message-ID: <20011214182417.B1602@dea.linux-mips.net> References: <20011214011525.GA25759@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011214011525.GA25759@paradigm.rfc822.org>; from flo@rfc822.org on Fri, Dec 14, 2001 at 02:15:25AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Dec 14, 2001 at 02:15:25AM +0100, Florian Lohoff wrote: > just a short one liner to let the current cvs compile ... Ralf - You > forgot this one ...: Nope, you fixed the wrong end. Anyway, fix is now in CVS. Ralf From owner-linux-mips@oss.sgi.com Fri Dec 14 13:25:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBELPrM09758 for linux-mips-outgoing; Fri, 14 Dec 2001 13:25:53 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBELPlo09748 for ; Fri, 14 Dec 2001 13:25:47 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Fri, 14 Dec 2001 15:25:40 -0500 Message-ID: <25369470B6F0D41194820002B328BDD21423ED@ATLOPS> From: Dinesh Nagpure To: "'Justin Carlson '" , Dinesh Nagpure Cc: "'linux-mips@oss.sgi.com '" Subject: RE: 2.4.16 on mips-malta, networking fails... Date: Fri, 14 Dec 2001 15:25:40 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Boot time msgs are : PCI: Probing PCI hardware on host bus 0. Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starting kswapd pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI edttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A block: 128 slots per queue, batch=32 RAMDISK driver initialized: 16 RAM disks of 30720K size 1024 blocksize loop: loaded (max 8 devices) pcnet32_probe_pci: found device 0x001022.0x002000 ioaddr=0x001200 resource_flags=0x000101 eth0: PCnet/FAST III 79C973 at 0x1200, 00 d0 a0 00 01 29 pcnet32: pcnet32_private lp=a7f9b000 lp_dma_addr=0x7f9b000 assigned IRQ 10. pcnet32.c:v1.25kf 26.9.1999 tsbogend@alpha.franken.de Apparently the device is being detected. I am using ramdisk root which i created using busybox v0.60.1 and dont have ifconfig or route built into it. Dinesh -----Original Message----- From: Justin Carlson To: Dinesh Nagpure Cc: linux-mips@oss.sgi.com Sent: 12/14/01 3:03 PM Subject: Re: 2.4.16 on mips-malta, networking fails... On Fri, 2001-12-14 at 14:52, Dinesh Nagpure wrote: > Hello, > I am trying kernel v2.4.16 on mips-malta, but networking does not seem to be > working for me. > ping errors out saying sendto: Network is unreachable. > I have AMD PCNet32 PCI support enabled under Network device support-Ethernet > (10 or 100)- EISA, VLB, PCI and onboard controllers. > Any ideas? > Is the network device being detected by the driver, e.g. do you see any status messages from the driver on bootup? What commands are you using to initialize the interface? What does ifconfig say? How about route -n? -Justin From owner-linux-mips@oss.sgi.com Fri Dec 14 13:51:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBELpGX10441 for linux-mips-outgoing; Fri, 14 Dec 2001 13:51:16 -0800 Received: from ux3.sp.cs.cmu.edu (UX3.SP.CS.CMU.EDU [128.2.198.103]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBELpBo10438 for ; Fri, 14 Dec 2001 13:51:11 -0800 Received: from GS256.SP.CS.CMU.EDU by ux3.sp.cs.cmu.edu id aa14219; 14 Dec 2001 15:50 EST Subject: RE: 2.4.16 on mips-malta, networking fails... From: Justin Carlson To: Dinesh Nagpure Cc: linux-mips@oss.sgi.com In-Reply-To: <25369470B6F0D41194820002B328BDD21423ED@ATLOPS> References: <25369470B6F0D41194820002B328BDD21423ED@ATLOPS> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-vVCztX+7j+sZuOihht9R" X-Mailer: Evolution/0.99.2 (Preview Release) Date: 14 Dec 2001 15:50:27 -0500 Message-Id: <1008363027.19225.20.camel@gs256.sp.cs.cmu.edu> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --=-vVCztX+7j+sZuOihht9R Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2001-12-14 at 15:25, Dinesh Nagpure wrote: > Apparently the device is being detected. > I am using ramdisk root which i created using busybox v0.60.1 and dont ha= ve > ifconfig or route built into it. >=20 How are you setting the IP information for the NIC, then? Are you compiling a kernel with IP autoconfiguration and using a DHCP server? =20 If you're not configuring the NIC, then the OS doesn't consider it to be a valid source/target of IP information, so when you try to ping from the machine, Linux is telling you "I don't have any valid place to put an ICMP packet to get to the place you want it to go". =20 -Justin --=-vVCztX+7j+sZuOihht9R Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8GmYT47Lg4cGgb74RAma4AJ9CvmN81lXMlycv3kkg5X7B3lqF2wCeI2+k tASQV8qIYF9L6lyZd11zW2s= =VQKT -----END PGP SIGNATURE----- --=-vVCztX+7j+sZuOihht9R-- From owner-linux-mips@oss.sgi.com Fri Dec 14 14:50:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEMo6011215 for linux-mips-outgoing; Fri, 14 Dec 2001 14:50:06 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEMo2o11211 for ; Fri, 14 Dec 2001 14:50:02 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Fri, 14 Dec 2001 16:49:53 -0500 Message-ID: <25369470B6F0D41194820002B328BDD21423F1@ATLOPS> From: Dinesh Nagpure To: "'Justin Carlson'" , Dinesh Nagpure Cc: linux-mips@oss.sgi.com Subject: RE: 2.4.16 on mips-malta, networking fails... Date: Fri, 14 Dec 2001 16:49:52 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Isn't passing ip= command line boot option sufficient for this? I mean I sure will have ifconfig and route in the root but for now all I want is to make things work. Dinesh -----Original Message----- From: Justin Carlson [mailto:justincarlson@cmu.edu] Sent: Friday, December 14, 2001 3:50 PM To: Dinesh Nagpure Cc: linux-mips@oss.sgi.com Subject: RE: 2.4.16 on mips-malta, networking fails... On Fri, 2001-12-14 at 15:25, Dinesh Nagpure wrote: > Apparently the device is being detected. > I am using ramdisk root which i created using busybox v0.60.1 and dont have > ifconfig or route built into it. > How are you setting the IP information for the NIC, then? Are you compiling a kernel with IP autoconfiguration and using a DHCP server? If you're not configuring the NIC, then the OS doesn't consider it to be a valid source/target of IP information, so when you try to ping from the machine, Linux is telling you "I don't have any valid place to put an ICMP packet to get to the place you want it to go". -Justin From owner-linux-mips@oss.sgi.com Fri Dec 14 15:03:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBEN3ms11501 for linux-mips-outgoing; Fri, 14 Dec 2001 15:03:48 -0800 Received: from ux3.sp.cs.cmu.edu (UX3.SP.CS.CMU.EDU [128.2.198.103]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBEN3fo11498 for ; Fri, 14 Dec 2001 15:03:42 -0800 Received: from GS256.SP.CS.CMU.EDU by ux3.sp.cs.cmu.edu id aa14947; 14 Dec 2001 17:02 EST Subject: RE: 2.4.16 on mips-malta, networking fails... From: Justin Carlson To: Dinesh Nagpure Cc: linux-mips@oss.sgi.com In-Reply-To: <25369470B6F0D41194820002B328BDD21423F1@ATLOPS> References: <25369470B6F0D41194820002B328BDD21423F1@ATLOPS> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-K2loZN6yJ1YLNus+dw0m" X-Mailer: Evolution/0.99.2 (Preview Release) Date: 14 Dec 2001 17:02:59 -0500 Message-Id: <1008367379.19225.25.camel@gs256.sp.cs.cmu.edu> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --=-K2loZN6yJ1YLNus+dw0m Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2001-12-14 at 16:49, Dinesh Nagpure wrote: > Isn't passing ip=3D command line boot option sufficient for this? > I mean I sure will have ifconfig and route in the root but for now all I > want is to make things work. >=20 > Dinesh >=20 Passing ip=3D on the command line should work if you are giving it good information, but the best way to really see what's going on will be to use ifconfig and route. In honesty, I'd not realized ip=3D existed until you mentioned it and I looked at the code. Learn something new every day. :) -Justin --=-K2loZN6yJ1YLNus+dw0m Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8GncT47Lg4cGgb74RApw5AJ9dZLVcOENe2gavTyrSCWq7a7axpACfYypm xxcOZQf3qtalW3ZX6GWfgUM= =M3+e -----END PGP SIGNATURE----- --=-K2loZN6yJ1YLNus+dw0m-- From owner-linux-mips@oss.sgi.com Fri Dec 14 16:00:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBF005D12497 for linux-mips-outgoing; Fri, 14 Dec 2001 16:00:05 -0800 Received: from mail.ivivity.com (user-vc8ftn3.biz.mindspring.com [216.135.246.227]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBENxjo12459 for ; Fri, 14 Dec 2001 15:59:45 -0800 Received: by ATLOPS with Internet Mail Service (5.5.2448.0) id ; Fri, 14 Dec 2001 17:59:38 -0500 Message-ID: <25369470B6F0D41194820002B328BDD2195AE3@ATLOPS> From: Marc Karasek To: "'Pete Popov '" , "'Geoffrey Espin '" Cc: "'linux-mips '" Subject: RE: No bzImage target for MIPS Date: Fri, 14 Dec 2001 17:59:37 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk What about redboot? It is Open Source and has support for a variety of processors. The structure is such that adding support for a new platform/processor is very easy. It has support for booting a linux kernel and as an added bonus support for ecos is pretty much done once you get it ported. -----Original Message----- From: Pete Popov To: Geoffrey Espin Cc: linux-mips Sent: 12/14/01 2:11 PM Subject: Re: No bzImage target for MIPS On Fri, 2001-12-14 at 10:52, Geoffrey Espin wrote: > > > The "original" pmon has outlived its purpose, although it's still found > > on many boards. I've become a fan of MIPS Tech's yamon; it's small, it > > works, it has just the features I need in an embedded system, and, did I > > say it works?. Unfortunately the code is released under NDA only. If > > MIPS opened the code, I think you would see it on many more boards. > > I rest my case. Linux is GPL, last I checked. "LinuxMon", I'll > dub it, solves the problem... for all architectures. :-) Attached > is the trivial 'reload' script for loading linux on top of linux. > It's just a wrapper for 'dd'. Oh yeah, your reset.c:xxx_restart() > needs a quick check to see if a new kernel got loaded, and jump > to it, instead of PROM. > > > > itself, as the "boot monitor" is best approach. All reusable > > > code, fastest bootstrap (i.e. no 2nd stage loading), etc... But, > > > of course, not optimal for size, though my image is 1.3M which > > > includes a 580K cramfs ramdisk. > > That's fine once you've ported the kernel to your board. What do you do > > before that point? > > With a ROM Emulator, bringing up Linux is no harder than bringing > up a boot monitor or any embedded RTOS, no? A day or three, if > you are lucky and brilliant. A somewhat longer if you're not > lucky. :-) Getting serial I/O is always the first nut to crack... > with Monta Vista's dbg_io.c, this is greatly simplified. Of > course, I'm not counting all the extra drivers (Ethernet, ...) > and assuming a well supported architecture. True, if you can use a rom emulator on the given board, which you can't do with all boards. But then you need to connect the emulator to the board every time you want to do something ... I don't know, give me a working boot loader with enet support and I'll take that instead. > > patch. But I fail to see how having this code in every > > directory is better than having a separate boot directory like the ppc > > arch. The ppc-like zImage support I added is a bit different from the > > I quite agree that initrd stuff is not right, or rather builtin > ramdisk.o is not good for embedded. Having it attached to the > end of vmlinux, possibly padded/aligned to a nice flash sector > boundary should be the general rule. Having /Boot.make > so one can customize the "make boot" target rule to do the right > thing on a board-by-board basis seems to be the way to go. Exactly. That's why the directory in arch/mips/zboot :-) BTW, I added the new zboot directory in sourceforge because arch/mips/boot was in the way and I didn't want to mess with that one. Ultimately I don't care if the zImage support is in each directory or in a new directory like arch/mips/zboot, as long as the support for zImages and, eventually, initrd, is there. BTW, if you don't package up your work in a patch that Ralf would take, the bits get lost over time. I don't know if you care, but that's how linux evolves so I hope you submit your patches upstream rather than allowing them to get lost in mailing lists. Pete > E.g. > in arch/mips/boot/Makefile, simply: > > # > # This file is subject to the terms and conditions of the GNU General Public > # License. See the file "COPYING" in the main directory of this archive > # for more details. > # > # Copyright (C) 1995, 1998, 2001 by Ralf Baechle > # > > .S.s: > $(CPP) $(CFLAGS) $< -o $*.s > .S.o: > $(CC) $(CFLAGS) -c $< -o $*.o > ... > ifdef CONFIG_NEC_KORVA > include ../korva/Boot.make > endif > > all: vmlinux.ecoff addinitrd > ... > > BTW, does any actually build 'vmlinux.ecoff'? > > And sure, cluttering up yet another Makefile with CONFIG_XXX_BOARD > is not desirable... rather some magic like: > > include $?{CONFIG_BOARD:common}/Boot.make > > would be nice. > > Geoff > -- > Geoffrey Espin espin@idiom.com > -- > =reload.sh============================================================== ======== > #!/bin/sh > > IMAGE=vrvmlinux00-bfc.bin # 0M > SKIP=64 # 64K for vrboot > SEEK=8 # 8k (80002000) skip excep vecs to kernel offset > > if [ `sed -n -e 's/8\([0-9]\).*bzero/\1/p' /proc/ksyms` -eq 0 ] ; then > echo "$0: kernel not running at high memory (e.g. 16M), use reboot" > exit 1 > fi > > if [ $# -eq 0 ] ; then > echo "usage (nfs): $0 " > echo "usage (ftp): $0 " > exit 1 > fi > > USER=$1 > shift > > VM="/home/${USER}/linux/arch/mips/boot/${IMAGE}" > > if [ $# -eq 1 ] ; then > PW=$1 > shift > VMI="ftp://${USER}:${PW}@10.1.1.1${VM}" > VM=/tmp/${IMAGE} > echo wget -c ${VMI} -O ${VM} > wget -c ${VMI} -O ${VM} > if [ $? -ne 0 ] ; then > echo "wget failed" > exit 1 > fi > else > # using NFS > fi > > echo dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc > dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc > > if [ $? -ne 0 ] ; then > echo "dd failed" > exit 1 > fi > > reboot > > -- From owner-linux-mips@oss.sgi.com Fri Dec 14 16:23:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBF0NSH13107 for linux-mips-outgoing; Fri, 14 Dec 2001 16:23:28 -0800 Received: from buzz.ichilton.co.uk (pc3-stoc4-0-cust138.mid.cable.ntl.com [213.107.175.138]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBF0NPo13104 for ; Fri, 14 Dec 2001 16:23:25 -0800 Received: by buzz.ichilton.co.uk (Postfix, from userid 100) id 19FD21CE3B9; Fri, 14 Dec 2001 23:23:21 +0000 (GMT) Date: Fri, 14 Dec 2001 23:23:21 +0000 From: Ian Chilton To: Florian Lohoff Cc: agx@sigxcpu.org, linux-mips@oss.sgi.com Subject: Re: Current CVS on Indigo2 fail Message-ID: <20011214232321.A1982@buzz.ichilton.local> Reply-To: Ian Chilton References: <20011213123522.GA32232@paradigm.rfc822.org> <20011213135229.C14699@gandalf.physik.uni-konstanz.de> <20011213134827.GA5630@paradigm.rfc822.org> <20011213150622.A13394@galadriel.physik.uni-konstanz.de> <20011213171043.GD25296@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011213171043.GD25296@paradigm.rfc822.org> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, > It solved the issue ... Here is the patch against current cvs I sync'd with cvs and tried to apply this patch and it failed. Without the patch, the kernel doesn't work on my I2: Command Monitor. Type "exit" to return to the menu. >> bootp():/vmlinux Setting $netaddr to 192.168.0.13 (from server ) Obtaining /vmlinux from server | [hangs here] Bye for Now, Ian From owner-linux-mips@oss.sgi.com Fri Dec 14 16:45:54 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBF0jsH13304 for linux-mips-outgoing; Fri, 14 Dec 2001 16:45:54 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBF0jWo13297 for ; Fri, 14 Dec 2001 16:45:33 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id PAA06994 for ; Fri, 14 Dec 2001 15:44:50 -0800 (PST) mail_from (ppopov@mvista.com) Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBENdrB28585; Fri, 14 Dec 2001 15:39:53 -0800 Subject: RE: No bzImage target for MIPS From: Pete Popov To: Marc Karasek Cc: "'Geoffrey Espin '" , "'linux-mips '" In-Reply-To: <25369470B6F0D41194820002B328BDD2195AE3@ATLOPS> References: <25369470B6F0D41194820002B328BDD2195AE3@ATLOPS> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Dec 2001 15:42:41 -0800 Message-Id: <1008373362.27799.173.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, 2001-12-14 at 14:59, Marc Karasek wrote: > What about redboot? It is Open Source and has support for a variety of > processors. The structure is such that adding support for a new > platform/processor is very easy. It has support for booting a linux kernel > and as an added bonus support for ecos is pretty much done once you get it > ported. If you're doing your own board, redboot may be fine. But typically vendors of referrence boards want you to use whatever boot code they already have running because they are not willing to pay for new boot code. Pete > > > > -----Original Message----- > From: Pete Popov > To: Geoffrey Espin > Cc: linux-mips > Sent: 12/14/01 2:11 PM > Subject: Re: No bzImage target for MIPS > > On Fri, 2001-12-14 at 10:52, Geoffrey Espin wrote: > > > > > The "original" pmon has outlived its purpose, although it's still > found > > > on many boards. I've become a fan of MIPS Tech's yamon; it's small, > it > > > works, it has just the features I need in an embedded system, and, > did I > > > say it works?. Unfortunately the code is released under NDA only. > If > > > MIPS opened the code, I think you would see it on many more boards. > > > > I rest my case. Linux is GPL, last I checked. "LinuxMon", I'll > > dub it, solves the problem... for all architectures. :-) Attached > > is the trivial 'reload' script for loading linux on top of linux. > > It's just a wrapper for 'dd'. Oh yeah, your reset.c:xxx_restart() > > needs a quick check to see if a new kernel got loaded, and jump > > to it, instead of PROM. > > > > > > itself, as the "boot monitor" is best approach. All reusable > > > > code, fastest bootstrap (i.e. no 2nd stage loading), etc... But, > > > > of course, not optimal for size, though my image is 1.3M which > > > > includes a 580K cramfs ramdisk. > > > That's fine once you've ported the kernel to your board. What do you > do > > > before that point? > > > > With a ROM Emulator, bringing up Linux is no harder than bringing > > up a boot monitor or any embedded RTOS, no? A day or three, if > > you are lucky and brilliant. A somewhat longer if you're not > > lucky. :-) Getting serial I/O is always the first nut to crack... > > with Monta Vista's dbg_io.c, this is greatly simplified. Of > > course, I'm not counting all the extra drivers (Ethernet, ...) > > and assuming a well supported architecture. > > True, if you can use a rom emulator on the given board, which you can't > do with all boards. But then you need to connect the emulator to the > board every time you want to do something ... I don't know, give me a > working boot loader with enet support and I'll take that instead. > > > > patch. But I fail to see how having this code in every > > > directory is better than having a separate boot directory like the > ppc > > > arch. The ppc-like zImage support I added is a bit different from > the > > > > I quite agree that initrd stuff is not right, or rather builtin > > ramdisk.o is not good for embedded. Having it attached to the > > end of vmlinux, possibly padded/aligned to a nice flash sector > > boundary should be the general rule. Having /Boot.make > > so one can customize the "make boot" target rule to do the right > > thing on a board-by-board basis seems to be the way to go. > > Exactly. That's why the directory in arch/mips/zboot :-) BTW, I > added the new zboot directory in sourceforge because arch/mips/boot was > in the way and I didn't want to mess with that one. > > Ultimately I don't care if the zImage support is in each > directory or in a new directory like arch/mips/zboot, as long as the > support for zImages and, eventually, initrd, is there. > > BTW, if you don't package up your work in a patch that Ralf would take, > the bits get lost over time. I don't know if you care, but that's how > linux evolves so I hope you submit your patches upstream rather than > allowing them to get lost in mailing lists. > > Pete > > > E.g. > > in arch/mips/boot/Makefile, simply: > > > > # > > # This file is subject to the terms and conditions of the GNU > General Public > > # License. See the file "COPYING" in the main directory of this > archive > > # for more details. > > # > > # Copyright (C) 1995, 1998, 2001 by Ralf Baechle > > # > > > > .S.s: > > $(CPP) $(CFLAGS) $< -o $*.s > > .S.o: > > $(CC) $(CFLAGS) -c $< -o $*.o > > ... > > ifdef CONFIG_NEC_KORVA > > include ../korva/Boot.make > > endif > > > > all: vmlinux.ecoff addinitrd > > ... > > > > BTW, does any actually build 'vmlinux.ecoff'? > > > > And sure, cluttering up yet another Makefile with CONFIG_XXX_BOARD > > is not desirable... rather some magic like: > > > > include $?{CONFIG_BOARD:common}/Boot.make > > > > would be nice. > > > > Geoff > > -- > > Geoffrey Espin espin@idiom.com > > -- > > > =reload.sh============================================================== > ======== > > #!/bin/sh > > > > IMAGE=vrvmlinux00-bfc.bin # 0M > > SKIP=64 # 64K for vrboot > > SEEK=8 # 8k (80002000) skip excep vecs to kernel > offset > > > > if [ `sed -n -e 's/8\([0-9]\).*bzero/\1/p' /proc/ksyms` -eq 0 ] ; then > > echo "$0: kernel not running at high memory (e.g. 16M), use > reboot" > > exit 1 > > fi > > > > if [ $# -eq 0 ] ; then > > echo "usage (nfs): $0 " > > echo "usage (ftp): $0 " > > exit 1 > > fi > > > > USER=$1 > > shift > > > > VM="/home/${USER}/linux/arch/mips/boot/${IMAGE}" > > > > if [ $# -eq 1 ] ; then > > PW=$1 > > shift > > VMI="ftp://${USER}:${PW}@10.1.1.1${VM}" > > VM=/tmp/${IMAGE} > > echo wget -c ${VMI} -O ${VM} > > wget -c ${VMI} -O ${VM} > > if [ $? -ne 0 ] ; then > > echo "wget failed" > > exit 1 > > fi > > else > > # using NFS > > fi > > > > echo dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} > conv=notrunc > > dd if=${VM} of=/dev/mem bs=1k skip=${SKIP} seek=${SEEK} conv=notrunc > > > > if [ $? -ne 0 ] ; then > > echo "dd failed" > > exit 1 > > fi > > > > reboot > > > > -- > From owner-linux-mips@oss.sgi.com Sat Dec 15 01:47:09 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBF9l9n17505 for linux-mips-outgoing; Sat, 15 Dec 2001 01:47:09 -0800 Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBF9l5o17502 for ; Sat, 15 Dec 2001 01:47:05 -0800 Received: from excalibur.cologne.de (pD95119D2.dip.t-dialin.net [217.81.25.210]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id JAA26132 for ; Sat, 15 Dec 2001 09:47:01 +0100 (MET) Received: from karsten by excalibur.cologne.de with local (Exim 3.12 #1 (Debian)) id 16FADl-00008T-00 for ; Sat, 15 Dec 2001 09:31:01 +0100 Date: Sat, 15 Dec 2001 09:31:01 +0100 From: Karsten Merker To: linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS Message-ID: <20011215093101.A256@excalibur.cologne.de> Mail-Followup-To: Karsten Merker , linux-mips@oss.sgi.com References: <200112140047.fBE0l9n02204@icarus.sanera.net> <1008292240.27799.134.camel@zeus> <20011213192846.A36207@idiom.com> <1008353149.27799.144.camel@zeus> <20011214105257.A15033@idiom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011214105257.A15033@idiom.com>; from espin@idiom.com on Fri, Dec 14, 2001 at 10:52:57AM -0800 X-No-Archive: yes Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Fri, Dec 14, 2001 at 10:52:57AM -0800, Geoffrey Espin wrote: > all: vmlinux.ecoff addinitrd > ... > > BTW, does any actually build 'vmlinux.ecoff'? Yes, it is (among other uses) the default target for DECstations, the DECstation firmware cannot tftp-boot anything else. Greetings, Karsten -- #include Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung. From owner-linux-mips@oss.sgi.com Sat Dec 15 02:15:18 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFAFI617866 for linux-mips-outgoing; Sat, 15 Dec 2001 02:15:18 -0800 Received: from mail.ocs.com.au (mail.ocs.com.au [203.34.97.2]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFAFDo17863 for ; Sat, 15 Dec 2001 02:15:14 -0800 Received: (qmail 1941 invoked from network); 15 Dec 2001 09:15:09 -0000 Received: from ocs3.intra.ocs.com.au (192.168.255.3) by mail.ocs.com.au with SMTP; 15 Dec 2001 09:15:09 -0000 Received: by ocs3.intra.ocs.com.au (Postfix, from userid 16331) id 06747300095; Sat, 15 Dec 2001 20:15:05 +1100 (EST) Received: from ocs3.intra.ocs.com.au (localhost [127.0.0.1]) by ocs3.intra.ocs.com.au (Postfix) with ESMTP id 8C0DE96; Sat, 15 Dec 2001 20:15:05 +1100 (EST) X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 From: Keith Owens To: Karsten Merker Cc: linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS In-reply-to: Your message of "Sat, 15 Dec 2001 09:31:01 BST." <20011215093101.A256@excalibur.cologne.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 15 Dec 2001 20:14:59 +1100 Message-ID: <20472.1008407699@ocs3.intra.ocs.com.au> Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, 15 Dec 2001 09:31:01 +0100, Karsten Merker wrote: >On Fri, Dec 14, 2001 at 10:52:57AM -0800, Geoffrey Espin wrote: >> BTW, does any actually build 'vmlinux.ecoff'? > >Yes, it is (among other uses) the default target for DECstations, >the DECstation firmware cannot tftp-boot anything else. I am standardizing the list of supported formats for linux boot, as part of the kbuild 2.5 rewrite, I will add vmlinux.ecoff to the master list. AFAICT ecoff is only used on mips but, since ecoff is not an arch specific object format, it makes sense to make it a generic kbuild target, like elf, srec and bin. To that end, I looked at moving elf2ecoff and addinitrd to an arch independent directory so everybody could use those tools, alas both contain mips specific code. Any idea how much work is required to make elf2ecoff and addinitrd into generic utilities? Is it worth the effort or should they stay as mips only? From owner-linux-mips@oss.sgi.com Sat Dec 15 05:47:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFDlh819679 for linux-mips-outgoing; Sat, 15 Dec 2001 05:47:43 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFDldo19671 for ; Sat, 15 Dec 2001 05:47:39 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id CA48B84A; Sat, 15 Dec 2001 13:47:24 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id E0C584242; Sat, 15 Dec 2001 13:42:24 +0100 (CET) Date: Sat, 15 Dec 2001 13:42:24 +0100 From: Florian Lohoff To: Geoffrey Espin Cc: Pete Popov , linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS Message-ID: <20011215124224.GD23167@paradigm.rfc822.org> References: <200112140047.fBE0l9n02204@icarus.sanera.net> <1008292240.27799.134.camel@zeus> <20011213192846.A36207@idiom.com> <1008353149.27799.144.camel@zeus> <20011214105257.A15033@idiom.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OaZoDhBhXzo6bW1J" Content-Disposition: inline In-Reply-To: <20011214105257.A15033@idiom.com> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --OaZoDhBhXzo6bW1J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 14, 2001 at 10:52:57AM -0800, Geoffrey Espin wrote: >=20 > BTW, does any actually build 'vmlinux.ecoff'? >=20 Yep - Some Indy/Indigo2 proms only boot ecoff images via tftp. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --OaZoDhBhXzo6bW1J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8G0UwUaz2rXW+gJcRAsb3AJ0TuUskbxDaYk2pOgmDv/nJFZRWYACgkZyF xIDVJxuCTlQPTWqh3PBnkOs= =AQLD -----END PGP SIGNATURE----- --OaZoDhBhXzo6bW1J-- From owner-linux-mips@oss.sgi.com Sat Dec 15 05:47:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFDlgF19674 for linux-mips-outgoing; Sat, 15 Dec 2001 05:47:42 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFDlao19667 for ; Sat, 15 Dec 2001 05:47:36 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 0BC72853; Sat, 15 Dec 2001 13:47:25 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 86DAB4242; Sat, 15 Dec 2001 13:46:04 +0100 (CET) Date: Sat, 15 Dec 2001 13:46:04 +0100 From: Florian Lohoff To: Keith Owens Cc: Karsten Merker , linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS Message-ID: <20011215124604.GE23167@paradigm.rfc822.org> References: <20011215093101.A256@excalibur.cologne.de> <20472.1008407699@ocs3.intra.ocs.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9l24NVCWtSuIVIod" Content-Disposition: inline In-Reply-To: <20472.1008407699@ocs3.intra.ocs.com.au> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --9l24NVCWtSuIVIod Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 15, 2001 at 08:14:59PM +1100, Keith Owens wrote: > target, like elf, srec and bin. To that end, I looked at moving > elf2ecoff and addinitrd to an arch independent directory so everybody > could use those tools, alas both contain mips specific code. Any idea > how much work is required to make elf2ecoff and addinitrd into generic > utilities? Is it worth the effort or should they stay as mips only? Last i had a look elf2ecoff and addinitrd were not really nice recovering from toolchain problems like pages of null between sections which was a common fault a couple months back. This lead to addinitrd not beeing able to attach a ramdisk that the kernel would be able to find it.=20 BTW: Shouldn't objcopy be able to convert an ELF into an ECOFF ? Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --9l24NVCWtSuIVIod Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8G0YMUaz2rXW+gJcRAtRVAKCj8Jnd1W57LaHsT1tWCwgh/iOE5wCgpihP Jj5eLbAM4ELyAVbSycp5RRY= =P+Ak -----END PGP SIGNATURE----- --9l24NVCWtSuIVIod-- From owner-linux-mips@oss.sgi.com Sat Dec 15 14:54:29 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFMsTZ27246 for linux-mips-outgoing; Sat, 15 Dec 2001 14:54:29 -0800 Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFMsPo27243 for ; Sat, 15 Dec 2001 14:54:25 -0800 Received: from excalibur.cologne.de (pD951103A.dip.t-dialin.net [217.81.16.58]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id WAA23236; Sat, 15 Dec 2001 22:54:21 +0100 (MET) Received: from karsten by excalibur.cologne.de with local (Exim 3.12 #1 (Debian)) id 16FMsQ-0000jp-00; Sat, 15 Dec 2001 23:01:50 +0100 Date: Sat, 15 Dec 2001 23:01:50 +0100 From: Karsten Merker To: debian-mips@lists.debian.org, linux-mips@oss.sgi.com Subject: DELO problems Message-ID: <20011215230150.B2636@excalibur.cologne.de> Mail-Followup-To: Karsten Merker , debian-mips@lists.debian.org, linux-mips@oss.sgi.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-No-Archive: yes Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hallo everyone, I cannot get delo to boot any recently built kernel - delo loads /etc/delo.conf, finds the correct kernel image and loads it, printing "Loading /boot/vmlinux ....... ok", but when the kernel itself should be startet (and print "This DECstation is a ...."), I get the firmware prompt again. Booting older kernel images works without problems, also booting a current ECOFF-kernel by tftp shows no problems. Installed is delo-0.7-7 (Debian package). Can anybody confirm this behaviour? I have tried building the kernels on different machines, but this does not make a difference. Greetings, Karsten -- #include Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung. From owner-linux-mips@oss.sgi.com Sat Dec 15 15:28:55 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFNSt127710 for linux-mips-outgoing; Sat, 15 Dec 2001 15:28:55 -0800 Received: from mail.frosty-geek.net (gtso-c3477b5b.dsl.mediaWays.net [195.71.123.91]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFNSro27707 for ; Sat, 15 Dec 2001 15:28:53 -0800 Received: from nautilus.noreply.org (unknown [138.232.34.77]) by mail.frosty-geek.net (Postfix) with ESMTP id 748AF46C295; Sat, 15 Dec 2001 23:28:40 +0100 (CET) Received: by nautilus.noreply.org (Postfix, from userid 10) id C8ACB357C4; Sat, 15 Dec 2001 23:28:39 +0100 (CET) Received: by fisch.cyrius.com (Postfix, from userid 1000) id 3946C22A95; Sat, 15 Dec 2001 23:29:48 +0100 (CET) Date: Sat, 15 Dec 2001 23:29:48 +0100 From: Martin Michlmayr To: Karsten Merker , debian-mips@lists.debian.org, linux-mips@oss.sgi.com Subject: Re: DELO problems Message-ID: <20011215232947.A5851@fisch.cyrius.com> References: <20011215230150.B2636@excalibur.cologne.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011215230150.B2636@excalibur.cologne.de> User-Agent: Mutt/1.3.22i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk * Karsten Merker [20011215 23:01]: > I cannot get delo to boot any recently built kernel - delo loads > /etc/delo.conf, finds the correct kernel image and loads it, > printing "Loading /boot/vmlinux ....... ok", but when the kernel > itself should be startet (and print "This DECstation is a ...."), > I get the firmware prompt again. Flo posted a patch for this. I will send it to you in private mail and file a bug on delo (delo in Debian is up for adoption, btw). -- Martin Michlmayr tbm@cyrius.com From owner-linux-mips@oss.sgi.com Sat Dec 15 15:53:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFNrRt28086 for linux-mips-outgoing; Sat, 15 Dec 2001 15:53:27 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFNrNo28074 for ; Sat, 15 Dec 2001 15:53:23 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id 65E4A7CF5; Sat, 15 Dec 2001 22:53:16 +0000 (GMT) Date: Sat, 15 Dec 2001 22:53:16 +0000 From: Ian Chilton To: Guido Guenther Cc: linux-mips@oss.sgi.com Subject: I2 wont boot current kernel, Indy will. Message-ID: <20011215225316.B1879@woody.ichilton.co.uk> Reply-To: Ian Chilton References: <20011215113050.GA13030@bogon.ms20.nix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <20011215113050.GA13030@bogon.ms20.nix>; from guido.guenther@gmx.net on Sat, Dec 15, 2001 at 12:30:50PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi Guido, I tried with a fresh current cvs tree and applied your newport_vs_i2.diff straight from the e-mail, but still get the same on the I2: >> bootp():/vmlinux Setting $netaddr to 192.168.0.13 (from server ) Obtaining /vmlinux from server | [stops] Tried it on the Indy and it works (Same kernel, same boot server etc) Maybe it's a gcc 3 bug? I still have not got round to compiling an older toolchain. Any other ideas? Thanks Ian From owner-linux-mips@oss.sgi.com Sat Dec 15 15:53:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFNrR628077 for linux-mips-outgoing; Sat, 15 Dec 2001 15:53:27 -0800 Received: from laposte.enst-bretagne.fr (laposte.enst-bretagne.fr [192.108.115.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFNr7o28051; Sat, 15 Dec 2001 15:53:08 -0800 Received: from resel.enst-bretagne.fr (user54671@maisel-gw.enst-bretagne.fr [192.44.76.8]) by laposte.enst-bretagne.fr (8.11.6/8.11.6) with ESMTP id fBFMqwI00366; Sat, 15 Dec 2001 23:52:58 +0100 Received: from melkor (mail@melkor.maisel.enst-bretagne.fr [172.16.20.65]) by resel.enst-bretagne.fr (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id XAA15050; Sat, 15 Dec 2001 23:52:59 +0100 X-Authentication-Warning: maisel-gw.enst-bretagne.fr: Host mail@melkor.maisel.enst-bretagne.fr [172.16.20.65] claimed to be melkor Received: from glaurung (helo=localhost) by melkor with local-esmtp (Exim 3.33 #1 (Debian)) id 16FNfu-00036Y-00; Sat, 15 Dec 2001 23:52:58 +0100 Date: Sat, 15 Dec 2001 23:52:58 +0100 (CET) From: Vivien Chappelier X-Sender: glaurung@melkor To: ralf@oss.sgi.com cc: linux-mips@oss.sgi.com Subject: patches for SGI O2 Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="279724308-437166396-1008456778=:11851" X-Virus-Scanned: by amavisd-milter (http://amavis.org/) at enst-bretagne.fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --279724308-437166396-1008456778=:11851 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi, I've a few patches for running Linux on the SGI O2: The first one (O2-asid) concerns the TLB initialization the IP32. The asid_cache is not initialized, which leads to MMU context = 0 being considered valid! Thus when switching task, in switch_mm, a new context is not created. With the patch I can boot a debian experimental system (from ftp://bolugftp.uni-bonn.de/pub/mips-linux/rootfs/experimental) The second one adds support for the 16550A UARTs of the O2, so that ARC console is not needed anymore. Finaly, with my configuration (SGI O2 R5000 @ 180Mhz) I've to change PAGE_OFFSET in page.h to the one used for IP22 rather than the one used for IP32.. here is a third patch (O2-page) to change this, but I'm not sure about other configurations (R10000?) regards, Vivien. --279724308-437166396-1008456778=:11851 Content-Type: TEXT/plain; name="linux-O2-asid.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="linux-O2-asid.diff" ZGlmZiAtTmF1ciBsaW51eC9hcmNoL21pcHM2NC9zZ2ktaXAzMi9pcDMyLXNl dHVwLmMgbGludXgucGF0Y2gvYXJjaC9taXBzNjQvc2dpLWlwMzIvaXAzMi1z ZXR1cC5jDQotLS0gbGludXgvYXJjaC9taXBzNjQvc2dpLWlwMzIvaXAzMi1z ZXR1cC5jCVN1biBEZWMgIDkgMTU6NDc6MTUgMjAwMQ0KKysrIGxpbnV4LnBh dGNoL2FyY2gvbWlwczY0L3NnaS1pcDMyL2lwMzItc2V0dXAuYwlTYXQgRGVj IDE1IDIyOjU2OjI5IDIwMDENCkBAIC01OCw2ICs1OCw3IEBADQogI2lmZGVm IENPTkZJR19TRVJJQUxfQ09OU09MRQ0KIAljaGFyICpjdHlwZTsNCiAjZW5k aWYNCisJY3VycmVudF9jcHVfZGF0YS5hc2lkX2NhY2hlID0gQVNJRF9GSVJT VF9WRVJTSU9OOw0KIAlUTEJNSVNTX0hBTkRMRVJfU0VUVVAgKCk7DQogDQog I2lmZGVmIENPTkZJR19TRVJJQUxfQ09OU09MRQ0K --279724308-437166396-1008456778=:11851 Content-Type: TEXT/plain; name="linux-O2-serial.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="linux-O2-serial.diff" ZGlmZiAtTmF1ciBsaW51eC9hcmNoL21pcHM2NC9hcmMvYXJjX2Nvbi5jIGxp bnV4LnBhdGNoL2FyY2gvbWlwczY0L2FyYy9hcmNfY29uLmMNCi0tLSBsaW51 eC9hcmNoL21pcHM2NC9hcmMvYXJjX2Nvbi5jCVN1biBEZWMgIDkgMTU6NDc6 MTAgMjAwMQ0KKysrIGxpbnV4LnBhdGNo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ZTogU0VSSUFMX0lPX01FTX0sICAgICAg ICAgICAgICAgICAgICAgIA0KKyNlbmRpZg0KKw0KIA0KICNlbmRpZiAvKiBf QVNNX1NFUklBTF9IICovDQo= --279724308-437166396-1008456778=:11851 Content-Type: TEXT/plain; name="linux-O2-page.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="linux-O2-page.diff" ZGlmZiAtTmF1ciBsaW51eC9pbmNsdWRlL2FzbS1taXBzNjQvcGFnZS5oIGxp bnV4LnBhdGNoL2luY2x1ZGUvYXNtLW1pcHM2NC9wYWdlLmgNCi0tLSBsaW51 eC9pbmNsdWRlL2FzbS1taXBzNjQvcGFnZS5oCVNhdCBEZWMgMTUgMjE6MzM6 NDAgMjAwMQ0KKysrIGxpbnV4LnBhdGNoL2luY2x1ZGUvYXNtLW1pcHM2NC9w YWdlLmgJU2F0IERlYyAxNSAyMTozNzozOCAyMDAxDQpAQCAtNjAsMTAgKzYw LDEwIEBADQogICogYXQgWEtQSFlTIGZvciBrZXJuZWxzIHdpdGggbW9yZSB0 aGFuIHRoYXQuDQogICovDQogI2lmIGRlZmluZWQoQ09ORklHX1NHSV9JUDIy KSB8fCBkZWZpbmVkKENPTkZJR19NSVBTX0FUTEFTKSB8fCBcDQotICAgIGRl ZmluZWQoQ09ORklHX01JUFNfTUFMVEEpDQorICAgIGRlZmluZWQoQ09ORklH X01JUFNfTUFMVEEpIHx8IGRlZmluZWQoQ09ORklHX1NHSV9JUDMyKQ0KICNk ZWZpbmUgUEFHRV9PRkZTRVQJMHhmZmZmZmZmZjgwMDAwMDAwVUwNCiAjZW5k aWYNCi0jaWYgZGVmaW5lZChDT05GSUdfU0dJX0lQMjcpIHx8IGRlZmluZWQo Q09ORklHX1NHSV9JUDMyKQ0KKyNpZiBkZWZpbmVkKENPTkZJR19TR0lfSVAy NykNCiAjZGVmaW5lIFBBR0VfT0ZGU0VUCTB4YTgwMDAwMDAwMDAwMDAwMFVM DQogI2VuZGlmDQogDQo= --279724308-437166396-1008456778=:11851-- From owner-linux-mips@oss.sgi.com Sat Dec 15 15:59:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBFNxNU28294 for linux-mips-outgoing; Sat, 15 Dec 2001 15:59:23 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBFNxHo28284 for ; Sat, 15 Dec 2001 15:59:18 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 21CCB842; Sat, 15 Dec 2001 23:59:07 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 37CC94242; Sat, 15 Dec 2001 23:58:24 +0100 (CET) Date: Sat, 15 Dec 2001 23:58:24 +0100 From: Florian Lohoff To: Karsten Merker Cc: debian-mips@lists.debian.org, linux-mips@oss.sgi.com Subject: Re: DELO problems Message-ID: <20011215225824.GA3056@paradigm.rfc822.org> References: <20011215230150.B2636@excalibur.cologne.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <20011215230150.B2636@excalibur.cologne.de> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 15, 2001 at 11:01:50PM +0100, Karsten Merker wrote: > Hallo everyone, >=20 > I cannot get delo to boot any recently built kernel - delo loads=20 > /etc/delo.conf, finds the correct kernel image and loads it, > printing "Loading /boot/vmlinux ....... ok", but when the kernel > itself should be startet (and print "This DECstation is a ...."), > I get the firmware prompt again. Have a look at the elf file with readelf - It shows a section which has a len > 0 and the load address is "0" - When copieng the sections i overwrite important stuff - This is actually a binutils fault not a delos one. Although i have been told that i can heavily optimize the stuff by not dealing with the sections rather than segments. I will change that. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8G9WQUaz2rXW+gJcRAuqiAKCTkIGcYMFnfQC+re/3Np5+FGj0HgCgjLp3 kdPrf6gjUDq5sBJAkC1IxPs= =fn+F -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- From owner-linux-mips@oss.sgi.com Sat Dec 15 16:02:58 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBG02wI28511 for linux-mips-outgoing; Sat, 15 Dec 2001 16:02:58 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBG02ro28508 for ; Sat, 15 Dec 2001 16:02:53 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 825E1842; Sun, 16 Dec 2001 00:02:42 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 615544242; Sun, 16 Dec 2001 00:02:08 +0100 (CET) Date: Sun, 16 Dec 2001 00:02:08 +0100 From: Florian Lohoff To: Ian Chilton Cc: Guido Guenther , linux-mips@oss.sgi.com Subject: Re: I2 wont boot current kernel, Indy will. Message-ID: <20011215230208.GB3056@paradigm.rfc822.org> References: <20011215113050.GA13030@bogon.ms20.nix> <20011215225316.B1879@woody.ichilton.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: <20011215225316.B1879@woody.ichilton.co.uk> User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 15, 2001 at 10:53:16PM +0000, Ian Chilton wrote: > Hi Guido, >=20 > I tried with a fresh current cvs tree and applied your > newport_vs_i2.diff straight from the e-mail, but > still get the same on the I2: >=20 > >> bootp():/vmlinux =20 > Setting $netaddr to 192.168.0.13 (from server ) > Obtaining /vmlinux from server =20 > | =20 >=20 > [stops] It definitly works - I have tried myself - I am using gcc 3 too - That cant be the fault. Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8G9ZwUaz2rXW+gJcRAo36AJ4hTd1DEWWbSf235xSM8kDFT77ovwCfeVt6 Y3sTBefxNfvVdY+YyrJ636M= =aVfY -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI-- From owner-linux-mips@oss.sgi.com Sat Dec 15 16:35:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBG0ZSB29136 for linux-mips-outgoing; Sat, 15 Dec 2001 16:35:28 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBG0ZPo29133 for ; Sat, 15 Dec 2001 16:35:25 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id 57F237CF5; Sat, 15 Dec 2001 23:35:18 +0000 (GMT) Date: Sat, 15 Dec 2001 23:35:18 +0000 From: Ian Chilton To: Florian Lohoff Cc: linux-mips@oss.sgi.com Subject: Re: I2 wont boot current kernel, Indy will. Message-ID: <20011215233518.C1879@woody.ichilton.co.uk> Reply-To: Ian Chilton References: <20011215113050.GA13030@bogon.ms20.nix> <20011215225316.B1879@woody.ichilton.co.uk> <20011215230208.GB3056@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i In-Reply-To: <20011215230208.GB3056@paradigm.rfc822.org>; from flo@rfc822.org on Sun, Dec 16, 2001 at 12:02:08AM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, > It definitly works - I have tried myself - I am using gcc 3 too - That > cant be the fault. It's very strange. Same kernel, same boot server, indy boots, i2 doesn't. I2 still works with old kernel. Can't be gcc 3 if you are using it too (i'm using 3.0.1). What binutils do you have? I have 2.11.90.0.25 Apart from that, i'm out of ideas. Thanks Ian From owner-linux-mips@oss.sgi.com Sat Dec 15 18:28:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBG2S7M30914 for linux-mips-outgoing; Sat, 15 Dec 2001 18:28:07 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBG2S2o30902 for ; Sat, 15 Dec 2001 18:28:02 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBG1RvW01972; Sat, 15 Dec 2001 23:27:57 -0200 Date: Sat, 15 Dec 2001 23:27:57 -0200 From: Ralf Baechle To: Vivien Chappelier Cc: linux-mips@oss.sgi.com Subject: Re: patches for SGI O2 Message-ID: <20011215232757.A1863@dea.linux-mips.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from vivien.chappelier@enst-bretagne.fr on Sat, Dec 15, 2001 at 11:52:58PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 15, 2001 at 11:52:58PM +0100, Vivien Chappelier wrote: > The first one (O2-asid) concerns the TLB initialization the IP32. The > asid_cache is not initialized, which leads to MMU context = 0 being > considered valid! Thus when switching task, in switch_mm, a new context is > not created. Correct finding. It's just that you shouldn't have to apply this patch to the IP32 code and that shows that mips64 needs quite a cleanup there. Applied anyway. > Finaly, with my configuration (SGI O2 R5000 @ 180Mhz) I've to change > PAGE_OFFSET in page.h to the one used for IP22 rather than the one used > for IP32.. here is a third patch (O2-page) to change this, but I'm not > sure about other configurations (R10000?) > -#if defined(CONFIG_SGI_IP27) || defined(CONFIG_SGI_IP32) > +#if defined(CONFIG_SGI_IP27) > #define PAGE_OFFSET 0xa800000000000000UL > #endif 0xa8 is caching mode 5 which is not defined for the R5000, thus undefined behaviour. You can be almost certain that the CPU use that as an excuse in order to do really funny things. As the O2 is a non-cachecoherent machine this should also be correct for the R10000 / R12000. Ralf From owner-linux-mips@oss.sgi.com Sun Dec 16 18:09:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBH29mC03826 for linux-mips-outgoing; Sun, 16 Dec 2001 18:09:48 -0800 Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.28.122.60]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBH29ao03823; Sun, 16 Dec 2001 18:09:37 -0800 Received: by woody.ichilton.co.uk (Postfix, from userid 1000) id 2725B7CF5; Mon, 17 Dec 2001 01:09:26 +0000 (GMT) Date: Mon, 17 Dec 2001 01:09:26 +0000 From: Ian Chilton To: linux-mips@oss.sgi.com Cc: ralf@oss.sgi.com Subject: Kernel Wont Boot on I2 - Not the kernel! Message-ID: <20011217010926.H6423@woody.ichilton.co.uk> Reply-To: Ian Chilton Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.13i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, Just been looking into the problem more. My Indy and Sparc boxes netboot fine, so server seems ok My I2 boots an old 2.4.0-test9 kernel fine But try to boot a new kernel on the I2, get this: >> bootp():/vmlinux Setting $netaddr to 192.168.0.13 (from server ) Obtaining /vmlinux from server / [and stops there] I thought this was the kernel, but I just tried Flo's (lolo) working I2 kernel and it does exactly the same!! Server is showing this: Dec 17 01:54:48 slinky dhcpd: BOOTREQUEST from 08:00:69:08:9d:ec via eth0 Dec 17 01:54:48 slinky dhcpd: BOOTREPLY for 192.168.0.13 to dale (08:00:69:08:9d:ec) via eth0 Dec 17 01:54:48 slinky in.tftpd[5858]: connect from dale.ichilton.local Dec 17 01:54:48 slinky tftpd[5859]: tftpd: trying to get file: vmlinux-dale Dec 17 01:54:48 slinky tftpd[5859]: tftpd: serving file from /export/tftpboot [root@slinky:/export/tftpboot]# ls -la vmlinux-dale lrwxrwxrwx 1 root root 19 Dec 17 01:51 vmlinux-dale -> mips/vmlinux-2.4.16 End of tcpdump is: 02:01:09.797242 dale.ichilton.local.15677 > slinky.ichilton.local.2052: udp 6 02:01:09.797289 slinky.ichilton.local.2052 > dale.ichilton.local.15677: udp 516 02:01:09.798218 dale.ichilton.local.15677 > slinky.ichilton.local.2052: udp 6 02:01:09.798265 slinky.ichilton.local.2052 > dale.ichilton.local.15677: udp 516 02:01:09.799190 dale.ichilton.local.15677 > slinky.ichilton.local.2052: udp 6 02:01:09.799235 slinky.ichilton.local.2052 > dale.ichilton.local.15677: udp 516 02:01:09.800168 dale.ichilton.local.15677 > slinky.ichilton.local.2052: udp 6 02:01:09.800213 slinky.ichilton.local.2052 > dale.ichilton.local.15677: udp 516 02:01:09.860624 dale.ichilton.local.15677 > slinky.ichilton.local.2052: udp 6 02:01:11.574420 arp who-has dale.ichilton.local tell slinky.ichilton.local 02:01:12.574416 arp who-has dale.ichilton.local tell slinky.ichilton.local 02:01:13.574414 arp who-has dale.ichilton.local tell slinky.ichilton.local 02:01:14.574427 arp who-has dale.ichilton.local tell slinky.ichilton.local 02:01:15.574423 arp who-has dale.ichilton.local tell slinky.ichilton.local 02:01:16.574414 arp who-has dale.ichilton.local tell slinky.ichilton.local Anyone any ideas? Thanks Ian From owner-linux-mips@oss.sgi.com Mon Dec 17 06:13:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHEDdO12775 for linux-mips-outgoing; Mon, 17 Dec 2001 06:13:39 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBHEDXo12762 for ; Mon, 17 Dec 2001 06:13:34 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id OAA19984; Mon, 17 Dec 2001 14:12:44 +0100 (MET) Date: Mon, 17 Dec 2001 14:12:44 +0100 (MET) From: "Maciej W. Rozycki" To: Keith Owens cc: Karsten Merker , linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS In-Reply-To: <20472.1008407699@ocs3.intra.ocs.com.au> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, 15 Dec 2001, Keith Owens wrote: > AFAICT ecoff is only used on mips but, since ecoff is not an arch > specific object format, it makes sense to make it a generic kbuild > target, like elf, srec and bin. To that end, I looked at moving > elf2ecoff and addinitrd to an arch independent directory so everybody > could use those tools, alas both contain mips specific code. Any idea > how much work is required to make elf2ecoff and addinitrd into generic > utilities? Is it worth the effort or should they stay as mips only? Elf2ecoff is probably going not to be used one day anymore, i.e. once binutils are fixed. Right now there is a problem in marking ELF executables impure (non-paged). Ultimately either objcopy or even ld directly is going to be used for ECOFF binary creation. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Mon Dec 17 10:10:38 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHIAcB26762 for linux-mips-outgoing; Mon, 17 Dec 2001 10:10:38 -0800 Received: from ocean.lucon.org (12-234-19-19.client.attbi.com [12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBHIAZo26758 for ; Mon, 17 Dec 2001 10:10:35 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id 2C4B4125C0; Mon, 17 Dec 2001 09:10:32 -0800 (PST) Date: Mon, 17 Dec 2001 09:10:32 -0800 From: "H . J . Lu" To: Jakub Jelinek Cc: Andreas Jaeger , GNU libc hacker , binutils@sourceware.cygnus.com, linux-mips@oss.sgi.com Subject: Prelink for mips (Re: MIPS broken in 2.3) Message-ID: <20011217091032.A29014@lucon.org> References: <20011213093958.A6057@lucon.org> <20011217123631.G542@sunsite.ms.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217123631.G542@sunsite.ms.mff.cuni.cz>; from jakub@redhat.com on Mon, Dec 17, 2001 at 12:36:31PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 17, 2001 at 12:36:31PM +0100, Jakub Jelinek wrote: > instead (well, best would be if somebody ported prelink to mips; > I'll try to answer any questions and help). Do you have some documentations how prelink works? > I skipped mips because it is way too different from how any other ELF > architecture works (e.g. using a single dynamic reloc type for everything > with various meanings, etc.) and I have no access to it. That is what I am afraid of. The MIPS ABI supports "quickstart". I don't know if we can add prelink to mips without breaking/changing the MIPS ABI. I don't want to spend my time on it if it can't be done at all. H.J. From owner-linux-mips@oss.sgi.com Mon Dec 17 10:38:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHIcpI27264 for linux-mips-outgoing; Mon, 17 Dec 2001 10:38:51 -0800 Received: from sunsite.ms.mff.cuni.cz (sunsite.ms.mff.cuni.cz [195.113.19.66]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBHIcio27253 for ; Mon, 17 Dec 2001 10:38:44 -0800 Received: (from jj@localhost) by sunsite.ms.mff.cuni.cz (8.9.3/8.9.3) id SAA07672; Mon, 17 Dec 2001 18:52:15 +0100 Date: Mon, 17 Dec 2001 18:52:15 +0100 From: Jakub Jelinek To: "H . J . Lu" Cc: Andreas Jaeger , GNU libc hacker , binutils@sourceware.cygnus.com, linux-mips@oss.sgi.com Subject: Re: Prelink for mips (Re: MIPS broken in 2.3) Message-ID: <20011217185215.K542@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20011213093958.A6057@lucon.org> <20011217123631.G542@sunsite.ms.mff.cuni.cz> <20011217091032.A29014@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: <20011217091032.A29014@lucon.org>; from H . J . Lu on Mon, Dec 17, 2001 at 09:10:32AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 17, 2001 at 09:10:32AM -0800, H . J . Lu wrote: > On Mon, Dec 17, 2001 at 12:36:31PM +0100, Jakub Jelinek wrote: > > > instead (well, best would be if somebody ported prelink to mips; > > I'll try to answer any questions and help). > > Do you have some documentations how prelink works? So far not too much. Some info is in prelink(8) man page, some info was posted to binutils mailing list. The rest can be done if you ask questions, I'll answer them and save the answers (and compile something from them in the future). > > I skipped mips because it is way too different from how any other ELF > > architecture works (e.g. using a single dynamic reloc type for everything > > with various meanings, etc.) and I have no access to it. > > That is what I am afraid of. The MIPS ABI supports "quickstart". I know, but from what I understood, quickstart e.g. just assumes there won't be conflicts and if there are, their handling is very costly (their conflicts are just symbol indices which need to be checked out). prelink conflicts are ElfW(Rela) relocs against r_symndx 0. To port prelink to a new architecture, you need basically: 1) determine what you need to do with relocations and special CPU sections when relocating a shared library from one address to another one (e.g. you can link a shared libs once at VMA 0, once at VMA 0xdeadb000 and see what changed) - these are *_adjust_* functions 2) write routines which apply relocs (*_prelink_rel*) 3) write routines which create conflict relocs 4) as MIPS is rel, it needs to be figured out when it is needed to convert from Rel to Rela (in i386/arm case in most cases it can be avoided, the only relocs which require it are (on i386): R_386_32 with nonzero addend (otherwise R_386_GLOB_DAT does exactly the same thing) and R_386_PC32). This is needed, because otherwise the information about the original addend is lost when the final relocated value is stored at r_offset address. Original addend is needed, if prelink cannot be used, during dynamic linking. If MIPS has some place where it stashes this for Quickstart, then it could be reused, otherwise I'm afraid REL->RELA will happen more often on MIPS than on IA-32/ARM. 5) write routines which apply relocs to a buffer or apply a conflict to a buffer (these are used when doing comparisons on relocated content) Write the glibc part, which for REL arches means write rela variants of routines and figure what if anything needs to be done to undo prelinked PLT slots. > I don't know if we can add prelink to mips without breaking/changing > the MIPS ABI. I don't want to spend my time on it if it can't be done > at all. Jakub From owner-linux-mips@oss.sgi.com Mon Dec 17 12:29:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHKTqH31974 for linux-mips-outgoing; Mon, 17 Dec 2001 12:29:52 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBHKRxo31939 for ; Mon, 17 Dec 2001 12:27:59 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBHJRfQ02322; Mon, 17 Dec 2001 17:27:41 -0200 Date: Mon, 17 Dec 2001 17:27:41 -0200 From: Ralf Baechle To: "Maciej W. Rozycki" Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: New style irqs for DEC Message-ID: <20011217172741.A2316@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Maciej, below is my attempt at fixing interrupts for DECstation against the latest 2.4. Can you give it a try? Ralf Index: arch/mips/config.in =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/config.in,v retrieving revision 1.154.2.7 diff -u -r1.154.2.7 config.in --- arch/mips/config.in 2001/12/14 23:49:15 1.154.2.7 +++ arch/mips/config.in 2001/12/17 20:21:54 @@ -83,6 +83,7 @@ define_bool CONFIG_SBUS n if [ "$CONFIG_DECSTATION" = "y" ]; then + define_bool CONFIG_NEW_IRQ y define_bool CONFIG_NONCOHERENT_IO y fi Index: arch/mips/defconfig-decstation =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/defconfig-decstation,v retrieving revision 1.76.2.1 diff -u -r1.76.2.1 defconfig-decstation --- arch/mips/defconfig-decstation 2001/12/14 23:47:16 1.76.2.1 +++ arch/mips/defconfig-decstation 2001/12/17 20:21:54 @@ -39,6 +39,7 @@ # CONFIG_RWSEM_XCHGADD_ALGORITHM is not set # CONFIG_MCA is not set # CONFIG_SBUS is not set +CONFIG_NEW_IRQ=y CONFIG_NONCOHERENT_IO=y # CONFIG_ISA is not set # CONFIG_EISA is not set Index: arch/mips/dec/irq.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/dec/irq.c,v retrieving revision 1.17 diff -u -r1.17 irq.c --- arch/mips/dec/irq.c 2001/12/02 02:02:21 1.17 +++ arch/mips/dec/irq.c 2001/12/17 20:21:54 @@ -34,242 +34,89 @@ extern asmlinkage void decstation_handle_int(void); -volatile unsigned long irq_err_count; +spinlock_t DEC_lock = SPIN_LOCK_UNLOCKED; -static inline void mask_irq(unsigned int irq_nr) +static inline void mask_dec_irq(unsigned int irq_nr) { unsigned int dummy; - if (dec_interrupt[irq_nr].iemask) { /* This is an ASIC interrupt */ + if (dec_interrupt[irq_nr].iemask) { + /* This is an ASIC interrupt */ *imr &= ~dec_interrupt[irq_nr].iemask; dummy = *imr; dummy = *imr; - } else /* This is a cpu interrupt */ + } else { + /* This is a cpu interrupt */ change_cp0_status(ST0_IM, read_32bit_cp0_register(CP0_STATUS) & ~dec_interrupt[irq_nr].cpu_mask); + } } -static inline void unmask_irq(unsigned int irq_nr) +static inline void unmask_dec_irq(unsigned int irq_nr) { unsigned int dummy; - if (dec_interrupt[irq_nr].iemask) { /* This is an ASIC interrupt */ + if (dec_interrupt[irq_nr].iemask) { + /* This is an ASIC interrupt */ *imr |= dec_interrupt[irq_nr].iemask; dummy = *imr; dummy = *imr; } - change_cp0_status(ST0_IM, - read_32bit_cp0_register(CP0_STATUS) | + change_cp0_status(ST0_IM, read_32bit_cp0_register(CP0_STATUS) | dec_interrupt[irq_nr].cpu_mask); } - -void disable_irq(unsigned int irq_nr) -{ - unsigned long flags; - - save_and_cli(flags); - mask_irq(irq_nr); - restore_flags(flags); -} - -void enable_irq(unsigned int irq_nr) -{ - unsigned long flags; - - save_and_cli(flags); - unmask_irq(irq_nr); - restore_flags(flags); -} - -/* - * Pointers to the low-level handlers: first the general ones, then the - * fast ones, then the bad ones. - */ -extern void interrupt(void); - -static struct irqaction *irq_action[32] = { - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL -}; - -int get_irq_list(char *buf) -{ - int i, len = 0; - struct irqaction *action; - for (i = 0; i < 32; i++) { - action = irq_action[i]; - if (!action) - continue; - len += sprintf(buf + len, "%2d: %8d %c %s", - i, kstat.irqs[0][i], - (action->flags & SA_INTERRUPT) ? '+' : ' ', - action->name); - for (action = action->next; action; action = action->next) { - len += sprintf(buf + len, ",%s %s", - (action-> - flags & SA_INTERRUPT) ? " +" : "", - action->name); - } - len += sprintf(buf + len, "\n"); - } - return len; -} +#define shutdown_dec_irq disable_dec_irq -/* - * do_IRQ handles IRQ's that have been installed without the - * SA_INTERRUPT flag: it uses the full signal-handling return - * and runs with other interrupts enabled. All relatively slow - * IRQ's should use this format: notably the keyboard/timer - * routines. - */ -asmlinkage void do_IRQ(int irq, struct pt_regs *regs) +static unsigned int startup_dec_irq(unsigned int irq) { - struct irqaction *action; - int do_random, cpu; - - cpu = smp_processor_id(); - irq_enter(cpu, irq); - kstat.irqs[cpu][irq]++; - - mask_irq(irq); - action = *(irq + irq_action); - if (action) { - if (!(action->flags & SA_INTERRUPT)) - __sti(); - action = *(irq + irq_action); - do_random = 0; - do { - do_random |= action->flags; - action->handler(irq, action->dev_id, regs); - action = action->next; - } while (action); - if (do_random & SA_SAMPLE_RANDOM) - add_interrupt_randomness(irq); - __cli(); - unmask_irq(irq); - } - irq_exit(cpu, irq); + unmask_dec_irq(irq); - if (softirq_pending(cpu)) - do_softirq(); + return 0; /* never anything pending */ } -/* - * Idea is to put all interrupts - * in a single table and differenciate them just by number. - */ -int setup_dec_irq(int irq, struct irqaction *new) +static void disable_dec_irq(unsigned int irq_nr) { - int shared = 0; - struct irqaction *old, **p; unsigned long flags; - p = irq_action + irq; - if ((old = *p) != NULL) { - /* Can't share interrupts unless both agree to */ - if (!(old->flags & new->flags & SA_SHIRQ)) - return -EBUSY; - - /* Can't share interrupts unless both are same type */ - if ((old->flags ^ new->flags) & SA_INTERRUPT) - return -EBUSY; - - /* add new interrupt at end of irq queue */ - do { - p = &old->next; - old = *p; - } while (old); - shared = 1; - } - if (new->flags & SA_SAMPLE_RANDOM) - rand_initialize_irq(irq); - - save_and_cli(flags); - *p = new; - - if (!shared) { - unmask_irq(irq); - } - restore_flags(flags); - return 0; -} - -int request_irq(unsigned int irq, - void (*handler) (int, void *, struct pt_regs *), - unsigned long irqflags, const char *devname, void *dev_id) -{ - int retval; - struct irqaction *action; - - if (irq >= 32) - return -EINVAL; - if (!handler) - return -EINVAL; - - action = - (struct irqaction *) kmalloc(sizeof(struct irqaction), - GFP_KERNEL); - if (!action) - return -ENOMEM; - - action->handler = handler; - action->flags = irqflags; - action->mask = 0; - action->name = devname; - action->next = NULL; - action->dev_id = dev_id; - - retval = setup_dec_irq(irq, action); - - if (retval) - kfree(action); - return retval; + spin_lock_irqsave(&DEC_lock, flags); + mask_dec_irq(irq_nr); + spin_unlock_irqrestore(&DEC_lock, flags); } -void free_irq(unsigned int irq, void *dev_id) +static inline void enable_dec_irq(unsigned int irq_nr) { - struct irqaction *action, **p; unsigned long flags; - if (irq > 39) { - printk("Trying to free IRQ%d\n", irq); - return; - } - for (p = irq + irq_action; (action = *p) != NULL; - p = &action->next) { - if (action->dev_id != dev_id) - continue; - - /* Found it - now free it */ - save_and_cli(flags); - *p = action->next; - if (!irq[irq_action]) - mask_irq(irq); - restore_flags(flags); - kfree(action); - return; - } - printk("Trying to free free IRQ%d\n", irq); + spin_lock_irqsave(&DEC_lock, flags); + unmask_dec_irq(irq_nr); + spin_unlock_irqrestore(&DEC_lock, flags); } -unsigned long probe_irq_on(void) -{ - /* TODO */ - return 0; -} +#define mask_and_ack_dec_irq disable_dec_irq -int probe_irq_off(unsigned long irqs) +static void end_dec_irq (unsigned int irq) { - /* TODO */ - return 0; + if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS))) + enable_dec_irq(irq); } +static struct hw_interrupt_type dec_irq_type = { + "DEC", + startup_dec_irq, + shutdown_dec_irq, + enable_dec_irq, + disable_dec_irq, + mask_and_ack_dec_irq, + end_dec_irq, + NULL +}; + void __init init_IRQ(void) { + int i; + switch (mips_machtype) { case MACH_DS23100: dec_init_kn01(); @@ -300,4 +147,13 @@ break; } set_except_vector(0, decstation_handle_int); + + init_generic_irq(); + + for (i = 0; i < 32; i++) { + irq_desc[i].status = IRQ_DISABLED; + irq_desc[i].action = NULL; + irq_desc[i].depth = 1; + irq_desc[i].handler = &dec_irq_type; + } } Index: arch/mips/dec/setup.c =================================================================== RCS file: /home/pub/cvs/linux/arch/mips/dec/setup.c,v retrieving revision 1.11 diff -u -r1.11 setup.c --- arch/mips/dec/setup.c 2001/11/24 16:47:23 1.11 +++ arch/mips/dec/setup.c 2001/12/17 20:21:54 @@ -28,7 +28,6 @@ #include #include - char *dec_rtc_base = (void *) KN01_RTC_BASE; /* Assume DS2100/3100 initially */ volatile unsigned int *ioasic_base; @@ -51,28 +50,26 @@ extern struct rtc_ops dec_rtc_ops; -extern int setup_dec_irq(int, struct irqaction *); - void (*board_time_init) (struct irqaction * irq); -static struct irqaction haltirq = {dec_intr_halt, 0, 0, "halt", NULL, NULL}; +static struct irqaction haltirq = { dec_intr_halt, 0, 0, "halt", NULL, NULL }; /* * enable the periodic interrupts */ static void __init dec_time_init(struct irqaction *irq) { - /* - * Here we go, enable periodic rtc interrupts. - */ + /* + * Here we go, enable periodic rtc interrupts. + */ #ifndef LOG_2_HZ # define LOG_2_HZ 7 #endif - CMOS_WRITE(RTC_REF_CLCK_32KHZ | (16 - LOG_2_HZ), RTC_REG_A); - CMOS_WRITE(CMOS_READ(RTC_REG_B) | RTC_PIE, RTC_REG_B); - setup_dec_irq(CLOCK, irq); + CMOS_WRITE(RTC_REF_CLCK_32KHZ | (16 - LOG_2_HZ), RTC_REG_A); + CMOS_WRITE(CMOS_READ(RTC_REG_B) | RTC_PIE, RTC_REG_B); + setup_irq(CLOCK, irq); } /* @@ -80,24 +77,24 @@ */ static void __init dec_halt_init(struct irqaction *irq) { - setup_dec_irq(HALT, irq); + setup_irq(HALT, irq); } void __init decstation_setup(void) { - board_time_init = dec_time_init; + board_time_init = dec_time_init; - wbflush_setup(); + wbflush_setup(); - _machine_restart = dec_machine_restart; - _machine_halt = dec_machine_halt; - _machine_power_off = dec_machine_power_off; + _machine_restart = dec_machine_restart; + _machine_halt = dec_machine_halt; + _machine_power_off = dec_machine_power_off; #ifdef CONFIG_FB - conswitchp = &dummy_con; + conswitchp = &dummy_con; #endif - rtc_ops = &dec_rtc_ops; + rtc_ops = &dec_rtc_ops; } /* @@ -106,43 +103,43 @@ */ void __init dec_init_kn01(void) { - /* - * Setup some memory addresses. - */ - dec_rtc_base = (char *) KN01_RTC_BASE; - - /* - * Setup interrupt structure - */ - dec_interrupt[CLOCK].cpu_mask = IE_IRQ3; - dec_interrupt[CLOCK].iemask = 0; - cpu_mask_tbl[0] = IE_IRQ3; - cpu_irq_nr[0] = CLOCK; - - dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ0; - dec_interrupt[SCSI_INT].iemask = 0; - cpu_mask_tbl[1] = IE_IRQ0; - cpu_irq_nr[1] = SCSI_INT; - - dec_interrupt[ETHER].cpu_mask = IE_IRQ1; - dec_interrupt[ETHER].iemask = 0; - cpu_mask_tbl[2] = IE_IRQ1; - cpu_irq_nr[2] = ETHER; - - dec_interrupt[SERIAL].cpu_mask = IE_IRQ2; - dec_interrupt[SERIAL].iemask = 0; - cpu_mask_tbl[3] = IE_IRQ2; - cpu_irq_nr[3] = SERIAL; - - dec_interrupt[MEMORY].cpu_mask = IE_IRQ4; - dec_interrupt[MEMORY].iemask = 0; - cpu_mask_tbl[4] = IE_IRQ4; - cpu_irq_nr[4] = MEMORY; - - /* - * Enable board interrupts: FPU. - */ - set_cp0_status(DEC_IE_FPU); + /* + * Setup some memory addresses. + */ + dec_rtc_base = (char *) KN01_RTC_BASE; + + /* + * Setup interrupt structure + */ + dec_interrupt[CLOCK].cpu_mask = IE_IRQ3; + dec_interrupt[CLOCK].iemask = 0; + cpu_mask_tbl[0] = IE_IRQ3; + cpu_irq_nr[0] = CLOCK; + + dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ0; + dec_interrupt[SCSI_INT].iemask = 0; + cpu_mask_tbl[1] = IE_IRQ0; + cpu_irq_nr[1] = SCSI_INT; + + dec_interrupt[ETHER].cpu_mask = IE_IRQ1; + dec_interrupt[ETHER].iemask = 0; + cpu_mask_tbl[2] = IE_IRQ1; + cpu_irq_nr[2] = ETHER; + + dec_interrupt[SERIAL].cpu_mask = IE_IRQ2; + dec_interrupt[SERIAL].iemask = 0; + cpu_mask_tbl[3] = IE_IRQ2; + cpu_irq_nr[3] = SERIAL; + + dec_interrupt[MEMORY].cpu_mask = IE_IRQ4; + dec_interrupt[MEMORY].iemask = 0; + cpu_mask_tbl[4] = IE_IRQ4; + cpu_irq_nr[4] = MEMORY; + + /* + * Enable board interrupts: FPU. + */ + set_cp0_status(DEC_IE_FPU); } /* dec_init_kn01 */ /* @@ -152,23 +149,23 @@ */ void __init dec_init_kn230(void) { - /* - * Setup some memory addresses. - */ - dec_rtc_base = (char *) KN01_RTC_BASE; - - /* - * Setup interrupt structure - */ - dec_interrupt[CLOCK].cpu_mask = IE_IRQ2; - dec_interrupt[CLOCK].iemask = 0; - cpu_mask_tbl[0] = IE_IRQ2; - cpu_irq_nr[0] = CLOCK; - - /* - * Enable board interrupts: FPU. - */ - set_cp0_status(DEC_IE_FPU); + /* + * Setup some memory addresses. + */ + dec_rtc_base = (char *) KN01_RTC_BASE; + + /* + * Setup interrupt structure + */ + dec_interrupt[CLOCK].cpu_mask = IE_IRQ2; + dec_interrupt[CLOCK].iemask = 0; + cpu_mask_tbl[0] = IE_IRQ2; + cpu_irq_nr[0] = CLOCK; + + /* + * Enable board interrupts: FPU. + */ + set_cp0_status(DEC_IE_FPU); } /* dec_init_kn230 */ /* @@ -176,71 +173,71 @@ */ void __init dec_init_kn02(void) { - int dec_ie_io; + int dec_ie_io; - /* - * Setup some memory addresses. FIXME: probably incomplete! - */ - dec_rtc_base = (char *) KN02_RTC_BASE; - isr = (void *) KN02_CSR_ADDR; - imr = (void *) KN02_CSR_ADDR; - - /* - * Setup I/O interrupt - */ - dec_ie_io = IE_IRQ0; - cpu_ivec_tbl[1] = kn02_io_int; - cpu_mask_tbl[1] = dec_ie_io; - cpu_irq_nr[1] = -1; - *imr = *imr & 0xff00ff00; - - /* - * Setup interrupt structure - */ - dec_interrupt[CLOCK].cpu_mask = IE_IRQ1; - dec_interrupt[CLOCK].iemask = 0; - cpu_mask_tbl[0] = IE_IRQ1; - cpu_irq_nr[0] = CLOCK; - - dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ0; - dec_interrupt[SCSI_INT].iemask = KN02_SLOT5; - asic_mask_tbl[0] = KN02_SLOT5; - asic_irq_nr[0] = SCSI_INT; - - dec_interrupt[ETHER].cpu_mask = IE_IRQ0; - dec_interrupt[ETHER].iemask = KN02_SLOT6; - asic_mask_tbl[1] = KN02_SLOT6; - asic_irq_nr[1] = ETHER; - - dec_interrupt[SERIAL].cpu_mask = IE_IRQ0; - dec_interrupt[SERIAL].iemask = KN02_SLOT7; - asic_mask_tbl[2] = KN02_SLOT7; - asic_irq_nr[2] = SERIAL; - - dec_interrupt[TC0].cpu_mask = IE_IRQ0; - dec_interrupt[TC0].iemask = KN02_SLOT0; - asic_mask_tbl[3] = KN02_SLOT0; - asic_irq_nr[3] = TC0; - - dec_interrupt[TC1].cpu_mask = IE_IRQ0; - dec_interrupt[TC1].iemask = KN02_SLOT1; - asic_mask_tbl[4] = KN02_SLOT1; - asic_irq_nr[4] = TC1; - - dec_interrupt[TC2].cpu_mask = IE_IRQ0; - dec_interrupt[TC2].iemask = KN02_SLOT2; - asic_mask_tbl[5] = KN02_SLOT2; - asic_irq_nr[5] = TC2; - - dec_interrupt[MEMORY].cpu_mask = IE_IRQ3; - dec_interrupt[MEMORY].iemask = 0; - cpu_mask_tbl[2] = IE_IRQ3; - cpu_irq_nr[2] = MEMORY; - - /* - * Enable board interrupts: FPU, I/O. - */ - set_cp0_status(DEC_IE_FPU | dec_ie_io); + /* + * Setup some memory addresses. FIXME: probably incomplete! + */ + dec_rtc_base = (char *) KN02_RTC_BASE; + isr = (void *) KN02_CSR_ADDR; + imr = (void *) KN02_CSR_ADDR; + + /* + * Setup I/O interrupt + */ + dec_ie_io = IE_IRQ0; + cpu_ivec_tbl[1] = kn02_io_int; + cpu_mask_tbl[1] = dec_ie_io; + cpu_irq_nr[1] = -1; + *imr = *imr & 0xff00ff00; + + /* + * Setup interrupt structure + */ + dec_interrupt[CLOCK].cpu_mask = IE_IRQ1; + dec_interrupt[CLOCK].iemask = 0; + cpu_mask_tbl[0] = IE_IRQ1; + cpu_irq_nr[0] = CLOCK; + + dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ0; + dec_interrupt[SCSI_INT].iemask = KN02_SLOT5; + asic_mask_tbl[0] = KN02_SLOT5; + asic_irq_nr[0] = SCSI_INT; + + dec_interrupt[ETHER].cpu_mask = IE_IRQ0; + dec_interrupt[ETHER].iemask = KN02_SLOT6; + asic_mask_tbl[1] = KN02_SLOT6; + asic_irq_nr[1] = ETHER; + + dec_interrupt[SERIAL].cpu_mask = IE_IRQ0; + dec_interrupt[SERIAL].iemask = KN02_SLOT7; + asic_mask_tbl[2] = KN02_SLOT7; + asic_irq_nr[2] = SERIAL; + + dec_interrupt[TC0].cpu_mask = IE_IRQ0; + dec_interrupt[TC0].iemask = KN02_SLOT0; + asic_mask_tbl[3] = KN02_SLOT0; + asic_irq_nr[3] = TC0; + + dec_interrupt[TC1].cpu_mask = IE_IRQ0; + dec_interrupt[TC1].iemask = KN02_SLOT1; + asic_mask_tbl[4] = KN02_SLOT1; + asic_irq_nr[4] = TC1; + + dec_interrupt[TC2].cpu_mask = IE_IRQ0; + dec_interrupt[TC2].iemask = KN02_SLOT2; + asic_mask_tbl[5] = KN02_SLOT2; + asic_irq_nr[5] = TC2; + + dec_interrupt[MEMORY].cpu_mask = IE_IRQ3; + dec_interrupt[MEMORY].iemask = 0; + cpu_mask_tbl[2] = IE_IRQ3; + cpu_irq_nr[2] = MEMORY; + + /* + * Enable board interrupts: FPU, I/O. + */ + set_cp0_status(DEC_IE_FPU | dec_ie_io); } /* dec_init_kn02 */ /* @@ -248,84 +245,84 @@ */ void __init dec_init_kn02ba(void) { - int dec_ie_ioasic; + int dec_ie_ioasic; - /* - * Setup some memory addresses. - */ - ioasic_base = (void *) KN02XA_IOASIC_BASE; - dec_rtc_base = (char *) KN02XA_RTC_BASE; - isr = (void *) KN02XA_IOASIC_REG(SIR); - imr = (void *) KN02XA_IOASIC_REG(SIMR); - - /* - * Setup IOASIC interrupt - */ - dec_ie_ioasic = IE_IRQ3; - cpu_ivec_tbl[0] = kn02xa_io_int; - cpu_mask_tbl[0] = dec_ie_ioasic; - cpu_irq_nr[0] = -1; - *imr = 0; - - /* - * Setup interrupt structure - */ - dec_interrupt[CLOCK].cpu_mask = IE_IRQ3; - dec_interrupt[CLOCK].iemask = KMIN_CLOCK; - asic_mask_tbl[0] = KMIN_CLOCK; - asic_irq_nr[0] = CLOCK; - - dec_interrupt[SCSI_DMA_INT].cpu_mask = IE_IRQ3; - dec_interrupt[SCSI_DMA_INT].iemask = SCSI_DMA_INTS; - asic_mask_tbl[1] = SCSI_DMA_INTS; - asic_irq_nr[1] = SCSI_DMA_INT; - - dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ3; - dec_interrupt[SCSI_INT].iemask = SCSI_CHIP; - asic_mask_tbl[2] = SCSI_CHIP; - asic_irq_nr[2] = SCSI_INT; - - dec_interrupt[ETHER].cpu_mask = IE_IRQ3; - dec_interrupt[ETHER].iemask = LANCE_INTS; - asic_mask_tbl[3] = LANCE_INTS; - asic_irq_nr[3] = ETHER; - - dec_interrupt[SERIAL].cpu_mask = IE_IRQ3; - dec_interrupt[SERIAL].iemask = SERIAL_INTS; - asic_mask_tbl[4] = SERIAL_INTS; - asic_irq_nr[4] = SERIAL; - - dec_interrupt[MEMORY].cpu_mask = IE_IRQ3; - dec_interrupt[MEMORY].iemask = KMIN_TIMEOUT; - asic_mask_tbl[5] = KMIN_TIMEOUT; - asic_irq_nr[5] = MEMORY; - - dec_interrupt[TC0].cpu_mask = IE_IRQ0; - dec_interrupt[TC0].iemask = 0; - cpu_mask_tbl[1] = IE_IRQ0; - cpu_irq_nr[1] = TC0; - - dec_interrupt[TC1].cpu_mask = IE_IRQ1; - dec_interrupt[TC1].iemask = 0; - cpu_mask_tbl[2] = IE_IRQ1; - cpu_irq_nr[2] = TC1; - - dec_interrupt[TC2].cpu_mask = IE_IRQ2; - dec_interrupt[TC2].iemask = 0; - cpu_mask_tbl[3] = IE_IRQ2; - cpu_irq_nr[3] = TC2; - - dec_interrupt[HALT].cpu_mask = IE_IRQ4; - dec_interrupt[HALT].iemask = 0; - cpu_mask_tbl[4] = IE_IRQ4; - cpu_irq_nr[4] = HALT; - - /* - * Enable board interrupts: FPU, I/O ASIC. - */ - set_cp0_status(DEC_IE_FPU | dec_ie_ioasic); + /* + * Setup some memory addresses. + */ + ioasic_base = (void *) KN02XA_IOASIC_BASE; + dec_rtc_base = (char *) KN02XA_RTC_BASE; + isr = (void *) KN02XA_IOASIC_REG(SIR); + imr = (void *) KN02XA_IOASIC_REG(SIMR); + + /* + * Setup IOASIC interrupt + */ + dec_ie_ioasic = IE_IRQ3; + cpu_ivec_tbl[0] = kn02xa_io_int; + cpu_mask_tbl[0] = dec_ie_ioasic; + cpu_irq_nr[0] = -1; + *imr = 0; + + /* + * Setup interrupt structure + */ + dec_interrupt[CLOCK].cpu_mask = IE_IRQ3; + dec_interrupt[CLOCK].iemask = KMIN_CLOCK; + asic_mask_tbl[0] = KMIN_CLOCK; + asic_irq_nr[0] = CLOCK; + + dec_interrupt[SCSI_DMA_INT].cpu_mask = IE_IRQ3; + dec_interrupt[SCSI_DMA_INT].iemask = SCSI_DMA_INTS; + asic_mask_tbl[1] = SCSI_DMA_INTS; + asic_irq_nr[1] = SCSI_DMA_INT; + + dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ3; + dec_interrupt[SCSI_INT].iemask = SCSI_CHIP; + asic_mask_tbl[2] = SCSI_CHIP; + asic_irq_nr[2] = SCSI_INT; + + dec_interrupt[ETHER].cpu_mask = IE_IRQ3; + dec_interrupt[ETHER].iemask = LANCE_INTS; + asic_mask_tbl[3] = LANCE_INTS; + asic_irq_nr[3] = ETHER; + + dec_interrupt[SERIAL].cpu_mask = IE_IRQ3; + dec_interrupt[SERIAL].iemask = SERIAL_INTS; + asic_mask_tbl[4] = SERIAL_INTS; + asic_irq_nr[4] = SERIAL; + + dec_interrupt[MEMORY].cpu_mask = IE_IRQ3; + dec_interrupt[MEMORY].iemask = KMIN_TIMEOUT; + asic_mask_tbl[5] = KMIN_TIMEOUT; + asic_irq_nr[5] = MEMORY; + + dec_interrupt[TC0].cpu_mask = IE_IRQ0; + dec_interrupt[TC0].iemask = 0; + cpu_mask_tbl[1] = IE_IRQ0; + cpu_irq_nr[1] = TC0; + + dec_interrupt[TC1].cpu_mask = IE_IRQ1; + dec_interrupt[TC1].iemask = 0; + cpu_mask_tbl[2] = IE_IRQ1; + cpu_irq_nr[2] = TC1; + + dec_interrupt[TC2].cpu_mask = IE_IRQ2; + dec_interrupt[TC2].iemask = 0; + cpu_mask_tbl[3] = IE_IRQ2; + cpu_irq_nr[3] = TC2; + + dec_interrupt[HALT].cpu_mask = IE_IRQ4; + dec_interrupt[HALT].iemask = 0; + cpu_mask_tbl[4] = IE_IRQ4; + cpu_irq_nr[4] = HALT; + + /* + * Enable board interrupts: FPU, I/O ASIC. + */ + set_cp0_status(DEC_IE_FPU | dec_ie_ioasic); - dec_halt_init(&haltirq); + dec_halt_init(&haltirq); } /* dec_init_kn02ba */ /* @@ -333,79 +330,79 @@ */ void __init dec_init_kn02ca(void) { - int dec_ie_ioasic; + int dec_ie_ioasic; - /* - * Setup some memory addresses. FIXME: probably incomplete! - */ - ioasic_base = (void *) KN02XA_IOASIC_BASE; - dec_rtc_base = (char *) KN02XA_RTC_BASE; - isr = (void *) KN02XA_IOASIC_REG(SIR); - imr = (void *) KN02XA_IOASIC_REG(SIMR); - - /* - * Setup IOASIC interrupt - */ - dec_ie_ioasic = IE_IRQ3; - cpu_ivec_tbl[1] = kn02xa_io_int; - cpu_mask_tbl[1] = dec_ie_ioasic; - cpu_irq_nr[1] = -1; - *imr = 0; - - /* - * Setup interrupt structure - */ - dec_interrupt[CLOCK].cpu_mask = IE_IRQ1; - dec_interrupt[CLOCK].iemask = 0; - cpu_mask_tbl[0] = IE_IRQ1; - cpu_irq_nr[0] = CLOCK; - - dec_interrupt[SCSI_DMA_INT].cpu_mask = IE_IRQ3; - dec_interrupt[SCSI_DMA_INT].iemask = SCSI_DMA_INTS; - asic_mask_tbl[0] = SCSI_DMA_INTS; - asic_irq_nr[0] = SCSI_DMA_INT; - - dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ3; - dec_interrupt[SCSI_INT].iemask = SCSI_CHIP; - asic_mask_tbl[1] = SCSI_CHIP; - asic_irq_nr[1] = SCSI_INT; - - dec_interrupt[ETHER].cpu_mask = IE_IRQ3; - dec_interrupt[ETHER].iemask = LANCE_INTS; - asic_mask_tbl[2] = LANCE_INTS; - asic_irq_nr[2] = ETHER; - - dec_interrupt[SERIAL].cpu_mask = IE_IRQ3; - dec_interrupt[SERIAL].iemask = XINE_SERIAL_INTS; - asic_mask_tbl[3] = XINE_SERIAL_INTS; - asic_irq_nr[3] = SERIAL; - - dec_interrupt[TC0].cpu_mask = IE_IRQ3; - dec_interrupt[TC0].iemask = MAXINE_TC0; - asic_mask_tbl[4] = MAXINE_TC0; - asic_irq_nr[4] = TC0; - - dec_interrupt[TC1].cpu_mask = IE_IRQ3; - dec_interrupt[TC1].iemask = MAXINE_TC1; - asic_mask_tbl[5] = MAXINE_TC1; - asic_irq_nr[5] = TC1; - - dec_interrupt[MEMORY].cpu_mask = IE_IRQ2; - dec_interrupt[MEMORY].iemask = 0; - cpu_mask_tbl[2] = IE_IRQ2; - cpu_irq_nr[2] = MEMORY; - - dec_interrupt[HALT].cpu_mask = IE_IRQ4; - dec_interrupt[HALT].iemask = 0; - cpu_mask_tbl[3] = IE_IRQ4; - cpu_irq_nr[3] = HALT; - - /* - * Enable board interrupts: FPU, I/O ASIC. - */ - set_cp0_status(DEC_IE_FPU | dec_ie_ioasic); + /* + * Setup some memory addresses. FIXME: probably incomplete! + */ + ioasic_base = (void *) KN02XA_IOASIC_BASE; + dec_rtc_base = (char *) KN02XA_RTC_BASE; + isr = (void *) KN02XA_IOASIC_REG(SIR); + imr = (void *) KN02XA_IOASIC_REG(SIMR); + + /* + * Setup IOASIC interrupt + */ + dec_ie_ioasic = IE_IRQ3; + cpu_ivec_tbl[1] = kn02xa_io_int; + cpu_mask_tbl[1] = dec_ie_ioasic; + cpu_irq_nr[1] = -1; + *imr = 0; + + /* + * Setup interrupt structure + */ + dec_interrupt[CLOCK].cpu_mask = IE_IRQ1; + dec_interrupt[CLOCK].iemask = 0; + cpu_mask_tbl[0] = IE_IRQ1; + cpu_irq_nr[0] = CLOCK; + + dec_interrupt[SCSI_DMA_INT].cpu_mask = IE_IRQ3; + dec_interrupt[SCSI_DMA_INT].iemask = SCSI_DMA_INTS; + asic_mask_tbl[0] = SCSI_DMA_INTS; + asic_irq_nr[0] = SCSI_DMA_INT; + + dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ3; + dec_interrupt[SCSI_INT].iemask = SCSI_CHIP; + asic_mask_tbl[1] = SCSI_CHIP; + asic_irq_nr[1] = SCSI_INT; + + dec_interrupt[ETHER].cpu_mask = IE_IRQ3; + dec_interrupt[ETHER].iemask = LANCE_INTS; + asic_mask_tbl[2] = LANCE_INTS; + asic_irq_nr[2] = ETHER; + + dec_interrupt[SERIAL].cpu_mask = IE_IRQ3; + dec_interrupt[SERIAL].iemask = XINE_SERIAL_INTS; + asic_mask_tbl[3] = XINE_SERIAL_INTS; + asic_irq_nr[3] = SERIAL; + + dec_interrupt[TC0].cpu_mask = IE_IRQ3; + dec_interrupt[TC0].iemask = MAXINE_TC0; + asic_mask_tbl[4] = MAXINE_TC0; + asic_irq_nr[4] = TC0; + + dec_interrupt[TC1].cpu_mask = IE_IRQ3; + dec_interrupt[TC1].iemask = MAXINE_TC1; + asic_mask_tbl[5] = MAXINE_TC1; + asic_irq_nr[5] = TC1; + + dec_interrupt[MEMORY].cpu_mask = IE_IRQ2; + dec_interrupt[MEMORY].iemask = 0; + cpu_mask_tbl[2] = IE_IRQ2; + cpu_irq_nr[2] = MEMORY; + + dec_interrupt[HALT].cpu_mask = IE_IRQ4; + dec_interrupt[HALT].iemask = 0; + cpu_mask_tbl[3] = IE_IRQ4; + cpu_irq_nr[3] = HALT; + + /* + * Enable board interrupts: FPU, I/O ASIC. + */ + set_cp0_status(DEC_IE_FPU | dec_ie_ioasic); - dec_halt_init(&haltirq); + dec_halt_init(&haltirq); } /* dec_init_kn02ca */ /* @@ -413,82 +410,82 @@ */ void __init dec_init_kn03(void) { - int dec_ie_ioasic; + int dec_ie_ioasic; - /* - * Setup some memory addresses. FIXME: probably incomplete! - */ - ioasic_base = (void *) KN03_IOASIC_BASE; - dec_rtc_base = (char *) KN03_RTC_BASE; - isr = (void *) KN03_IOASIC_REG(SIR); - imr = (void *) KN03_IOASIC_REG(SIMR); - - /* - * Setup IOASIC interrupt - */ - dec_ie_ioasic = IE_IRQ0; - cpu_ivec_tbl[1] = kn03_io_int; - cpu_mask_tbl[1] = dec_ie_ioasic; - cpu_irq_nr[1] = -1; - *imr = 0; - - /* - * Setup interrupt structure - */ - dec_interrupt[CLOCK].cpu_mask = IE_IRQ1; - dec_interrupt[CLOCK].iemask = 0; - cpu_mask_tbl[0] = IE_IRQ1; - cpu_irq_nr[0] = CLOCK; - - dec_interrupt[SCSI_DMA_INT].cpu_mask = IE_IRQ0; - dec_interrupt[SCSI_DMA_INT].iemask = SCSI_DMA_INTS; - asic_mask_tbl[0] = SCSI_DMA_INTS; - asic_irq_nr[0] = SCSI_DMA_INT; - - dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ0; - dec_interrupt[SCSI_INT].iemask = SCSI_CHIP; - asic_mask_tbl[1] = SCSI_CHIP; - asic_irq_nr[1] = SCSI_INT; - - dec_interrupt[ETHER].cpu_mask = IE_IRQ0; - dec_interrupt[ETHER].iemask = LANCE_INTS; - asic_mask_tbl[2] = LANCE_INTS; - asic_irq_nr[2] = ETHER; - - dec_interrupt[SERIAL].cpu_mask = IE_IRQ0; - dec_interrupt[SERIAL].iemask = SERIAL_INTS; - asic_mask_tbl[3] = SERIAL_INTS; - asic_irq_nr[3] = SERIAL; - - dec_interrupt[TC0].cpu_mask = IE_IRQ0; - dec_interrupt[TC0].iemask = KN03_TC0; - asic_mask_tbl[4] = KN03_TC0; - asic_irq_nr[4] = TC0; - - dec_interrupt[TC1].cpu_mask = IE_IRQ0; - dec_interrupt[TC1].iemask = KN03_TC1; - asic_mask_tbl[5] = KN03_TC1; - asic_irq_nr[5] = TC1; - - dec_interrupt[TC2].cpu_mask = IE_IRQ0; - dec_interrupt[TC2].iemask = KN03_TC2; - asic_mask_tbl[6] = KN03_TC2; - asic_irq_nr[6] = TC2; - - dec_interrupt[MEMORY].cpu_mask = IE_IRQ3; - dec_interrupt[MEMORY].iemask = 0; - cpu_mask_tbl[2] = IE_IRQ3; - cpu_irq_nr[2] = MEMORY; - - dec_interrupt[HALT].cpu_mask = IE_IRQ4; - dec_interrupt[HALT].iemask = 0; - cpu_mask_tbl[3] = IE_IRQ4; - cpu_irq_nr[3] = HALT; - - /* - * Enable board interrupts: FPU, I/O ASIC. - */ - set_cp0_status(DEC_IE_FPU | dec_ie_ioasic); + /* + * Setup some memory addresses. FIXME: probably incomplete! + */ + ioasic_base = (void *) KN03_IOASIC_BASE; + dec_rtc_base = (char *) KN03_RTC_BASE; + isr = (void *) KN03_IOASIC_REG(SIR); + imr = (void *) KN03_IOASIC_REG(SIMR); + + /* + * Setup IOASIC interrupt + */ + dec_ie_ioasic = IE_IRQ0; + cpu_ivec_tbl[1] = kn03_io_int; + cpu_mask_tbl[1] = dec_ie_ioasic; + cpu_irq_nr[1] = -1; + *imr = 0; + + /* + * Setup interrupt structure + */ + dec_interrupt[CLOCK].cpu_mask = IE_IRQ1; + dec_interrupt[CLOCK].iemask = 0; + cpu_mask_tbl[0] = IE_IRQ1; + cpu_irq_nr[0] = CLOCK; + + dec_interrupt[SCSI_DMA_INT].cpu_mask = IE_IRQ0; + dec_interrupt[SCSI_DMA_INT].iemask = SCSI_DMA_INTS; + asic_mask_tbl[0] = SCSI_DMA_INTS; + asic_irq_nr[0] = SCSI_DMA_INT; + + dec_interrupt[SCSI_INT].cpu_mask = IE_IRQ0; + dec_interrupt[SCSI_INT].iemask = SCSI_CHIP; + asic_mask_tbl[1] = SCSI_CHIP; + asic_irq_nr[1] = SCSI_INT; + + dec_interrupt[ETHER].cpu_mask = IE_IRQ0; + dec_interrupt[ETHER].iemask = LANCE_INTS; + asic_mask_tbl[2] = LANCE_INTS; + asic_irq_nr[2] = ETHER; + + dec_interrupt[SERIAL].cpu_mask = IE_IRQ0; + dec_interrupt[SERIAL].iemask = SERIAL_INTS; + asic_mask_tbl[3] = SERIAL_INTS; + asic_irq_nr[3] = SERIAL; + + dec_interrupt[TC0].cpu_mask = IE_IRQ0; + dec_interrupt[TC0].iemask = KN03_TC0; + asic_mask_tbl[4] = KN03_TC0; + asic_irq_nr[4] = TC0; + + dec_interrupt[TC1].cpu_mask = IE_IRQ0; + dec_interrupt[TC1].iemask = KN03_TC1; + asic_mask_tbl[5] = KN03_TC1; + asic_irq_nr[5] = TC1; + + dec_interrupt[TC2].cpu_mask = IE_IRQ0; + dec_interrupt[TC2].iemask = KN03_TC2; + asic_mask_tbl[6] = KN03_TC2; + asic_irq_nr[6] = TC2; + + dec_interrupt[MEMORY].cpu_mask = IE_IRQ3; + dec_interrupt[MEMORY].iemask = 0; + cpu_mask_tbl[2] = IE_IRQ3; + cpu_irq_nr[2] = MEMORY; + + dec_interrupt[HALT].cpu_mask = IE_IRQ4; + dec_interrupt[HALT].iemask = 0; + cpu_mask_tbl[3] = IE_IRQ4; + cpu_irq_nr[3] = HALT; + + /* + * Enable board interrupts: FPU, I/O ASIC. + */ + set_cp0_status(DEC_IE_FPU | dec_ie_ioasic); - dec_halt_init(&haltirq); + dec_halt_init(&haltirq); } /* dec_init_kn03 */ From owner-linux-mips@oss.sgi.com Mon Dec 17 13:15:21 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHLFLK00562 for linux-mips-outgoing; Mon, 17 Dec 2001 13:15:21 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBHLFHo00555 for ; Mon, 17 Dec 2001 13:15:17 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBHKFFR05569 for linux-mips@oss.sgi.com; Mon, 17 Dec 2001 15:15:15 -0500 Date: Mon, 17 Dec 2001 15:15:15 -0500 From: Jim Paris To: linux-mips@oss.sgi.com Subject: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011217151515.A9188@neurosis.mit.edu> Reply-To: jim@jtan.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf, perhaps you (or someone else here) can help: > From: Pete Popov > To: jim@jtan.com > > On Sun, 2001-12-16 at 18:37, Jim Paris wrote: > > I'm confused. Shouldn't ioremap use isa_slot_offset for ISA > > addresses, and if not, why not? Where should isa_slot_offset go? It > > can't go into read[bwl]/write[bwl], because ioremap would add KSEG1, > > and isa_slot_offset would already include KSEG1. > > What would be considered an ISA address -- the standard PC definition? > I don't think that would work on most mips boards. > > I'm not sure what isa_slot_offset is meant to do at all. Shoot Ralf an > email, perhaps he has a clear explanation (and then let us know :-)). If I make ioremap use isa_slot_offset for addresses under 16MB, then PCMCIA works for me. I don't see any other way to get isa_slot_offset in there without hacking PCMCIA in ways that break other arches. -- On a somewhat related note, I've noticed that if I include IDE disk support in my kernel (CONFIG_BLK_DEV_IDEDISK, ide-disk.o), then stuff breaks; most noticibly, the PCMCIA IRQ scan returns the negative (!) of the correct values. I'm guessing this is something miscompiling -- I'm using the latest binutils plus gcc-3.0.2 -- has anyone see these problems with ide-disk? Or can you suggest a newer gcc CVS that you've used successfully? (I suppose I should set up gdb and try to find where the problem is, but I'm in the middle of finals right now and won't have time to do that for a while) -jim From owner-linux-mips@oss.sgi.com Mon Dec 17 13:21:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHLLVJ00736 for linux-mips-outgoing; Mon, 17 Dec 2001 13:21:31 -0800 Received: from email.com.cn ([202.106.186.230]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBHLLSo00733 for ; Mon, 17 Dec 2001 13:21:28 -0800 Received: from email.com.cn([127.0.0.1]) by email.com.cn(JetMail 2.5.3.0) with SMTP id jm43c1e569f; Mon, 17 Dec 2001 20:21:07 -0000 Received: from sources.redhat.com([209.249.29.67]) by email.com.cn(JetMail 2.5.3.0) with SMTP id jmf43c1e4b0a; Mon, 17 Dec 2001 17:18:51 -0000 Received: (qmail 25040 invoked by alias); 17 Dec 2001 17:11:50 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list binutils@sources.redhat.com Received: (qmail 24616 invoked from network); 17 Dec 2001 17:10:34 -0000 Received: from unknown (HELO ocean.lucon.org) (12.234.19.19) by sources.redhat.com with SMTP; 17 Dec 2001 17:10:34 -0000 Received: by ocean.lucon.org (Postfix, from userid 1000) id 2C4B4125C0; Mon, 17 Dec 2001 09:10:32 -0800 (PST) Date: Mon, 17 Dec 2001 09:10:32 -0800 From: "H . J . Lu" To: Jakub Jelinek Cc: Andreas Jaeger , GNU libc hacker , binutils@sourceware.cygnus.com, linux-mips@oss.sgi.com Subject: Prelink for mips (Re: MIPS broken in 2.3) Message-ID: <20011217091032.A29014@lucon.org> References: <20011213093958.A6057@lucon.org> <20011217123631.G542@sunsite.ms.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217123631.G542@sunsite.ms.mff.cuni.cz>; from jakub@redhat.com on Mon, Dec 17, 2001 at 12:36:31PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 17, 2001 at 12:36:31PM +0100, Jakub Jelinek wrote: > instead (well, best would be if somebody ported prelink to mips; > I'll try to answer any questions and help). Do you have some documentations how prelink works? > I skipped mips because it is way too different from how any other ELF > architecture works (e.g. using a single dynamic reloc type for everything > with various meanings, etc.) and I have no access to it. That is what I am afraid of. The MIPS ABI supports "quickstart". I don't know if we can add prelink to mips without breaking/changing the MIPS ABI. I don't want to spend my time on it if it can't be done at all. H.J. From owner-linux-mips@oss.sgi.com Mon Dec 17 13:33:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHLXPV00989 for linux-mips-outgoing; Mon, 17 Dec 2001 13:33:25 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBHLXKo00986 for ; Mon, 17 Dec 2001 13:33:21 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBHKWnr30567; Mon, 17 Dec 2001 18:32:49 -0200 Date: Mon, 17 Dec 2001 18:32:49 -0200 From: Ralf Baechle To: Florian Lohoff Cc: Keith Owens , Karsten Merker , linux-mips@oss.sgi.com Subject: Re: No bzImage target for MIPS Message-ID: <20011217183249.A2081@dea.linux-mips.net> References: <20011215093101.A256@excalibur.cologne.de> <20472.1008407699@ocs3.intra.ocs.com.au> <20011215124604.GE23167@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011215124604.GE23167@paradigm.rfc822.org>; from flo@rfc822.org on Sat, Dec 15, 2001 at 01:46:04PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 15, 2001 at 01:46:04PM +0100, Florian Lohoff wrote: > > target, like elf, srec and bin. To that end, I looked at moving > > elf2ecoff and addinitrd to an arch independent directory so everybody > > could use those tools, alas both contain mips specific code. Any idea > > how much work is required to make elf2ecoff and addinitrd into generic > > utilities? Is it worth the effort or should they stay as mips only? > > Last i had a look elf2ecoff and addinitrd were not really nice > recovering from toolchain problems like pages of null between sections > which was a common fault a couple months back. This lead to addinitrd > not beeing able to attach a ramdisk that the kernel would be able to > find it. > > BTW: Shouldn't objcopy be able to convert an ELF into an ECOFF ? In theory yes, in practice that was found to be so problematic that we just gave up and use those NetBSD tools. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 17 14:09:29 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHM9Tp01737 for linux-mips-outgoing; Mon, 17 Dec 2001 14:09:29 -0800 Received: from post.webmailer.de (natwar.webmailer.de [192.67.198.70]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBHM9Lo01733 for ; Mon, 17 Dec 2001 14:09:21 -0800 Received: from excalibur.cologne.de (pD9511206.dip.t-dialin.net [217.81.18.6]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id WAA23874; Mon, 17 Dec 2001 22:04:51 +0100 (MET) Received: from karsten by excalibur.cologne.de with local (Exim 3.12 #1 (Debian)) id 16G580-0001lG-00; Mon, 17 Dec 2001 22:16:52 +0100 Date: Mon, 17 Dec 2001 22:16:52 +0100 From: Karsten Merker To: linux-mips@oss.sgi.com, linux-mips@fnet.fr Cc: ralf@gnu.org Subject: Re: New style irqs for DEC Message-ID: <20011217221652.A6765@excalibur.cologne.de> Mail-Followup-To: Karsten Merker , linux-mips@oss.sgi.com, linux-mips@fnet.fr, ralf@gnu.org References: <20011217172741.A2316@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217172741.A2316@dea.linux-mips.net>; from ralf@uni-koblenz.de on Mon, Dec 17, 2001 at 05:27:41PM -0200 X-No-Archive: yes Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 17, 2001 at 05:27:41PM -0200, Ralf Baechle wrote: > below is my attempt at fixing interrupts for DECstation against the > latest 2.4. Can you give it a try? Gives the following on a DECstation 5000/20 (R3k): ------------------------------------------------------------------------------ >>boot 3/tftp root=/dev/sda5 console=ttyS0 1527808+0+79696 This DECstation is a Personal DS5000/xx CPU revision is: 00000230 FPU revision is: 00000340 Primary instruction cache 64kb, linesize 4 bytes Primary data cache 64kb, linesize 4 bytes Linux version 2.4.16 (karsten@excalibur) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)) #1 Mon Dez 17 21:43:00 CET 2001 Determined physical RAM map: memory: 02800000 @ 00000000 (usable) On node 0 totalpages: 10240 zone(0): 10240 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/sda5 console=ttyS0 Calibrating delay loop... 19.82 BogoMIPS Memory: 38484k/40960k available (1284k kernel code, 2476k reserved, 137k data, 64k init) Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) Mount-cache hash table entries: 1024 (order: 1, 8192 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) Checking for 'wait' instruction... unavailable. POSIX conformance testing by UNIFIX TURBOchannel rev. 1 at 12.5 MHz (without parity) Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starti<1>Unable to handle kernel paging request at virtual address 00000000, epc == 00000000, ra == 8005c84c Oops in fault.c:do_page_fault, line 204: $0 : 00000000 1000a801 00000000 000000cd 801928c8 00090f96 8019dcf4 00000000 $8 : 801a05b8 801a0420 00000800 00000800 00000000 00000000 801ee250 fffffffb $16: 801928c8 000400f7 7fe11ffe 1000a800 8019cf00 80192860 0000003c 00000010 $24: ffffffff 00000020 801fc000 801fdd48 0c00b620 8005c84c Hi : 0000000f Lo : 765e2000 epc : 00000000 Not tainted Status: 1000a804 Cause : 00000008 Process swapper (pid: 1, stackpage=801fc000) Stack: 801a064c 8004def8 fffffffe 1000a800 80192000 801a064c 00000000 fffffffb 801fdda0 0000003e 8004e244 8004e1f0 00000002 80068188 8019e884 8019ea7c fffffff5 000026f0 801ad6d0 0000006e 0000000a 800cabf0 00000001 8005d2b0 8019e884 8019ea7c 000001f0 801fdf40 00000000 801a0000 ffffffff 00000078 ffffffff 000d1b70 00012e00 bc100001 00012e00 00012e00 00000018 fffffff0 00000000 ... Call Trace: [<8004def8>] [<8004e244>] [<8004e1f0>] [<80068188>] [<800cabf0>] [<8005d2b0>] [<80055964>] [<80055754>] [<800f9334>] [<800f9394>] [<8005d2b0>] [<800f9690>] [<8004c980>] [<80056974>] [<800ab1a8>] [<800ab16c>] [<80056a10>] [<80056b4c>] [<80056fdc>] [<8004804c>] [<80056e68>] [<8015a070>] [<8004804c>] [<8015a060>] [<80068510>] [<8016eefc>] [<8004804c>] [<8004805c>] [<800570e8>] [<80047e14>] [<8004897c>] [<80048020>] [<80056e68>] [<8004896c>] Code: (Bad address in epc) Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing ------------------------------------------------------------------------------ Greetings, Karsten -- #include Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder meinungsforschung. From owner-linux-mips@oss.sgi.com Mon Dec 17 14:34:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHMYqw04087 for linux-mips-outgoing; Mon, 17 Dec 2001 14:34:52 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBHMYjo04083 for ; Mon, 17 Dec 2001 14:34:46 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBHLYWL04540; Mon, 17 Dec 2001 19:34:32 -0200 Date: Mon, 17 Dec 2001 19:34:32 -0200 From: Ralf Baechle To: Jim Paris Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011217193432.A7115@dea.linux-mips.net> References: <20011217151515.A9188@neurosis.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217151515.A9188@neurosis.mit.edu>; from jim@jtan.com on Mon, Dec 17, 2001 at 03:15:15PM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 17, 2001 at 03:15:15PM -0500, Jim Paris wrote: > > What would be considered an ISA address -- the standard PC definition? > > I don't think that would work on most mips boards. ISA, the good old stonage PC bus system with all it's limitations that also infected some MIPS systems. > > I'm not sure what isa_slot_offset is meant to do at all. Shoot Ralf an > > email, perhaps he has a clear explanation (and then let us know :-)). It points to the virtual address at which memory address 0 of the ISA bus is accessible. There is a wealth of old ISA drivers that don't know about the wonders of ioremap so that's why there is isa_slot_offset as a killer solution for all ISA crapola. > If I make ioremap use isa_slot_offset for addresses under 16MB, then > PCMCIA works for me. I don't see any other way to get isa_slot_offset > in there without hacking PCMCIA in ways that break other arches. Is your PCMCIA bridge really behind an ISA bus? What is an address less than 16mb in your case? Most MIPS systems have memory at that physical address so maybe you're not talking about physical addresses? > On a somewhat related note, I've noticed that if I include IDE disk > support in my kernel (CONFIG_BLK_DEV_IDEDISK, ide-disk.o), then stuff > breaks; most noticibly, the PCMCIA IRQ scan returns the negative (!) > of the correct values. I'm guessing this is something miscompiling -- > I'm using the latest binutils plus gcc-3.0.2 -- has anyone see these Try something older instead. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 17 15:00:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBHN05E04595 for linux-mips-outgoing; Mon, 17 Dec 2001 15:00:05 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBHN00o04558 for ; Mon, 17 Dec 2001 15:00:00 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBHLxrS01947; Mon, 17 Dec 2001 19:59:53 -0200 Date: Mon, 17 Dec 2001 19:59:53 -0200 From: Ralf Baechle To: Karsten Merker , linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: New style irqs for DEC Message-ID: <20011217195953.B12490@dea.linux-mips.net> References: <20011217172741.A2316@dea.linux-mips.net> <20011217221652.A6765@excalibur.cologne.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217221652.A6765@excalibur.cologne.de>; from karsten@excalibur.cologne.de on Mon, Dec 17, 2001 at 10:16:52PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 17, 2001 at 10:16:52PM +0100, Karsten Merker wrote: > > below is my attempt at fixing interrupts for DECstation against the > > latest 2.4. Can you give it a try? > > Gives the following on a DECstation 5000/20 (R3k): [long oops deleted] > Kernel panic: Aiee, killing interrupt handler! > In interrupt handler - not syncing > ------------------------------------------------------------------------------ Turns out that this is a NULL function pointer getting called. That is strange because it happened in the softirq code which I haven't touched at all. Maybe some type of memory corruption. Ralf From owner-linux-mips@oss.sgi.com Mon Dec 17 16:17:08 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBI0H8S11322 for linux-mips-outgoing; Mon, 17 Dec 2001 16:17:08 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBI0H5o11318 for ; Mon, 17 Dec 2001 16:17:05 -0800 Received: from galadriel.physik.uni-konstanz.de [134.34.144.79] (8) by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian)) id 16G70I-0000Ae-00; Tue, 18 Dec 2001 00:17:02 +0100 Received: from agx by galadriel.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16G6z5-000312-00; Tue, 18 Dec 2001 00:15:47 +0100 Date: Tue, 18 Dec 2001 00:15:47 +0100 From: Guido Guenther To: linux-mips@oss.sgi.com Cc: debian-mips@lists.debian.org Subject: Console corruption with newport & XFree86 Message-ID: <20011218001546.B11359@galadriel.physik.uni-konstanz.de> Mail-Followup-To: linux-mips@oss.sgi.com, debian-mips@lists.debian.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi, to get a better idea with which versions of the newport the console corruption happens I'd like to ask everybody with a newport to send me: - The version numbers of the different chips on the newport(as printed by the kernel - dmesg) - if it is the 8bpp or 24bpp version - the version number of XFree86 with which console corruption[1] happens(if any) - the version number of XFree86 with which *no* console corruption happens(if any) So even if everything is fine for you, please drop me a short notice. Please do this in private mail, since I don't want to pollute this ml with(for other people) uninteresting stuff. Thanks, -- Guido [1] completely black console with only a blinking cursor From owner-linux-mips@oss.sgi.com Mon Dec 17 22:45:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBI6j7119334 for linux-mips-outgoing; Mon, 17 Dec 2001 22:45:07 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBI6j2o19331; Mon, 17 Dec 2001 22:45:03 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBI5j0b10425; Tue, 18 Dec 2001 00:45:00 -0500 Date: Tue, 18 Dec 2001 00:45:00 -0500 From: Jim Paris To: Ralf Baechle Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218004500.A10405@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217193432.A7115@dea.linux-mips.net>; from ralf@oss.sgi.com on Mon, Dec 17, 2001 at 07:34:32PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > Is your PCMCIA bridge really behind an ISA bus? > > What is an address less than 16mb in your case? Most MIPS systems have > memory at that physical address so maybe you're not talking about > physical addresses? My PCMCIA controller is a VG-469, handled by i82365.c. Its memory space is at physical address 0x10000000-0x10FFFFFF. By "address less than 16mb" I meant from i82365.c's point of view; it's passing that to ioremap and needs read[bwl] and write[bwl] to work on the result. When ioremap adds 0x10000000, things are (mostly) happy, but is that the wrong way to do it? > > of the correct values. I'm guessing this is something miscompiling -- > > I'm using the latest binutils plus gcc-3.0.2 -- has anyone see these > > Try something older instead. That fixed those problems. -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 00:03:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBI83pa23027 for linux-mips-outgoing; Tue, 18 Dec 2001 00:03:51 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBI83jo23023; Tue, 18 Dec 2001 00:03:45 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBI73i110551; Tue, 18 Dec 2001 02:03:44 -0500 Date: Tue, 18 Dec 2001 02:03:44 -0500 From: Jim Paris To: Ralf Baechle Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218020344.A10509@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011217193432.A7115@dea.linux-mips.net>; from ralf@oss.sgi.com on Mon, Dec 17, 2001 at 07:34:32PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > ISA, the good old stonage PC bus system with all it's limitations that also > infected some MIPS systems. Let me restate my problem differently, and perhaps a bit more clearly (as I see it): My system (Vadem Clio 1000, vr4111) has a VG-469 (i82365) PCMCIA controller with IO port space at 0x14000000, and IO memory space at 0x10000000. The i82365 driver makes the following (reasonable?) expectations: 1) it can use check/request/release_region on I/O ports - this works fine. 2) it can use in[bwl] and out[bwl] with absolute port numbers - this also works fine. 3) it can use check/request/release_mem_region on I/O memory - this fails, because the iomem resource map contains the kernel: > -more /proc/iomem 00000000-00ffffff : System Ram 00002000-001bc6af : Kernel code 001cf300-00299fff : Kernel data (this seems very wrong to me, since the kernel is most definately not in the I/O memory space; real memory, of course, but I/O memory??) 4) it can use ioremap, and then read[bwl] and write[bwl] with the result - this fails with the current ioremap; neither ioremap nor read/write[bwl] take isa_slot_offset into account Am I misunderstanding how this stuff is supposed to work? Is the i82365 driver doing anything wrong? (The i82365 driver also makes the incorrect assumption that PCMCIA IRQs directly correspond to system IRQs, but this is definately a problem with the driver and I've fixed that.) -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 01:12:30 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBI9CUq24045 for linux-mips-outgoing; Tue, 18 Dec 2001 01:12:30 -0800 Received: from gda-server ([202.88.152.146]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBI9CQo24041 for ; Tue, 18 Dec 2001 01:12:27 -0800 Received: from [192.168.0.186] by gda-server (ArGoSoft Mail Server, Version 1.5 (1.5.0.8)); Tue, 18 Dec 2001 13:31:51 Content-Type: text/plain; charset="iso-8859-1" From: "P.S.Santhosh" Reply-To: ps.santhosh@gda.tech.co.in.sgi.com Organization: GDA Technologies To: linux-mips@oss.sgi.com Subject: SiByte SB1250 or Broadcom SBC12500 Date: Tue, 18 Dec 2001 13:36:46 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <01121813364603.01162@gda_Santhosh> Content-Transfer-Encoding: 8bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hai.. My name santhosh I doing one embedded project.. shall I get 1.Linux 64 bit Kernel 2. MIPS Kernel 3. Boot code for SiByte with regards santhosh ------------------------------------------------------- From owner-linux-mips@oss.sgi.com Tue Dec 18 03:34:48 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIBYmr31439 for linux-mips-outgoing; Tue, 18 Dec 2001 03:34:48 -0800 Received: from bells.cs.ucl.ac.uk (bells.cs.ucl.ac.uk [128.16.5.31]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIBYio31436 for ; Tue, 18 Dec 2001 03:34:44 -0800 Received: from cactus.cs.ucl.ac.uk by bells.cs.ucl.ac.uk with local SMTP id ; Tue, 18 Dec 2001 10:34:22 +0000 X-Mailer: exmh version 2.0.2 To: Guido Guenther cc: linux-mips@oss.sgi.com, debian-mips@lists.debian.org Subject: Re: Console corruption with newport & XFree86 In-reply-to: Your message of "Tue, 18 Dec 2001 00:15:47 +0100." <20011218001546.B11359@galadriel.physik.uni-konstanz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 18 Dec 2001 10:34:19 +0000 Message-ID: <4498.1008671659@cs.ucl.ac.uk> From: Greg MATTHEWS Sender: owner-linux-mips@oss.sgi.com Precedence: bulk under what circumstances does corruption take place on the relevant newport? > Hi, > to get a better idea with which versions of the newport the console > corruption happens I'd like to ask everybody with a newport to send me: > - The version numbers of the different chips on the newport(as printed > by the kernel - dmesg) > - if it is the 8bpp or 24bpp version > - the version number of XFree86 with which console corruption[1] happens(if > any) > - the version number of XFree86 with which *no* console corruption happens(if > any) > So even if everything is fine for you, please drop me a short notice. > Please do this in private mail, since I don't want to pollute this ml > with(for other people) uninteresting stuff. > Thanks, > -- Guido > > [1] completely black console with only a blinking cursor > > > -- > To UNSUBSCRIBE, email to debian-mips-request@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org > From owner-linux-mips@oss.sgi.com Tue Dec 18 03:45:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIBjGw31667 for linux-mips-outgoing; Tue, 18 Dec 2001 03:45:16 -0800 Received: from hlubocky.del.cz (hlubocky.del.cz [212.27.221.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIBjDo31664 for ; Tue, 18 Dec 2001 03:45:14 -0800 Received: from ladis (helo=localhost) by hlubocky.del.cz with local-esmtp (Exim 3.12 #1 (Debian)) id 16GHk2-0004ca-00; Tue, 18 Dec 2001 11:44:58 +0100 Date: Tue, 18 Dec 2001 11:44:57 +0100 (CET) From: Ladislav Michl To: Greg MATTHEWS cc: linux-mips@oss.sgi.com, debian-mips@lists.debian.org Subject: Re: Console corruption with newport & XFree86 In-Reply-To: <4498.1008671659@cs.ucl.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by oss.sgi.com id fBIBjEo31665 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Greg MATTHEWS wrote: > under what circumstances does corruption take place on the relevant newport? 1) boot kernel with newport_con included 2) start xserver 3) switch back to VT - everything okay? happy you... - do you see blank screen and only cursor is visible? (typical case). Report it to Guido. laïa From owner-linux-mips@oss.sgi.com Tue Dec 18 04:27:44 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBICRic32677 for linux-mips-outgoing; Tue, 18 Dec 2001 04:27:44 -0800 Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBICRgo32673 for ; Tue, 18 Dec 2001 04:27:43 -0800 Received: from agx by gandalf.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian)) id 16GIPL-0004Xw-00; Tue, 18 Dec 2001 12:27:39 +0100 Date: Tue, 18 Dec 2001 12:27:39 +0100 From: Guido Guenther To: Greg MATTHEWS Cc: linux-mips@oss.sgi.com, debian-mips@lists.debian.org Subject: Re: Console corruption with newport & XFree86 Message-ID: <20011218122739.B17384@gandalf.physik.uni-konstanz.de> Mail-Followup-To: Greg MATTHEWS , linux-mips@oss.sgi.com, debian-mips@lists.debian.org References: <20011218001546.B11359@galadriel.physik.uni-konstanz.de> <4498.1008671659@cs.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4498.1008671659@cs.ucl.ac.uk>; from G.Matthews@cs.ucl.ac.uk on Tue, Dec 18, 2001 at 10:34:19AM +0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 10:34:19AM +0000, Greg MATTHEWS wrote: > under what circumstances does corruption take place on the relevant newport? You start X and switch back to the console(CTRL-ALT-F1) and your screen becomes completely black - switching back to X works fine though. It's actually the reading of the old colormap data on server *startup* that fails on these boards. -- Guido From owner-linux-mips@oss.sgi.com Tue Dec 18 09:02:09 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIH29H22717 for linux-mips-outgoing; Tue, 18 Dec 2001 09:02:09 -0800 Received: from sw.chaintech.com.tw (c249.h203149140.is.net.tw [203.149.140.249]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIH20o22712; Tue, 18 Dec 2001 09:02:00 -0800 Received: from sw.chaintech.com.tw (root@localhost) by sw.chaintech.com.tw with ESMTP id fBIFxRK15050; Tue, 18 Dec 2001 23:59:27 +0800 (CST) Received: from yahoo.com ([192.168.2.173]) by sw.chaintech.com.tw with ESMTP id fBIFxPH15046; Tue, 18 Dec 2001 23:59:26 +0800 (CST) Message-ID: <3C1EC004.20907@yahoo.com> Date: Tue, 18 Dec 2001 12:03:16 +0800 From: hanishkvc User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: jim@jtan.com CC: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi Jim, If a device or a bus/Interface controller has some memory, then its up to the corresponding driver to make it available to the system. So yes If I am not wrong you should use ioremap to make this memory visible somewhere in the kernel address space. Inturn doing read/write on it should succeed. I don't get the reason has to why u want to use isa_slot_offset. As you know the physical address range for ur interface/bus(and devices) you use that value in ioremap. This would give u a new virtual address which inturn you should/would use in your read/write calls. However has I haven't worked on PCMCIA logic of linux, I may be wrong, if they have some of their own conventions interms has to where they map the memory and or what standard function/macro names they use. Keep :-) HanishKVC Jim Paris wrote: >My system (Vadem Clio 1000, vr4111) has a VG-469 (i82365) PCMCIA >controller with IO port space at 0x14000000, and IO memory space >at 0x10000000. > >3) it can use check/request/release_mem_region on I/O memory > - this fails, because the iomem resource map contains the kernel: > > -more /proc/iomem > 00000000-00ffffff : System Ram > 00002000-001bc6af : Kernel code > 001cf300-00299fff : Kernel data > (this seems very wrong to me, since the kernel is most definately > not in the I/O memory space; real memory, of course, but I/O memory??) >4) it can use ioremap, and then read[bwl] and write[bwl] with the result > - this fails with the current ioremap; neither ioremap nor read/write[bwl] > take isa_slot_offset into account > >Am I misunderstanding how this stuff is supposed to work? Is the >i82365 driver doing anything wrong? > >(The i82365 driver also makes the incorrect assumption that PCMCIA IRQs >directly correspond to system IRQs, but this is definately a problem >with the driver and I've fixed that.) > >-jim > From owner-linux-mips@oss.sgi.com Tue Dec 18 11:10:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIJAbP26348 for linux-mips-outgoing; Tue, 18 Dec 2001 11:10:37 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIJATo26344; Tue, 18 Dec 2001 11:10:29 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBIIAGB12489; Tue, 18 Dec 2001 10:10:17 -0800 Message-ID: <3C1F868C.492E155B@mvista.com> Date: Tue, 18 Dec 2001 10:10:20 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: jim@jtan.com CC: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Jim Paris wrote: > > > ISA, the good old stonage PC bus system with all it's limitations that also > > infected some MIPS systems. > > Let me restate my problem differently, and perhaps a bit more clearly > (as I see it): > > My system (Vadem Clio 1000, vr4111) has a VG-469 (i82365) PCMCIA > controller with IO port space at 0x14000000, and IO memory space > at 0x10000000. > > The i82365 driver makes the following (reasonable?) expectations: > > 1) it can use check/request/release_region on I/O ports > - this works fine. > 2) it can use in[bwl] and out[bwl] with absolute port numbers > - this also works fine. > 3) it can use check/request/release_mem_region on I/O memory > - this fails, because the iomem resource map contains the kernel: > > -more /proc/iomem > 00000000-00ffffff : System Ram > 00002000-001bc6af : Kernel code > 001cf300-00299fff : Kernel data > (this seems very wrong to me, since the kernel is most definately > not in the I/O memory space; real memory, of course, but I/O memory??) > 4) it can use ioremap, and then read[bwl] and write[bwl] with the result > - this fails with the current ioremap; neither ioremap nor read/write[bwl] > take isa_slot_offset into account > > Am I misunderstanding how this stuff is supposed to work? Is the > i82365 driver doing anything wrong? > It seems like i82365.c implies a PCI device. If this is true, then things do make sense here. Just setting iomem_resource.end to 0xffffffff should get you by resource range problem. It has nothing to isa_slot_offset here. I don't know about the history of isa_slot_offset, but it appears to be faint effort to allow the access to what is called "ISA memory" space on PC. This region, if it ever exists, should never be a separate region on a MIPS machine. It should just be the beginning part of PCI Memory space. Ralf, we should just delete isa_slot_offset to avoid any further confusions. > (The i82365 driver also makes the incorrect assumption that PCMCIA IRQs > directly correspond to system IRQs, but this is definately a problem > with the driver and I've fixed that.) My understanding is that PCMCIA does it own IRQ re-mapping (somewhat similar to P2P bridge IRQ re-mapping). Jun From owner-linux-mips@oss.sgi.com Tue Dec 18 11:25:30 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIJPUR26947 for linux-mips-outgoing; Tue, 18 Dec 2001 11:25:30 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBIJPKo26944 for ; Tue, 18 Dec 2001 11:25:22 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBIIP6927232; Tue, 18 Dec 2001 16:25:06 -0200 Date: Tue, 18 Dec 2001 16:25:06 -0200 From: Ralf Baechle To: Jim Paris Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218162506.A24659@dea.linux-mips.net> References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011218020344.A10509@neurosis.mit.edu>; from jim@jtan.com on Tue, Dec 18, 2001 at 02:03:44AM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 02:03:44AM -0500, Jim Paris wrote: > Date: Tue, 18 Dec 2001 02:03:44 -0500 > From: Jim Paris > To: Ralf Baechle > Cc: linux-mips@oss.sgi.com > Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] > > > ISA, the good old stonage PC bus system with all it's limitations that also > > infected some MIPS systems. > > Let me restate my problem differently, and perhaps a bit more clearly > (as I see it): > > My system (Vadem Clio 1000, vr4111) has a VG-469 (i82365) PCMCIA > controller with IO port space at 0x14000000, and IO memory space > at 0x10000000. Therefore: set_io_port_base(0xb4000000); isa_slot_offset = 0xb0000000; > The i82365 driver makes the following (reasonable?) expectations: > > 1) it can use check/request/release_region on I/O ports > - this works fine. > 2) it can use in[bwl] and out[bwl] with absolute port numbers > - this also works fine. > 3) it can use check/request/release_mem_region on I/O memory > - this fails, because the iomem resource map contains the kernel: > > -more /proc/iomem > 00000000-00ffffff : System Ram > 00002000-001bc6af : Kernel code > 001cf300-00299fff : Kernel data > (this seems very wrong to me, since the kernel is most definately > not in the I/O memory space; real memory, of course, but I/O memory??) No, this makes perfect sense on a 16mb system. > 4) it can use ioremap, and then read[bwl] and write[bwl] with the result > - this fails with the current ioremap; neither ioremap nor read/write[bwl] > take isa_slot_offset into account And that's right because isa_slot_offset is used by the isa_{read,write}[bwl] functions which do not require ioremap having been called before. You're (fortunately ...) using PCI and PCI drivers are required to use ioremap. I assume that your PCMCIA bridge is at a physical address < 0x20000000, is that right? If so, what ioremap returns is trivial, it's just 0x80000000 + the argument to ioremap(). Verify that. Also note that read[wl] and write[wl] do byteorder swapping on the data if your system is big endian and CONFIG_SWAP_IO_SPACE is set. Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 11:45:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIJjn925545 for linux-mips-outgoing; Tue, 18 Dec 2001 11:45:49 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIJjeo25542; Tue, 18 Dec 2001 11:45:40 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBIIjaJ11785; Tue, 18 Dec 2001 13:45:36 -0500 Date: Tue, 18 Dec 2001 13:45:36 -0500 From: Jim Paris To: Jun Sun Cc: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218134536.A11726@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <3C1F868C.492E155B@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C1F868C.492E155B@mvista.com>; from jsun@mvista.com on Tue, Dec 18, 2001 at 10:10:20AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > It seems like i82365.c implies a PCI device. If this is true, then things do > make sense here. No, the VG469 (and original i82365) is most definately an ISA device. >From the manual: "The VG-469 has built in a standard ISA interface ..." My machine, as much as I hate it, _does_ have an ISA bus located at isa_slot_offset. > It has nothing to isa_slot_offset here. I don't know about the > history of isa_slot_offset, but it appears to be faint effort to > allow the access to what is called "ISA memory" space on PC. This > region, if it ever exists, should never be a separate region on a > MIPS machine. It should just be the beginning part of PCI Memory The complete memory map of my machine is: 1FC0 0000 - 1FFF FFFF Boot ROM 1E00 0000 - 1EFF FFFF Flash Mem Space 1400 0000 - 14FF FFFF VG-469 I/O Space 1000 0000 - 10FF FFFF VG-469 Mem 0C00 0000 - 0CFF FFFF Processor internal IO Area 1 0A00 0000 - 0A1F FFFF LCD Frame buffer 0A20 0000 - 0A3F FFFF S-MOS Registers 0000 0000 - 01FF FFFF DRAM Space As I see it, the VG-469 Mem (ie. an ISA bus, since the VG-469 is ISA) is a separate region. > Ralf, we should just delete isa_slot_offset to avoid any further confusions. But my PCMCIA contoller _is_ an ISA device, and we need _something_ to indicate where its "ISA memory" is physically mapped. If it's not stuck into a variable, then it's just going to be hard-coded with an #ifdef for each architecture that does this .. ?? > My understanding is that PCMCIA does it own IRQ re-mapping (somewhat similar > to P2P bridge IRQ re-mapping). It's a driver issue. Again, the i82365 is on an ISA bus, and so has physical interrupt pins IRQ3-15, and uses these values in its configuration and status registers. The driver expected that these matched system interrupts, as they usually would on an ISA architecture; but that of course is not the case, as they're all wired to the same GPIO pin on my system. I've fixed this in the driver. -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 11:57:20 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIJvK603960 for linux-mips-outgoing; Tue, 18 Dec 2001 11:57:20 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIJvDo03957; Tue, 18 Dec 2001 11:57:14 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBIIvCJ11824; Tue, 18 Dec 2001 13:57:12 -0500 Date: Tue, 18 Dec 2001 13:57:12 -0500 From: Jim Paris To: Ralf Baechle Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218135712.B11726@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011218162506.A24659@dea.linux-mips.net>; from ralf@oss.sgi.com on Tue, Dec 18, 2001 at 04:25:06PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > Therefore: > > set_io_port_base(0xb4000000); > isa_slot_offset = 0xb0000000; Yep, that's what I have. > > > -more /proc/iomem > > 00000000-00ffffff : System Ram > > 00002000-001bc6af : Kernel code > > 001cf300-00299fff : Kernel data > > (this seems very wrong to me, since the kernel is most definately > > not in the I/O memory space; real memory, of course, but I/O memory??) > > No, this makes perfect sense on a 16mb system. How so? See the memory map I just sent in my other mail. Should I be adding isa_slot_offset to calls to check/request/release_mem_region? Or should I make a isa_{check,request,release}_mem_region that adds this in? In which case, doesn't that turn /proc/iomem into a general memory map rather than an I/O memory map? > > 4) it can use ioremap, and then read[bwl] and write[bwl] with the result > > - this fails with the current ioremap; neither ioremap nor read/write[bwl] > > take isa_slot_offset into account > > And that's right because isa_slot_offset is used by the isa_{read,write}[bwl] > functions which do not require ioremap having been called before. You're > (fortunately ...) using PCI and PCI drivers are required to use ioremap. No, I'm not using PCI, but it's calling ioremap anyway. So, yes, I suppose I could change the driver to not call ioremap and use isa_{read,write}[bwl] (since doing both adds KSEG1 twice). But why shouldn't ioremap + {read,write}[bwl] also work? If it did, I wouldn't have to touch the driver. -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 12:09:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIK9OJ04390 for linux-mips-outgoing; Tue, 18 Dec 2001 12:09:24 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIK9Ko04387; Tue, 18 Dec 2001 12:09:20 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBIJ96B16569; Tue, 18 Dec 2001 11:09:06 -0800 Message-ID: <3C1F9456.C0C7A978@mvista.com> Date: Tue, 18 Dec 2001 11:09:10 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: jim@jtan.com CC: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <3C1F868C.492E155B@mvista.com> <20011218134536.A11726@neurosis.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Jim Paris wrote: > > > It seems like i82365.c implies a PCI device. If this is true, then things do > > make sense here. > > No, the VG469 (and original i82365) is most definately an ISA device. > From the manual: "The VG-469 has built in a standard ISA interface ..." > My machine, as much as I hate it, _does_ have an ISA bus located at > isa_slot_offset. > Really?! Hmm, how does the driver access ISA memory area? I did not find ioremap() nor readb/writeb stuff. Usually those two macros are used to access PCI memory space. That is the reason I said "the driver implies a PCI device". If it is purely ISA driver, may it should use isa_read/isa_write macros, in which case we can make use of isa_slot_offset (maybe isa_slot_offset is useful after all. :-0) Jun From owner-linux-mips@oss.sgi.com Tue Dec 18 12:16:37 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIKGbf04562 for linux-mips-outgoing; Tue, 18 Dec 2001 12:16:37 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIKGUo04559; Tue, 18 Dec 2001 12:16:30 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBIJGKB17183; Tue, 18 Dec 2001 11:16:20 -0800 Message-ID: <3C1F9608.E4E32E18@mvista.com> Date: Tue, 18 Dec 2001 11:16:24 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: Ralf Baechle CC: Jim Paris , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf Baechle wrote: > > On Tue, Dec 18, 2001 at 02:03:44AM -0500, Jim Paris wrote: > > Date: Tue, 18 Dec 2001 02:03:44 -0500 > > From: Jim Paris > > To: Ralf Baechle > > Cc: linux-mips@oss.sgi.com > > Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] > > > > > ISA, the good old stonage PC bus system with all it's limitations that also > > > infected some MIPS systems. > > > > Let me restate my problem differently, and perhaps a bit more clearly > > (as I see it): > > > > My system (Vadem Clio 1000, vr4111) has a VG-469 (i82365) PCMCIA > > controller with IO port space at 0x14000000, and IO memory space > > at 0x10000000. > > Therefore: > > set_io_port_base(0xb4000000); > isa_slot_offset = 0xb0000000; > I see. So isa_slot_offset is for isa_read/isa_write, although I still don't see what kind of drivers would use isa_read/isa_write. Jun From owner-linux-mips@oss.sgi.com Tue Dec 18 12:21:58 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIKLwi04694 for linux-mips-outgoing; Tue, 18 Dec 2001 12:21:58 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIKLro04691; Tue, 18 Dec 2001 12:21:53 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBIJLdB17551; Tue, 18 Dec 2001 11:21:39 -0800 Message-ID: <3C1F9747.60DFB70@mvista.com> Date: Tue, 18 Dec 2001 11:21:43 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: jim@jtan.com CC: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <20011218135712.B11726@neurosis.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Jim Paris wrote: > How so? See the memory map I just sent in my other mail. Should I be > adding isa_slot_offset to calls to check/request/release_mem_region? > Or should I make a isa_{check,request,release}_mem_region that adds > this in? In which case, doesn't that turn /proc/iomem into a general > memory map rather than an I/O memory map? > My understanding is that it is from PCI memory space perspective. System ram is mapped at lower range. > > > 4) it can use ioremap, and then read[bwl] and write[bwl] with the result > > > - this fails with the current ioremap; neither ioremap nor read/write[bwl] > > > take isa_slot_offset into account > > > > And that's right because isa_slot_offset is used by the isa_{read,write}[bwl] > > functions which do not require ioremap having been called before. You're > > (fortunately ...) using PCI and PCI drivers are required to use ioremap. > > No, I'm not using PCI, but it's calling ioremap anyway. So, yes, I > suppose I could change the driver to not call ioremap and use > isa_{read,write}[bwl] (since doing both adds KSEG1 twice). > But why shouldn't ioremap + {read,write}[bwl] also work? > If it did, I wouldn't have to touch the driver. It seems like the driver assumes the ISA device is accessed through a PCI bus, in which case the code would work. Jun From owner-linux-mips@oss.sgi.com Tue Dec 18 12:30:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIKUl104958 for linux-mips-outgoing; Tue, 18 Dec 2001 12:30:47 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBIKUfo04955 for ; Tue, 18 Dec 2001 12:30:42 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBIJUFR32459; Tue, 18 Dec 2001 17:30:15 -0200 Date: Tue, 18 Dec 2001 17:30:15 -0200 From: Ralf Baechle To: Jun Sun Cc: jim@jtan.com, linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218173015.B28080@dea.linux-mips.net> References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <3C1F868C.492E155B@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C1F868C.492E155B@mvista.com>; from jsun@mvista.com on Tue, Dec 18, 2001 at 10:10:20AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 10:10:20AM -0800, Jun Sun wrote: > It seems like i82365.c implies a PCI device. If this is true, then things do > make sense here. > > Just setting iomem_resource.end to 0xffffffff should get you by resource range > problem. Certainly not as that is the default. > It has nothing to isa_slot_offset here. I don't know about the history of > isa_slot_offset, but it appears to be faint effort to allow the access to what > is called "ISA memory" space on PC. This region, if it ever exists, should > never be a separate region on a MIPS machine. It should just be the beginning > part of PCI Memory space. > > Ralf, we should just delete isa_slot_offset to avoid any further confusions. No way as long as there are (E)ISA systems :-( Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 12:31:40 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIKVeb05035 for linux-mips-outgoing; Tue, 18 Dec 2001 12:31:40 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBIKVao05031 for ; Tue, 18 Dec 2001 12:31:37 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBIJVIO32468; Tue, 18 Dec 2001 17:31:18 -0200 Date: Tue, 18 Dec 2001 17:31:18 -0200 From: Ralf Baechle To: Jun Sun Cc: Jim Paris , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218173118.C28080@dea.linux-mips.net> References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <3C1F9608.E4E32E18@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C1F9608.E4E32E18@mvista.com>; from jsun@mvista.com on Tue, Dec 18, 2001 at 11:16:24AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 11:16:24AM -0800, Jun Sun wrote: > I see. So isa_slot_offset is for isa_read/isa_write, although I still don't > see what kind of drivers would use isa_read/isa_write. Dumb answer - ISA drivers. Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 12:37:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIKb1V05349 for linux-mips-outgoing; Tue, 18 Dec 2001 12:37:01 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIKavo05344; Tue, 18 Dec 2001 12:36:57 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBIJalB18623; Tue, 18 Dec 2001 11:36:47 -0800 Message-ID: <3C1F9AD2.1269192E@mvista.com> Date: Tue, 18 Dec 2001 11:36:50 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: Ralf Baechle CC: Jim Paris , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <3C1F9608.E4E32E18@mvista.com> <20011218173118.C28080@dea.linux-mips.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf Baechle wrote: > > On Tue, Dec 18, 2001 at 11:16:24AM -0800, Jun Sun wrote: > > > I see. So isa_slot_offset is for isa_read/isa_write, although I still don't > > see what kind of drivers would use isa_read/isa_write. > > Dumb answer - ISA drivers. > (Hmm, do you mean "dumb question"? :-0) I was thinking most ISA dirvers should simply use inb/outb to access ioports. Don't really any ISA devices have their own memory space. But, anyway, who can still remember those dark ages? Jun From owner-linux-mips@oss.sgi.com Tue Dec 18 13:04:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIL4RG06950 for linux-mips-outgoing; Tue, 18 Dec 2001 13:04:27 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIL4Po06947 for ; Tue, 18 Dec 2001 13:04:25 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBIK4Nn12205 for linux-mips@oss.sgi.com; Tue, 18 Dec 2001 15:04:23 -0500 Date: Tue, 18 Dec 2001 15:04:23 -0500 From: Jim Paris To: linux-mips@oss.sgi.com Subject: ISA Message-ID: <20011218150423.A12143@neurosis.mit.edu> Reply-To: jim@jtan.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Okay, so I'll change the i82365 driver to use isa_{read,write}[bwl] instead of ioremap & {read,write}[bwl], when CONFIG_ISA is defined. That shouldn't break other architectures. But how should I deal with {check,request,release}_mem_region? Should I make isa_{check,request,release}_mem_region which adds isa_slot_offset to all of the memory addresses? Or should I add isa_slot_offset - KSEG1? Or..? -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 13:27:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBILRP815888 for linux-mips-outgoing; Tue, 18 Dec 2001 13:27:25 -0800 Received: from ns1.ltc.com (vsat-148-63-243-254.c3.sb4.mrt.starband.net [148.63.243.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBILRIo15885 for ; Tue, 18 Dec 2001 13:27:19 -0800 Received: from prefect (unknown [10.1.1.86]) by ns1.ltc.com (Postfix) with SMTP id 104D4590A9; Tue, 18 Dec 2001 15:24:51 -0500 (EST) Message-ID: <035001c18802$6af8d8d0$5601010a@prefect> From: "Bradley D. LaRonde" To: , References: <20011218150423.A12143@neurosis.mit.edu> Subject: Re: ISA Date: Tue, 18 Dec 2001 15:27:29 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk ----- Original Message ----- From: "Jim Paris" To: Sent: Tuesday, December 18, 2001 3:04 PM Subject: ISA > Okay, so I'll change the i82365 driver to use isa_{read,write}[bwl] > instead of ioremap & {read,write}[bwl], when CONFIG_ISA is defined. > That shouldn't break other architectures. Admittedly I haven't studied this, but ugh... can't we let isa_* die? Regards, Brad From owner-linux-mips@oss.sgi.com Tue Dec 18 13:30:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBILUV416190 for linux-mips-outgoing; Tue, 18 Dec 2001 13:30:31 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBILURo16187 for ; Tue, 18 Dec 2001 13:30:27 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBIKUPg15856; Tue, 18 Dec 2001 18:30:25 -0200 Date: Tue, 18 Dec 2001 18:30:25 -0200 From: Ralf Baechle To: "P.S.Santhosh" Cc: linux-mips@oss.sgi.com Subject: Re: SiByte SB1250 or Broadcom SBC12500 Message-ID: <20011218183025.A14945@dea.linux-mips.net> References: <01121813364603.01162@gda_Santhosh> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01121813364603.01162@gda_Santhosh>; from ps.santhosh@gda.tech.co.in.sgi.com on Tue, Dec 18, 2001 at 01:36:46PM +0530 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 01:36:46PM +0530, P.S.Santhosh wrote: > From: "P.S.Santhosh" ^^^^^^^^^^^^^^^^^^^^^^ And once you fix your nameserver you actually have chances of receiving mail. > Hai.. > > My name santhosh I doing one embedded project.. > shall I get > > 1.Linux 64 bit Kernel > 2. MIPS Kernel > 3. Boot code for SiByte The 64-bit kernel code for the Sibyte is still in it's early stages. At this time it seems better to try to get away with the 32-bit kernel despite the ridiculous small 32-bit address space. Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 13:31:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBILV4D16256 for linux-mips-outgoing; Tue, 18 Dec 2001 13:31:04 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBILUxo16253; Tue, 18 Dec 2001 13:31:00 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id MAB07240; Tue, 18 Dec 2001 12:29:08 -0800 (PST) mail_from (macro@ds2.pg.gda.pl) Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id VAA09794; Tue, 18 Dec 2001 21:22:50 +0100 (MET) Date: Tue, 18 Dec 2001 21:22:50 +0100 (MET) From: "Maciej W. Rozycki" To: Jun Sun cc: Ralf Baechle , Jim Paris , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] In-Reply-To: <3C1F9AD2.1269192E@mvista.com> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jun Sun wrote: > I was thinking most ISA dirvers should simply use inb/outb to access ioports. > Don't really any ISA devices have their own memory space. But, anyway, who > can still remember those dark ages? The so called "shared memory" (mapped in the ISA space; usually below 1MB) for frame storage existed on a few models of better ISA Ethernet boards. And, of course, VGA boards have memory mapped in the ISA space. Certain implementations occupy up to 4MB of ISA space when used in a SVGA mode. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 18 13:39:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBILd3G16738 for linux-mips-outgoing; Tue, 18 Dec 2001 13:39:03 -0800 Received: from idiom.com (espin@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBILcoo16734 for ; Tue, 18 Dec 2001 13:38:50 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id MAA78578 for linux-mips@oss.sgi.com; Tue, 18 Dec 2001 12:38:49 -0800 (PST) Date: Tue, 18 Dec 2001 12:38:48 -0800 From: Geoffrey Espin To: linux-mips@oss.sgi.com Subject: kmalloc/pci_alloc and skbuff's Message-ID: <20011218123848.A75986@idiom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk The Markham board (Korva/VR41xx variant) which I'm trying to get submitted, has a PCI problem. It doesn't allow a PCI device to see all the DRAM. DMA-able data must be in a special 4MB range, which is currently set at 0x01c00000 (the last 4MB of a 32MB system). SKB's must be allocated within this area for a (say, Ethernet) PCI device to access. There appears to be no way to tell kmalloc(), used in alloc_skb(), to allocate memory from any special address range. The pci_{alloc,free}_consistent() routines do the right thing. Hence the following hack to linux/net/core/skbuff.c. Any suggestions? Geoff -- Geoffrey Espin espin@idiom.com -- --- skbuff.c.ORIG Tue Aug 7 08:30:50 2001 +++ skbuff.c Mon Dec 17 13:46:40 2001 @@ -62,6 +62,12 @@ #include #include +#if defined(CONFIG_NEC_MARKHAM_PCI) +#warning PCI ALLOC: see linux/arch/mips/markham/pci_fixup.c +extern void *pci_alloc_consistent(int, int, dma_addr_t *); +extern void pci_free_consistent(int,int, void *, int); +#endif + int sysctl_hot_list_len = 128; static kmem_cache_t *skbuff_head_cache; @@ -187,6 +193,23 @@ /* Get the DATA. Size must match skb_add_mtu(). */ size = SKB_DATA_ALIGN(size); +#if defined(CONFIG_NEC_MARKHAM_PCI) + /* NEC Markham: see skb_release_data() also */ + + /* + * Markham doesn't allow a PCI device to see all the RAM. + * DMAable data must be on this special 4MB range, which + * is currently set at 0x01c00000. SKB buffers must also + * be allocated within this area for a PCI device to + * access. There is no way to tell kmalloc() to allocate + * memory from any special address range. So we do it on + * our own. + * Dai, Wed Jun 13 19:34:23 PDT 2001 + */ + if (1) + data = (u8 *)pci_alloc_consistent(0,size + sizeof(struct skb_shared_info), NULL); + else +#endif data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask); if (data == NULL) goto nodata; @@ -286,6 +309,12 @@ if (skb_shinfo(skb)->frag_list) skb_drop_fraglist(skb); +#if defined(CONFIG_NEC_MARKHAM_PCI) + /* NEC Markham: see allock_skb() also */ + if (1) + pci_free_consistent(0,0,skb->head,0); + else +#endif kfree(skb->head); } } @@ -505,6 +534,24 @@ size = (skb->end - skb->head + expand); size = SKB_DATA_ALIGN(size); + +#if defined(CONFIG_NEC_MARKHAM_PCI) + /* NEC Markham: see skb_release_data() also */ + + /* + * Markham doesn't allow a PCI device to see all the RAM. + * DMAable data must be on this special 4MB range, which + * is currently set at 0x01c00000. SKB buffers must also + * be allocated within this area for a PCI device to + * access. There is no way to tell kmalloc() to allocate + * memory from any special address range. So we do it on + * our own. + * Dai, Wed Jun 13 19:34:23 PDT 2001 + */ + if (1) + data = (u8 *)pci_alloc_consistent(0,size + sizeof(struct skb_shared_info), NULL); + else +#endif data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask); if (data == NULL) return -ENOMEM; @@ -512,7 +559,6 @@ /* Copy entire thing */ if (skb_copy_bits(skb, -headerlen, data, headerlen+skb->len)) BUG(); - /* Offset between the two in bytes */ offset = data - skb->head; @@ -627,6 +673,23 @@ size = SKB_DATA_ALIGN(size); +#if defined(CONFIG_NEC_MARKHAM_PCI) + /* NEC Markham: see skb_release_data() also */ + + /* + * Markham doesn't allow a PCI device to see all the RAM. + * DMAable data must be on this special 4MB range, which + * is currently set at 0x01c00000. SKB buffers must also + * be allocated within this area for a PCI device to + * access. There is no way to tell kmalloc() to allocate + * memory from any special address range. So we do it on + * our own. + * Dai, Wed Jun 13 19:34:23 PDT 2001 + */ + if (1) + data = (u8 *)pci_alloc_consistent(0,size + sizeof(struct skb_shared_info), NULL); + else +#endif data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask); if (data == NULL) goto nodata; From owner-linux-mips@oss.sgi.com Tue Dec 18 13:59:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBILxH317876 for linux-mips-outgoing; Tue, 18 Dec 2001 13:59:17 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBILx8o17871 for ; Tue, 18 Dec 2001 13:59:09 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBIKwoO00941; Tue, 18 Dec 2001 18:58:50 -0200 Date: Tue, 18 Dec 2001 18:58:50 -0200 From: Ralf Baechle To: Jim Paris Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218185850.A18856@dea.linux-mips.net> References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <20011218135712.B11726@neurosis.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011218135712.B11726@neurosis.mit.edu>; from jim@jtan.com on Tue, Dec 18, 2001 at 01:57:12PM -0500 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 01:57:12PM -0500, Jim Paris wrote: > > > > -more /proc/iomem > > > 00000000-00ffffff : System Ram > > > 00002000-001bc6af : Kernel code > > > 001cf300-00299fff : Kernel data > > > (this seems very wrong to me, since the kernel is most definately > > > not in the I/O memory space; real memory, of course, but I/O memory??) > > > > No, this makes perfect sense on a 16mb system. > > How so? See the memory map I just sent in my other mail. Should I be > adding isa_slot_offset to calls to check/request/release_mem_region? > Or should I make a isa_{check,request,release}_mem_region that adds > this in? In which case, doesn't that turn /proc/iomem into a general > memory map rather than an I/O memory map? It's a general memory map. Basically you have an memory address space and an I/O space. The latter should be treated as an entirely independant thing just like on x86 where special instructions (in / out) are necessary to access it. On MIPS the difference is more blurry as this I/O port addres space is accessible through normal load / store instructions. > > And that's right because isa_slot_offset is used by the isa_{read,write}[bwl] > > functions which do not require ioremap having been called before. You're > > (fortunately ...) using PCI and PCI drivers are required to use ioremap. > > No, I'm not using PCI, but it's calling ioremap anyway. So, yes, I > suppose I could change the driver to not call ioremap and use > isa_{read,write}[bwl] (since doing both adds KSEG1 twice). > But why shouldn't ioremap + {read,write}[bwl] also work? > If it did, I wouldn't have to touch the driver. Well, calling ioremap anyway is ok. The whole isa_* thing was invented to make keeping the large number of antique ISA drivers that don't have any maintainers alive. Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 14:16:20 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIMGKk19270 for linux-mips-outgoing; Tue, 18 Dec 2001 14:16:20 -0800 Received: from post.webmailer.de (natpost.webmailer.de [192.67.198.65]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIMGIo19266 for ; Tue, 18 Dec 2001 14:16:18 -0800 Received: from excalibur.cologne.de (pD9511F21.dip.t-dialin.net [217.81.31.33]) by post.webmailer.de (8.9.3/8.8.7) with ESMTP id WAA07911 for ; Tue, 18 Dec 2001 22:16:15 +0100 (MET) Received: from karsten by excalibur.cologne.de with local (Exim 3.12 #1 (Debian)) id 16GQRS-0001Ee-00 for ; Tue, 18 Dec 2001 21:02:22 +0100 Date: Tue, 18 Dec 2001 21:02:22 +0100 From: Karsten Merker To: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218210222.A4743@excalibur.cologne.de> Mail-Followup-To: Karsten Merker , linux-mips@oss.sgi.com References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <3C1F9608.E4E32E18@mvista.com> <20011218173118.C28080@dea.linux-mips.net> <3C1F9AD2.1269192E@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C1F9AD2.1269192E@mvista.com>; from jsun@mvista.com on Tue, Dec 18, 2001 at 11:36:50AM -0800 X-No-Archive: yes Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 11:36:50AM -0800, Jun Sun wrote: > I was thinking most ISA dirvers should simply use inb/outb to access ioports. > Don't really any ISA devices have their own memory space. But, anyway, who Hm, what is with network cards such as the WD8013 or the SMC Ultra (8 kb SRAM send- and receive-buffer)? Greetings, Karsten (still happily using these, albeit on i386) -- #include Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder Meinungsforschung. From owner-linux-mips@oss.sgi.com Tue Dec 18 14:28:14 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIMSEd19683 for linux-mips-outgoing; Tue, 18 Dec 2001 14:28:14 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIMS8o19680; Tue, 18 Dec 2001 14:28:08 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBILS6J12500; Tue, 18 Dec 2001 16:28:06 -0500 Date: Tue, 18 Dec 2001 16:28:06 -0500 From: Jim Paris To: Ralf Baechle Cc: linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218162806.A12456@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <20011218135712.B11726@neurosis.mit.edu> <20011218185850.A18856@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011218185850.A18856@dea.linux-mips.net>; from ralf@oss.sgi.com on Tue, Dec 18, 2001 at 06:58:50PM -0200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > How so? See the memory map I just sent in my other mail. Should I be > > adding isa_slot_offset to calls to check/request/release_mem_region? > > Or should I make a isa_{check,request,release}_mem_region that adds > > this in? In which case, doesn't that turn /proc/iomem into a general > > memory map rather than an I/O memory map? > > It's a general memory map. Basically you have an memory address space > and an I/O space. The latter should be treated as an entirely independant > thing just like on x86 where special instructions (in / out) are necessary > to access it. On MIPS the difference is more blurry as this I/O port > addres space is accessible through normal load / store instructions. The ports are dealt with by /proc/ioports. What about /proc/iomem? The ISA ports and ISA memory are seperate, and the ports work fine and just as I would expect them to. But for memory, where should the PCMCIA driver be reserving space? Should I 1) make /proc/iomem contain addresses relative to the start of I/O memory, just as /proc/ioports contains addresses relative to the start of I/O port space? This will only work if I stop letting the kernel reserve the iomem resource for system memory. 2) make the i82365 driver use absolute addresses in /proc/iomem, by adding (isa_slot_offset - KSEG1) to all *_mem_resource calls? (breaks i82365 for other arches) 3) Invent a new resource "isamem", reserve the correct absolute addresses in "iomem", and the modify the i82365 driver to use "isamem" instead? (again breaks i82365 for other arches) > Well, calling ioremap anyway is ok. How is calling ioremap anyway ok? If I 1) call ioremap and then use read[bwl], then isa_slot_offset never comes into play and nothing works 2) call ioremap and then use isa_read[bwl], then KSEG1 gets included twice and nothing works > The whole isa_* thing was invented to > make keeping the large number of antique ISA drivers that don't have any > maintainers alive. I'm willing to take the "maintainer" role here and rewrite the driver properly, but I'm still not understanding what the proper way is. Given the current way the I/O memory is handled on MIPS, the only way I can get the i82365 driver working breaks it for every other arch. -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 14:44:14 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIMiEJ20152 for linux-mips-outgoing; Tue, 18 Dec 2001 14:44:14 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIMiBo20147 for ; Tue, 18 Dec 2001 14:44:11 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBILi9812560 for linux-mips@oss.sgi.com; Tue, 18 Dec 2001 16:44:09 -0500 Date: Tue, 18 Dec 2001 16:44:09 -0500 From: Jim Paris To: linux-mips@oss.sgi.com Subject: Re: ISA Message-ID: <20011218164409.A12517@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011218150423.A12143@neurosis.mit.edu> <035001c18802$6af8d8d0$5601010a@prefect> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <035001c18802$6af8d8d0$5601010a@prefect>; from brad@ltc.com on Tue, Dec 18, 2001 at 03:27:29PM -0500 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > Okay, so I'll change the i82365 driver to use isa_{read,write}[bwl] > > instead of ioremap & {read,write}[bwl], when CONFIG_ISA is defined. > > That shouldn't break other architectures. > > Admittedly I haven't studied this, but ugh... can't we let isa_* die? I am all for letting it die, but I'm still not getting a clear answer on what the alternative is. The only way to avoid isa_* as I see it is to fix two problems in the MIPS kernel: 1) Isn't the purpose of ioremap to remap I/O memory addresses to physical ones? For an ISA architecture like mine, this means it needs to add isa_slot_offset. 2) /proc/iomem should not contain system RAM. The RAM is not in I/O memory space on my system, so why does it show up in the iomem resource? On x86, sure, I/O and RAM memory space are the same, but they're not here. Please explain to me again why the current implementation of these two behaviors is correct. If both of these problems are fixed, the i82365 driver will work _as is_, as will any other ISA driver that calls ioremap() before using {read,write}[bwl]. -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 14:53:59 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIMrxN20478 for linux-mips-outgoing; Tue, 18 Dec 2001 14:53:59 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIMrio20455; Tue, 18 Dec 2001 14:53:48 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id WAA12320; Tue, 18 Dec 2001 22:53:10 +0100 (MET) Date: Tue, 18 Dec 2001 22:53:10 +0100 (MET) From: "Maciej W. Rozycki" To: Jim Paris cc: Ralf Baechle , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] In-Reply-To: <20011218162806.A12456@neurosis.mit.edu> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jim Paris wrote: > The ports are dealt with by /proc/ioports. What about /proc/iomem? > The ISA ports and ISA memory are seperate, and the ports work fine and > just as I would expect them to. But for memory, where should the > PCMCIA driver be reserving space? Should I > 1) make /proc/iomem contain addresses relative to the start of I/O memory, > just as /proc/ioports contains addresses relative to the start of > I/O port space? This will only work if I stop letting the kernel > reserve the iomem resource for system memory. There should probably be an ISA memory space reserved somewhere in the CPU memory space (/proc/iomem reflects memory addresses as seen by the CPU). You should reserve resources within it. There should be an ISA I/O space reserved somewhere in /proc/iomem, too, as the I/O space is real only for CPUs defining special bus cycles for I/O accesses (MIPS is not one of them, hence it must be done by the chipset). The /proc/ioports reports addresses relative to that space. > 2) make the i82365 driver use absolute addresses in /proc/iomem, by > adding (isa_slot_offset - KSEG1) to all *_mem_resource calls? > (breaks i82365 for other arches) Mapping between physical addresses and MIPS virtual addresses (KSEG1 is a virtual address) should be done by bus access functions (or macros), such as inb/outb/readl/readw/isa_readb/isa_readw, etc. See the Alpha port for how it should be done. It appears to have done it particularly cleanly. > 3) Invent a new resource "isamem", reserve the correct absolute > addresses in "iomem", and the modify the i82365 driver to use > "isamem" instead? (again breaks i82365 for other arches) Don't do it. > Given the current way the I/O memory is handled on MIPS, the only way > I can get the i82365 driver working breaks it for every other arch. Then the MIPS I/O memory handling is broken. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 18 15:01:45 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBIN1j420750 for linux-mips-outgoing; Tue, 18 Dec 2001 15:01:45 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBIN1ao20747 for ; Tue, 18 Dec 2001 15:01:36 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id XAA12551; Tue, 18 Dec 2001 23:01:05 +0100 (MET) Date: Tue, 18 Dec 2001 23:01:04 +0100 (MET) From: "Maciej W. Rozycki" To: Jim Paris cc: linux-mips@oss.sgi.com Subject: Re: ISA In-Reply-To: <20011218164409.A12517@neurosis.mit.edu> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jim Paris wrote: > 1) Isn't the purpose of ioremap to remap I/O memory addresses to > physical ones? For an ISA architecture like mine, this means > it needs to add isa_slot_offset. Yes it is. Also see Documentation/IO-mapping.txt and the Alpha port. > 2) /proc/iomem should not contain system RAM. The RAM is not > in I/O memory space on my system, so why does it show up in the > iomem resource? On x86, sure, I/O and RAM memory space are the > same, but they're not here. It *has to* contain the system RAM. Otherwise a device driver would be allowed to grab a chunk of that memory successfully, possibly destroying the system. Now it gets an error and can gracefully handle it if it tries to get the memory for some, possibly legitimate reason. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 18 15:25:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBINPNB21376 for linux-mips-outgoing; Tue, 18 Dec 2001 15:25:23 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBINPJo21371 for ; Tue, 18 Dec 2001 15:25:19 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBIMOuX12807; Tue, 18 Dec 2001 17:24:56 -0500 Date: Tue, 18 Dec 2001 17:24:56 -0500 From: Jim Paris To: "Maciej W. Rozycki" Cc: linux-mips@oss.sgi.com Subject: Re: ISA Message-ID: <20011218172456.A12735@neurosis.mit.edu> Reply-To: jim@jtan.com References: <20011218164409.A12517@neurosis.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from macro@ds2.pg.gda.pl on Tue, Dec 18, 2001 at 11:01:04PM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > 1) Isn't the purpose of ioremap to remap I/O memory addresses to > > physical ones? For an ISA architecture like mine, this means > > it needs to add isa_slot_offset. > > Yes it is. Also see Documentation/IO-mapping.txt and the Alpha port. So I should modify ioremap to return (addr+isa_slot_offset) when CONFIG_ISA is defined and the given I/O address is in the 16 MB ISA range. That will make things work according to Linus' description of how they should. > It *has to* contain the system RAM. Otherwise a device driver would be > allowed to grab a chunk of that memory successfully, possibly destroying > the system. Now it gets an error and can gracefully handle it if it tries > to get the memory for some, possibly legitimate reason. Okay, point. So the i82365 driver is at fault when it calls check_mem_region(ISA_address). How should I fix that? Should it call check_mem_region(ioremap(ISA_address)) instead? Or should /proc/iomap contain physical addresses, which the i82365 driver has no way of knowing without breaking abstractions? (And if that's the case, how should I do it? Create isa_check_mem_region?) -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 15:29:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBINTH321530 for linux-mips-outgoing; Tue, 18 Dec 2001 15:29:17 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBINT7o21527 for ; Tue, 18 Dec 2001 15:29:08 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBIMSUj16742; Tue, 18 Dec 2001 20:28:30 -0200 Date: Tue, 18 Dec 2001 20:28:30 -0200 From: Ralf Baechle To: Jun Sun Cc: Jim Paris , linux-mips@oss.sgi.com Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011218202830.B18856@dea.linux-mips.net> References: <20011217151515.A9188@neurosis.mit.edu> <20011217193432.A7115@dea.linux-mips.net> <20011218020344.A10509@neurosis.mit.edu> <20011218162506.A24659@dea.linux-mips.net> <3C1F9608.E4E32E18@mvista.com> <20011218173118.C28080@dea.linux-mips.net> <3C1F9AD2.1269192E@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C1F9AD2.1269192E@mvista.com>; from jsun@mvista.com on Tue, Dec 18, 2001 at 11:36:50AM -0800 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 11:36:50AM -0800, Jun Sun wrote: > > > I see. So isa_slot_offset is for isa_read/isa_write, although I still don't > > > see what kind of drivers would use isa_read/isa_write. > > > > Dumb answer - ISA drivers. > > (Hmm, do you mean "dumb question"? :-0) Somewhere I heared there are only dumb answers, no dumb questions :-) > I was thinking most ISA dirvers should simply use inb/outb to access ioports. > Don't really any ISA devices have their own memory space. But, anyway, who > can still remember those dark ages? Isa_slot_offset is related to memory mapped I/O, in and out are not memory mapped I/O. Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 17:32:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ1Wh325290 for linux-mips-outgoing; Tue, 18 Dec 2001 17:32:43 -0800 Received: from buzz.ichilton.co.uk (pc3-stoc4-0-cust138.mid.cable.ntl.com [213.107.175.138]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ1Weo25287 for ; Tue, 18 Dec 2001 17:32:41 -0800 Received: by buzz.ichilton.co.uk (Postfix, from userid 100) id D197A1CE3B9; Wed, 19 Dec 2001 00:32:33 +0000 (GMT) Date: Wed, 19 Dec 2001 00:32:33 +0000 From: Ian Chilton To: linux-mips@oss.sgi.com Subject: Re: Kernel Wont Boot on I2 - Not the kernel! Message-ID: <20011219003233.A30407@buzz.ichilton.local> Reply-To: Ian Chilton References: <20011217010926.H6423@woody.ichilton.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011217010926.H6423@woody.ichilton.co.uk> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hello, Solved - it was a combination of needing rarp populating with the I2's mac due to an I2 firmware bug and also me forgetting console=ttyS0 :) Bye for Now, Ian Ian Chilton E-Mail: ian@ichilton.co.uk Web: http://www.ichilton.co.uk From owner-linux-mips@oss.sgi.com Tue Dec 18 18:18:24 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ2IOn26230 for linux-mips-outgoing; Tue, 18 Dec 2001 18:18:24 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ2IIo26226 for ; Tue, 18 Dec 2001 18:18:18 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBJ1HeB06737; Tue, 18 Dec 2001 17:17:40 -0800 Message-ID: <3C1FEAB9.F590DFFE@mvista.com> Date: Tue, 18 Dec 2001 17:17:45 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: jim@jtan.com CC: "Maciej W. Rozycki" , linux-mips@oss.sgi.com Subject: Re: ISA References: <20011218164409.A12517@neurosis.mit.edu> <20011218172456.A12735@neurosis.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Jim Paris wrote: > > > > 1) Isn't the purpose of ioremap to remap I/O memory addresses to > > > physical ones? For an ISA architecture like mine, this means > > > it needs to add isa_slot_offset. > > > > Yes it is. Also see Documentation/IO-mapping.txt and the Alpha port. > > So I should modify ioremap to return (addr+isa_slot_offset) when > CONFIG_ISA is defined and the given I/O address is in the 16 MB ISA > range. I would consider it only as a workaround rather than a fix. You need to make sure all other PCI-based boards have isa_slot_offset set to 0. ioremap() has been used by many PCI device drivers, and on MIPS it assumes 1:1 mapping between PCI memory space and CPU physical space. It have been working so far either because PCI device BARs are shuffled around to match their physical address (from CPU point of view) or dev structure is modified propoerly with special fixups. Now when people using ioremap/readb/writeb method to access ISA memory space, which lives in the lower range of the "bus memory space", it will collide with system ram under 1:1 mapping assumption. Extending isa_slot_offset to something like 'mips_io_mem_offset' may be the right way to go. This implies 1) all PCI-based systems need to set this value to the physical address of the beginning of PCI memory space window. 2) ioremap() always add this base. 3) when assigning PCI BARs, we need to substract this offset from the corresponding physical address. Host-PCI controller needs to be setup accordingly to do the above substractive address translation. > > > It *has to* contain the system RAM. Otherwise a device driver would be > > allowed to grab a chunk of that memory successfully, possibly destroying > > the system. Now it gets an error and can gracefully handle it if it tries > > to get the memory for some, possibly legitimate reason. > > Okay, point. So the i82365 driver is at fault when it calls > check_mem_region(ISA_address). How should I fix that? Should it > call check_mem_region(ioremap(ISA_address)) instead? > > Or should /proc/iomap contain physical addresses, which the i82365 > driver has no way of knowing without breaking abstractions? (And if > that's the case, how should I do it? Create isa_check_mem_region?) Creating isa_check_mem_region() seems to be the right thing but not necessarily the desirable thing to do, especially people are moving from ISA. In fact, if isa_read/isa_write do break for other arches (Why would they?), modifying the driver to use these macros might be best way to solve this problem. Jun > > -jim From owner-linux-mips@oss.sgi.com Tue Dec 18 18:29:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ2TAd26517 for linux-mips-outgoing; Tue, 18 Dec 2001 18:29:10 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ2T0o26513 for ; Tue, 18 Dec 2001 18:29:01 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id CAA17386; Wed, 19 Dec 2001 02:28:32 +0100 (MET) Date: Wed, 19 Dec 2001 02:28:32 +0100 (MET) From: "Maciej W. Rozycki" To: Jim Paris cc: linux-mips@oss.sgi.com Subject: Re: ISA In-Reply-To: <20011218172456.A12735@neurosis.mit.edu> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jim Paris wrote: > So I should modify ioremap to return (addr+isa_slot_offset) when > CONFIG_ISA is defined and the given I/O address is in the 16 MB ISA > range. That will make things work according to Linus' description of > how they should. Yep. > Okay, point. So the i82365 driver is at fault when it calls > check_mem_region(ISA_address). How should I fix that? Should it > call check_mem_region(ioremap(ISA_address)) instead? Hmm, it looks no ISA device driver bothers to handle iomem resources. I believe check_mem_region(virt_to_phys(ioremap(ISA_address)), ...) should work, but I haven't checked. Note that you should probably look at the *_resource() functions (as declared in ) as *_region() ones seem to be doomed obsolete. > Or should /proc/iomap contain physical addresses, which the i82365 > driver has no way of knowing without breaking abstractions? (And if > that's the case, how should I do it? Create isa_check_mem_region?) /proc/iomem (I suppose it is what you meant) does contain physical addresses. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 18 18:51:59 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ2pxD27557 for linux-mips-outgoing; Tue, 18 Dec 2001 18:51:59 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ2pqo27551 for ; Tue, 18 Dec 2001 18:51:53 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id CAA17624; Wed, 19 Dec 2001 02:50:54 +0100 (MET) Date: Wed, 19 Dec 2001 02:50:53 +0100 (MET) From: "Maciej W. Rozycki" To: Jun Sun cc: jim@jtan.com, linux-mips@oss.sgi.com Subject: Re: ISA In-Reply-To: <3C1FEAB9.F590DFFE@mvista.com> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jun Sun wrote: > > So I should modify ioremap to return (addr+isa_slot_offset) when > > CONFIG_ISA is defined and the given I/O address is in the 16 MB ISA > > range. > > I would consider it only as a workaround rather than a fix. Why? > You need to make sure all other PCI-based boards have isa_slot_offset set to > 0. I don't think it's needed. Why to refer to isa_slot_offset for PCI accesses at all? > ioremap() has been used by many PCI device drivers, and on MIPS it assumes 1:1 > mapping between PCI memory space and CPU physical space. It have been working > so far either because PCI device BARs are shuffled around to match their > physical address (from CPU point of view) or dev structure is modified > propoerly with special fixups. > > Now when people using ioremap/readb/writeb method to access ISA memory space, > which lives in the lower range of the "bus memory space", it will collide with > system ram under 1:1 mapping assumption. Hmm, I believe there should be no such problem. For systems equipped with the PCI bus we may just assume the low 16MB of PCI memory address space is reserved for ISA memory addresses (it's hardwired for many platforms, so there should be no problem with it), i.e. avoid programming BARs to point to that space and make ioremap() (or __ioremap(), actually) act accordingly, i.e. assume a 1:1 mapping for addresses above 16MB and perform an ISA mapping for ones below 16MB. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Tue Dec 18 19:04:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ34q827827 for linux-mips-outgoing; Tue, 18 Dec 2001 19:04:52 -0800 Received: from ns1.ltc.com (vsat-148-63-243-254.c3.sb4.mrt.starband.net [148.63.243.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ34ho27821 for ; Tue, 18 Dec 2001 19:04:45 -0800 Received: from prefect (unknown [10.1.1.86]) by ns1.ltc.com (Postfix) with SMTP id B1627590A9; Tue, 18 Dec 2001 21:02:19 -0500 (EST) Message-ID: <056a01c18831$919daf90$5601010a@prefect> From: "Bradley D. LaRonde" To: "Maciej W. Rozycki" , "Jun Sun" Cc: , References: Subject: Re: ISA Date: Tue, 18 Dec 2001 21:05:01 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk ----- Original Message ----- From: "Maciej W. Rozycki" To: "Jun Sun" Cc: ; Sent: Tuesday, December 18, 2001 8:50 PM Subject: Re: ISA > On Tue, 18 Dec 2001, Jun Sun wrote: > > Now when people using ioremap/readb/writeb method to access ISA memory space, > > which lives in the lower range of the "bus memory space", it will collide with > > system ram under 1:1 mapping assumption. > > Hmm, I believe there should be no such problem. For systems equipped > with the PCI bus we may just assume the low 16MB of PCI memory address > space is reserved for ISA memory addresses (it's hardwired for many > platforms, so there should be no problem with it), i.e. avoid programming > BARs to point to that space and make ioremap() (or __ioremap(), actually) > act accordingly, i.e. assume a 1:1 mapping for addresses above 16MB and > perform an ISA mapping for ones below 16MB. That sounds like the simplest and best solution. Regards, Brad From owner-linux-mips@oss.sgi.com Tue Dec 18 19:10:38 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ3AcF28584 for linux-mips-outgoing; Tue, 18 Dec 2001 19:10:38 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ3AZo28572 for ; Tue, 18 Dec 2001 19:10:35 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBJ29lB09183; Tue, 18 Dec 2001 18:09:47 -0800 Message-ID: <3C1FF6F0.B8834B75@mvista.com> Date: Tue, 18 Dec 2001 18:09:52 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Maciej W. Rozycki" CC: jim@jtan.com, linux-mips@oss.sgi.com Subject: Re: ISA References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk "Maciej W. Rozycki" wrote: > Hmm, I believe there should be no such problem. For systems equipped > with the PCI bus we may just assume the low 16MB of PCI memory address > space is reserved for ISA memory addresses (it's hardwired for many > platforms, so there should be no problem with it), i.e. avoid programming > BARs to point to that space and make ioremap() (or __ioremap(), actually) > act accordingly, i.e. assume a 1:1 mapping for addresses above 16MB and > perform an ISA mapping for ones below 16MB. I see. I missed that part where you have a pivoting point at 16MB. That sounds like a working solution to me. Overall, I still feel using isa_xxx() macros in the driver seems like a cleaner solution. That essentially treats ISA memory space as a separate space. The ioremap/readb/writeb approach tries to lump ISA memory and PCI memory space together but in fact we still have treat them differently (based on whether the address is greater than 16MB, which is a little hackish.) Jun From owner-linux-mips@oss.sgi.com Tue Dec 18 19:31:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ3V6t28776 for linux-mips-outgoing; Tue, 18 Dec 2001 19:31:06 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBJ3V2o28773 for ; Tue, 18 Dec 2001 19:31:02 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBJ2UiK03083; Wed, 19 Dec 2001 00:30:44 -0200 Date: Wed, 19 Dec 2001 00:30:44 -0200 From: Ralf Baechle To: Geert Uytterhoeven Cc: linux-mips@oss.sgi.com Subject: Re: CVS Update@oss.sgi.com: linux Message-ID: <20011219003044.H2717@dea.linux-mips.net> References: <200112171934.fBHJYx328839@oss.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from geert@linux-m68k.org on Tue, Dec 18, 2001 at 11:23:32AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 18, 2001 at 11:23:32AM +0100, Geert Uytterhoeven wrote: > > Log message: > > Rewrite ffz(). Now compiles into code without any branches. > > Depending on your compiler. Gcc seems to be smarter than GreenHills here :-) I'd rather call this piece of code to be written around the compiler. Credits for this nice piece of code btw go to Carsten of MIPS who used this in the Atlas code where I discovered it two days ago. The old variant of this routine came from the Origin code and produces 60% longer code with ~ 5 branches. Probably wrapped around the SGI compiler. Ralf From owner-linux-mips@oss.sgi.com Tue Dec 18 19:36:51 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJ3apK29042 for linux-mips-outgoing; Tue, 18 Dec 2001 19:36:51 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJ3amo29039 for ; Tue, 18 Dec 2001 19:36:48 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id SAA08591 for ; Tue, 18 Dec 2001 18:36:26 -0800 (PST) mail_from (macro@ds2.pg.gda.pl) Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id DAA18021; Wed, 19 Dec 2001 03:30:47 +0100 (MET) Date: Wed, 19 Dec 2001 03:30:46 +0100 (MET) From: "Maciej W. Rozycki" To: Jun Sun cc: jim@jtan.com, linux-mips@oss.sgi.com Subject: Re: ISA In-Reply-To: <3C1FF6F0.B8834B75@mvista.com> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jun Sun wrote: > Overall, I still feel using isa_xxx() macros in the driver seems like a > cleaner solution. That essentially treats ISA memory space as a separate It depends on what you want to do. For one isa_xxx() functions/macros do not permit to control caching. > space. The ioremap/readb/writeb approach tries to lump ISA memory and PCI > memory space together but in fact we still have treat them differently (based > on whether the address is greater than 16MB, which is a little hackish.) The problem is a lone address doesn't really tell us what bus is it expected to come from. And practically there are few systems having unrelated I/O buses implemented. I don't know if any of them is supported by Linux. PCI and ISA are historically related, i.e. ISA is usually accessed via a PCI-ISA bridge with a hardwired address mapping. I don't know any system doing it differently -- even Alphas do it this way. The *_resource() functions might help as you may refer to particular resources with them, but I don't think a generic way for a multi-bus system was defined. Maybe the problem needs to be discussed at linux-kernel. It's generic after all. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Wed Dec 19 02:08:14 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJA8Ec04636 for linux-mips-outgoing; Wed, 19 Dec 2001 02:08:14 -0800 Received: from niisi.wave.ras.ru (niisi.wave.ras.ru [194.85.104.220]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJA85o04633 for ; Wed, 19 Dec 2001 02:08:08 -0800 Received: (from uucp@localhost) by niisi.wave.ras.ru (8.9.1/8.9.1) with UUCP id QAA26965; Wed, 19 Dec 2001 16:00:31 +0300 Received: from niisi.msk.ru (t01.systud.msk.su [193.232.173.1]) by systud.msk.su (8.8.5/8.7.3) with ESMTP id MAA05541; Wed, 19 Dec 2001 12:09:44 +0300 Received: from niisi.msk.ru (t34 [193.232.173.34]) by niisi.msk.ru (8.8.8/8.8.8) with ESMTP id MAA03348; Wed, 19 Dec 2001 12:03:25 +0300 (MSK) Message-ID: <3C205853.EE642541@niisi.msk.ru> Date: Wed, 19 Dec 2001 12:05:23 +0300 From: "Gleb O. Raiko" Organization: NIISI RAN X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en,ru MIME-Version: 1.0 To: Geoffrey Espin CC: linux-mips@oss.sgi.com Subject: Re: kmalloc/pci_alloc and skbuff's References: <20011218123848.A75986@idiom.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Geoffrey Espin wrote: > > The Markham board (Korva/VR41xx variant) which I'm trying to get > submitted, has a PCI problem. It doesn't allow a PCI device to > see all the DRAM. DMA-able data must be in a special 4MB range, > which is currently set at 0x01c00000 (the last 4MB of a 32MB > system). SKB's must be allocated within this area for a > (say, Ethernet) PCI device to access. There appears to be no way > to tell kmalloc(), used in alloc_skb(), to allocate memory from > any special address range. > What's wrong with GFP_DMA ? Doesn't it solve exactly this problem ? Regards, Gleb. From owner-linux-mips@oss.sgi.com Wed Dec 19 02:34:31 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJAYVG05057 for linux-mips-outgoing; Wed, 19 Dec 2001 02:34:31 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJAYNo05051; Wed, 19 Dec 2001 02:34:23 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.27]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA12248; Wed, 19 Dec 2001 10:34:05 +0100 (MET) Date: Wed, 19 Dec 2001 10:34:04 +0100 (MET) From: Geert Uytterhoeven To: Jim Paris cc: Ralf Baechle , Linux/MIPS Development Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] In-Reply-To: <20011218135712.B11726@neurosis.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jim Paris wrote: > > Therefore: > > > > set_io_port_base(0xb4000000); > > isa_slot_offset = 0xb0000000; > > Yep, that's what I have. > > > > > -more /proc/iomem > > > 00000000-00ffffff : System Ram > > > 00002000-001bc6af : Kernel code > > > 001cf300-00299fff : Kernel data > > > (this seems very wrong to me, since the kernel is most definately > > > not in the I/O memory space; real memory, of course, but I/O memory??) > > > > No, this makes perfect sense on a 16mb system. > > How so? See the memory map I just sent in my other mail. Should I be > adding isa_slot_offset to calls to check/request/release_mem_region? > Or should I make a isa_{check,request,release}_mem_region that adds > this in? In which case, doesn't that turn /proc/iomem into a general > memory map rather than an I/O memory map? IMHO you should create isa_{check,request,release}_mem_region(). I said it many times before on linux-kernel, but it doesn't help :-( I'm facing the same problem on PPC, where ISA memory space is not at address 0. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Wed Dec 19 02:34:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJAYvV05087 for linux-mips-outgoing; Wed, 19 Dec 2001 02:34:57 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJAYpo05083; Wed, 19 Dec 2001 02:34:51 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.26]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA12276; Wed, 19 Dec 2001 10:34:37 +0100 (MET) Date: Wed, 19 Dec 2001 10:34:37 +0100 (MET) From: Geert Uytterhoeven To: Jun Sun cc: Ralf Baechle , Jim Paris , Linux/MIPS Development Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] In-Reply-To: <3C1F9608.E4E32E18@mvista.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jun Sun wrote: > Ralf Baechle wrote: > > Therefore: > > > > set_io_port_base(0xb4000000); > > isa_slot_offset = 0xb0000000; > > > > I see. So isa_slot_offset is for isa_read/isa_write, although I still don't > see what kind of drivers would use isa_read/isa_write. E.g. VGA and ISA NVRAM. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Wed Dec 19 02:40:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJAeZW05220 for linux-mips-outgoing; Wed, 19 Dec 2001 02:40:35 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJAeSo05217; Wed, 19 Dec 2001 02:40:28 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.27]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA12872; Wed, 19 Dec 2001 10:40:07 +0100 (MET) Date: Wed, 19 Dec 2001 10:40:07 +0100 (MET) From: Geert Uytterhoeven To: Jun Sun cc: jim@jtan.com, Ralf Baechle , Linux/MIPS Development Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] In-Reply-To: <3C1F868C.492E155B@mvista.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, 18 Dec 2001, Jun Sun wrote: > It has nothing to isa_slot_offset here. I don't know about the history of > isa_slot_offset, but it appears to be faint effort to allow the access to what > is called "ISA memory" space on PC. This region, if it ever exists, should > never be a separate region on a MIPS machine. It should just be the beginning > part of PCI Memory space. It's indeed the beginning of PCI memory space, but only when viewed from the viewpoint of the PCI bus itself, not necessarily from the viewpoint of the CPU. On ia32 PCs it is, but not on many PPC boxes. And I guess on some MIPS boxes as well. > Ralf, we should just delete isa_slot_offset to avoid any further confusions. Ugh... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Wed Dec 19 02:59:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJAxhd05753 for linux-mips-outgoing; Wed, 19 Dec 2001 02:59:43 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJAxbo05750 for ; Wed, 19 Dec 2001 02:59:37 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.26]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA13835; Wed, 19 Dec 2001 10:52:47 +0100 (MET) Date: Wed, 19 Dec 2001 10:52:47 +0100 (MET) From: Geert Uytterhoeven To: "Maciej W. Rozycki" cc: Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, 19 Dec 2001, Maciej W. Rozycki wrote: > On Tue, 18 Dec 2001, Jun Sun wrote: > > Overall, I still feel using isa_xxx() macros in the driver seems like a > > cleaner solution. That essentially treats ISA memory space as a separate > > It depends on what you want to do. For one isa_xxx() functions/macros > do not permit to control caching. > > > space. The ioremap/readb/writeb approach tries to lump ISA memory and PCI > > memory space together but in fact we still have treat them differently (based > > on whether the address is greater than 16MB, which is a little hackish.) You must _not_ use readb()/writeb() and friends with ISA memory space! You must use isa_readb()/isa_writeb() and friends! > The problem is a lone address doesn't really tell us what bus is it > expected to come from. And practically there are few systems having > unrelated I/O buses implemented. I don't know if any of them is supported > by Linux. PCI and ISA are historically related, i.e. ISA is usually > accessed via a PCI-ISA bridge with a hardwired address mapping. I don't > know any system doing it differently -- even Alphas do it this way. > > The *_resource() functions might help as you may refer to particular > resources with them, but I don't think a generic way for a multi-bus > system was defined. Maybe the problem needs to be discussed at > linux-kernel. It's generic after all. The problem is that ISA memory space is only half-assed considered separate: you have seperate isa_readb()/isa_writeb() and friends, but not the corresponding isa_io{re,un}map() and isa_{request,release}_mem_region(). So while isa_readb()/isa_writeb() and friends can add isa_slot_offset (or how-is-it-called on your random architecture), io{re,un}map() and {request,release}_mem_region() can't. For I/O accesses (inb() and friends), there's no problem, since ISA I/O is a real subset of PCI I/O. But for memory accesses, ISA memory space is not necessarily at `address 0'. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Wed Dec 19 06:46:28 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJEkSF24940 for linux-mips-outgoing; Wed, 19 Dec 2001 06:46:28 -0800 Received: from pandora.research.kpn.com (IDENT:root@pandora.research.kpn.com [139.63.192.11]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJEkOo24937 for ; Wed, 19 Dec 2001 06:46:25 -0800 Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6]) by pandora.research.kpn.com (8.11.6/8.9.3) with ESMTP id fBJDkJI31249; Wed, 19 Dec 2001 14:46:19 +0100 Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6]) by sparta.research.kpn.com (8.8.8+Sun/8.8.8) with ESMTP id OAA22952; Wed, 19 Dec 2001 14:46:18 +0100 (MET) Message-Id: <200112191346.OAA22952@sparta.research.kpn.com> To: linux-mips@oss.sgi.com, linux-mips@fnet.fr Reply-to: vhouten@kpn.com Subject: New root image for mipsel based on RH 7.1 port X-Face: ";:TzQQC{mTp~$W,'m4@Lu1Lu$rtG_~5kvYO~F:C'KExk9o1X"iRz[0%{bq?6Aj#>VhSD?v 1W9`.Qsf+P&*iQEL8&y,RDj&U.]!(R-?c-h5h%Iw%r$|%6+Jc>GTJe!_1&A0o'lC[`I#={2BzOXT1P q366I$WL=;[+SDo1RoIT+a}_y68Y:jQ^xp4=*4-ryiymi>hy Date: Wed, 19 Dec 2001 14:46:18 +0100 From: "Houten K.H.C. van (Karel)" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi All, I've compiled a new root image for mipsel systems, based on the RedHat 7.1 Port of H.J. Lu. It is available on ftp://oss.sgi.com/pub/linux/mips/mipsel-linux/root/mipsel-root-20011216.tgz New kernels for DECStations will be available soon, and I hope to update my web pages about DECStation Linux in the next weeks. Regards, Karel. From owner-linux-mips@oss.sgi.com Wed Dec 19 06:55:57 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJEtvI25797 for linux-mips-outgoing; Wed, 19 Dec 2001 06:55:57 -0800 Received: from the-village.bc.nu (lightning.swansea.linux.org.uk [194.168.151.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJEtso25794 for ; Wed, 19 Dec 2001 06:55:54 -0800 Received: from alan by the-village.bc.nu with local (Exim 3.22 #1) id 16GhG0-0002zb-00; Wed, 19 Dec 2001 13:59:40 +0000 Subject: Re: ISA To: geert@linux-m68k.org (Geert Uytterhoeven) Date: Wed, 19 Dec 2001 13:59:40 +0000 (GMT) Cc: macro@ds2.pg.gda.pl (Maciej W. Rozycki), jsun@mvista.com (Jun Sun), jim@jtan.com, linux-mips@oss.sgi.com (Linux/MIPS Development) In-Reply-To: from "Geert Uytterhoeven" at Dec 19, 2001 10:52:47 AM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > You must _not_ use readb()/writeb() and friends with ISA memory space! > You must use isa_readb()/isa_writeb() and friends! Linus is saying the reverse. Drivers are moving away from isa_ > But for memory accesses, ISA memory space is not necessarily at `address 0'. ioremap uses ookies, its up to yoyu what you hide in the cookie from an ISA ioremap From owner-linux-mips@oss.sgi.com Wed Dec 19 07:08:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJF8nW26213 for linux-mips-outgoing; Wed, 19 Dec 2001 07:08:49 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJF8jo26210 for ; Wed, 19 Dec 2001 07:08:45 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.26]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id PAA02971; Wed, 19 Dec 2001 15:06:32 +0100 (MET) Date: Wed, 19 Dec 2001 15:06:32 +0100 (MET) From: Geert Uytterhoeven To: Alan Cox cc: "Maciej W. Rozycki" , Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, 19 Dec 2001, Alan Cox wrote: > > You must _not_ use readb()/writeb() and friends with ISA memory space! > > You must use isa_readb()/isa_writeb() and friends! > > Linus is saying the reverse. Drivers are moving away from isa_ > > > But for memory accesses, ISA memory space is not necessarily at `address 0'. > > ioremap uses ookies, its up to yoyu what you hide in the cookie from an ISA > ioremap OK, so I can check for < 16 MB in ioremap(), and readb() and friends will handle it fine. You're not supposed to call ioremap() for real RAM anyway, so there's no ambiguity. But what about request_mem_region() and friends? How can I distinguish between ISA memory and the first 16 MB of RAM (or ROM, or whatever my board has there)? Or am I not supposed to let those things show up in /proc/iomem? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Wed Dec 19 10:09:21 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJI9LE08826 for linux-mips-outgoing; Wed, 19 Dec 2001 10:09:21 -0800 Received: from www.transvirtual.com (root@www.transvirtual.com [206.14.214.140]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJI9Io08823 for ; Wed, 19 Dec 2001 10:09:18 -0800 Received: from www.transvirtual.com (jsimmons@localhost [127.0.0.1]) by localhost (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fBJH9Dn4004039; Wed, 19 Dec 2001 09:09:13 -0800 Received: from localhost (jsimmons@localhost) by www.transvirtual.com (8.12.0.Beta7/8.12.0.Beta7/Debian 8.12.0.Beta7-1) with ESMTP id fBJH9C3w004035; Wed, 19 Dec 2001 09:09:12 -0800 X-Authentication-Warning: www.transvirtual.com: jsimmons owned process doing -bs Date: Wed, 19 Dec 2001 09:09:11 -0800 (PST) From: James Simmons To: "Gleb O. Raiko" cc: Geoffrey Espin , linux-mips@oss.sgi.com Subject: Re: kmalloc/pci_alloc and skbuff's In-Reply-To: <3C205853.EE642541@niisi.msk.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > What's wrong with GFP_DMA ? Doesn't it solve exactly this problem ? Personally I don't like the hack but you have to ask what he needs. kmalloc grabs memory from the CPU cache. GFP_DMA insures that cache memory is continues. I think Geoffrey needs to use a specific memory address in PCI space. Tho I like Geoffrey to try using GFP_DMA. The reason I don't like the hack is that skbuff's is bus independent. Not all ethernet cards are PCI based. Please try using GFP_DMA and let us know if it worked. . --- |o_o | |:_/ | Give Micro$oft the Bird!!!! // \ \ Use Linux!!!! (| | ) /'_ _/`\ ___)=(___/ From owner-linux-mips@oss.sgi.com Wed Dec 19 11:09:52 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJJ9q609710 for linux-mips-outgoing; Wed, 19 Dec 2001 11:09:52 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBJJ9lo09705 for ; Wed, 19 Dec 2001 11:09:48 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBJGll615413; Wed, 19 Dec 2001 14:47:47 -0200 Date: Wed, 19 Dec 2001 14:47:47 -0200 From: Ralf Baechle To: Geert Uytterhoeven Cc: Jun Sun , Jim Paris , Linux/MIPS Development Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011219144747.D1181@dea.linux-mips.net> References: <3C1F9608.E4E32E18@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from geert@linux-m68k.org on Wed, Dec 19, 2001 at 10:34:37AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, Dec 19, 2001 at 10:34:37AM +0100, Geert Uytterhoeven wrote: > > > set_io_port_base(0xb4000000); > > > isa_slot_offset = 0xb0000000; > > > > I see. So isa_slot_offset is for isa_read/isa_write, although I still don't > > see what kind of drivers would use isa_read/isa_write. > > E.g. VGA and ISA NVRAM. Correct. And much much more, the whole PC insanity. There are plenty of MIPS systems that are essentially PCs with a MIPS CPU glued on so you get all the fun, ISA, EISA, VLB etc. Barf bag technology. Ralf From owner-linux-mips@oss.sgi.com Wed Dec 19 11:59:19 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJJxJk15045 for linux-mips-outgoing; Wed, 19 Dec 2001 11:59:19 -0800 Received: from idiom.com (espin@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJJxFo15042 for ; Wed, 19 Dec 2001 11:59:15 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id KAA02726; Wed, 19 Dec 2001 10:56:33 -0800 (PST) Date: Wed, 19 Dec 2001 10:56:33 -0800 From: Geoffrey Espin To: James Simmons Cc: "Gleb O. Raiko" , linux-mips@oss.sgi.com Subject: Re: kmalloc/pci_alloc and skbuff's Message-ID: <20011219105633.B54722@idiom.com> References: <3C205853.EE642541@niisi.msk.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from James Simmons on Wed, Dec 19, 2001 at 09:09:11AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > What's wrong with GFP_DMA ? Doesn't it solve exactly this problem ? > Personally I don't like the hack but you have to ask what he needs. > kmalloc grabs memory from the CPU cache. GFP_DMA insures that cache memory > is continues. I think Geoffrey needs to use a specific memory address in > PCI space. Tho I like Geoffrey to try using GFP_DMA. The reason I don't > like the hack is that skbuff's is bus independent. Not all ethernet cards > are PCI based. Please try using GFP_DMA and let us know if it worked. Yes, I originally thought this was what addressed it. Is "setting dma_mask" what is meant by "using GFP_DMA"? The problem is drivers call dev_alloc_skb() which can allocate memory anywhere in (my 32M) memory. The PCI host controller part of the uPD98052 with its VR4120a core (doc at http://www.idiom.com/~espin/nec/hwdoc/uPD98502-UM.pdf) allows you to program a 4M window onto DRAM. I use top 4M of 32M, but it's arbitrary. Then only this area can be transferred to by/from the PCI devices. So its not the PCI devices that is the problem, but access to the host-side DRAM. Currently, my private pci_alloc/free_consistent() routines manage the 4M at top of memory (its not added to kernel with add_memory_region() in prom.c). With these hacks (including net/core/skbuff.c:alloc_skb->pci_alloc_consistent) I've been successfully using the Tulip Ethernet (LinkSys) card (with no changes to the driver). Geoff -- Geoffrey Espin espin@idiom.com From owner-linux-mips@oss.sgi.com Wed Dec 19 12:10:27 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJKARL15408 for linux-mips-outgoing; Wed, 19 Dec 2001 12:10:27 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJKANo15405 for ; Wed, 19 Dec 2001 12:10:23 -0800 Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBJJ8QB05718; Wed, 19 Dec 2001 11:08:26 -0800 Subject: Re: kmalloc/pci_alloc and skbuff's From: Pete Popov To: Geoffrey Espin Cc: James Simmons , "Gleb O. Raiko" , linux-mips In-Reply-To: <20011219105633.B54722@idiom.com> References: <3C205853.EE642541@niisi.msk.ru> <20011219105633.B54722@idiom.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 19 Dec 2001 11:12:25 -0800 Message-Id: <1008789145.31066.140.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, 2001-12-19 at 10:56, Geoffrey Espin wrote: > > > > What's wrong with GFP_DMA ? Doesn't it solve exactly this problem ? > > Personally I don't like the hack but you have to ask what he needs. > > kmalloc grabs memory from the CPU cache. GFP_DMA insures that cache memory > > is continues. I think Geoffrey needs to use a specific memory address in > > PCI space. Tho I like Geoffrey to try using GFP_DMA. The reason I don't > > like the hack is that skbuff's is bus independent. Not all ethernet cards > > are PCI based. Please try using GFP_DMA and let us know if it worked. > > Yes, I originally thought this was what addressed it. > Is "setting dma_mask" what is meant by "using GFP_DMA"? > > The problem is drivers call dev_alloc_skb() which can allocate > memory anywhere in (my 32M) memory. > > The PCI host controller part of the uPD98052 with its VR4120a core > (doc at http://www.idiom.com/~espin/nec/hwdoc/uPD98502-UM.pdf) > allows you to program a 4M window onto DRAM. I use top 4M of 32M, > but it's arbitrary. Then only this area can be transferred to > by/from the PCI devices. So its not the PCI devices that is the > problem, but access to the host-side DRAM. > > Currently, my private pci_alloc/free_consistent() routines manage > the 4M at top of memory (its not added to kernel with > add_memory_region() in prom.c). > > With these hacks (including net/core/skbuff.c:alloc_skb->pci_alloc_consistent) > I've been successfully using the Tulip Ethernet (LinkSys) card (with no > changes to the driver). FYI, this is not an isolated issue. We deal with a number of architectures and we've seen this problem with other arches and system controllers as well. A 'generic' solution would be nice and probably necessary at some point. 2.5 would be a good place to do it, if only someone would volunteer ;-) Pete From owner-linux-mips@oss.sgi.com Wed Dec 19 12:56:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJKuhR01002 for linux-mips-outgoing; Wed, 19 Dec 2001 12:56:43 -0800 Received: from idiom.com (root@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJKucX00999 for ; Wed, 19 Dec 2001 12:56:38 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id LAA42356; Wed, 19 Dec 2001 11:53:18 -0800 (PST) Date: Wed, 19 Dec 2001 11:53:18 -0800 From: Geoffrey Espin To: Pete Popov Cc: James Simmons , "Gleb O. Raiko" , linux-mips Subject: Re: kmalloc/pci_alloc and skbuff's Message-ID: <20011219115318.A12344@idiom.com> References: <3C205853.EE642541@niisi.msk.ru> <20011219105633.B54722@idiom.com> <1008789145.31066.140.camel@zeus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <1008789145.31066.140.camel@zeus>; from Pete Popov on Wed, Dec 19, 2001 at 11:12:25AM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > Currently, my private pci_alloc/free_consistent() routines manage > FYI, this is not an isolated issue. We deal with a number of > architectures and we've seen this problem with other arches and system > controllers as well. A 'generic' solution would be nice and probably > necessary at some point. 2.5 would be a good place to do it, if only > someone would volunteer ;-) [Pete] Thanks for the reassurance. Can one include one's own arch/mips/korva/skbuff.c? But with network.o being a monolithic blob .o instead of a .a, seems like patching the one file is not feasible. I tried tweaking $(HEAD) but then stumbled onto this. How does one package such a work-around? Include a patch file in the LSP, which gets automatically run to munge on kernel sources? Or will linux-mips.sf.net accept a patch for net/core/skbuff.c? Geoff -- Geoffrey Espin espin@idiom.com From owner-linux-mips@oss.sgi.com Wed Dec 19 14:21:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJML4V06346 for linux-mips-outgoing; Wed, 19 Dec 2001 14:21:04 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJMKvX06329 for ; Wed, 19 Dec 2001 14:20:57 -0800 Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBJLJ8B13293; Wed, 19 Dec 2001 13:19:08 -0800 Subject: Re: kmalloc/pci_alloc and skbuff's From: Pete Popov To: Geoffrey Espin Cc: James Simmons , "Gleb O. Raiko" , linux-mips In-Reply-To: <20011219115318.A12344@idiom.com> References: <3C205853.EE642541@niisi.msk.ru> <20011219105633.B54722@idiom.com> <1008789145.31066.140.camel@zeus> <20011219115318.A12344@idiom.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 19 Dec 2001 13:23:08 -0800 Message-Id: <1008796988.31046.150.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, 2001-12-19 at 11:53, Geoffrey Espin wrote: > > > > Currently, my private pci_alloc/free_consistent() routines manage > > > FYI, this is not an isolated issue. We deal with a number of > > architectures and we've seen this problem with other arches and system > > controllers as well. A 'generic' solution would be nice and probably > > necessary at some point. 2.5 would be a good place to do it, if only > > someone would volunteer ;-) [Pete] > > Thanks for the reassurance. > > Can one include one's own arch/mips/korva/skbuff.c? > But with network.o being a monolithic blob .o instead of a .a, > seems like patching the one file is not feasible. > I tried tweaking $(HEAD) but then stumbled onto this. > How does one package such a work-around? Include a patch file in > the LSP, which gets automatically run to munge on kernel sources? If you mean MontaVista's LSP, they are built from an internal source tree, so in some sense we can do whatever we want -- at least until we implement the right solution. It's not something you want to do though because carrying patches with you does not scale well. The best approach in the long run is to do it right and push it out to the community tree asap. The problem, of course, is that if you yourself wanted to do it right, but it was going to take a while, the company you're consulting for might not want to pay for such general linux work. > Or will linux-mips.sf.net accept a patch for net/core/skbuff.c? Up the the maintainer, but it's really not the right fix so I think it's best for you or your customer to keep that patch locally. Another approach would be for you to preallocate your network buffers in your driver, attach them permanently to the rx/tx descriptors, and then copy the data from the buffer to a newly allocated skbuff, when you receive, and the other way when you transmit. There's a performance penalty there, especially for large packets, but you can encapsulate everything within your driver and you won't have to maintain a patch. Pete From owner-linux-mips@oss.sgi.com Wed Dec 19 14:56:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJMuNu06711 for linux-mips-outgoing; Wed, 19 Dec 2001 14:56:23 -0800 Received: from idiom.com (espin@idiom.com [216.240.32.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJMuKX06708 for ; Wed, 19 Dec 2001 14:56:20 -0800 Received: (from espin@localhost) by idiom.com (8.9.3/8.9.3) id NAA15148; Wed, 19 Dec 2001 13:56:15 -0800 (PST) Date: Wed, 19 Dec 2001 13:56:15 -0800 From: Geoffrey Espin To: Pete Popov Cc: linux-mips Subject: Re: kmalloc/pci_alloc and skbuff's Message-ID: <20011219135615.A3709@idiom.com> References: <3C205853.EE642541@niisi.msk.ru> <20011219105633.B54722@idiom.com> <1008789145.31066.140.camel@zeus> <20011219115318.A12344@idiom.com> <1008796988.31046.150.camel@zeus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <1008796988.31046.150.camel@zeus>; from Pete Popov on Wed, Dec 19, 2001 at 01:23:08PM -0800 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > > Can one include one's own arch/mips/korva/skbuff.c? > > But with network.o being a monolithic blob .o instead of a .a, I figured someone might have some magic for hacking arch/mips/Makefile ifdef CONFIG_NEC_KORVA (or any BSP/LSP). I guess I'll have to make the effort. :-) > > Or will linux-mips.sf.net accept a patch for net/core/skbuff.c? > Up the the maintainer, but it's really not the right fix so I think it's > best for you or your customer to keep that patch locally. I talked Jun into checking in the Markham patches... but will have to add a comment to the pci_xxx files that one has to get a separate patch for net/core/skbuff.c if using PCI with a generic driver. > Another approach would be for you to preallocate your network buffers in > your driver, attach them permanently to the rx/tx descriptors, and then The idea was not to mess with any PCI drivers. 2.5 is not an option for me. Thanks, Pete. Geoff -- Geoffrey Espin espin@idiom.com From owner-linux-mips@oss.sgi.com Wed Dec 19 15:03:09 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBJN39Q07994 for linux-mips-outgoing; Wed, 19 Dec 2001 15:03:09 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBJN36X07991 for ; Wed, 19 Dec 2001 15:03:06 -0800 Received: from zeus.mvista.com (zeus.mvista.com [10.0.0.112]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBJM2MB15854; Wed, 19 Dec 2001 14:02:22 -0800 Subject: Re: kmalloc/pci_alloc and skbuff's From: Pete Popov To: Geoffrey Espin Cc: linux-mips In-Reply-To: <20011219135615.A3709@idiom.com> References: <3C205853.EE642541@niisi.msk.ru> <20011219105633.B54722@idiom.com> <1008789145.31066.140.camel@zeus> <20011219115318.A12344@idiom.com> <1008796988.31046.150.camel@zeus> <20011219135615.A3709@idiom.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 19 Dec 2001 14:06:23 -0800 Message-Id: <1008799583.1378.1.camel@zeus> Mime-Version: 1.0 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, 2001-12-19 at 13:56, Geoffrey Espin wrote: > > > Can one include one's own arch/mips/korva/skbuff.c? > > > But with network.o being a monolithic blob .o instead of a .a, > > I figured someone might have some magic for hacking > arch/mips/Makefile ifdef CONFIG_NEC_KORVA (or any BSP/LSP). > I guess I'll have to make the effort. :-) > > > > Or will linux-mips.sf.net accept a patch for net/core/skbuff.c? > > Up the the maintainer, but it's really not the right fix so I think it's > > best for you or your customer to keep that patch locally. > > I talked Jun into checking in the Markham patches... but will > have to add a comment to the pci_xxx files that one has to get > a separate patch for net/core/skbuff.c if using PCI with a generic > driver. > > > Another approach would be for you to preallocate your network buffers in > > your driver, attach them permanently to the rx/tx descriptors, and then > > The idea was not to mess with any PCI drivers. 2.5 is not an option for me. Sorry, that was a bad suggestion. I was thinking of an ethernet driver that's part of your SOC and requires a new ethernet driver anyway. Otherwise, messing with all the pci ethernet drivers is definitely not an option. Pete From owner-linux-mips@oss.sgi.com Wed Dec 19 18:04:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBK24WE15764 for linux-mips-outgoing; Wed, 19 Dec 2001 18:04:32 -0800 Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBK24HX15761 for ; Wed, 19 Dec 2001 18:04:17 -0800 Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75]) by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id fBK144B28212; Wed, 19 Dec 2001 17:04:04 -0800 Message-ID: <3C21390A.FA23978D@mvista.com> Date: Wed, 19 Dec 2001 17:04:10 -0800 From: Jun Sun X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: an old FPU context corruption problem when signal happens Content-Type: multipart/mixed; boundary="------------2D908E10DCEF328FE6FC7F90" Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This is a multi-part message in MIME format. --------------2D908E10DCEF328FE6FC7F90 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This is an incomplete patch, attempting to fix an old fix FPU context corruption problem with signal happens. The following scenario would cause many problems with current code: 1. process A runs and uses FPU 2. Process A is switched out; Process B runs and uses FPU 3. Process A runs again, but have not used FPU this time around 4. Process A receives a signal. 5. Process A's signal handler runs and uses FPU 6. Process B runs again and uses FPU. At step 4, we have last_task_used_fpu being B, current->used_math being 1. The current code would save B's FPU context to A's sc structure, but does not mark owned_fp bits. At step 5, when A's sig handler first time uses FPU, FPU is enabled again. At step 6, when B tries to use FPU again, a lazy fpu switch happens. The current FPU regs are stored into A's thread strucutre, effectively eraseing previously stored A's FPU context before the sig handler starts. In addition, B finds its FPU reg values totally bogus when they are loaded from B's thread structure, because the FPU regs were saved there. (See step 4). This patch is meant for concept debugging. But it should be easy to complete it: 1. support the two copy_fpu_context function. (note, need to differentiate between CPU_HAS_FPU and !CPU_HAS_FPU cases) 2. perhaps change ->sc_ownedfp to ->sc_used_fpu, which is really what this flag means now. Any comments? Jun --------------2D908E10DCEF328FE6FC7F90 Content-Type: text/plain; charset=us-ascii; name="patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch" This is an incomplete patch, attempting to fix an old fix FPU context corruption problem with signal happens. The following scenario would cause many problems with current code: 1. process A runs and uses FPU 2. Process A is switched out; Process B runs and uses FPU 3. Process A runs again, but have not used FPU this time around 4. Process A receives a signal. 5. Process A's signal handler runs and uses FPU 6. Process B runs again and uses FPU. At step 4, we have last_task_used_fpu being B, current->used_math being 1. The current code would save B's FPU context to A's sc structure, but does not mark owned_fp bits. At step 5, when A's sig handler first time uses FPU, FPU is enabled again. At step 6, when B tries to use FPU again, a lazy fpu switch happens. The current FPU regs are stored into A's thread strucutre, effectively eraseing previously stored A's FPU context before the sig handler starts. In addition, B finds its FPU reg values totally bogus when they are loaded from B's thread structure, because the FPU regs were saved there. (See step 4). This patch is meant for concept debugging. But it should be easy to complete it: 1. support the two copy_fpu_context function. (note, need to differentiate between CPU_HAS_FPU and !CPU_HAS_FPU cases) 2. perhaps change ->sc_ownedfp to ->sc_used_fpu, which is really what this flag means now. Any comments? Jun diff -Nru linux.link/arch/mips/kernel/signal.c.orig linux.link/arch/mips/kernel/signal.c --- linux.link/arch/mips/kernel/signal.c.orig Tue Nov 27 11:03:02 2001 +++ linux.link/arch/mips/kernel/signal.c Wed Dec 19 16:28:08 2001 @@ -222,8 +222,20 @@ err |= __get_user(owned_fp, &sc->sc_ownedfp); if (owned_fp) { - err |= restore_fp_context(sc); - last_task_used_math = current; + if ((last_task_used_match == NULL) || (last_task_used_math == current)) { + /* if nobody owns FPU, or sig handler owns it, + * we just restore FPU regs from sc to hardware */ + err |= restore_fp_context(sc); + last_task_used_math = current; + enable_fpu(); + } else { + /* we copy FPU values from sc to task structure */ + err |= copy_fpu_context_from_sigcontext(current, sc); + disable_fpu(); + } + + /* in either case, we need to set the used flag */ + current->used_math = 1; } return err; @@ -352,13 +364,25 @@ err |= __put_user(regs->cp0_cause, &sc->sc_cause); err |= __put_user(regs->cp0_badvaddr, &sc->sc_badvaddr); - owned_fp = (current == last_task_used_math); - err |= __put_user(owned_fp, &sc->sc_ownedfp); + /* if we ever used FPU, we need to get FPU regs to sc */ + if (current->used_math) { + + if (current == last_task_used_math) { + /* if we own FPU now, just save fpu to sc directly */ + enable_fpu(); + err |= save_fp_context(sc); + } else { + /* otherwise, we need copy fpu regs from current task + * structure to sc structre. + */ + err |= copy_fpu_context_to_sigcontext(current, sc); + } + + /* put remember that we have valid FPU regs in sc */ + err |= __put_user(current->used_math, &sc->sc_ownedfp); - if (current->used_math) { /* fp is active. */ - enable_fpu(); - err |= save_fp_context(sc); - last_task_used_math = NULL; + /* we now pretend we have never used FPU before we start sig + * handler */ regs->cp0_status &= ~ST0_CU1; current->used_math = 0; } --------------2D908E10DCEF328FE6FC7F90-- From owner-linux-mips@oss.sgi.com Thu Dec 20 00:59:46 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBK8xkD23335 for linux-mips-outgoing; Thu, 20 Dec 2001 00:59:46 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBK8xUX23332 for ; Thu, 20 Dec 2001 00:59:30 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id XAA29298; Wed, 19 Dec 2001 23:58:50 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id XAA22582; Wed, 19 Dec 2001 23:58:49 -0800 (PST) Received: from mips.com (copsun17 [192.168.205.27]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fBK7wfA05517; Thu, 20 Dec 2001 08:58:41 +0100 (MET) Message-ID: <3C219A3B.6DA93A75@mips.com> Date: Thu, 20 Dec 2001 08:58:51 +0100 From: Carsten Langgaard X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Jun Sun CC: linux-mips@oss.sgi.com Subject: Re: an old FPU context corruption problem when signal happens References: <3C21390A.FA23978D@mvista.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Are you sure this hasn't been fix in the latest sources (2.4.16) ? I have send a patch to Ralf, which I believe solves a similar problem as you describe below. Ralf have you applied the patch ? /Carsten Jun Sun wrote: > This is an incomplete patch, attempting to fix an old fix FPU context > corruption problem with signal happens. > > The following scenario would cause many problems with current code: > > 1. process A runs and uses FPU > 2. Process A is switched out; Process B runs and uses FPU > 3. Process A runs again, but have not used FPU this time around > 4. Process A receives a signal. > 5. Process A's signal handler runs and uses FPU > 6. Process B runs again and uses FPU. > > At step 4, we have last_task_used_fpu being B, current->used_math being 1. > The current code would save B's FPU context to A's sc structure, but > does not mark owned_fp bits. > > At step 5, when A's sig handler first time uses FPU, FPU is enabled again. > > At step 6, when B tries to use FPU again, a lazy fpu switch happens. The > current FPU regs are stored into A's thread strucutre, effectively eraseing > previously stored A's FPU context before the sig handler starts. > > In addition, B finds its FPU reg values totally bogus when they are loaded > from B's thread structure, because the FPU regs were saved there. (See > step 4). > > This patch is meant for concept debugging. But it should be easy > to complete it: > > 1. support the two copy_fpu_context function. (note, need to differentiate > between CPU_HAS_FPU and !CPU_HAS_FPU cases) > 2. perhaps change ->sc_ownedfp to ->sc_used_fpu, which is really what > this flag means now. > > Any comments? > > Jun > > ------------------------------------------------------------------------ > > This is an incomplete patch, attempting to fix an old fix FPU context > corruption problem with signal happens. > > The following scenario would cause many problems with current code: > > 1. process A runs and uses FPU > 2. Process A is switched out; Process B runs and uses FPU > 3. Process A runs again, but have not used FPU this time around > 4. Process A receives a signal. > 5. Process A's signal handler runs and uses FPU > 6. Process B runs again and uses FPU. > > At step 4, we have last_task_used_fpu being B, current->used_math being 1. > The current code would save B's FPU context to A's sc structure, but > does not mark owned_fp bits. > > At step 5, when A's sig handler first time uses FPU, FPU is enabled again. > > At step 6, when B tries to use FPU again, a lazy fpu switch happens. The > current FPU regs are stored into A's thread strucutre, effectively eraseing > previously stored A's FPU context before the sig handler starts. > > In addition, B finds its FPU reg values totally bogus when they are loaded > from B's thread structure, because the FPU regs were saved there. (See > step 4). > > This patch is meant for concept debugging. But it should be easy > to complete it: > > 1. support the two copy_fpu_context function. (note, need to differentiate > between CPU_HAS_FPU and !CPU_HAS_FPU cases) > 2. perhaps change ->sc_ownedfp to ->sc_used_fpu, which is really what > this flag means now. > > Any comments? > > Jun > > diff -Nru linux.link/arch/mips/kernel/signal.c.orig linux.link/arch/mips/kernel/signal.c > --- linux.link/arch/mips/kernel/signal.c.orig Tue Nov 27 11:03:02 2001 > +++ linux.link/arch/mips/kernel/signal.c Wed Dec 19 16:28:08 2001 > @@ -222,8 +222,20 @@ > > err |= __get_user(owned_fp, &sc->sc_ownedfp); > if (owned_fp) { > - err |= restore_fp_context(sc); > - last_task_used_math = current; > + if ((last_task_used_match == NULL) || (last_task_used_math == current)) { > + /* if nobody owns FPU, or sig handler owns it, > + * we just restore FPU regs from sc to hardware */ > + err |= restore_fp_context(sc); > + last_task_used_math = current; > + enable_fpu(); > + } else { > + /* we copy FPU values from sc to task structure */ > + err |= copy_fpu_context_from_sigcontext(current, sc); > + disable_fpu(); > + } > + > + /* in either case, we need to set the used flag */ > + current->used_math = 1; > } > > return err; > @@ -352,13 +364,25 @@ > err |= __put_user(regs->cp0_cause, &sc->sc_cause); > err |= __put_user(regs->cp0_badvaddr, &sc->sc_badvaddr); > > - owned_fp = (current == last_task_used_math); > - err |= __put_user(owned_fp, &sc->sc_ownedfp); > + /* if we ever used FPU, we need to get FPU regs to sc */ > + if (current->used_math) { > + > + if (current == last_task_used_math) { > + /* if we own FPU now, just save fpu to sc directly */ > + enable_fpu(); > + err |= save_fp_context(sc); > + } else { > + /* otherwise, we need copy fpu regs from current task > + * structure to sc structre. > + */ > + err |= copy_fpu_context_to_sigcontext(current, sc); > + } > + > + /* put remember that we have valid FPU regs in sc */ > + err |= __put_user(current->used_math, &sc->sc_ownedfp); > > - if (current->used_math) { /* fp is active. */ > - enable_fpu(); > - err |= save_fp_context(sc); > - last_task_used_math = NULL; > + /* we now pretend we have never used FPU before we start sig > + * handler */ > regs->cp0_status &= ~ST0_CU1; > current->used_math = 0; > } -- _ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com From owner-linux-mips@oss.sgi.com Thu Dec 20 06:14:23 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBKEENT05184 for linux-mips-outgoing; Thu, 20 Dec 2001 06:14:23 -0800 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBKEE3X05177 for ; Thu, 20 Dec 2001 06:14:08 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id OAA04317; Thu, 20 Dec 2001 14:09:05 +0100 (MET) Date: Thu, 20 Dec 2001 14:09:03 +0100 (MET) From: "Maciej W. Rozycki" To: Geert Uytterhoeven cc: Alan Cox , Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, 19 Dec 2001, Geert Uytterhoeven wrote: > OK, so I can check for < 16 MB in ioremap(), and readb() and friends will > handle it fine. You're not supposed to call ioremap() for real RAM anyway, so > there's no ambiguity. > > But what about request_mem_region() and friends? How can I distinguish between > ISA memory and the first 16 MB of RAM (or ROM, or whatever my board has there)? Well, as I stated in another mail (but in another thread, I think) you may try request_mem_region(virt_to_phys(ioremap(...))), especially as you really want to reserve an area in the CPU's physical address space and not in the bus's one. > Or am I not supposed to let those things show up in /proc/iomem? I think the appearance is not the point here. The point is to prevent a driver from accessing an already occupied area. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Thu Dec 20 06:23:09 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBKEN9v05360 for linux-mips-outgoing; Thu, 20 Dec 2001 06:23:09 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBKEN1X05355 for ; Thu, 20 Dec 2001 06:23:02 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.26]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id OAA19378; Thu, 20 Dec 2001 14:14:29 +0100 (MET) Date: Thu, 20 Dec 2001 14:14:29 +0100 (MET) From: Geert Uytterhoeven To: "Maciej W. Rozycki" cc: Alan Cox , Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 20 Dec 2001, Maciej W. Rozycki wrote: > On Wed, 19 Dec 2001, Geert Uytterhoeven wrote: > > OK, so I can check for < 16 MB in ioremap(), and readb() and friends will > > handle it fine. You're not supposed to call ioremap() for real RAM anyway, so > > there's no ambiguity. > > > > But what about request_mem_region() and friends? How can I distinguish between > > ISA memory and the first 16 MB of RAM (or ROM, or whatever my board has there)? > > Well, as I stated in another mail (but in another thread, I think) you > may try request_mem_region(virt_to_phys(ioremap(...))), especially as you > really want to reserve an area in the CPU's physical address space and not > in the bus's one. So we must update all existing drivers that use ISA memory space anyway. IMHO still better to add isa_request_mem_region() while we're at it, so we can solve this in an arch-specific way. Ia32 can still say #define isa_request_mem_region request_mem_region > > Or am I not supposed to let those things show up in /proc/iomem? > > I think the appearance is not the point here. The point is to prevent a > driver from accessing an already occupied area. Right. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Thu Dec 20 06:44:56 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBKEiuP06232 for linux-mips-outgoing; Thu, 20 Dec 2001 06:44:56 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBKEiiX06224 for ; Thu, 20 Dec 2001 06:44:45 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id OAA05593; Thu, 20 Dec 2001 14:39:56 +0100 (MET) Date: Thu, 20 Dec 2001 14:39:55 +0100 (MET) From: "Maciej W. Rozycki" To: Geert Uytterhoeven cc: Alan Cox , Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 20 Dec 2001, Geert Uytterhoeven wrote: > > Well, as I stated in another mail (but in another thread, I think) you > > may try request_mem_region(virt_to_phys(ioremap(...))), especially as you > > really want to reserve an area in the CPU's physical address space and not > > in the bus's one. > > So we must update all existing drivers that use ISA memory space anyway. Not many of them calls request_mem_region()... Not that it is good. > IMHO still better to add isa_request_mem_region() while we're at it, so we can > solve this in an arch-specific way. Ia32 can still say > > #define isa_request_mem_region request_mem_region And then "_request_mem_region" for every new bus supported??? -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Thu Dec 20 06:47:04 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBKEl4G06796 for linux-mips-outgoing; Thu, 20 Dec 2001 06:47:04 -0800 Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBKEkwX06793 for ; Thu, 20 Dec 2001 06:46:58 -0800 Received: from vervain.sonytel.be (mail.sonytel.be [10.17.0.27]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id OAA21957; Thu, 20 Dec 2001 14:45:53 +0100 (MET) Date: Thu, 20 Dec 2001 14:45:53 +0100 (MET) From: Geert Uytterhoeven To: "Maciej W. Rozycki" cc: Alan Cox , Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 20 Dec 2001, Maciej W. Rozycki wrote: > On Thu, 20 Dec 2001, Geert Uytterhoeven wrote: > > > Well, as I stated in another mail (but in another thread, I think) you > > > may try request_mem_region(virt_to_phys(ioremap(...))), especially as you > > > really want to reserve an area in the CPU's physical address space and not > > > in the bus's one. > > > > So we must update all existing drivers that use ISA memory space anyway. > > Not many of them calls request_mem_region()... Not that it is good. > > > IMHO still better to add isa_request_mem_region() while we're at it, so we can > > solve this in an arch-specific way. Ia32 can still say > > > > #define isa_request_mem_region request_mem_region > > And then "_request_mem_region" for every new bus supported??? Yes, you have _ioremap() anyway, since plain ioremap() is for PCI only. And then struct busops starts looking like an interesting direction... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds From owner-linux-mips@oss.sgi.com Thu Dec 20 07:12:06 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBKFC6P07531 for linux-mips-outgoing; Thu, 20 Dec 2001 07:12:06 -0800 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBKFBtX07527 for ; Thu, 20 Dec 2001 07:11:56 -0800 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id PAA06453; Thu, 20 Dec 2001 15:06:39 +0100 (MET) Date: Thu, 20 Dec 2001 15:06:38 +0100 (MET) From: "Maciej W. Rozycki" To: Geert Uytterhoeven cc: Alan Cox , Jun Sun , jim@jtan.com, Linux/MIPS Development Subject: Re: ISA In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, 20 Dec 2001, Geert Uytterhoeven wrote: > Yes, you have _ioremap() anyway, since plain ioremap() is for PCI only. Indeed. But then ioremap() naming is inconsistent -- pci_ioremap() should be defined and used for PCI and ioremap() should be reserved for mapping devices straightly from the CPU's physical space (think devices plugged into CPU's local memory sockets -- I have one here). > And then struct busops starts looking like an interesting direction... Agreed. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + From owner-linux-mips@oss.sgi.com Thu Dec 20 10:16:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBKIGGw15694 for linux-mips-outgoing; Thu, 20 Dec 2001 10:16:16 -0800 Received: from orion.mvista.com (gateway-1237.mvista.com [12.44.186.158]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBKIGEX15691 for ; Thu, 20 Dec 2001 10:16:14 -0800 Received: (from jsun@localhost) by orion.mvista.com (8.9.3/8.9.3) id JAA08410; Thu, 20 Dec 2001 09:16:01 -0800 Date: Thu, 20 Dec 2001 09:16:01 -0800 From: Jun Sun To: Carsten Langgaard Cc: linux-mips@oss.sgi.com Subject: Re: an old FPU context corruption problem when signal happens Message-ID: <20011220091601.A8386@mvista.com> References: <3C21390A.FA23978D@mvista.com> <3C219A3B.6DA93A75@mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C219A3B.6DA93A75@mips.com>; from carstenl@mips.com on Thu, Dec 20, 2001 at 08:58:51AM +0100 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 20, 2001 at 08:58:51AM +0100, Carsten Langgaard wrote: > Are you sure this hasn't been fix in the latest sources (2.4.16) ? > I have send a patch to Ralf, which I believe solves a similar problem as you describe below. > > Ralf have you applied the patch ? > Apparently not. My patch is against the latest 2.4.16 tree, which should also applies to 2.5 tree. BTW, does my fix look reasonable? What is your fix? There are several places which are tricky. Jun From owner-linux-mips@oss.sgi.com Fri Dec 21 09:04:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBLH4rw10954 for linux-mips-outgoing; Fri, 21 Dec 2001 09:04:53 -0800 Received: from the-village.bc.nu (lightning.swansea.linux.org.uk [194.168.151.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBLH4oX10951 for ; Fri, 21 Dec 2001 09:04:50 -0800 Received: from alan by the-village.bc.nu with local (Exim 3.22 #1) id 16HSHp-0000ay-00; Fri, 21 Dec 2001 16:12:41 +0000 Subject: Re: ISA To: Geert.Uytterhoeven@sonycom.com (Geert Uytterhoeven) Date: Fri, 21 Dec 2001 16:12:40 +0000 (GMT) Cc: alan@lxorguk.ukuu.org.uk (Alan Cox), macro@ds2.pg.gda.pl (Maciej W. Rozycki), jsun@mvista.com (Jun Sun), jim@jtan.com, linux-mips@oss.sgi.com (Linux/MIPS Development) In-Reply-To: from "Geert Uytterhoeven" at Dec 19, 2001 03:06:32 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > But what about request_mem_region() and friends? How can I distinguish between > ISA memory and the first 16 MB of RAM (or ROM, or whatever my board has there)? > > Or am I not supposed to let those things show up in /proc/iomem? Interesting - I'd not considered that. Is ISA and non ISA space seperate on MIPS or is it all rather ambiguous ? From owner-linux-mips@oss.sgi.com Fri Dec 21 11:45:25 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBLJjP523236 for linux-mips-outgoing; Fri, 21 Dec 2001 11:45:25 -0800 Received: from neurosis.mit.edu (NEUROSIS.MIT.EDU [18.243.0.82]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBLJjLX23233 for ; Fri, 21 Dec 2001 11:45:21 -0800 Received: (from jim@localhost) by neurosis.mit.edu (8.11.4/8.11.4) id fBLIiqr21627; Fri, 21 Dec 2001 13:44:52 -0500 Date: Fri, 21 Dec 2001 13:44:52 -0500 From: Jim Paris To: Alan Cox Cc: Geert Uytterhoeven , "Maciej W. Rozycki" , Jun Sun , Linux/MIPS Development Subject: Re: ISA Message-ID: <20011221134452.A21586@neurosis.mit.edu> Reply-To: jim@jtan.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from alan@lxorguk.ukuu.org.uk on Fri, Dec 21, 2001 at 04:12:40PM +0000 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk > Interesting - I'd not considered that. Is ISA and non ISA space seperate on > MIPS or is it all rather ambiguous ? On my particular machine, system RAM is at 0x00000000, and ISA I/O memory is at 0x10000000. The driver I'm currently trying to work with calls check_mem_region with ISA addresses, which of course breaks when ISA memory isn't at zero. One suggestion was to patch the driver to use something like check_mem_region(virt_to_phys(ioremap(ISA_address)), ...) which might be the best way for now? I think a more generic way to abstract away a bus (and support multiple types and numbers of I/O busses) is really necessary though. Some way to register a bus with the kernel, and bind particular busses to particular instances of drivers, or something. -jim From owner-linux-mips@oss.sgi.com Sat Dec 22 13:47:15 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBMLlFi11965 for linux-mips-outgoing; Sat, 22 Dec 2001 13:47:15 -0800 Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBMLl9X11962 for ; Sat, 22 Dec 2001 13:47:10 -0800 Received: by noose.gt.owl.de (Postfix, from userid 10) id 54EE983C; Sat, 22 Dec 2001 21:46:56 +0100 (CET) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A22C945DF; Fri, 21 Dec 2001 00:23:07 +0100 (CET) Date: Fri, 21 Dec 2001 00:23:07 +0100 From: Florian Lohoff To: linux-mips@oss.sgi.com Subject: sgiseeq.c Message-ID: <20011220232307.GA22055@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline User-Agent: Mutt/1.3.24i Organization: rfc822 - pure communication Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, did anyone have a look at the sgiseeq.c driver ? It seems it is very suboptimal to what the hardware is capable to do. From just a quick glance we are copying the packets payload from the skb to KSEG1 preallocated tx-rings and then run the dma instead of just dmaing from the skbuff we just got handed (After a dma_cache_wback_inv for the skbuf).=20 On receive we basically do the same the other way round. We copy the packets from KSEG1 to the "final" skb.=20 =46rom my perspective this is ok when you only have "cache_flush_all"=20 but with the finer granularity of dma_cache_wback_inv or dma_cache_inv we would be more happy to just dma from the skbuff shouldnt we ? Flo --=20 Florian Lohoff flo@rfc822.org +49-5201-669912 Nine nineth on september the 9th Welcome to the new billenium --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8InLbUaz2rXW+gJcRAu8AAKCTkqxSga2nJyslnxMppEaCDRufJACg57iu Sq+4lykpbzHIn0NULWK6KfE= =JfmE -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- From owner-linux-mips@oss.sgi.com Sat Dec 22 14:03:05 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBMM35C12202 for linux-mips-outgoing; Sat, 22 Dec 2001 14:03:05 -0800 Received: from laposte.enst-bretagne.fr (laposte.enst-bretagne.fr [192.108.115.3]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBMM2YX12197 for ; Sat, 22 Dec 2001 14:02:34 -0800 Received: from resel.enst-bretagne.fr (user54732@maisel-gw.enst-bretagne.fr [192.44.76.8]) by laposte.enst-bretagne.fr (8.11.6/8.11.6) with ESMTP id fBML2Pb32355 for ; Sat, 22 Dec 2001 22:02:25 +0100 Received: from melkor (mail@melkor.maisel.enst-bretagne.fr [172.16.20.65]) by resel.enst-bretagne.fr (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id TAA05996 for ; Sat, 22 Dec 2001 19:28:44 +0100 X-Authentication-Warning: maisel-gw.enst-bretagne.fr: Host mail@melkor.maisel.enst-bretagne.fr [172.16.20.65] claimed to be melkor Received: from glaurung (helo=localhost) by melkor with local-esmtp (Exim 3.33 #1 (Debian)) id 16Hqt2-0003RT-00 for ; Sat, 22 Dec 2001 19:28:44 +0100 Date: Sat, 22 Dec 2001 19:28:44 +0100 (CET) From: Vivien Chappelier X-Sender: glaurung@melkor To: linux-mips@oss.sgi.com Subject: weekly O2 patches ;) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/Mixed; BOUNDARY="279724308-1032723944-1009039188=:12671" Content-ID: X-Virus-Scanned: by amavisd-milter (http://amavis.org/) at enst-bretagne.fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --279724308-1032723944-1009039188=:12671 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: ---------- Forwarded message ---------- Date: Sat, 22 Dec 2001 17:39:48 +0100 (CET) From: Vivien Chappelier To: Ralf Baechle Cc: ilya@theIlya.com, mips-linux@oss.sgi.com Subject: weekly O2 patches ;) Hi! Here are two patches, a general one to get ip32 and probably ip27 booting with the new 2.5.1 kernel, the other one for ip32 level 1 cache. The first one fixes a call to NULL upon initialization of the timer. The second one fixes a couple of things: - the second level cache was not enabled (just checked if present or not) resulting in incorrect cache size detection and incorrect cache flushing functions. This is fixed (i.e. size is ok now), but secondary cache is disabled as it still didn't work with it (i.e. functions are for l1 cache flushing, sprobe_cache returns no second cache) - on pci_unmap_single, pci_unmap_sg, cache was not flushed, this resulted in content of DMAd memory not being seen by the CPU when reading DMA buffers from device. - with 2.5.1, some calls to pci_map_sg/pci_unmap_sg use pages instead of adresses. This was not supported (by both ip27 and ip32) - the aic7xxx SCSI controller didn't use DMA for reading disk info, the flag unchecked_isa_dma was set to one to force using DMAable memory for this. Note that I'm still using the IP22 PAGE_OFFSET, and this works well, as the firmware is 32bit and loads the kernel at that address, this leaves 512Mb of addressable memory, I think we should leave PAGE_OFFSET to this value for now. If we need to address more memory, we'll have to write some code to remap the kernel elsewhere (maybe something like when setting CONFIG_MAPPED_KERNEL on IP27?). The problem still happens in reserve_bootmem, even with kernel 2.5.1 where code seems to have changed a lot there: when using 0x98000.. PAGE_OFFSET, the bootmem code sees no available memory. There are still bugs with IP32, both running cache or uncached that these patches don't fix (especially when doing cat /dev/sda > /dev/null or trying to boot nfsroot). Finally, when fixing ip32 for 2.5.1 (i.e. cacheing with pages and timer setup) I've tried to apply the same changes for the ip27 but I could not test them of course.. so please do :) regards, Vivien. --279724308-1032723944-1009039188=:12671 Content-Type: TEXT/PLAIN; NAME="linux-O2-l1cache.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="lin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NjQvc2NhdHRlcmxpc3QuaAlGcmkgRGVjIDIxIDExOjA5 OjQwIDIwMDENCkBAIC03LDcgKzcsNyBAQA0KIAl1bnNpZ25lZCBpbnQgb2Zm c2V0Ow0KIAl1bnNpZ25lZCBpbnQgbGVuZ3RoOw0KIA0KLQlfX3UzMiBkdm1h X2FkZHJlc3M7DQorCWRtYV9hZGRyX3QgZHZtYV9hZGRyZXNzOw0KIH07DQog DQogc3RydWN0IG1tdV9zZ2xpc3Qgew0K --279724308-1032723944-1009039188=:12671 Content-Type: TEXT/PLAIN; NAME="linux-mips-timer.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: ATTACHMENT; FILENAME="linux-mips-timer.diff" ZGlmZiAtTmF1ciBsaW51eC9hcmNoL21pcHM2NC9rZXJuZWwvdGltZS5jIGxp bnV4LnBhdGNoL2FyY2gvbWlwczY0L2tlcm5lbC90aW1lLmMNCi0tLSBsaW51 eC9hcmNoL21pcHM2NC9rZXJuZWwvdGltZS5jCVdlZCBEZWMgMTkgMDE6MDM6 MDMgMjAwMQ0KKysrIGxpbnV4LnBhdGNoL2FyY2gvbWlwczY0L2tlcm5lbC90 aW1lLmMJVGh1IERlYyAyMCAyMTozNzowMiAyMDAxDQpAQCAtNDU3LDcgKzQ1 Nyw4IEBADQogCSAqIHRvIGJlIE5VTEwgZnVuY3Rpb24gc28gdGhhdCB3ZSBh cmUgc3VyZSB0aGUgaGlnaC1sZXZlbCBjb2RlDQogCSAqIGlzIG5vdCBpbnZv a2VkIGFjY2lkZW50YWxseS4NCiAJICovDQotCWJvYXJkX3RpbWVyX3NldHVw KCZ0aW1lcl9pcnFhY3Rpb24pOw0KKwlpZihib2FyZF90aW1lcl9zZXR1cCkN CisJICBib2FyZF90aW1lcl9zZXR1cCgmdGltZXJfaXJxYWN0aW9uKTsNCiB9 DQogDQogI2RlZmluZSBGRUJSVUFSWQkJMg0KZGlmZiAtTmF1ciBsaW51eC9h cmNoL21pcHM2NC9zZ2ktaXAyNy9pcDI3LXNldHVwLmMgbGludXgucGF0Y2gv YXJjaC9taXBzNjQvc2dpLWlwMjcvaXAyNy1zZXR1cC5jDQotLS0gbGludXgv YXJjaC9taXBzNjQvc2dpLWlwMjcvaXAyNy1zZXR1cC5jCVRodSBEZWMgMjAg MTg6MzA6MjAgMjAwMQ0KKysrIGxpbnV4LnBhdGNoL2FyY2gvbWlwczY0L3Nn aS1pcDI3L2lwMjctc2V0dXAuYwlUaHUgRGVjIDIwIDIxOjM3OjQ5IDIwMDEN CkBAIC0zMTEsNCArMzExLDUgQEANCiANCiAJbWlwc19pb19wb3J0X2Jhc2Ug PSBJT19CQVNFOw0KIAlib2FyZF90aW1lX2luaXQgPSBpcDI3X3RpbWVfaW5p dDsNCisJYm9hcmRfdGltZXJfc2V0dXAgPSBOVUxMOw0KIH0NCmRpZmYgLU5h dXIgbGludXgvYXJjaC9taXBzNjQvc2dpLWlwMzIvaXAzMi1zZXR1cC5jIGxp bnV4LnBhdGNoL2FyY2gvbWlwczY0L3NnaS1pcDMyL2lwMzItc2V0dXAuYw0K LS0tIGxpbnV4L2FyY2gvbWlwczY0L3NnaS1pcDMyL2lwMzItc2V0dXAuYwlU aHUgRGVjIDIwIDE4OjMwOjIwIDIwMDENCisrKyBsaW51eC5wYXRjaC9hcmNo L21pcHM2NC9zZ2ktaXAzMi9pcDMyLXNldHVwLmMJVGh1IERlYyAyMCAyMToz Nzo1OSAyMDAxDQpAQCAtOTEsNiArOTEsNyBAQA0KIA0KIAlydGNfb3BzID0g JmlwMzJfcnRjX29wczsNCiAJYm9hcmRfdGltZV9pbml0ID0gaXAzMl90aW1l X2luaXQ7DQorCWJvYXJkX3RpbWVyX3NldHVwID0gTlVMTDsNCiANCiAJY3Jp bWVfaW5pdCAoKTsNCiB9DQo= --279724308-1032723944-1009039188=:12671-- From owner-linux-mips@oss.sgi.com Wed Dec 26 13:43:39 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBQLhdk26371 for linux-mips-outgoing; Wed, 26 Dec 2001 13:43:39 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBQLhYX26360 for ; Wed, 26 Dec 2001 13:43:34 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBP6pY317026; Tue, 25 Dec 2001 04:51:34 -0200 Date: Tue, 25 Dec 2001 04:51:34 -0200 From: Ralf Baechle To: Carsten Langgaard Cc: linux-mips@oss.sgi.com Subject: Re: an old FPU context corruption problem when signal happens Message-ID: <20011225045134.A17007@dea.linux-mips.net> References: <3C21390A.FA23978D@mvista.com> <3C219A3B.6DA93A75@mips.com> <20011225044125.A16759@dea.linux-mips.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011225044125.A16759@dea.linux-mips.net>; from ralf@oss.sgi.com on Tue, Dec 25, 2001 at 04:41:25AM -0200 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Tue, Dec 25, 2001 at 04:41:25AM -0200, Ralf Baechle wrote: > > Are you sure this hasn't been fix in the latest sources (2.4.16) ? > > I have send a patch to Ralf, which I believe solves a similar problem as > > you describe below. > > > > Ralf have you applied the patch ? > > Well, I applied it but it's really broken as something can be. Just an > example: > > + /* > + * FPU emulator may have it's own trampoline active just > + * above the user stack, 16-bytes before the next lowest > + * 16 byte boundary. Try to avoid trashing it. > + */ > + sp -= 32; > > So the whole thing needs some overhaul. Btw, the whole fp trampoline thing will have to die anyway. Virtually indexed i-caches on some new types of SMP are making them even more expensive then they already are. Ralf From owner-linux-mips@oss.sgi.com Wed Dec 26 13:44:33 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBQLiXt26503 for linux-mips-outgoing; Wed, 26 Dec 2001 13:44:33 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBQLiTX26496 for ; Wed, 26 Dec 2001 13:44:30 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBP3f3x16237; Tue, 25 Dec 2001 01:41:03 -0200 Date: Tue, 25 Dec 2001 01:41:03 -0200 From: Ralf Baechle To: Atsushi Nemoto Cc: linux-mips@oss.sgi.com Subject: Re: a small patch for latest (2.4.15+) unaligned.c Message-ID: <20011225014103.B1296@dea.linux-mips.net> References: <20011205.171232.115909036.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011205.171232.115909036.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Wed, Dec 05, 2001 at 05:12:32PM +0900 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, Dec 05, 2001 at 05:12:32PM +0900, Atsushi Nemoto wrote: > The latest arch/mips/kernel/unaligned.c loses some jump instructions > in .fixup section. Here is a patch to fix it. This patch is created > with linux_2_4 branch but can be applied to MAIN trunk also. It took a while but I applied it. Thanks, Ralf From owner-linux-mips@oss.sgi.com Wed Dec 26 13:42:29 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBQLgTE26226 for linux-mips-outgoing; Wed, 26 Dec 2001 13:42:29 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBQLgMX26223 for ; Wed, 26 Dec 2001 13:42:22 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBQ3WOe00764; Wed, 26 Dec 2001 01:32:24 -0200 Date: Wed, 26 Dec 2001 01:32:21 -0200 From: Ralf Baechle To: Atsushi Nemoto Cc: dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? Message-ID: <20011226013221.A737@dea.linux-mips.net> References: <013301c165cc$5d030fa0$4a1c690a@huawei.com> <20011106130839.B30219@dea.linux-mips.net> <20011107.103947.74756322.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011107.103947.74756322.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Wed, Nov 07, 2001 at 10:39:47AM +0900 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, Nov 07, 2001 at 10:39:47AM +0900, Atsushi Nemoto wrote: Time to revisit a pile of old problems in my mailfolder ... > >>>>> On Tue, 6 Nov 2001 13:08:39 -0800, Ralf Baechle said: > ralf> Vmalloc is probably innocent I'd rather guess cache flushing is > ralf> broken on your platform. > > In 2.4.5, flush_cache_all() (and flush_tlb_all()) is called in > vmalloc_area_pages(). I think this call protect us from virtual > aliasing problem. > > By the way, does anybody have any problem with vmalloc on recent > kernel? > > In somewhere between 2.4.6 and 2.4.9, the call to flush_cache_all() > disappered from vmalloc_area_pages(). I have a data corruption > problem in vmalloc()ed area without this call. I think we still need > this call. > > --- linux-sgi-cvs/mm/vmalloc.c Tue Sep 18 05:16:31 2001 > +++ linux.new/mm/vmalloc.c Wed Nov 7 10:33:47 2001 > @@ -144,6 +144,7 @@ > int ret; > > dir = pgd_offset_k(address); > + flush_cache_all(); > spin_lock(&init_mm.page_table_lock); > do { > pmd_t *pmd; > @@ -163,6 +164,7 @@ > ret = 0; > } while (address && (address < end)); > spin_unlock(&init_mm.page_table_lock); > + flush_tlb_all(); > return ret; > } Have you ever resolved this problem? I've just doublechecked the vmalloc code and it seems as if it should be entirely safe without these two calls. The tlb is flushed on vfree so no stale entries for a vmalloc address can ever be in the tlb at vmalloc time, so this flush_tlb_all() is just an expensive nop. And the same it true for flush_cache_all() no matter if caches are physically or virtually indexed. Ralf From owner-linux-mips@oss.sgi.com Wed Dec 26 13:42:42 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBQLggM26247 for linux-mips-outgoing; Wed, 26 Dec 2001 13:42:42 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBQLgZX26233 for ; Wed, 26 Dec 2001 13:42:35 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBQKfU701248 for linux-mips@oss.sgi.com; Wed, 26 Dec 2001 18:41:30 -0200 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBMClnA05968; Sat, 22 Dec 2001 10:47:49 -0200 Date: Sat, 22 Dec 2001 10:47:49 -0200 From: Ralf Baechle To: Geert Uytterhoeven Cc: Jim Paris , Linux/MIPS Development Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Message-ID: <20011222104749.J1437@dea.linux-mips.net> References: <20011218135712.B11726@neurosis.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from geert@linux-m68k.org on Wed, Dec 19, 2001 at 10:34:04AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Wed, Dec 19, 2001 at 10:34:04AM +0100, Geert Uytterhoeven wrote: > IMHO you should create isa_{check,request,release}_mem_region(). > > I said it many times before on linux-kernel, but it doesn't help :-( > I'm facing the same problem on PPC, where ISA memory space is not at address 0. Sounds good to me. That would also solve certain problems on machine like the RM200C where we have to cheat a little bit to get things to work. Ralf From owner-linux-mips@oss.sgi.com Wed Dec 26 13:43:32 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBQLhWJ26353 for linux-mips-outgoing; Wed, 26 Dec 2001 13:43:32 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBQLhSX26342 for ; Wed, 26 Dec 2001 13:43:28 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBP6fPR16989; Tue, 25 Dec 2001 04:41:25 -0200 Date: Tue, 25 Dec 2001 04:41:25 -0200 From: Ralf Baechle To: Carsten Langgaard Cc: Jun Sun , linux-mips@oss.sgi.com Subject: Re: an old FPU context corruption problem when signal happens Message-ID: <20011225044125.A16759@dea.linux-mips.net> References: <3C21390A.FA23978D@mvista.com> <3C219A3B.6DA93A75@mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C219A3B.6DA93A75@mips.com>; from carstenl@mips.com on Thu, Dec 20, 2001 at 08:58:51AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 20, 2001 at 08:58:51AM +0100, Carsten Langgaard wrote: > Are you sure this hasn't been fix in the latest sources (2.4.16) ? > I have send a patch to Ralf, which I believe solves a similar problem as > you describe below. > > Ralf have you applied the patch ? Well, I applied it but it's really broken as something can be. Just an example: + /* + * FPU emulator may have it's own trampoline active just + * above the user stack, 16-bytes before the next lowest + * 16 byte boundary. Try to avoid trashing it. + */ + sp -= 32; So the whole thing needs some overhaul. Ralf From owner-linux-mips@oss.sgi.com Wed Dec 26 18:50:46 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBR2oka00663 for linux-mips-outgoing; Wed, 26 Dec 2001 18:50:46 -0800 Received: from topsns.toshiba-tops.co.jp (topsns.toshiba-tops.co.jp [202.230.225.5]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBR2odX00660; Wed, 26 Dec 2001 18:50:40 -0800 Received: from inside-ms1.toshiba-tops.co.jp by topsns.toshiba-tops.co.jp via smtpd (for oss.sgi.com [216.32.174.27]) with SMTP; 27 Dec 2001 01:50:37 UT Received: from srd2sd.toshiba-tops.co.jp (gw-chiba7.toshiba-tops.co.jp [172.17.244.27]) by topsms.toshiba-tops.co.jp (Postfix) with ESMTP id E3815B46D; Thu, 27 Dec 2001 10:50:35 +0900 (JST) Received: by srd2sd.toshiba-tops.co.jp (8.9.3/3.5Wbeta-srd2sd) with ESMTP id KAA15531; Thu, 27 Dec 2001 10:50:35 +0900 (JST) Date: Thu, 27 Dec 2001 10:55:18 +0900 (JST) Message-Id: <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> To: ralf@oss.sgi.com Cc: dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? From: Atsushi Nemoto In-Reply-To: <20011226013221.A737@dea.linux-mips.net> References: <20011106130839.B30219@dea.linux-mips.net> <20011107.103947.74756322.nemoto@toshiba-tops.co.jp> <20011226013221.A737@dea.linux-mips.net> X-Fingerprint: EC 9D B9 17 2E 89 D2 25 CE F5 5D 3D 12 29 2A AD X-Pgp-Public-Key: http://pgp.nic.ad.jp/cgi-bin/pgpsearchkey.pl?op=get&search=0xB6D728B1 Organization: TOSHIBA Personal Computer System Corporation X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk >>>>> On Wed, 26 Dec 2001 01:32:21 -0200, Ralf Baechle said: >> In somewhere between 2.4.6 and 2.4.9, the call to flush_cache_all() >> disappered from vmalloc_area_pages(). I have a data corruption >> problem in vmalloc()ed area without this call. I think we still >> need this call. ralf> Have you ever resolved this problem? I've just doublechecked ralf> the vmalloc code and it seems as if it should be entirely safe ralf> without these two calls. The tlb is flushed on vfree so no ralf> stale entries for a vmalloc address can ever be in the tlb at ralf> vmalloc time, so this flush_tlb_all() is just an expensive nop. ralf> And the same it true for flush_cache_all() no matter if caches ralf> are physically or virtually indexed. I am still using the patch and have not tried without the two calls recently... When I found this problem, I suppose that vmalloc called after free_pages causes the data corruption. vmalloc can re-use pages freed by free_pages and it seems free_pages does not flush cache. If vmalloc is to use a page which is associated with dirty cache and has different "color", virtual aliasing happens and data may be corrupt. Is this wrong? --- Atsushi Nemoto From owner-linux-mips@oss.sgi.com Wed Dec 26 20:32:38 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBR4WcZ02547 for linux-mips-outgoing; Wed, 26 Dec 2001 20:32:38 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBR4WGX02544 for ; Wed, 26 Dec 2001 20:32:20 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBR3CMD19052; Thu, 27 Dec 2001 01:12:22 -0200 Date: Thu, 27 Dec 2001 01:12:22 -0200 From: Ralf Baechle To: Atsushi Nemoto Cc: dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? Message-ID: <20011227011222.A16695@dea.linux-mips.net> References: <20011106130839.B30219@dea.linux-mips.net> <20011107.103947.74756322.nemoto@toshiba-tops.co.jp> <20011226013221.A737@dea.linux-mips.net> <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011227.105518.74756316.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Thu, Dec 27, 2001 at 10:55:18AM +0900 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 27, 2001 at 10:55:18AM +0900, Atsushi Nemoto wrote: > >> In somewhere between 2.4.6 and 2.4.9, the call to flush_cache_all() > >> disappered from vmalloc_area_pages(). I have a data corruption > >> problem in vmalloc()ed area without this call. I think we still > >> need this call. > > ralf> Have you ever resolved this problem? I've just doublechecked > ralf> the vmalloc code and it seems as if it should be entirely safe > ralf> without these two calls. The tlb is flushed on vfree so no > ralf> stale entries for a vmalloc address can ever be in the tlb at > ralf> vmalloc time, so this flush_tlb_all() is just an expensive nop. > ralf> And the same it true for flush_cache_all() no matter if caches > ralf> are physically or virtually indexed. > > I am still using the patch and have not tried without the two calls > recently... > > When I found this problem, I suppose that vmalloc called after > free_pages causes the data corruption. vmalloc can re-use pages freed > by free_pages and it seems free_pages does not flush cache. If > vmalloc is to use a page which is associated with dirty cache and has > different "color", virtual aliasing happens and data may be corrupt. > Is this wrong? Yes, you're right as for the cache. But there is no reason for the TLB flush, right? Ralf From owner-linux-mips@oss.sgi.com Wed Dec 26 20:46:47 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBR4klD02790 for linux-mips-outgoing; Wed, 26 Dec 2001 20:46:47 -0800 Received: from topsns.toshiba-tops.co.jp (topsns.toshiba-tops.co.jp [202.230.225.5]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBR4khX02787; Wed, 26 Dec 2001 20:46:44 -0800 Received: from inside-ms1.toshiba-tops.co.jp by topsns.toshiba-tops.co.jp via smtpd (for oss.sgi.com [216.32.174.27]) with SMTP; 27 Dec 2001 03:46:42 UT Received: from srd2sd.toshiba-tops.co.jp (gw-chiba7.toshiba-tops.co.jp [172.17.244.27]) by topsms.toshiba-tops.co.jp (Postfix) with ESMTP id 60E48B471; Thu, 27 Dec 2001 12:46:40 +0900 (JST) Received: by srd2sd.toshiba-tops.co.jp (8.9.3/3.5Wbeta-srd2sd) with ESMTP id MAA00436; Thu, 27 Dec 2001 12:46:40 +0900 (JST) Date: Thu, 27 Dec 2001 12:51:22 +0900 (JST) Message-Id: <20011227.125122.71082554.nemoto@toshiba-tops.co.jp> To: ralf@oss.sgi.com Cc: dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? From: Atsushi Nemoto In-Reply-To: <20011227011222.A16695@dea.linux-mips.net> References: <20011226013221.A737@dea.linux-mips.net> <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> <20011227011222.A16695@dea.linux-mips.net> X-Fingerprint: EC 9D B9 17 2E 89 D2 25 CE F5 5D 3D 12 29 2A AD X-Pgp-Public-Key: http://pgp.nic.ad.jp/cgi-bin/pgpsearchkey.pl?op=get&search=0xB6D728B1 Organization: TOSHIBA Personal Computer System Corporation X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk >>>>> On Thu, 27 Dec 2001 01:12:22 -0200, Ralf Baechle said: ralf> Yes, you're right as for the cache. But there is no reason for ralf> the TLB flush, right? Yes, I agree. --- Atsushi Nemoto From owner-linux-mips@oss.sgi.com Wed Dec 26 21:31:10 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBR5VAe03837 for linux-mips-outgoing; Wed, 26 Dec 2001 21:31:10 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBR5UwX03831 for ; Wed, 26 Dec 2001 21:31:01 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBR4Tab19425; Thu, 27 Dec 2001 02:29:36 -0200 Date: Thu, 27 Dec 2001 02:29:36 -0200 From: Ralf Baechle To: Atsushi Nemoto Cc: dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? Message-ID: <20011227022936.A19397@dea.linux-mips.net> References: <20011226013221.A737@dea.linux-mips.net> <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> <20011227011222.A16695@dea.linux-mips.net> <20011227.125122.71082554.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011227.125122.71082554.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Thu, Dec 27, 2001 at 12:51:22PM +0900 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 27, 2001 at 12:51:22PM +0900, Atsushi Nemoto wrote: > >>>>> On Thu, 27 Dec 2001 01:12:22 -0200, Ralf Baechle said: > ralf> Yes, you're right as for the cache. But there is no reason for > ralf> the TLB flush, right? > > Yes, I agree. Ok, I'll make a patch for Marcelo. Being in Brazil right now is useful, I can beat him into accepting it ;-) Ralf From owner-linux-mips@oss.sgi.com Thu Dec 27 03:08:50 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBRB8o909479 for linux-mips-outgoing; Thu, 27 Dec 2001 03:08:50 -0800 Received: from straylight.cyberhqz.com (root@h24-83-212-254.sbm.shawcable.net [24.83.212.254]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBRB8kX09476 for ; Thu, 27 Dec 2001 03:08:46 -0800 Received: (from rmurray@localhost) by straylight.cyberhqz.com (8.9.3/8.9.3/Debian 8.9.3-21) id CAA13967 for linux-mips@oss.sgi.com; Thu, 27 Dec 2001 02:08:44 -0800 Date: Thu, 27 Dec 2001 02:08:44 -0800 From: Ryan Murray To: linux-mips@oss.sgi.com Subject: config.guess changs Message-ID: <20011227020844.U29645@cyberhqz.com> Mail-Followup-To: linux-mips@oss.sgi.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8jNwmpfkpox/fiJK" Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --8jNwmpfkpox/fiJK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The config.guess rework of 12/12/2001 doesn't work on big endian machines, as the preprocessor defines "mips" to be " 1", so the cpp -E output ends up being "CPU=3D 1". --=20 Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org) The opinions expressed here are my own. --8jNwmpfkpox/fiJK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8KvMrN2Dbz/1mRasRAl76AKCC6x6vox77iELnlC8ABUxkQ5gOZACglOkM +usrqAxSCXR2T2NLn5PGbsg= =zYV6 -----END PGP SIGNATURE----- --8jNwmpfkpox/fiJK-- From owner-linux-mips@oss.sgi.com Thu Dec 27 03:53:17 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBRBrHF10213 for linux-mips-outgoing; Thu, 27 Dec 2001 03:53:17 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBRBrAX10208; Thu, 27 Dec 2001 03:53:11 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id CAA16016; Thu, 27 Dec 2001 02:53:01 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id CAA16345; Thu, 27 Dec 2001 02:53:00 -0800 (PST) Received: from mips.com (copsun17 [192.168.205.27]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fBRAqmA22869; Thu, 27 Dec 2001 11:52:48 +0100 (MET) Message-ID: <3C2AFD8C.6BAA7F1@mips.com> Date: Thu, 27 Dec 2001 11:53:00 +0100 From: Carsten Langgaard X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ralf Baechle CC: Jun Sun , linux-mips@oss.sgi.com Subject: Re: an old FPU context corruption problem when signal happens References: <3C21390A.FA23978D@mvista.com> <3C219A3B.6DA93A75@mips.com> <20011225044125.A16759@dea.linux-mips.net> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf Baechle wrote: > On Thu, Dec 20, 2001 at 08:58:51AM +0100, Carsten Langgaard wrote: > > > Are you sure this hasn't been fix in the latest sources (2.4.16) ? > > I have send a patch to Ralf, which I believe solves a similar problem as > > you describe below. > > > > Ralf have you applied the patch ? > > Well, I applied it but it's really broken as something can be. Just an > example: > > + /* > + * FPU emulator may have it's own trampoline active just > + * above the user stack, 16-bytes before the next lowest > + * 16 byte boundary. Try to avoid trashing it. > + */ > + sp -= 32; > > So the whole thing needs some overhaul. > You are welcome to find a better way of handling a non-fpu instruction in the delay slot of the fpu-branch instruction. But until someone find a better solution (that works, in all situation), I think we need this patch. > Ralf -- _ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com From owner-linux-mips@oss.sgi.com Thu Dec 27 04:06:21 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBRC6Lv10785 for linux-mips-outgoing; Thu, 27 Dec 2001 04:06:21 -0800 Received: from mx.mips.com (mx.mips.com [206.31.31.226]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBRC6GX10782 for ; Thu, 27 Dec 2001 04:06:16 -0800 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id DAA16118 for ; Thu, 27 Dec 2001 03:06:08 -0800 (PST) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id DAA16511 for ; Thu, 27 Dec 2001 03:06:07 -0800 (PST) Received: from mips.com (copsun17 [192.168.205.27]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id fBRB5tA23330 for ; Thu, 27 Dec 2001 12:05:55 +0100 (MET) Message-ID: <3C2B0093.3AFC80A9@mips.com> Date: Thu, 27 Dec 2001 12:05:55 +0100 From: Carsten Langgaard X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: linux-mips@oss.sgi.com Subject: Signals Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Why is the signals definition (in include/asm-mips/signal.h) for MIPS different from everybody else ? For example: #define SIGBUS 10 (MIPS) #define SIGBUS 7 (I386) #define SIGSTKFLT 16 (I386, doesn't exist on MIPS) Is there any reason for this ? /Carsten -- _ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com |\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527 | \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555 TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556 Denmark http://www.mips.com From owner-linux-mips@oss.sgi.com Thu Dec 27 09:01:03 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBRH13i25431 for linux-mips-outgoing; Thu, 27 Dec 2001 09:01:03 -0800 Received: from firewall.i-data.com (firewall.i-data.com [195.24.22.194]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBRH0xX25417 for ; Thu, 27 Dec 2001 09:00:59 -0800 Received: (qmail 5545 invoked from network); 27 Dec 2001 16:00:55 -0000 Received: from idahub2000.i-data.com (HELO idanshub.i-data.com) (172.16.1.8) by firewall.i-data.com with SMTP; 27 Dec 2001 16:00:55 -0000 Received: from eicon.com ([172.16.2.227]) by idanshub.i-data.com (Lotus Domino Release 5.0.8) with ESMTP id 2001122717005390:44752 ; Thu, 27 Dec 2001 17:00:53 +0100 Message-ID: <3C2B45D3.B938CA44@eicon.com> Date: Thu, 27 Dec 2001 17:01:23 +0100 From: "Tommy S. Christensen" X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17-14 i686) X-Accept-Language: en MIME-Version: 1.0 To: Ralf Baechle CC: Atsushi Nemoto , dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? References: <20011226013221.A737@dea.linux-mips.net> <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> <20011227011222.A16695@dea.linux-mips.net> <20011227.125122.71082554.nemoto@toshiba-tops.co.jp> <20011227022936.A19397@dea.linux-mips.net> X-MIMETrack: Itemize by SMTP Server on idaHUB2000/INT(Release 5.0.8 |June 18, 2001) at 27-12-2001 17:00:54, Serialize by Router on idaHUB2000/INT(Release 5.0.8 |June 18, 2001) at 27-12-2001 17:00:55, Serialize complete at 27-12-2001 17:00:55 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Ralf Baechle wrote: > > On Thu, Dec 27, 2001 at 12:51:22PM +0900, Atsushi Nemoto wrote: > > > >>>>> On Thu, 27 Dec 2001 01:12:22 -0200, Ralf Baechle said: > > ralf> Yes, you're right as for the cache. But there is no reason for > > ralf> the TLB flush, right? > > > > Yes, I agree. > > Ok, I'll make a patch for Marcelo. Being in Brazil right now is useful, > I can beat him into accepting it ;-) > > Ralf Great! But please make sure that the cache is flushed after the pages are allocated instead of before. With 2.4.9 that still had the cache-flushing in vmalloc_area_pages(), I got cache aliasing problems in low memory situations (since alloc_page() will re-schedule when no pages are available). -Tommy From owner-linux-mips@oss.sgi.com Thu Dec 27 10:53:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBRIrCL27115 for linux-mips-outgoing; Thu, 27 Dec 2001 10:53:12 -0800 Received: from ocean.lucon.org (12-234-19-19.client.attbi.com [12.234.19.19]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBRIr9X27112 for ; Thu, 27 Dec 2001 10:53:09 -0800 Received: by ocean.lucon.org (Postfix, from userid 1000) id 52C57125C3; Thu, 27 Dec 2001 09:53:06 -0800 (PST) Date: Thu, 27 Dec 2001 09:53:06 -0800 From: "H . J . Lu" To: Ryan Murray Cc: linux-mips@oss.sgi.com, config-patches@gnu.org Subject: Re: config.guess changs Message-ID: <20011227095306.A16072@lucon.org> References: <20011227020844.U29645@cyberhqz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011227020844.U29645@cyberhqz.com>; from rmurray@debian.org on Thu, Dec 27, 2001 at 02:08:44AM -0800 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fBRIr9X27113 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 27, 2001 at 02:08:44AM -0800, Ryan Murray wrote: > The config.guess rework of 12/12/2001 doesn't work on big endian machines, > as the preprocessor defines "mips" to be " 1", so the cpp -E output ends > up being "CPU= 1". > Try this patch. H.J. ---- 2001-12-27 H.J. Lu * config.guess (mips:Linux:*:*): Undefine CPU, mips and mipsel first. --- config.guess Wed Dec 12 19:53:12 2001 +++ config.guess Thu Dec 27 09:51:18 2001 @@ -770,6 +770,9 @@ EOF mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else From owner-linux-mips@oss.sgi.com Fri Dec 28 14:23:53 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBSMNrU10874 for linux-mips-outgoing; Fri, 28 Dec 2001 14:23:53 -0800 Received: from gans.physik3.uni-rostock.de (gans.physik3.uni-rostock.de [139.30.44.2]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBSMNkg10871 for ; Fri, 28 Dec 2001 14:23:47 -0800 Received: (from tim@localhost) by gans.physik3.uni-rostock.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) id fBSLNg203506; Fri, 28 Dec 2001 22:23:42 +0100 Date: Fri, 28 Dec 2001 22:23:42 +0100 From: Tim Schmielau Message-Id: <200112282123.fBSLNg203506@gans.physik3.uni-rostock.de> To: ralf@gnu.org Subject: [patch] fix compares of jiffies Cc: linux-mips@oss.sgi.com, tim@physik3.uni-rostock.de Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Dear Linux kernel code maintainer, some weeks ago in the course of a discussion on lkml (see http://www.uwsg.indiana.edu/hypermail/linux/kernel/0110.3/1553.html and follow-ups) linux kernels of the 2.4 series turned out to sometime lock up after 497.1 days of uptime, when the "jiffies" variable wraps back to zero. Checking the kernel code, I found a number of places where jiffies were compared in a way that seems to break when they wrap. For these, I made up patches to use the macros "time_before()" or "time_after()" that are supposed to handle wraparound correctly. For a small part of the patches, I believe you to be the relevant kernel code maintainer. Appended to this email you will find some lines explaining why I decided to mail or cc: you on this (an extract of the copyright notice or the MAINTAINERS file), followed by the patch itself. If I mailed you in error, please drop me a short note. I kindly ask you to approve the correctness of the patch, and pass it on to the relevant people for inclusion into the mainline kernel. Thanks, Tim Schmielau (tim@physik3.uni-rostock.de) MIPS P: Ralf Baechle M: ralf@gnu.org W: http://oss.sgi.com/mips/mips-howto.html L: linux-mips@oss.sgi.com S: Maintained --- linux-2.4.18-pre1/arch/mips/baget/vacserial.c Sun Sep 9 19:43:01 2001 +++ linux-2.4.18-pre1-jiffies64/arch/mips/baget/vacserial.c Fri Dec 28 14:57:14 2001 @@ -1785,7 +1785,7 @@ schedule_timeout(char_time); if (signal_pending(current)) break; - if (timeout && ((orig_jiffies + timeout) < jiffies)) + if (timeout && time_after(jiffies, orig_jiffies + timeout)) break; } current->state = TASK_RUNNING; From owner-linux-mips@oss.sgi.com Sat Dec 29 19:16:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBU3GMZ03511 for linux-mips-outgoing; Sat, 29 Dec 2001 19:16:22 -0800 Received: from apollo.bingo-ev.de (mail@apollo.bingo-ev.de [213.70.214.67]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBU3GFg03508 for ; Sat, 29 Dec 2001 19:16:15 -0800 Received: from fake by apollo.bingo-ev.de with local (Exim 3.32 #1 (Debian)) id 16KVX1-0007aM-00 for ; Sun, 30 Dec 2001 03:16:59 +0100 Date: Sun, 30 Dec 2001 03:16:58 +0100 From: fake@bingo-ev.de To: linux-mips@oss.sgi.com Subject: Introduction, errors in devfs and ARC, success: 2.4.16 on R4K I2, oops with 2.5.1 Message-ID: <20011230031658.A28756@apollo.bingo-ev.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi there, as this is my first post, i'd like to introduce myself, although it may be a bit off-topic ;-) My pseudonym is FAKE, i'm from germany and proud owner of an Indigo2 R4k. I just found enough time (thanks, santa) to fire up linux on it. My System is: Indigo2, ~160MB RAM, GR3-XZ Gfx Board, R4400 proc. this is my /dev/cpuinfo: system type : SGI Indigo2 processor : 0 cpu model : R4000SC V5.0 FPU V0.0 BogoMIPS : 74.75 byteorder : big endian wait instruction : no microsecond timers : yes extra interrupt vector : no hardware watchpoint : yes VCED exceptions : 23868 VCEI exceptions : 32852 (the PROM hinv says i have a R4400 and a FPU ... is cpuinfo right?) Anyways, i want to contribute, and so i got the 2.5.1 kernel from oss.sgi.com via cvs and compiled it. it boots, but exactly when the scsi-driver is about to add the disk it oopses and i get the message <1>Unable to handle kernel paging request at virtual address 00000000, epc == 880db32c, ra == 880 db270 Oops in fault.c:do_page_fault, line 204: .... ( insert useless stack trace here, becuz of non-saved system map *dough*) sorry for not saving the System.map >_< i'll check in more deeply if i get oopses in future. then i compiled 2.4.14, it worked, but somehow debian didn't like it, but that's not the kernel's fault. Anyways, now i compiled the 2.4.16 and everything just works fine - except devfs and the ARC console. Devfsd says: Error getting protocol revision Inappropriate ioctl for device and the ARC console (one thing i especially want to get to work) behaves strange: As the kernel starts writing output the PROM console adds black lines to the screen, whilest the data from before the kernel started output (boot linux console=ttyS0... etc) nicely scrolls UP........ what to do? i tried to find information about the PROM on oss.sgi.com and toolbox.sgi.com, but both seem _DAMN_ outdated (the newest "news" are from 2000 or something) so i'm stuck.... i would enjoy helping, but i'm still learning, as i am very new to the mips platform... i have some experiences with linux/the kernel in general on the intel32 platform. well, plz reply, so i can start coding ^-^ greetz & thanx in advance FAKE From owner-linux-mips@oss.sgi.com Sat Dec 29 20:31:13 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBU4VDJ04054 for linux-mips-outgoing; Sat, 29 Dec 2001 20:31:13 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBU4V1g04051 for ; Sat, 29 Dec 2001 20:31:02 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBU3UqW03624; Sun, 30 Dec 2001 01:30:52 -0200 Date: Sun, 30 Dec 2001 01:30:52 -0200 From: Ralf Baechle To: fake@bingo-ev.de Cc: linux-mips@oss.sgi.com Subject: Re: Introduction, errors in devfs and ARC, success: 2.4.16 on R4K I2, oops with 2.5.1 Message-ID: <20011230013052.A2980@dea.linux-mips.net> References: <20011230031658.A28756@apollo.bingo-ev.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011230031658.A28756@apollo.bingo-ev.de>; from fake@bingo-ev.de on Sun, Dec 30, 2001 at 03:16:58AM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sun, Dec 30, 2001 at 03:16:58AM +0100, fake@bingo-ev.de wrote: > as this is my first post, i'd like to introduce myself, although it > may be a bit off-topic ;-) My pseudonym is FAKE, i'm from germany People here tend to have the courage of using their real name ;-) > and proud owner of an Indigo2 R4k. I just found enough time > (thanks, santa) to fire up linux on it. My System is: > > Indigo2, ~160MB RAM, GR3-XZ Gfx Board, R4400 proc. > > this is my /dev/cpuinfo: > system type : SGI Indigo2 > processor : 0 > cpu model : R4000SC V5.0 FPU V0.0 Interesting. Thanks for reporting. > BogoMIPS : 74.75 > byteorder : big endian > wait instruction : no > microsecond timers : yes > extra interrupt vector : no > hardware watchpoint : yes > VCED exceptions : 23868 > VCEI exceptions : 32852 > (the PROM hinv says i have a R4400 and a FPU ... is cpuinfo right?) Yes and no. R4000 and R4400 are basically the same thing aside of the R4400 having less (that is different ;-) bugs, the version number and the R4400 having twice as much cache. In other words the marketing droids were in need of a new CPU type back in time, I guess ;-) > Anyways, i want to contribute, and so i got the 2.5.1 kernel from > oss.sgi.com via cvs and compiled it. it boots, but exactly when the > scsi-driver is about to add the disk it oopses and i get the message > > <1>Unable to handle kernel paging request at virtual address 00000000, epc == 880db32c, ra == 880 > db270 > Oops in fault.c:do_page_fault, line 204: > .... ( insert useless stack trace here, becuz of non-saved system map *dough*) That's almost as expected, unfortunately. 2.5.1 changes blockdevice I/O entirely and our SCSI drivers don't yet reflect that. > sorry for not saving the System.map >_< i'll check in more deeply if i get > oopses in future. An unstripped vmlinux ELF binary has all the information of System.map in it. > then i compiled 2.4.14, it worked, but somehow debian didn't like it, but > that's not the kernel's fault. Anyways, now i compiled the 2.4.16 and > everything just works fine - except devfs and the ARC > console. Devfsd says: > > Error getting protocol revision Inappropriate ioctl for device Which ioctl / device? Most people on MIPS seem to try to get away without devfs so it's heavily untested. This one should be easy to fix though as devfs doesn't have alot of portability problems. > and the ARC console (one thing i especially want to get to work) behaves > strange: As the kernel starts writing output the PROM console adds black > lines to the screen, whilest the data from before the kernel started > output (boot linux console=ttyS0... etc) nicely scrolls UP........ what > to do? i tried to find information about the PROM on oss.sgi.com and > toolbox.sgi.com, but both seem _DAMN_ outdated (the newest "news" are from > 2000 or something) so i'm stuck.... The firmware is not exactly well documented. The closest document is a MS Word document which used to available from (surprise) at http://www.microsoft.com/hwdev/download/respec/riscspec.zip seems it's no longer available. The document is (C) by MIPS, so I hope it's still available somewhere on the net. Anyway, SGI's ARCS implementation violates the ARC specification quite badly so this is just a rough guideline. Yes, we're not the kings of documentation :-) > i would enjoy helping, but i'm still learning, as i am very new to the > mips platform... Welcome to hell. We'll do everything to make this a warm place during your stay ;-) Ralf From owner-linux-mips@oss.sgi.com Sat Dec 29 22:41:02 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBU6f2104793 for linux-mips-outgoing; Sat, 29 Dec 2001 22:41:02 -0800 Received: from localhost.localdomain (h211-235-225-46.rev.krline.net [211.235.225.46]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBU6eXg04789 for ; Sat, 29 Dec 2001 22:40:34 -0800 Received: from pr4796 (pr4796.dazone.co.kr [211.235.225.19] (may be forged)) by localhost.localdomain (8.11.2/8.11.2) with SMTP id fBU4naa22188 for ; Sun, 30 Dec 2001 13:49:37 +0900 MIME-Version: 1.0 Message-Id: <3C2EAFD6.00152@pr4796> Content-Type: Multipart/Mixed; boundary="Boundary-=_YBHNZgeZwudohFYjMfAmhcJRtFKE" Subject: [Ãßõ] ²À °ËÅäÇÏ¿© Áֽʽÿä From: news@workcrew.net Reply-To: news@workcrew.net Date: Sun, 30 Dec 2001 14:40:02 -0800 (Pacific Standard Time) To: linux-mips@oss.sgi.com Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --Boundary-=_YBHNZgeZwudohFYjMfAmhcJRtFKE Content-Type: Text/HTML Content-Transfer-Encoding: base64 PGh0bWw+DQo8aGVhZD4NCjx0aXRsZT5XZWxjb21lIHRvIFdvcmtDcmV3Lm5ldCBQcm9tb3Rpb248 L3RpdGxlPg0KPHN0eWxlIHR5cGU9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L3RleHQvY3NzIj4N Cg0KPCEtLQ0KDQotLT4NCg0KPC9zdHlsZT4NCjxsaW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0i aHR0cDovL3d3dy53b3JrY3Jldy5uZXQvc3R5bGUuY3NzIiB0eXBlPSJ0ZXh0L2NzcyI+DQo8c2Ny aXB0IGxhbmd1YWdlPSJKYXZhU2NyaXB0Ij4NCjwhLS0NCg0KDQo8IS0tDQpmdW5jdGlvbiBNTV9y ZWxvYWRQYWdlKGluaXQpIHsgIC8vcmVsb2FkcyB0aGUgd2luZG93IGlmIE5hdjQ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90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZD4g DQogICAgICAgICAgICAgICAgICAgIDxkaXYgYWxpZ249ImNlbnRlciI+PC9kaXY+DQogICAgICAg ICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNvbHNwYW49IjIiPiANCiAg ICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVyIj48aW1nIHNyYz0iaHR0cDovL3d3 dy53b3JrY3Jldy5uZXQvaW1nL3BhY19pbWcyLmdpZiIgd2lkdGg9IjE2OSIgaGVpZ2h0PSIxMyI+ PC9kaXY+DQogICAgICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGhl aWdodD0iMjAiPiANCiAgICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVyIj48L2Rp dj4NCiAgICAgICAgICAgICAgICAgIDwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQ+IA0KICAg ICAgICAgICAgICAgICAgICA8ZGl2IGFsaWduPSJjZW50ZXIiPjxpbWcgc3JjPSJodHRwOi8vd3d3 LndvcmtjcmV3Lm5ldC9pbWcvcGFjX2ltZzMuZ2lmIiB3aWR0aD0iMTQ4IiBoZWlnaHQ9IjEzIj48 L2Rpdj4NCiAgICAgICAgICAgICAgICAgIDwvdGQ+DQogICAgICAgICAgICAgICAgPC90cj4NCiAg ICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSIzMCI+Jm5i c3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0idGQiPjxpbWcgc3JjPSJodHRw Oi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvbWFpbl9pY29uLmdpZiIgd2lkdGg9IjYiIGhlaWdodD0i MTAiPiANCiAgICAgICAgICAgICAgICAgICAgQ1BVIDo5MzNNSHo8L3RkPg0KICAgICAgICAgICAg ICAgICAgPHRkPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgd2lkdGg9IjMwIj4m bmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSIxMzAiIGNsYXNzPSJ0ZCI+ PGltZyBzcmM9Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9tYWluX2ljb24uZ2lmIiB3aWR0 aD0iNiIgaGVpZ2h0PSIxMCI+IA0KICAgICAgICAgICAgICAgICAgICDApbjewM8gKFNlcnZlciDG 98fUKTwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQ+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAg ICAgICAgIDx0ZD4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAg ICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgIDx0ZCByb3dzcGFuPSIyIj4mbmJzcDs8L3Rk Pg0KICAgICAgICAgICAgICAgICAgPHRkIHdpZHRoPSIxMDAiIGNsYXNzPSJ0ZCI+PGltZyBzcmM9 Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9tYWluX2ljb24uZ2lmIiB3aWR0aD0iNiIgaGVp Z2h0PSIxMCI+IA0KICAgICAgICAgICAgICAgICAgICBNZW1vcnk6MjU2TUIgPC90ZD4NCiAgICAg ICAgICAgICAgICAgIDx0ZCByb3dzcGFuPSIyIj4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAg ICAgPHRkIHJvd3NwYW49IjIiPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgY2xh c3M9InRkIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5n aWYiIHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4gDQogICAgICAgICAgICAgICAgICAgIMDOu+cvvve5 q7D8uK4vJm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCByb3dzcGFuPSIyIj4mbmJz cDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIHJvd3NwYW49IjIiPiZuYnNwOzwvdGQ+DQog ICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAg ICAgICAgPHRkIHdpZHRoPSIxMDAiIGNsYXNzPSJ0ZCI+PGltZyBzcmM9Imh0dHA6Ly93d3cud29y a2NyZXcubmV0L2ltZy9tYWluX2ljb24uZ2lmIiB3aWR0aD0iNiIgaGVpZ2h0PSIxMCI+IA0KICAg ICAgICAgICAgICAgICAgICBIRCA6IDIwR0I8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNs YXNzPSJ0ZCI+Jm5ic3A7Jm5ic3A7v7W+98H2v/ggvcO9usXbPC90ZD4NCiAgICAgICAgICAgICAg ICA8L3RyPg0KICAgICAgICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAgICA8dGQ+Jm5i c3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0idGQiPiZuYnNwOzwvdGQ+DQog ICAgICAgICAgICAgICAgICA8dGQ+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZD4m bmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJ0ZCI+PGltZyBzcmM9Imh0 dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9tYWluX2ljb24uZ2lmIiB3aWR0aD0iNiIgaGVpZ2h0 PSIxMCI+IA0KICAgICAgICAgICAgICAgICAgICDAz8GkL7muvK0vuO2+zyCw/LiuPC90ZD4NCiAg ICAgICAgICAgICAgICAgIDx0ZD4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIHJv d3NwYW49IjUiPiANCiAgICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0iY2VudGVyIj48aW1n IHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nLzM4Ny5naWYiIHdpZHRoPSIxMzIiIGhl aWdodD0iNDYiPjwvZGl2Pg0KICAgICAgICAgICAgICAgICAgPC90ZD4NCiAgICAgICAgICAgICAg ICA8L3RyPg0KICAgICAgICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAgICA8dGQgY29s c3Bhbj0iMiI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZD4mbmJzcDs8L3RkPg0K ICAgICAgICAgICAgICAgICAgPHRkPiZuYnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQg d2lkdGg9IjEzMCIgY2xhc3M9InRkIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQv aW1nL21haW5faWNvbi5naWYiIHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4gDQogICAgICAgICAgICAg ICAgICAgIMD8wNqw4cDnL8PixfCx2bD8uK48L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkPiZu YnNwOzwvdGQ+DQogICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICA8dHI+IA0K ICAgICAgICAgICAgICAgICAgPHRkIGNvbHNwYW49IjIiPiZuYnNwOzwvdGQ+DQogICAgICAgICAg ICAgICAgICA8dGQgcm93c3Bhbj0iMyI+Jm5ic3A7PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0 ZD4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGNsYXNzPSJ0ZCI+PGltZyBzcmM9 Imh0dHA6Ly93d3cud29ya2NyZXcubmV0L2ltZy9tYWluX2ljb24uZ2lmIiB3aWR0aD0iNiIgaGVp Z2h0PSIxMCI+IA0KICAgICAgICAgICAgICAgICAgICDBtsH3tbUvwda80rfPPC90ZD4NCiAgICAg ICAgICAgICAgICAgIDx0ZCByb3dzcGFuPSIzIj4mbmJzcDs8L3RkPg0KICAgICAgICAgICAgICAg IDwvdHI+DQogICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICA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0PSI0MCI+PC90ZD4NCiAgICAgICAgICAgICAgICAgIDx0ZD4m bmJzcDs8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkPiZuYnNwOzwvdGQ+DQogICAgICAgICAg ICAgICAgPC90cj4NCiAgICAgICAgICAgICAgPC90YWJsZT4NCiAgICAgICAgICAgICAgPHRhYmxl IHdpZHRoPSI1ODgiIGJvcmRlcj0iMCIgY2VsbHNwYWNpbmc9IjAiIGNlbGxwYWRkaW5nPSIwIj4N CiAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAgICAgICAgPHRkIGJnY29sb3I9IiNG RkZGRkYiIGNvbHNwYW49IjIiIHZhbGlnbj0iYm90dG9tIj4gDQogICAgICAgICAgICAgICAgICAg IDxkaXYgYWxpZ249InJpZ2h0Ij48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1n L3Nic19pbWcxLmdpZiIgd2lkdGg9IjE0NyIgaGVpZ2h0PSI0NSI+PC9kaXY+DQogICAgICAgICAg ICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgPHRkIGJnY29sb3I9IiNGRkZGRkYiIHdp ZHRoPSIyMTIiIHJvd3NwYW49IjMiPiANCiAgICAgICAgICAgICAgICAgICAgPGRpdiBhbGlnbj0i Y2VudGVyIj4gDQogICAgICAgICAgICAgICAgICAgICAgPHRhYmxlIHdpZHRoPSIyMTIiIGJvcmRl cj0iMCIgY2VsbHNwYWNpbmc9IjAiIGNlbGxwYWRkaW5nPSIwIj4NCiAgICAgICAgICAgICAgICAg ICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBiZ2NvbG9yPSIjRkZG RkZGIiBjb2xzcGFuPSIyIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL3Ni c19pbWcyLmdpZiIgd2lkdGg9IjE4NiIgaGVpZ2h0PSIxOCI+PC90ZD4NCiAgICAgICAgICAgICAg ICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAg ICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgcm93c3Bhbj0iNSIgd2lkdGg9 IjY0Ij48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL3Nic19pbWc0LmdpZiIg d2lkdGg9IjY0IiBoZWlnaHQ9Ijc4Ij48L3RkPg0KICAgICAgICAgICAgICAgICAgICAgICAgICA8 dGQgd2lkdGg9IjEzMCIgY2xhc3M9InRkIiBiZ2NvbG9yPSIjRkZGRkZGIj4mbmJzcDs8L3RkPg0K ICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0 cj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCB3aWR0aD0iMTMwIiBjbGFzcz0idGQi IGJnY29sb3I9IiNGRkZGRkYiPjxpbWcgc3JjPSJodHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcv bWFpbl9pY29uLmdpZiIgd2lkdGg9IjYiIGhlaWdodD0iMTAiPiANCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICB3aW5kb3cgMjAwMCBTZXJ2ZXI8L3RkPg0KICAgICAgICAgICAgICAgICAgICAg ICAgPC90cj4NCiAgICAgICAgICAgICAgICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAg ICAgICAgICAgIDx0ZCBjbGFzcz0idGQiIGJnY29sb3I9IiNGRkZGRkYiPjxpbWcgc3JjPSJodHRw Oi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvbWFpbl9pY29uLmdpZiIgd2lkdGg9IjYiIGhlaWdodD0i MTAiPiANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBFeGNoYW5nZSAyMDAwPC90ZD4NCiAg ICAgICAgICAgICAgICAgICAgICAgIDwvdHI+DQogICAgICAgICAgICAgICAgICAgICAgICA8dHI+ IA0KICAgICAgICAgICAgICAgICAgICAgICAgICA8dGQgY2xhc3M9InRkIiBiZ2NvbG9yPSIjRkZG RkZGIj48aW1nIHNyYz0iaHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL21haW5faWNvbi5naWYi IHdpZHRoPSI2IiBoZWlnaHQ9IjEwIj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgU1FM IDIwMDA8L3RkPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAg ICAgICAgICAgIDx0cj4gDQogICAgICAgICAgICAgICAgICAgICAgICAgIDx0ZCBjbGFzcz0idGQi IGJnY29sb3I9IiNGRkZGRkYiPiANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGFs aWduPSJjZW50ZXIiPjxpbWcgc3JjPSJodHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvbWFpbl9w cm9kdWN0MTQuZ2lmIiB3aWR0aD0iOTEiIGhlaWdodD0iNTMiPjwvZGl2Pg0KICAgICAgICAgICAg ICAgICAgICAgICAgICA8L3RkPg0KICAgICAgICAgICAgICAgICAgICAgICAgPC90cj4NCiAgICAg ICAgICAgICAgICAgICAgICA8L3RhYmxlPg0KICAgICAgICAgICAgICAgICAgICA8L2Rpdj4NCiAg ICAgICAgICAgICAgICAgIDwvdGQ+DQogICAgICAgICAgICAgICAgICA8dGQgcm93c3Bhbj0iMyIg Ymdjb2xvcj0iI0ZGRkZGRiIgd2lkdGg9IjIyMCI+IA0KICAgICAgICAgICAgICAgICAgICA8ZGl2 IGFsaWduPSJjZW50ZXIiPiANCiAgICAgICAgICAgICAgICAgICAgICA8dGFibGUgd2lkdGg9IjIx MiIgYm9yZGVyPSIwIiBjZWxsc3BhY2luZz0iMCIgY2VsbHBhZGRpbmc9IjAiPg0KICAgICAgICAg ICAgICAgICAgICAgICAgPHRyPiANCiAgICAgICAgICAgICAgICAgICAgICAgICAgPHRkPiANCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGFsaWduPSJjZW50ZXIiPjxpbWcgc3JjPSJo dHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvaW5kZXguZ2lmIiB3aWR0aD0iMTk0IiBoZWlnaHQ9 IjIwIiB1c2VtYXA9IiNNYXAiIGJvcmRlcj0iMCI+PC9kaXY+DQogICAgICAgICAgICAgICAgICAg ICAgICAgIDwvdGQ+DQogICAgICAgICAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAg ICAgICAgICAgIDwvdGFibGU+DQogICAgICAgICAgICAgICAgICAgICAgPGEgaHJlZj0iaHR0cDov L3d3dy53b3JrY3Jldy5uZXQiPjxicj4NCiAgICAgICAgICAgICAgICAgICAgICA8aW1nIHNyYz0i aHR0cDovL3d3dy53b3JrY3Jldy5uZXQvaW1nL2luZGV4XzEuZ2lmIiB3aWR0aD0iMjEyIiBoZWln aHQ9Ijg0IiBib3JkZXI9IjAiPjwvYT48L2Rpdj4NCiAgICAgICAgICAgICAgICAgIDwvdGQ+DQog ICAgICAgICAgICAgICAgPC90cj4NCiAgICAgICAgICAgICAgICA8dHI+IA0KICAgICAgICAgICAg ICAgICAgPHRkIGJnY29sb3I9IiNGRkZGRkYiPiANCiAgICAgICAgICAgICAgICAgICAgPGRpdiBh bGlnbj0icmlnaHQiPjxpbWcgc3JjPSJodHRwOi8vd3d3LndvcmtjcmV3Lm5ldC9pbWcvcGx1c2Ux LmdpZiIgd2lkdGg9IjkiIGhlaWdodD0iOSI+PC9kaXY+DQogICAgICAgICAgICAgICAgICA8L3Rk Pg0KICAgICAgICAgICAgICAgICAgPHRkIGJnY29sb3I9IiNGRkZGRkYiIHdpZHRoPSIxMCI+Jm5i c3A7PC90ZD4NCiAgICAgICAgICAgICAgICA8L3RyPg0KICAgICAgICAgICAgICAgIDx0cj4gDQog ICAgICAgICAgICAgICAgICA8dGQgYmdjb2xvcj0iI0ZGRkZGRiIgY29sc3Bhbj0iMiIgdmFsaWdu PSJ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wvbWFwPg0KPC9ib2R5Pg0KPC9odG1sPg0K --Boundary-=_YBHNZgeZwudohFYjMfAmhcJRtFKE-- From owner-linux-mips@oss.sgi.com Sun Dec 30 04:22:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBUCMCj08615 for linux-mips-outgoing; Sun, 30 Dec 2001 04:22:12 -0800 Received: from intotoinc.com (sdsl-66-80-10-146.dsl.sca.megapath.net [66.80.10.146]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBUCMAg08611 for ; Sun, 30 Dec 2001 04:22:10 -0800 Received: from localhost (rajeshbv@localhost) by intotoinc.com (8.11.0/8.11.0) with ESMTP id fBUBNht12547; Sun, 30 Dec 2001 03:23:43 -0800 Date: Sun, 30 Dec 2001 03:23:43 -0800 (PST) From: Venkata Rajesh Bikkina To: linux-mips@oss.sgi.com cc: rajeshbv@intotoinc.com Subject: Bus error while runing an user application Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi all, I am working on a 79s334A MIPS Board. I am using x86 system as host system for cross compilation. I have an application compiled on the host and while trying to execute the binary on the board it is giving an ERROR. It is saying "Bus error" and simply coming out. Can anybody identify what is the error and why it is coming? Thanks and Regards, --Rajesh From owner-linux-mips@oss.sgi.com Sun Dec 30 14:19:00 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBUMJ0r20668 for linux-mips-outgoing; Sun, 30 Dec 2001 14:19:00 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBUMIvg20663 for ; Sun, 30 Dec 2001 14:18:57 -0800 Received: from brahma.roc.com ([202.56.196.162]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id AAA09490 for ; Fri, 28 Dec 2001 00:18:55 -0800 (PST) mail_from (rajeshbv@intotoinc.com) Received: from rajesh (machine82.roc.com [172.16.1.82]) by brahma.roc.com (8.9.3/8.8.7) with SMTP id NAA21150 for ; Fri, 28 Dec 2001 13:27:53 +0530 Message-ID: <003901c18f76$563c7480$520110ac@roc.com> From: "Rajesh B. V." To: Subject: Flash File System on MIPS 79S334A Board Date: Fri, 28 Dec 2001 13:34:54 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Hi all, I am using a IDT MIPS 79S334A Board with on board FLASH 'AM29LV320DB'. I have to mount file system on this FLASH for my application usage. I came to know through the linux-mtd site that JFFS can be used for this purpose with a lower layer mtd driver. My questions are 1) Was this chip is already had supporting lower level read/write/erase driver code in the mtd module? 2) Did anybody used it on MIPS 79S334 board? Please give me some hooks on how to proceed for this. while replying please CC to me. Thanks in advance, --Rajesh From owner-linux-mips@oss.sgi.com Sun Dec 30 14:25:35 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBUMPZT20804 for linux-mips-outgoing; Sun, 30 Dec 2001 14:25:35 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBUMPWg20801 for ; Sun, 30 Dec 2001 14:25:32 -0800 Received: from uni-koblenz.de (mailhost.uni-koblenz.de [141.26.64.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id QAA02744 for ; Thu, 27 Dec 2001 16:14:27 -0800 (PST) mail_from (ralf@linux-mips.net) Received: from eddie (root@eddie.uni-koblenz.de [141.26.4.17]) by uni-koblenz.de (8.9.3/8.9.3) with SMTP id BAA22818 for ; Fri, 28 Dec 2001 01:09:25 +0100 (MET) Received: from dea.linux-mips.net by eddie (SMI-8.6/KO-2.0) id BAA18884; Fri, 28 Dec 2001 01:09:23 +0100 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBRLrYp01753; Thu, 27 Dec 2001 19:53:34 -0200 Date: Thu, 27 Dec 2001 19:53:34 -0200 From: Ralf Baechle To: Carsten Langgaard Cc: linux-mips@oss.sgi.com Subject: Re: Signals Message-ID: <20011227195334.C1553@dea.linux-mips.net> References: <3C2B0093.3AFC80A9@mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C2B0093.3AFC80A9@mips.com>; from carstenl@mips.com on Thu, Dec 27, 2001 at 12:05:55PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 27, 2001 at 12:05:55PM +0100, Carsten Langgaard wrote: > Why is the signals definition (in include/asm-mips/signal.h) for MIPS > different from everybody else ? > For example: > > Hdefine SIGBUS 10 (MIPS) > Hdefine SIGBUS 7 (I386) > > Hdefine SIGSTKFLT 16 (I386, doesn't exist on MIPS) > > Is there any reason for this ? Time to read the ABI :-) Ralf From owner-linux-mips@oss.sgi.com Sun Dec 30 15:27:16 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBUNRGj21624 for linux-mips-outgoing; Sun, 30 Dec 2001 15:27:16 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBUNRAg21620 for ; Sun, 30 Dec 2001 15:27:10 -0800 Received: from uni-koblenz.de (mailhost.uni-koblenz.de [141.26.64.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id HAA07237 for ; Fri, 28 Dec 2001 07:26:34 -0800 (PST) mail_from (ralf@linux-mips.net) Received: from eddie (root@eddie.uni-koblenz.de [141.26.4.17]) by uni-koblenz.de (8.9.3/8.9.3) with SMTP id QAA02043 for ; Fri, 28 Dec 2001 16:23:23 +0100 (MET) Received: from dea.linux-mips.net by eddie (SMI-8.6/KO-2.0) id QAA23484; Fri, 28 Dec 2001 16:23:20 +0100 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBSEtKX01726; Fri, 28 Dec 2001 12:55:20 -0200 Date: Fri, 28 Dec 2001 12:55:20 -0200 From: Ralf Baechle To: Vivien Chappelier Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr Subject: Re: weekly O2 patches ;) Message-ID: <20011228125520.A1323@dea.linux-mips.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from vivien.chappelier@enst-bretagne.fr on Sat, Dec 22, 2001 at 07:28:44PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Sat, Dec 22, 2001 at 07:28:44PM +0100, Vivien Chappelier wrote: > diff -Naur linux/arch/mips64/mm/r4xx0.c linux.patch/arch/mips64/mm/r4xx0.c > --- linux/arch/mips64/mm/r4xx0.c Sun Dec 9 15:47:14 2001 > +++ linux.patch/arch/mips64/mm/r4xx0.c Thu Dec 20 19:04:46 2001 > @@ -2141,9 +2141,17 @@ > unsigned long flags, addr, begin, end, pow2; > int tmp; > > - tmp = ((config >> 17) & 1); > + /* XXX: disabling secondary cache for now */ > + change_cp0_config(CONF_SE, 0); > + > + tmp = ((config >> 17) & 1); /* check if cache present */ > if(tmp) > return 0; > + > + tmp = ((config >> 12) & 1); /* check if cache enabled */ > + if(!tmp) > + return 0; > + > tmp = ((config >> 22) & 3); > switch(tmp) { > case 0: Perfect. You just broke R4000SC / R4400SC. Ralf From owner-linux-mips@oss.sgi.com Sun Dec 30 15:32:01 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBUNW1W21747 for linux-mips-outgoing; Sun, 30 Dec 2001 15:32:01 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBUNVog21744 for ; Sun, 30 Dec 2001 15:31:50 -0800 Received: from uni-koblenz.de (mailhost.uni-koblenz.de [141.26.64.1]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id QAA04963 for ; Thu, 27 Dec 2001 16:13:06 -0800 (PST) mail_from (ralf@linux-mips.net) Received: from eddie (root@eddie.uni-koblenz.de [141.26.4.17]) by uni-koblenz.de (8.9.3/8.9.3) with SMTP id BAA23096 for ; Fri, 28 Dec 2001 01:09:56 +0100 (MET) Received: from dea.linux-mips.net by eddie (SMI-8.6/KO-2.0) id BAA18940; Fri, 28 Dec 2001 01:09:53 +0100 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBRLJxK01602; Thu, 27 Dec 2001 19:19:59 -0200 Date: Thu, 27 Dec 2001 19:19:59 -0200 From: Ralf Baechle To: "Tommy S. Christensen" Cc: Atsushi Nemoto , dony.he@huawei.com, linux-mips@oss.sgi.com Subject: Re: vmalloc bugs in 2.4.5??? Message-ID: <20011227191959.B1553@dea.linux-mips.net> References: <20011226013221.A737@dea.linux-mips.net> <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> <20011227011222.A16695@dea.linux-mips.net> <20011227.125122.71082554.nemoto@toshiba-tops.co.jp> <20011227022936.A19397@dea.linux-mips.net> <3C2B45D3.B938CA44@eicon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C2B45D3.B938CA44@eicon.com>; from tommy.christensen@eicon.com on Thu, Dec 27, 2001 at 05:01:23PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Thu, Dec 27, 2001 at 05:01:23PM +0100, Tommy S. Christensen wrote: > Great! But please make sure that the cache is flushed after the pages > are allocated instead of before. > > With 2.4.9 that still had the cache-flushing in vmalloc_area_pages(), I > got cache aliasing problems in low memory situations (since alloc_page() > will re-schedule when no pages are available). Correct; I fixed that one. That's actually a nasty one, affects all previous Linux releases. I wonder how this one went unnoticed for so long. Probably because loading modules is a relativly rare event or so. Ralf From owner-linux-mips@oss.sgi.com Sun Dec 30 16:08:26 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBV08Qt22269 for linux-mips-outgoing; Sun, 30 Dec 2001 16:08:26 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBV05tg22252 for ; Sun, 30 Dec 2001 16:08:19 -0800 Received: from straylight.cyberhqz.com (h24-83-212-254.sbm.shawcable.net [24.83.212.254]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id VAA07574 for ; Thu, 27 Dec 2001 21:07:58 -0800 (PST) mail_from (rmurray@cyberhqz.com) Received: (from rmurray@localhost) by straylight.cyberhqz.com (8.9.3/8.9.3/Debian 8.9.3-21) id VAA22686; Thu, 27 Dec 2001 21:06:00 -0800 From: Ryan Murray Date: Thu, 27 Dec 2001 21:06:00 -0800 To: "H . J . Lu" Cc: linux-mips@oss.sgi.com, config-patches@gnu.org Subject: Re: config.guess changs Message-ID: <20011227210600.G29645@cyberhqz.com> Mail-Followup-To: "H . J . Lu" , linux-mips@oss.sgi.com, config-patches@gnu.org References: <20011227020844.U29645@cyberhqz.com> <20011227095306.A16072@lucon.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ncX6roZrNNHXnAbh" Content-Disposition: inline In-Reply-To: <20011227095306.A16072@lucon.org> User-Agent: Mutt/1.3.23i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk --ncX6roZrNNHXnAbh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 27, 2001 at 09:53:06AM -0800, H . J . Lu wrote: > > The config.guess rework of 12/12/2001 doesn't work on big endian machin= es, > > as the preprocessor defines "mips" to be " 1", so the cpp -E output ends > > up being "CPU=3D 1". >=20 > Try this patch. >=20 >=20 > H.J. > ---- > 2001-12-27 H.J. Lu >=20 > * config.guess (mips:Linux:*:*): Undefine CPU, mips and mipsel > first. >=20 > --- config.guess Wed Dec 12 19:53:12 2001 > +++ config.guess Thu Dec 27 09:51:18 2001 > @@ -770,6 +770,9 @@ EOF > mips:Linux:*:*) > eval $set_cc_for_build > sed 's/^ //' << EOF >$dummy.c > + #undef CPU > + #undef mips > + #undef mipsel > #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || def= ined(MIPSEL)=20 > CPU=3Dmipsel=20 > #else That fixes the problem here. --=20 Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org) The opinions expressed here are my own. --ncX6roZrNNHXnAbh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8K/24N2Dbz/1mRasRAh5+AKDeuY3E1QFqISMuWZCD/R5xXhuAtACeJkej mg7kVkPQVPq+Ff/ns2d/VTI= =nmc4 -----END PGP SIGNATURE----- --ncX6roZrNNHXnAbh-- From owner-linux-mips@oss.sgi.com Sun Dec 30 20:05:43 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBV45h425557 for linux-mips-outgoing; Sun, 30 Dec 2001 20:05:43 -0800 Received: from fencepost.gnu.org (we-refuse-to-spy-on-our-users@fencepost.gnu.org [199.232.76.164]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBV45Wg25550 for ; Sun, 30 Dec 2001 20:05:32 -0800 Received: from buytenh by fencepost.gnu.org with local (Exim 3.22 #1 (Debian)) id 16Ksl2-00032O-00; Sun, 30 Dec 2001 22:05:00 -0500 Date: Sun, 30 Dec 2001 22:05:00 -0500 From: Lennert Buytenhek To: rth@dot.cygnus.com, linux-arm-kernel@lists.arm.linux.org.uk, dev-etrax@axis.com, linux-ia64@linuxia64.org, linux-m68k@lists.linux-m68k.org, linux-mips@oss.sgi.com, grundler@cup.hp.com, cort@fsmlabs.com, linux-390@vm.marist.edu, gniibe@mri.co.jp, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org Cc: jdike@karaya.com Subject: [PATCH][RFC][CFT] remove global errno from the kernel, make _syscallX kernel-only Message-ID: <20011230220500.A10224@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-linux-mips@oss.sgi.com Precedence: bulk (Apologies for the massive cross-post, but this is a matter that concerns all architectures. For archs that don't have a maintainer listed in MAINTAINERS I grabbed a random email address from arch/$arch/kernel/*. If you're not the person to answer this for your $arch, please forward to an appropriate person/list.) Hi, As I mentioned in my email to l-k with subject '[PATCH][RFC] global errno considered harmful' earlier today, having a global errno in the kernel doesn't really make sense. Referenced patch [1] deletes all mention of a global errno from the kernel, fixes up a very small number of callers that were depending on it, and fixes up the syscall helpers in include/asm-$arch/unistd.h not to write an error code to errno in case of error anymore. This subtly breaks userspace code that uses these helpers, but the general consensus seems to be that userspace code shouldn't be touching these in the first place. Patch [2] fixes up asm-$arch/unistd.h to only define _syscallX in case __KERNEL_SYSCALLS__ is defined, to try and actively break userspace (ab)users of this code (thanks to Ralf Baechle for suggesting I should do something along these lines). What I would like to know from each architecture team: - What is your arch's policy on userspace usage of asm/unistd.h, and consequently, what is your opinion on the goal these patches aim for? - Are the changes I made in [1] and [2] for your $arch technically correct? Please CC me on replies as I'm not on any of the lists posted to. My intention is to push these to Linus for 2.5 if everyone agrees. They're probably too intrusive for 2.4 (although I'd love people to convince me otherwise). cheers, Lennert [1] http://www.math.leidenuniv.nl/~buytenh/errno_ectomy-1.diff [2] http://www.math.leidenuniv.nl/~buytenh/errno_ectomy-1-to-2.diff From owner-linux-mips@oss.sgi.com Mon Dec 31 01:03:46 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBV93k430142 for linux-mips-outgoing; Mon, 31 Dec 2001 01:03:46 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBV93Tg30132; Mon, 31 Dec 2001 01:03:30 -0800 Received: from smtp.huawei.com ([61.144.161.21]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id QAA09338; Thu, 27 Dec 2001 16:56:26 -0800 (PST) mail_from (dony.he@huawei.com) Received: from h11752a ([172.17.254.1]) by smtp.huawei.com (Netscape Messaging Server 4.15) with SMTP id GP13OP00.B2F; Fri, 28 Dec 2001 08:50:49 +0800 Message-ID: <001301c18f39$5685c640$9b6e0b0a@huawei.com> From: "machael thailer" To: "Ralf Baechle" , "Tommy S. Christensen" Cc: "Atsushi Nemoto" , References: <20011226013221.A737@dea.linux-mips.net> <20011227.105518.74756316.nemoto@toshiba-tops.co.jp> <20011227011222.A16695@dea.linux-mips.net> <20011227.125122.71082554.nemoto@toshiba-tops.co.jp> <20011227022936.A19397@dea.linux-mips.net> <3C2B45D3.B938CA44@eicon.com> <20011227191959.B1553@dea.linux-mips.net> Subject: Re: vmalloc bugs in 2.4.5??? Date: Fri, 28 Dec 2001 08:48:16 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fBV93fg30133 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk ----- Original Message ----- From: Ralf Baechle To: Tommy S. Christensen Cc: Atsushi Nemoto ; ; Sent: Friday, December 28, 2001 5:19 AM Subject: Re: vmalloc bugs in 2.4.5??? > On Thu, Dec 27, 2001 at 05:01:23PM +0100, Tommy S. Christensen wrote: > > > Great! But please make sure that the cache is flushed after the pages > > are allocated instead of before. > > > > With 2.4.9 that still had the cache-flushing in vmalloc_area_pages(), I > > got cache aliasing problems in low memory situations (since alloc_page() > > will re-schedule when no pages are available). > > Correct; I fixed that one. That's actually a nasty one, affects all > previous Linux releases. I wonder how this one went unnoticed for so long. > Probably because loading modules is a relativly rare event or so. How do you fix it? Can you mail your fixup code to me please? machael From owner-linux-mips@oss.sgi.com Mon Dec 31 06:12:41 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBVECfk03458 for linux-mips-outgoing; Mon, 31 Dec 2001 06:12:41 -0800 Received: from Cantor.suse.de (ns.suse.de [213.95.15.193]) by oss.sgi.com (8.11.2/8.11.3) with SMTP id fBVECYg03452 for ; Mon, 31 Dec 2001 06:12:34 -0800 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 1ADF41E731; Mon, 31 Dec 2001 14:12:27 +0100 (MET) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f To: Lennert Buytenhek Cc: rth@dot.cygnus.com, linux-arm-kernel@lists.arm.linux.org.uk, dev-etrax@axis.com, linux-ia64@linuxia64.org, linux-m68k@lists.linux-m68k.org, linux-mips@oss.sgi.com, grundler@cup.hp.com, cort@fsmlabs.com, linux-390@vm.marist.edu, gniibe@mri.co.jp, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org, jdike@karaya.com Subject: Re: [Linux-ia64] [PATCH][RFC][CFT] remove global errno from the kernel, make _syscallX kernel-only References: <20011230220500.A10224@gnu.org> X-Yow: YOW!! From: Andreas Schwab Date: 31 Dec 2001 14:11:31 +0100 In-Reply-To: <20011230220500.A10224@gnu.org> (Lennert Buytenhek's message of "Sun, 30 Dec 2001 22:05:00 -0500") Message-ID: Lines: 30 User-Agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1.30 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id fBVECZg03453 Sender: owner-linux-mips@oss.sgi.com Precedence: bulk Lennert Buytenhek writes: |> What I would like to know from each architecture team: |> - What is your arch's policy on userspace usage of asm/unistd.h, and |> consequently, what is your opinion on the goal these patches |> aim for? I very much appreciate the removal of the _syscallX macros. FWIW, the ia64 version of these macros never worked in userspace anyway. |> - Are the changes I made in [1] and [2] for your $arch technically |> correct? The m68k changes look ok. |> Please CC me on replies as I'm not on any of the lists posted to. |> |> My intention is to push these to Linus for 2.5 if everyone agrees. |> They're probably too intrusive for 2.4 (although I'd love people |> to convince me otherwise). I wouldn't mind putting it into 2.4. Andreas. -- Andreas Schwab "And now for something Andreas.Schwab@suse.de completely different." SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 From owner-linux-mips@oss.sgi.com Mon Dec 31 08:42:20 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.2/8.11.3) id fBVGgKC05808 for linux-mips-outgoing; Mon, 31 Dec 2001 08:42:20 -0800 Received: from dea.linux-mips.net (localhost [127.0.0.1]) by oss.sgi.com (8.11.2/8.11.3) with ESMTP id fBVGgFg05801 for ; Mon, 31 Dec 2001 08:42:16 -0800 Received: (from ralf@localhost) by dea.linux-mips.net (8.11.1/8.11.1) id fBVDTrn25939; Mon, 31 Dec 2001 11:29:53 -0200 Date: Mon, 31 Dec 2001 11:29:53 -0200 From: Ralf Baechle To: Andreas Schwab Cc: Lennert Buytenhek , rth@dot.cygnus.com, linux-arm-kernel@lists.arm.linux.org.uk, dev-etrax@axis.com, linux-ia64@linuxia64.org, linux-m68k@lists.linux-m68k.org, linux-mips@oss.sgi.com, grundler@cup.hp.com, cort@fsmlabs.com, linux-390@vm.marist.edu, gniibe@mri.co.jp, sparclinux@vger.kernel.org, ultralinux@vger.kernel.org, jdike@karaya.com Subject: Re: [Linux-ia64] [PATCH][RFC][CFT] remove global errno from the kernel, make _syscallX kernel-only Message-ID: <20011231112953.A25924@dea.linux-mips.net> References: <20011230220500.A10224@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from schwab@suse.de on Mon, Dec 31, 2001 at 02:11:31PM +0100 X-Accept-Language: de,en,fr Sender: owner-linux-mips@oss.sgi.com Precedence: bulk On Mon, Dec 31, 2001 at 02:11:31PM +0100, Andreas Schwab wrote: > |> Please CC me on replies as I'm not on any of the lists posted to. > |> > |> My intention is to push these to Linus for 2.5 if everyone agrees. > |> They're probably too intrusive for 2.4 (although I'd love people > |> to convince me otherwise). > > I wouldn't mind putting it into 2.4. While it may break things in userspace it will hopefully ensure correctness for userspace, so better kill 'em now than later. _syscallX() has a too long history of causing problems. Ralf .