From owner-linuxmips@oss.sgi.com Sat Apr 1 04:35:54 2000 Received: by oss.sgi.com id ; Sat, 1 Apr 2000 04:35:45 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:17462 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 1 Apr 2000 04:35:26 -0800 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id EAA25881; Sat, 1 Apr 2000 04:30:45 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id EAA23385; Sat, 1 Apr 2000 04:35:25 -0800 (PST) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id EAA29977 for linux-list; Sat, 1 Apr 2000 04:20:24 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id EAA30858 for ; Sat, 1 Apr 2000 04:20:22 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 EAA04245 for ; Sat, 1 Apr 2000 04:20:19 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id A8B8E7F3; Sat, 1 Apr 2000 14:20:10 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 70C738FC3; Sat, 1 Apr 2000 14:10:30 +0200 (CEST) Date: Sat, 1 Apr 2000 14:10:30 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: boot/nfsroot probles Message-ID: <20000401141030.F3970@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Ok, after i got a binary kernel bootable on the indigo2 i am now a couple steps further - It seems i have problems with the hardhat userspace ------------------------- ARCH: SGI-IP22 PROMLIB: ARC firmware Version 1 Revision 10 PROMLIB: Total free ram 131911680 bytes (128820K,125MB) CPU: MIPS-R4400 FPU ICACHE DCACHE SCACHE Loading R4000 MMU routines. CPU revision is: 00000460 Primary instruction cache 16kb, linesize 16 bytes) Primary data cache 16kb, linesize 16 bytes) Secondary cache sized at 2048K linesize 128 Linux version 2.3.21 (vince@orws5.apgea.army.mil) (gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)) #11 Wed Jan 12 16:38:45 EST 2000 MC: SGI memory controller Revision 3 calculating r4koff... 0013145a(1250394) Console: colour dummy device 80x25 zs0: console input Console: ttyS0 (Zilog8530) Calibrating delay loop... 124.93 BogoMIPS Memory: 122912k/260664k available (1264k kernel code, 4608k data) Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) Checking for 'wait' instruction... unavailable. POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.3 Based upon Swansea University Computer Society NET3.039 NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP TCP: Hash tables configured (established 8192 bind 16384) Starting kswapd v1.6 SGI Zilog8530 serial driver version 1.00 tty00 at 0xbfbd9830 (irq = 21) is a Zilog8530 tty01 at 0xbfbd9838 (irq = 21) is a Zilog8530 pty: 256 Unix98 ptys configured DS1286 Real Time Clock Driver v1.0 streamable misc devices registered (keyb:150, gfx:148) wd33c93-0: chip=WD33c93B/13 no_sync=0xff no_dma=0 debug_flags=0x00 setup_args=,,,,,,,,, Version 1.25 - 09/Jul/1997, Compiled Jan 12 2000 at 16:41:47 wd33c93-1: chip=WD33c93B/13 no_sync=0xff no_dma=0 debug_flags=0x00 setup_args=,,,,,,,,, Version 1.25 - 09/Jul/1997, Compiled Jan 12 2000 at 16:41:47 scsi0 : SGI WD93 scsi1 : SGI WD93 scsi : 2 hosts. sending SDTR 0103013f0csync_xfer=2c Vendor: SGI Model: QUANTUM XP32150 Rev: S89C Type: Direct-Access ANSI SCSI revision: 02 Detected scsi disk sda at scsi0, channel 0, id 1, lun 0 scsi : detected 1 SCSI disk total. SCSI device sda: hdwr sector= 512 bytes. Sectors= 4404489 [2150 MB] [2.2 GB] sgiseeq.c: David S. Miller (dm@engr.sgi.com) eth0: SGI Seeq8003 08:00:69:0a:04:b9 Sending BOOTP requests.... OK IP-Config: Got BOOTP answer from 195.71.97.227, my address is 195.71.97.231 Partition check: sda: sda1 sda2 sda3 sda4 Looking up port of RPC 100003/2 on 195.71.97.230 Looking up port of RPC 100005/1 on 195.71.97.230 VFS: Mounted root (NFS filesystem) readonly. Freeing prom memory: 768k freed Freeing unused kernel memory: 48k freed Warning: unable to open an initial console. ------------------------- The last line is strictly optional - I see this if i remove the /dev/console node (major 5 minor 1 ) Giving different combinations of init=/bin/sh init=/usr/bin/ash console=ttyS0,9600 I see a bit nfs traffic in the tcpdump but this stops after 2-3 seconds so i am a bit lost where the problem might be ... I suppose a console/userspace problem ... (And now its raining ...) Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sat Apr 1 04:36:24 2000 Received: by oss.sgi.com id ; Sat, 1 Apr 2000 04:36:14 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:25142 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 1 Apr 2000 04:36:05 -0800 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id EAA25895; Sat, 1 Apr 2000 04:31:24 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id EAA90527; Sat, 1 Apr 2000 04:36:04 -0800 (PST) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id EAA36370 for linux-list; Sat, 1 Apr 2000 04:20:23 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id EAA31273 for ; Sat, 1 Apr 2000 04:20:22 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 EAA09426 for ; Sat, 1 Apr 2000 04:20:19 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 255B57D9; Sat, 1 Apr 2000 14:20:10 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 4EE698FC3; Sat, 1 Apr 2000 14:04:27 +0200 (CEST) Date: Sat, 1 Apr 2000 14:04:27 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: Re: SNI RW320 (aka SGI Indigo?) Message-ID: <20000401140427.E3970@paradigm.rfc822.org> References: <20000331232756.B10595@lug-owl.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000331232756.B10595@lug-owl.de>; from Jan-Benedict Glaw on Fri, Mar 31, 2000 at 11:27:56PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Mar 31, 2000 at 11:27:56PM +0200, Jan-Benedict Glaw wrote: > Hi! > > I'm doing my very first steps with MIPS hardware... Well, I got $Subject > with IRIX5.2 installed (-> just right now, I have root access (there was > an Objectserver installed;) as well as root access). It ships 48MB RAM, > 520MB+1.2GB HDD and a LG1 graphics adaptor which has too high resolutions > for my monitor;) > > As I got no documentation, how can I boot that machine via tftp? In the bootprom boot bootp(): The HardHat documentation shows this ... Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sat Apr 1 08:52:36 2000 Received: by oss.sgi.com id ; Sat, 1 Apr 2000 08:52:26 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:1364 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 1 Apr 2000 08:52:15 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id IAA25542; Sat, 1 Apr 2000 08:47:34 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id IAA90311 for linux-list; Sat, 1 Apr 2000 08:42:26 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id IAA90007 for ; Sat, 1 Apr 2000 08:42:25 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id IAA22814 for ; Sat, 1 Apr 2000 08:37:43 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id EC73F7F4; Sat, 1 Apr 2000 18:29:11 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id B4B318FC3; Sat, 1 Apr 2000 18:19:31 +0200 (CEST) Date: Sat, 1 Apr 2000 18:19:31 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: configure spaghetti code Message-ID: <20000401181931.M3970@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i tried to compile my own kernel for the IP22 (mips not mips64) and had no sucess (no output on any console) - I think this is due to the a couple of bugs ... First of all - The spaghetti code in the config.in contains a lot if nice gimmicks like: if [ "$CONFIG_DECSTATION" != "y" ]; then source drivers/char/Config.in else mainmenu_option next_comment comment 'DECstation Character devices' [...] if [ "$CONFIG_SGI_IP22" = "y" ]; then bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE fi [...] Due to this the CONFIG_SGI_PROM_CONSOLE is not even selectable if i do not enable CONFIG_DECSTATION with CONFIG_SGI_IP22 ... As most of the Architectures (IP22, Decstation etc) have VERY special hardware and nothing in common with the "default pc architecture" wouldnt it be a good way to 1. Have a choice of ONE architecture to select (Most of them can coexist within the same kernel) 2. Depending on the selected Architecture include "config" scripts within their special directory (Probably common CPU Type and networking option, filesystem selection) 3. Only show devices which are really available for the architectures (I dont think anyone has succeeded in plugging a 3C509 into a DecStation 5000 or a Telephony card or even IDE) Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sat Apr 1 18:10:30 2000 Received: by oss.sgi.com id ; Sat, 1 Apr 2000 18:10:21 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:55110 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 1 Apr 2000 18:10:04 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id SAA19082; Sat, 1 Apr 2000 18:05:23 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA08052 for linux-list; Sat, 1 Apr 2000 18:01:08 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id SAA92021 for ; Sat, 1 Apr 2000 18:01:06 -0800 (PST) mail_from (ralf@oss.sgi.com) Received: from mailhost.uni-koblenz.de (mailhost.uni-koblenz.de [141.26.64.1]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id RAA16906 for ; Sat, 1 Apr 2000 17:56:26 -0800 (PST) mail_from (ralf@oss.sgi.com) Received: from cacc-6.uni-koblenz.de (cacc-6.uni-koblenz.de [141.26.131.6]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id DAA02711; Sun, 2 Apr 2000 03:57:53 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 2 Apr 2000 03:57:21 +0200 Date: Sun, 2 Apr 2000 03:57:21 +0200 From: Ralf Baechle To: Mike Hill Cc: "'Florian Lohoff'" , linux@cthulhu.engr.sgi.com Subject: Re: kernel for indigo2 Message-ID: <20000402035721.I829@uni-koblenz.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from mikehill@hgeng.com on Fri, Mar 31, 2000 at 02:21:56PM -0500 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Mar 31, 2000 at 02:21:56PM -0500, Mike Hill wrote: > Is the 2.2 CVS branch still accessible? Of course it is still accessible and maintained. You can access it by adding the option ``-r linux_2_2'' to your cvs command line. Ralf From owner-linuxmips@oss.sgi.com Sat Apr 1 19:29:11 2000 Received: by oss.sgi.com id ; Sat, 1 Apr 2000 19:29:02 -0800 Received: from deliverator.sgi.com ([204.94.214.10]:13402 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 1 Apr 2000 19:28:47 -0800 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id TAA10991; Sat, 1 Apr 2000 19:24:06 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id TAA63875; Sat, 1 Apr 2000 19:28:16 -0800 (PST) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id TAA97570 for linux-list; Sat, 1 Apr 2000 19:19:57 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id TAA24816 for ; Sat, 1 Apr 2000 19:19:56 -0800 (PST) mail_from (ralf@oss.sgi.com) Received: from mailhost.uni-koblenz.de (mailhost.uni-koblenz.de [141.26.64.1]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id TAA08883 for ; Sat, 1 Apr 2000 19:15:16 -0800 (PST) mail_from (ralf@oss.sgi.com) Received: from cacc-6.uni-koblenz.de (cacc-6.uni-koblenz.de [141.26.131.6]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id FAA04447; Sun, 2 Apr 2000 05:16:44 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 2 Apr 2000 05:16:26 +0200 Date: Sun, 2 Apr 2000 05:16:26 +0200 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com Subject: Re: configure spaghetti code Message-ID: <20000402051626.J829@uni-koblenz.de> References: <20000401181931.M3970@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000401181931.M3970@paradigm.rfc822.org>; from flo@rfc822.org on Sat, Apr 01, 2000 at 06:19:31PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sat, Apr 01, 2000 at 06:19:31PM +0200, Florian Lohoff wrote: > Hi, > i tried to compile my own kernel for the IP22 (mips not mips64) and > had no sucess (no output on any console) - I think this is due > to the a couple of bugs ... > > First of all - The spaghetti code in the config.in contains a lot if nice > gimmicks like: > > if [ "$CONFIG_DECSTATION" != "y" ]; then > source drivers/char/Config.in > else > mainmenu_option next_comment > comment 'DECstation Character devices' > [...] > if [ "$CONFIG_SGI_IP22" = "y" ]; then > bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE > fi > [...] > > Due to this the CONFIG_SGI_PROM_CONSOLE is not even selectable if > i do not enable CONFIG_DECSTATION with CONFIG_SGI_IP22 ... > > As most of the Architectures (IP22, Decstation etc) have VERY special > hardware and nothing in common with the "default pc architecture" > wouldnt it be a good way to > > 1. Have a choice of ONE architecture to select (Most of them can coexist > within the same kernel) Most of them can NOT coexist in one kernel due to address space layout differences, firmware differences etc. and users can not be expected to know the details nor is it realistic to make a generic kernel for MIPS. So as you say there should only one be selectable. > 2. Depending on the selected Architecture include "config" scripts > within their special directory (Probably common CPU Type and networking > option, filesystem selection) > 3. Only show devices which are really available for the architectures > (I dont think anyone has succeeded in plugging a 3C509 into a DecStation > 5000 or a Telephony card or even IDE) Patches will be accepted :-) Actually in the past things were slightly more as you were suggesting but the code was fairly spagetty-like with the intension to redo it somewhen. Ralf From owner-linuxmips@oss.sgi.com Sat Apr 1 20:21:11 2000 Received: by oss.sgi.com id ; Sat, 1 Apr 2000 20:21:01 -0800 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:32809 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 1 Apr 2000 20:20:53 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id UAA05423; Sat, 1 Apr 2000 20:24:35 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id UAA31571 for linux-list; Sat, 1 Apr 2000 20:14:14 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id UAA31656 for ; Sat, 1 Apr 2000 20:14:10 -0800 (PST) mail_from (gnava@sirio.tecmor.mx) Received: from sirio.tecmor.mx (root@sirio.tecmor.mx [200.33.171.1]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id UAA23156 for ; Sat, 1 Apr 2000 20:09:30 -0800 (PST) mail_from (gnava@sirio.tecmor.mx) Received: from localhost (gnava@localhost) by sirio.tecmor.mx (8.9.3/8.9.3) with ESMTP id WAA05134; Sat, 1 Apr 2000 22:16:58 -0600 Date: Sat, 1 Apr 2000 22:16:58 -0600 (CST) From: Gabriel Nava Vazquez To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: boot/nfsroot probles In-Reply-To: <20000401141030.F3970@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, I had the same problem two weeks ago, and the problem was that the installation program didn't install the package dev...rpm, so i did it manually via the upgrade program,in the shell at alt-f2. sda is mounted at /mnt and rpm is available to execute Gabriel Nava Vazquez Instituto Tecnologico de Morelia, Mexico From owner-linuxmips@oss.sgi.com Sun Apr 2 00:11:12 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 00:11:03 -0800 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:6445 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 00:10:46 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id AAA02836; Sun, 2 Apr 2000 00:14:28 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id AAA05711 for linux-list; Sun, 2 Apr 2000 00:00:15 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id AAA06356 for ; Sun, 2 Apr 2000 00:00:13 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id XAA16943 for ; Sat, 1 Apr 2000 23:55:33 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id DD1447DD; Sun, 2 Apr 2000 09:46:48 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 2906A8FC3; Sun, 2 Apr 2000 09:36:31 +0200 (CEST) Date: Sun, 2 Apr 2000 09:36:31 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: setup.c again - while uucp transferring ... Message-ID: <20000402093631.E1368@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Obviously even a bit better :) Index: setup.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi/kernel/setup.c,v retrieving revision 1.30 diff -u -r1.30 setup.c --- setup.c 2000/03/26 23:45:03 1.30 +++ setup.c 2000/04/02 07:45:07 @@ -30,9 +30,10 @@ #ifdef CONFIG_REMOTE_DEBUG extern void rs_kgdb_hook(int); extern void breakpoint(void); +static int remote_debug = 0; #endif -#if defined(CONFIG_SERIAL_CONSOLE) || defined(CONFIG_PROM_CONSOLE) +#if defined(CONFIG_SERIAL_CONSOLE) || defined(CONFIG_SGI_PROM_CONSOLE) extern void console_setup(char *); #endif @@ -40,8 +41,6 @@ void indy_reboot_setup(void); void sgi_volume_set(unsigned char); -static int remote_debug = 0; - #define sgi_kh ((struct hpc_keyb *) (KSEG1 + 0x1fbd9800 + 64)) #define KBD_STAT_IBF 0x02 /* Keyboard input buffer full */ @@ -197,9 +196,9 @@ #endif #ifdef CONFIG_SGI_PROM_CONSOLE - console_setup("ttyS0", NULL); + console_setup("ttyS0"); #endif - + sgi_volume_set(simple_strtoul(ArcGetEnvironmentVariable("volume"), NULL, 10)); #ifdef CONFIG_VT -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 00:17:42 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 00:17:33 -0800 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:13101 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 00:17:22 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id AAA00890; Sun, 2 Apr 2000 00:21:05 -0800 (PST) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id XAA93398 for linux-list; Sat, 1 Apr 2000 23:53:12 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id XAA80796 for ; Sat, 1 Apr 2000 23:53:11 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id XAA15108 for ; Sat, 1 Apr 2000 23:48:30 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 7FC347F4; Sun, 2 Apr 2000 09:39:47 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id DA78D8FC3; Sun, 2 Apr 2000 09:24:55 +0200 (CEST) Date: Sun, 2 Apr 2000 09:24:55 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: mips config.in patch 1 of N - Check for completeness Message-ID: <20000402092455.C1368@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, here is a small patch against current cvs config.in - Please people check it as i think i made some errors - It looks much cleaner (afterwards) but its only a small step down the road ... BTW: Does ANYONE use the "I am using a crosscompiler" config flag ? I dont as i have a different name for my compiler (It assumes mips-linux- or mipsel-linux- but i have the full name mipsel-unknown-linux-gnu-) - The old style method by inserting it into the Makefile works also. Index: config.in =================================================================== RCS file: /cvs/linux/arch/mips/config.in,v retrieving revision 1.48 diff -u -r1.48 config.in --- config.in 2000/03/29 00:18:16 1.48 +++ config.in 2000/04/02 07:30:44 @@ -114,83 +114,83 @@ mainmenu_option next_comment comment 'General setup' -if [ "$CONFIG_DECSTATION" = "y" -o "$CONFIG_DDB5074" = "y" ]; then - define_bool CONFIG_CPU_LITTLE_ENDIAN y -else - bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN -fi - -if [ "$CONFIG_PROC_FS" = "y" ]; then - define_bool CONFIG_KCORE_ELF y -fi -define_bool CONFIG_ELF_KERNEL y - -if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then - define_bool CONFIG_BINFMT_IRIX y - define_bool CONFIG_FORWARD_KEYBOARD y -fi -define_bool CONFIG_BINFMT_AOUT n -define_bool CONFIG_BINFMT_ELF y -tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC - -bool 'Networking support' CONFIG_NET - -source drivers/pci/Config.in -source drivers/pcmcia/Config.in - -bool 'System V IPC' CONFIG_SYSVIPC -bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT -bool 'Sysctl support' CONFIG_SYSCTL - -if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then - source drivers/parport/Config.in -fi -endmenu - -mainmenu_option next_comment -comment 'Loadable module support' -bool 'Enable loadable module support' CONFIG_MODULES -if [ "$CONFIG_MODULES" = "y" ]; then - bool ' Set version information on all symbols for modules' CONFIG_MODVERSIONS - bool ' Kernel module loader' CONFIG_KMOD -fi - -source drivers/pci/Config.in - + if [ "$CONFIG_DECSTATION" = "y" -o "$CONFIG_DDB5074" = "y" ]; then + define_bool CONFIG_CPU_LITTLE_ENDIAN y + else + bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN + fi + + if [ "$CONFIG_PROC_FS" = "y" ]; then + define_bool CONFIG_KCORE_ELF y + fi + define_bool CONFIG_ELF_KERNEL y + + if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then + define_bool CONFIG_BINFMT_IRIX y + define_bool CONFIG_FORWARD_KEYBOARD y + fi + define_bool CONFIG_BINFMT_AOUT n + define_bool CONFIG_BINFMT_ELF y + tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC + + bool 'Networking support' CONFIG_NET + + if [ "$CONFIG_PCI" = "y" ]; then + source drivers/pci/Config.in + fi + + #Architectures possibly having pcmcia should include this + #source drivers/pcmcia/Config.in + + bool 'System V IPC' CONFIG_SYSVIPC + bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT + bool 'Sysctl support' CONFIG_SYSCTL + + #Architectures having PC Style Parports - please include + #source drivers/parport/Config.in + + bool 'Enable loadable module support' CONFIG_MODULES + if [ "$CONFIG_MODULES" = "y" ]; then + bool ' Set version information on all symbols for modules' CONFIG_MODVERSIONS + bool ' Kernel module loader' CONFIG_KMOD + fi + + if [ "$CONFIG_DECSTATION" = "y" ]; then + bool 'TURBOchannel support' CONFIG_TC + fi endmenu -if [ "$CONFIG_DECSTATION" = "y" ]; then - mainmenu_option next_comment - comment 'TURBOchannel support' - bool 'TURBOchannel support' CONFIG_TC -# if [ "$CONFIG_TC" = "y" ]; then -# tristate ' MAGMA Parallel port support' CONFIG_PARPORT -# fi - endmenu +if [ "$CONFIG_ISA" = "y" ]; then + source drivers/pnp/Config.in fi -source drivers/pnp/Config.in - source drivers/block/Config.in if [ "$CONFIG_NET" = "y" ]; then source net/Config.in fi - -source drivers/telephony/Config.in - -mainmenu_option next_comment -comment 'ATA/IDE/MFM/RLL support' - -tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE -if [ "$CONFIG_IDE" != "n" ]; then - source drivers/ide/Config.in -else - define_bool CONFIG_BLK_DEV_IDE_MODES n - define_bool CONFIG_BLK_DEV_HD n +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then + source drivers/telephony/Config.in +fi + +if [ "$CONFIG_SGI_IP22" != "n" -a \ + "$CONFIG_DECSTATION" != "n" ]; then + + mainmenu_option next_comment + comment 'ATA/IDE/MFM/RLL support' + + tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE + + if [ "$CONFIG_IDE" != "n" ]; then + source drivers/ide/Config.in + else + define_bool CONFIG_BLK_DEV_IDE_MODES n + define_bool CONFIG_BLK_DEV_HD n + fi + endmenu fi -endmenu mainmenu_option next_comment comment 'SCSI support' @@ -202,7 +202,10 @@ fi endmenu -source drivers/i2o/Config.in +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then + source drivers/i2o/Config.in +fi if [ "$CONFIG_NET" = "y" ]; then mainmenu_option next_comment @@ -210,8 +213,13 @@ bool 'Network device support' CONFIG_NETDEVICES if [ "$CONFIG_NETDEVICES" = "y" ]; then - if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then + + if [ "$CONFIG_SGI_IP22" != "y" -a \ + "$CONFIG_DECSTATION" != "y" -a \ + "$CONFIG_BAGET_MIPS" != "y" ]; then + source drivers/net/Config.in + if [ "$CONFIG_ATM" = "y" ]; then source drivers/atm/Config.in fi @@ -239,8 +247,11 @@ fi endmenu fi + +if [ "$CONFIG_SGI_IP22" != "y" -a \ + "$CONFIG_DECSTATION" != "y" -a \ + "$CONFIG_BAGET_MIPS" != "y" ]; then -if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then source drivers/net/hamradio/Config.in mainmenu_option next_comment @@ -264,20 +275,20 @@ endmenu fi -if [ "$CONFIG_DECSTATION" != "y" ]; then +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then source drivers/char/Config.in -else +fi + +if [ "$CONFIG_DECSTATION" = "y" ]; then mainmenu_option next_comment - comment 'DECstation Character devices' + comment 'DECStation Character devices' bool 'Virtual terminal' CONFIG_VT if [ "$CONFIG_VT" = "y" ]; then bool 'Support for console on virtual terminal' CONFIG_VT_CONSOLE fi tristate 'Standard/generic (dumb) serial support' CONFIG_SERIAL - if [ "$CONFIG_SGI_IP22" = "y" ]; then - bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE - fi if [ "$CONFIG_SERIAL" = "y" ]; then bool 'DZ11 Serial Support' CONFIG_DZ if [ "$CONFIG_TC" = "y" ]; then @@ -294,30 +305,43 @@ bool 'Enhanced Real Time Clock Support' CONFIG_RTC endmenu fi - -source drivers/usb/Config.in - -#source drivers/misc/Config.in - -source fs/Config.in -if [ "$CONFIG_VT" = "y" ]; then +if [ "$CONFIG_SGI_IP22" = "y" ]; then mainmenu_option next_comment - comment 'Console drivers' - if [ "$CONFIG_SGI_IP22" = "y" ]; then + comment 'SGI Character devices' + bool 'Virtual terminal' CONFIG_VT + if [ "$CONFIG_VT" = "y" ]; then + bool 'Support for console on virtual terminal' CONFIG_VT_CONSOLE tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE if [ "$CONFIG_SGI_NEWPORT_CONSOLE" != "y" ]; then define_bool CONFIG_DUMMY_CONSOLE y else define_bool CONFIG_FONT_8x16 y fi - else + bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE + fi + bool 'Unix98 PTY support' CONFIG_UNIX98_PTYS + if [ "$CONFIG_UNIX98_PTYS" = "y" ]; then + int 'Maximum number of Unix98 PTYs in use (0-2048)' CONFIG_UNIX98_PTY_COUNT 256 + fi + endmenu +fi + +#The ones having USB should include it +#source drivers/usb/Config.in + + +source fs/Config.in + +if [ "$CONFIG_VT" = "y" ]; then + mainmenu_option next_comment + + comment 'Console drivers' if [ "$CONFIG_DECSTATION" != "y" ]; then bool 'VGA text console' CONFIG_VGA_CONSOLE fi - bool 'Support for frame buffer devices' CONFIG_FB - source drivers/video/Config.in - fi + bool 'Support for frame buffer devices' CONFIG_FB + source drivers/video/Config.in endmenu fi @@ -339,7 +363,6 @@ mainmenu_option next_comment comment 'Kernel hacking' -#bool 'Debug kmalloc/kfree' CONFIG_DEBUG_MALLOC bool 'Are you using a crosscompiler' CONFIG_CROSSCOMPILE if [ "$CONFIG_MODULES" = "y" ]; then bool ' Build fp execption handler module' CONFIG_MIPS_FPE_MODULE -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 03:06:03 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 03:05:53 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:35886 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 03:05:34 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id DAA06091; Sun, 2 Apr 2000 03:09:16 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA84593 for linux-list; Sat, 1 Apr 2000 16:38:07 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA89701 for ; Sat, 1 Apr 2000 16:38:05 -0800 (PST) mail_from (ralf@oss.sgi.com) Received: from mailhost.uni-koblenz.de (mailhost.uni-koblenz.de [141.26.64.1]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id QAA25569 for ; Sat, 1 Apr 2000 16:33:25 -0800 (PST) mail_from (ralf@oss.sgi.com) Received: from cacc-6.uni-koblenz.de (cacc-6.uni-koblenz.de [141.26.131.6]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id CAA00883; Sun, 2 Apr 2000 02:34:47 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 2 Apr 2000 02:34:25 +0200 Date: Sun, 2 Apr 2000 02:34:25 +0200 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, aj@suse.de Subject: Re: pause() Message-ID: <20000402023425.B829@uni-koblenz.de> References: <20000331151555.A5911@uni-koblenz.de> <20000331195303.B20241@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000331195303.B20241@paradigm.rfc822.org>; from flo@rfc822.org on Fri, Mar 31, 2000 at 07:53:03PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Mar 31, 2000 at 07:53:03PM +0200, Florian Lohoff wrote: > On Fri, Mar 31, 2000 at 03:15:55PM +0200, Ralf Baechle wrote: > > I just found another brainfart in the libc / kernel interface. In the > > believe libc wouldn't use the pause(2) syscall any longer I removed it. > > This makes a number of programs like screen burn all CPU they can get. > > I'll provide two fixes, one to libc and a second for the kernel and > > either one will be sufficient. > > Could this also be the cause of "top" refreshing the screen as fast > as it can ? I noticed that when i rebuild the debian procps package > and tried top ... It then consumes the cpu it gets ... I haven't tried myself but sounds very probable. The sympthon is that an strace will show large numbers of pause(2) syscalls which all return with -ENOSYS as error. Ralf From owner-linuxmips@oss.sgi.com Sun Apr 2 05:12:24 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 05:12:14 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:20016 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 05:11:56 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id FAA01174; Sun, 2 Apr 2000 05:15:39 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA26988 for linux-list; Sun, 2 Apr 2000 01:32:42 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA19247 for ; Sun, 2 Apr 2000 01:32:41 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA09429 for ; Sun, 2 Apr 2000 01:28:00 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id D56187F3; Sun, 2 Apr 2000 11:19:20 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 735478FC3; Sun, 2 Apr 2000 11:09:10 +0200 (CEST) Date: Sun, 2 Apr 2000 11:09:10 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: current boot mileage with cvs on indigo2 Message-ID: <20000402110910.C9189@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Ok, after i probably fixed the prom_console that far that i get some useful output the kernel halts for me nearly direct after prom_console init I get something like the normal kernel output (Which is buffered from before console init) and then "On node 0 totalpages: 65413" and stop Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 05:12:44 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 05:12:24 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:21296 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 05:12:01 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id FAA01397; Sun, 2 Apr 2000 05:15:43 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id XAA98063 for linux-list; Sat, 1 Apr 2000 23:57:32 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id XAA05239 for ; Sat, 1 Apr 2000 23:57:30 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id XAA16183 for ; Sat, 1 Apr 2000 23:52:50 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 5124D7D9; Sun, 2 Apr 2000 09:44:10 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id E9CB68FC3; Sun, 2 Apr 2000 09:33:54 +0200 (CEST) Date: Sun, 2 Apr 2000 09:33:54 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: arch/mips/sgi/kernel/setup.c patch Message-ID: <20000402093354.D1368@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, a small sgi setup.c cleanup - It should be obvious - Althgough this only get setup.c to compile again with PROM_CONSOLE as there are still more bugs Index: setup.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi/kernel/setup.c,v retrieving revision 1.30 diff -u -r1.30 setup.c --- setup.c 2000/03/26 23:45:03 1.30 +++ setup.c 2000/04/02 07:42:00 @@ -30,6 +30,7 @@ #ifdef CONFIG_REMOTE_DEBUG extern void rs_kgdb_hook(int); extern void breakpoint(void); +static int remote_debug = 0; #endif #if defined(CONFIG_SERIAL_CONSOLE) || defined(CONFIG_PROM_CONSOLE) @@ -40,8 +41,6 @@ void indy_reboot_setup(void); void sgi_volume_set(unsigned char); -static int remote_debug = 0; - #define sgi_kh ((struct hpc_keyb *) (KSEG1 + 0x1fbd9800 + 64)) #define KBD_STAT_IBF 0x02 /* Keyboard input buffer full */ @@ -197,9 +196,9 @@ #endif #ifdef CONFIG_SGI_PROM_CONSOLE - console_setup("ttyS0", NULL); + console_setup("ttyS0"); #endif - + sgi_volume_set(simple_strtoul(ArcGetEnvironmentVariable("volume"), NULL, 10)); #ifdef CONFIG_VT -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 05:12:44 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 05:12:24 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:23344 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 05:12:17 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id FAA02888; Sun, 2 Apr 2000 05:16:00 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA85279 for linux-list; Sun, 2 Apr 2000 01:28:27 -0800 (PST) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA39585 for ; Sun, 2 Apr 2000 01:28:26 -0800 (PST) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA08337 for ; Sun, 2 Apr 2000 01:23:45 -0800 (PST) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 4BE907D9; Sun, 2 Apr 2000 11:15:01 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id E4CD88FC3; Sun, 2 Apr 2000 11:04:47 +0200 (CEST) Date: Sun, 2 Apr 2000 11:04:47 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: promcon - first fix attempt ... Message-ID: <20000402110447.A9189@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, this is a patch which at least gives me some bootup messages on the prom console ... The naming scheme for the "prom console" as a serial device ("ttySN") isnt that good afaik as the setup for the serial console and prom console could get mixed up - right ? I dont think calling "sgi_prom_console_init" from arch_setup is correct but where should this be placed better ? Index: drivers/char/Makefile =================================================================== RCS file: /cvs/linux/drivers/char/Makefile,v retrieving revision 1.32 diff -u -r1.32 Makefile --- drivers/char/Makefile 2000/03/12 23:15:37 1.32 +++ drivers/char/Makefile 2000/04/02 09:11:46 @@ -80,6 +80,10 @@ SERIAL = endif +ifeq ($(CONFIG_SGI_IP22),y) + SERIAL = +endif + ifeq ($(CONFIG_BAGET_MIPS),y) KEYBD = SERIAL = Index: arch/mips/sgi/kernel/setup.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi/kernel/setup.c,v retrieving revision 1.30 diff -u -r1.30 setup.c --- arch/mips/sgi/kernel/setup.c 2000/03/26 23:45:03 1.30 +++ arch/mips/sgi/kernel/setup.c 2000/04/02 09:11:47 @@ -30,18 +30,21 @@ #ifdef CONFIG_REMOTE_DEBUG extern void rs_kgdb_hook(int); extern void breakpoint(void); +static int remote_debug = 0; #endif -#if defined(CONFIG_SERIAL_CONSOLE) || defined(CONFIG_PROM_CONSOLE) +#if defined(CONFIG_SERIAL_CONSOLE) || defined(CONFIG_SGI_PROM_CONSOLE) extern void console_setup(char *); #endif +#if defined(CONFIG_SGI_PROM_CONSOLE) +extern void sgi_prom_console_init(void ); +#endif + extern struct rtc_ops indy_rtc_ops; void indy_reboot_setup(void); void sgi_volume_set(unsigned char); -static int remote_debug = 0; - #define sgi_kh ((struct hpc_keyb *) (KSEG1 + 0x1fbd9800 + 64)) #define KBD_STAT_IBF 0x02 /* Keyboard input buffer full */ @@ -197,9 +200,10 @@ #endif #ifdef CONFIG_SGI_PROM_CONSOLE - console_setup("ttyS0", NULL); + sgi_prom_console_init(); + console_setup("ttyS0"); #endif - + sgi_volume_set(simple_strtoul(ArcGetEnvironmentVariable("volume"), NULL, 10)); #ifdef CONFIG_VT Index: arch/mips/sgi/kernel/promcon.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi/kernel/promcon.c,v retrieving revision 1.2 diff -u -r1.2 promcon.c --- arch/mips/sgi/kernel/promcon.c 1999/10/09 00:00:59 1.2 +++ arch/mips/sgi/kernel/promcon.c 2000/04/02 09:11:47 @@ -66,8 +66,8 @@ * Register console. */ -long __init sgi_prom_console_init(long kmem_start, long kmem_end) +long __init sgi_prom_console_init(void ) { register_console(&sercons); - return kmem_start; + prom_printf("sgi_prom_console_init called\n"); } -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 09:24:05 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 09:23:55 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:28468 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 09:23:48 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id JAA02233; Sun, 2 Apr 2000 09:27:31 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA03288 for linux-list; Sun, 2 Apr 2000 09:15:41 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA00062 for ; Sun, 2 Apr 2000 09:15:39 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from mailhost.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 JAA07172 for ; Sun, 2 Apr 2000 09:15:38 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from cacc-2.uni-koblenz.de (cacc-2.uni-koblenz.de [141.26.131.2]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id SAA28055; Sun, 2 Apr 2000 18:15:20 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 2 Apr 2000 14:22:45 +0200 Date: Sun, 2 Apr 2000 14:22:45 +0200 From: Ralf Baechle To: Florian Lohoff , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, aj@suse.de Subject: Re: pause() Message-ID: <20000402142245.A8504@uni-koblenz.de> References: <20000331151555.A5911@uni-koblenz.de> <20000331195303.B20241@paradigm.rfc822.org> <20000402023425.B829@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000402023425.B829@uni-koblenz.de>; from ralf@oss.sgi.com on Sun, Apr 02, 2000 at 02:34:25AM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, Apr 02, 2000 at 02:34:25AM +0200, Ralf Baechle wrote: > > On Fri, Mar 31, 2000 at 03:15:55PM +0200, Ralf Baechle wrote: > > > I just found another brainfart in the libc / kernel interface. In the > > > believe libc wouldn't use the pause(2) syscall any longer I removed it. > > > This makes a number of programs like screen burn all CPU they can get. > > > I'll provide two fixes, one to libc and a second for the kernel and > > > either one will be sufficient. > > > > Could this also be the cause of "top" refreshing the screen as fast > > as it can ? I noticed that when i rebuild the debian procps package > > and tried top ... It then consumes the cpu it gets ... > > I haven't tried myself but sounds very probable. The sympthon is that > an strace will show large numbers of pause(2) syscalls which all return > with -ENOSYS as error. Ok, fix implemented and tested. I made sure that glibc now actually compiles even with 2.3.99-pre3 headers which stock 2.0 won't on any architecture. The full glibc patch is a bit too large to be posted to this list, so I'll just put it on oss.sgi.com after my arrival in Mountain View so that should be about Tuesday. The pause fix itself is a new pause(3) function which tries to use pause(2) where available. If that ever fails with ENOSYS then it will switch over to the emulation of the pause syscall. I'll also add the pause(2) syscall back to all kernel flavours which will ensure that either a libc or a kernel upgrade will fix the pause bug. This is the fix: New file glibc/sysdeps/unix/sysv/linux/mips/pause.c: /* Copyright (C) 1991, 1996, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include /* Suspend the process until a signal arrives. This always returns -1 and sets errno to EINTR. */ extern int __sys_pause(void); int __libc_pause (void) { static int must_emulate = 0; if (!must_emulate) { int errno_saved = errno; int retval = __sys_pause(); if (retval >= 0 || errno != ENOSYS) return retval; __set_errno(errno_saved); must_emulate = 1; } return __sigpause (__sigblock (0), 0); } weak_alias (__libc_pause, pause) Add an entry for pause in sysdeps/unix/sysv/linux/mips/syscalls.list: s_pause pause pause 0 __sys_pause This next libc release fixes all open bugs on my list except maybe a merge with all one of the inofficial 2.0.7 releases that have been made by non-FSF people. So if after the release there should still be open bugs, please report again. Ralf From owner-linuxmips@oss.sgi.com Sun Apr 2 09:50:06 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 09:49:56 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:53575 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 09:49:49 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id JAA04961; Sun, 2 Apr 2000 09:45:07 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA39017 for linux-list; Sun, 2 Apr 2000 09:41:09 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA67857 for ; Sun, 2 Apr 2000 09:40:56 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 JAA08003 for ; Sun, 2 Apr 2000 09:40:48 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id AB6377D9; Sun, 2 Apr 2000 18:40:22 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 817A38FC3; Sun, 2 Apr 2000 18:20:04 +0200 (CEST) Date: Sun, 2 Apr 2000 18:20:04 +0200 From: Florian Lohoff To: Ralf Baechle Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, aj@suse.de Subject: Re: pause() Message-ID: <20000402182004.B11880@paradigm.rfc822.org> References: <20000331151555.A5911@uni-koblenz.de> <20000331195303.B20241@paradigm.rfc822.org> <20000402023425.B829@uni-koblenz.de> <20000402142245.A8504@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000402142245.A8504@uni-koblenz.de>; from Ralf Baechle on Sun, Apr 02, 2000 at 02:22:45PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, Apr 02, 2000 at 02:22:45PM +0200, Ralf Baechle wrote: > The pause fix itself is a new pause(3) function which tries to use pause(2) > where available. If that ever fails with ENOSYS then it will switch over > to the emulation of the pause syscall. I'll also add the pause(2) syscall > back to all kernel flavours which will ensure that either a libc or a kernel > upgrade will fix the pause bug. This is the fix: As we are still quiet experimental and nobody else complained about pause syscall wouldnt it be overkill to do a pause emulation ? Just fix the kernel and other glibc bugs and document this in the MIPS-FAQ that people seeing this problem should upgrade to . > This next libc release fixes all open bugs on my list except maybe a merge > with all one of the inofficial 2.0.7 releases that have been made by > non-FSF people. So if after the release there should still be open bugs, > please report again. I have made a glibc 2.0.7 package (debian) from the original slink debian package + the mips patches - I have problems building without hacking as binarys like "zic" etc dont work with the old glibc installed natively (They are compiled against the fresh glibc and run with the old glibc something IIRC so they segfault - Makefile bugs). This package has not been used by me but other debian people afaik - Probably they should speak up and report problems/success. Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 09:50:16 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 09:50:06 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:52295 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 09:49:44 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id JAA04930; Sun, 2 Apr 2000 09:45:02 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA50848 for linux-list; Sun, 2 Apr 2000 09:41:09 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA01463 for ; Sun, 2 Apr 2000 09:40:55 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 JAA00383 for ; Sun, 2 Apr 2000 09:40:48 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id C2CE77DD; Sun, 2 Apr 2000 18:40:22 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 1D6FD8FC3; Sun, 2 Apr 2000 18:28:33 +0200 (CEST) Date: Sun, 2 Apr 2000 18:28:33 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: debian mipsel port status Message-ID: <20000402182833.C11880@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i anounced today on the debian-mips list the compilation of the 1000st debian-mipsel binary package. I wont post the full package list but i think the debian people will setup an apt-getable area within the next weeks. Currently no X or gtk based packages are available due to lack of XFree packages - I dont think ill port the debian 3.3.6 package but ill start working on XFree4 the next days. I havent set up an "debian autobuilder" but hopefully will do so the next weeks so we will have an up2date distribution all the time. Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 2 11:01:45 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 11:01:36 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:23373 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 11:01:22 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id KAA07928; Sun, 2 Apr 2000 10:56:40 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA56054 for linux-list; Sun, 2 Apr 2000 10:51:29 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA25770 for ; Sun, 2 Apr 2000 10:51:27 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from mailhost.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 KAA03458 for ; Sun, 2 Apr 2000 10:51:26 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from cacc-2.uni-koblenz.de (cacc-2.uni-koblenz.de [141.26.131.2]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id TAA01621; Sun, 2 Apr 2000 19:51:17 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 2 Apr 2000 19:50:58 +0200 Date: Sun, 2 Apr 2000 19:50:58 +0200 From: Ralf Baechle To: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: New glibc release Message-ID: <20000402195057.A13982@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing The package and a patch can be downloaded from oss.sgi.com in /pub/linux/mips/test-glibc/. Two additional notes over what has already been mentioned in other postings. First, somebody else has made a libc release without telling me, that one has a higher version number this release even though it's older. I don't know about the differences. Second I changed rpm again such that it uses *.mips.rpm, not mipseb.rpm als package extension. This will make the assumption from many spec files that $RPM_ARCH-linux is a valid GNU-style architecture descriptor true also for big endian MIPS. This did eleminate most of the necessity to change spec files for big endian MIPS. Anyway, that's why the binary rpm packages again have the .mips.rpm extension. Ralf From owner-linuxmips@oss.sgi.com Sun Apr 2 11:53:06 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 11:52:56 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:56913 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 11:52:38 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA10461; Sun, 2 Apr 2000 11:47:56 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id LAA52288; Sun, 2 Apr 2000 11:52:07 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA38576 for linux-list; Sun, 2 Apr 2000 11:41:13 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA29233 for ; Sun, 2 Apr 2000 11:41:10 -0700 (PDT) mail_from (andrewb@uab.edu) Received: from lilith.dpo.uab.edu (lilith.dpo.uab.edu [138.26.1.128]) 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 LAA01263 for ; Sun, 2 Apr 2000 11:41:10 -0700 (PDT) mail_from (andrewb@uab.edu) Received: from lithium (lithium.tucc.uab.edu [138.26.15.219]) by lilith.dpo.uab.edu (8.9.3/8.9.3) with SMTP id NAA30938; Sun, 2 Apr 2000 13:40:51 -0500 Date: Sun, 2 Apr 2000 13:40:51 -0500 (CDT) From: "Andrew R. Baker" X-Sender: andrewb@lithium To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: kernel for indigo2 In-Reply-To: <20000331194525.A20241@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, 31 Mar 2000, Florian Lohoff wrote: > Hi, > i recently (a couple of days ago) got an Indigo2 Impact and i thought > of beginning to bootstrap debian-mips (I already have >900 Package for > debian-mipsel) but i cant even boot a kernel. The standard (and old) > kernel on oss.sgi.com simple halt the machine after tftp boot - When > building a kernel from the current CVS the machine > crashes with a UTLB Miss as mentioned in the MIPS-FAQ as the > -N binutils bugs although there is no -N in the makefile. > > Does anyone have a working kernel for the Indigo2 ? I have not gotten any of the recent 2.3 kernels to boot on my Indigo2. The last one I know worked was 2.3.19. I have not had a chance to sort this out yet as I have been out of town for two weeks. The 2.2 kernels do work however. -Andrew From owner-linuxmips@oss.sgi.com Sun Apr 2 12:48:36 2000 Received: by oss.sgi.com id ; Sun, 2 Apr 2000 12:48:27 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:8507 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 2 Apr 2000 12:48:11 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA05352; Sun, 2 Apr 2000 12:51:54 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA57850 for linux-list; Sun, 2 Apr 2000 12:35:28 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA54595 for ; Sun, 2 Apr 2000 12:35:26 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 MAA01459 for ; Sun, 2 Apr 2000 12:35:24 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 553307D9; Sun, 2 Apr 2000 21:35:08 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 90F138FC3; Sun, 2 Apr 2000 20:48:55 +0200 (CEST) Date: Sun, 2 Apr 2000 20:48:55 +0200 From: Florian Lohoff To: "Andrew R. Baker" Cc: linux@cthulhu.engr.sgi.com Subject: Re: kernel for indigo2 Message-ID: <20000402204855.L11880@paradigm.rfc822.org> References: <20000331194525.A20241@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Andrew R. Baker on Sun, Apr 02, 2000 at 01:40:51PM -0500 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, Apr 02, 2000 at 01:40:51PM -0500, Andrew R. Baker wrote: > On Fri, 31 Mar 2000, Florian Lohoff wrote: > > Hi, > > i recently (a couple of days ago) got an Indigo2 Impact and i thought > > of beginning to bootstrap debian-mips (I already have >900 Package for > > debian-mipsel) but i cant even boot a kernel. The standard (and old) > > kernel on oss.sgi.com simple halt the machine after tftp boot - When > > building a kernel from the current CVS the machine > > crashes with a UTLB Miss as mentioned in the MIPS-FAQ as the > > -N binutils bugs although there is no -N in the makefile. > > > > Does anyone have a working kernel for the Indigo2 ? > > I have not gotten any of the recent 2.3 kernels to boot on my Indigo2. > The last one I know worked was 2.3.19. I have not had a chance to sort > this out yet as I have been out of town for two weeks. The 2.2 kernels do > work however. Could you dump one of the working 2.2. kernels into ftp.rfc822.org/incoming as i would like to start beginning in userspace .... Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 3 01:32:51 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 01:32:41 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:35365 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 01:32:21 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA24177; Mon, 3 Apr 2000 01:27:39 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA08955 for linux-list; Mon, 3 Apr 2000 01:22:22 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA14404 for ; Mon, 3 Apr 2000 01:22:20 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from mail.sonytel.be ([193.74.243.200]) 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 BAA01859 for ; Mon, 3 Apr 2000 01:22:18 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from dandelion.sonytel.be (dandelion.sonytel.be [193.74.243.153]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA14505; Mon, 3 Apr 2000 10:21:20 +0200 (MET DST) Date: Mon, 3 Apr 2000 10:21:20 +0200 (MET DST) From: Geert Uytterhoeven To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: configure spaghetti code In-Reply-To: <20000401181931.M3970@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sat, 1 Apr 2000, Florian Lohoff wrote: > 3. Only show devices which are really available for the architectures > (I dont think anyone has succeeded in plugging a 3C509 into a DecStation > 5000 or a Telephony card or even IDE) If you configure for a DS5000, you won't have ISA, and the 3c509 question should depend on CONFIG_ISA (which was added very recently, so probably the ISA questions aren't protected by CONFIG_ISA yet). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE) Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55 Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium From owner-linuxmips@oss.sgi.com Mon Apr 3 01:50:31 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 01:50:21 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:61516 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 01:50:00 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id BAA07740; Mon, 3 Apr 2000 01:53:44 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA04319 for linux-list; Mon, 3 Apr 2000 01:29:37 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA09766 for ; Mon, 3 Apr 2000 01:29:35 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from mail.sonytel.be ([193.74.243.200]) 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 BAA03120 for ; Mon, 3 Apr 2000 01:29:34 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from dandelion.sonytel.be (dandelion.sonytel.be [193.74.243.153]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA14782; Mon, 3 Apr 2000 10:29:32 +0200 (MET DST) Date: Mon, 3 Apr 2000 10:29:31 +0200 (MET DST) From: Geert Uytterhoeven To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: mips config.in patch 1 of N - Check for completeness In-Reply-To: <20000402092455.C1368@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, 2 Apr 2000, Florian Lohoff wrote: > + #Architectures possibly having pcmcia should include this > + #source drivers/pcmcia/Config.in i.e. CONFIG_PCI || CONFIG_ISA > + #Architectures having PC Style Parports - please include > + #source drivers/parport/Config.in i.e. CONFIG_ISA Note that here are also non-PC style parport drivers (e.g. for Amiga), but for MIPS I think the PC-style parports are the only ones that matter. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE) Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55 Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium From owner-linuxmips@oss.sgi.com Mon Apr 3 02:15:21 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 02:15:12 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:5163 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 02:15:06 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id CAA26621; Mon, 3 Apr 2000 02:10:25 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id CAA26949 for linux-list; Mon, 3 Apr 2000 02:01:10 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id CAA51507 for ; Mon, 3 Apr 2000 02:01:09 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 CAA05300 for ; Mon, 3 Apr 2000 02:01:05 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 964737D9; Mon, 3 Apr 2000 11:01:01 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 584E68FC3; Mon, 3 Apr 2000 10:39:44 +0200 (CEST) Date: Mon, 3 Apr 2000 10:39:44 +0200 From: Florian Lohoff To: Geert Uytterhoeven Cc: linux@cthulhu.engr.sgi.com Subject: Re: mips config.in patch 1 of N - Check for completeness Message-ID: <20000403103944.A278@paradigm.rfc822.org> References: <20000402092455.C1368@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Geert Uytterhoeven on Mon, Apr 03, 2000 at 10:29:31AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 03, 2000 at 10:29:31AM +0200, Geert Uytterhoeven wrote: > On Sun, 2 Apr 2000, Florian Lohoff wrote: > > + #Architectures possibly having pcmcia should include this > > + #source drivers/pcmcia/Config.in > > i.e. CONFIG_PCI || CONFIG_ISA I didnt want to do that because i dont think anyone has seen a RM200C with PCMCIA ? So i thought architectures explecitely having a PCMCIA (Like probably the Handhelds like Aero, Cassiopaia etc) would enable it with "CONFIG_AERO" or something. > > + #Architectures having PC Style Parports - please include > > + #source drivers/parport/Config.in > > i.e. CONFIG_ISA > > Note that here are also non-PC style parport drivers (e.g. for Amiga), but for > MIPS I think the PC-style parports are the only ones that matter. Are they represented in the above config ? ... Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 3 02:18:21 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 02:18:12 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:25899 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 02:18:06 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id CAA26760; Mon, 3 Apr 2000 02:13:24 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id CAA33495 for linux-list; Mon, 3 Apr 2000 02:09:16 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id CAA31768 for ; Mon, 3 Apr 2000 02:09:14 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) 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 CAA08127 for ; Mon, 3 Apr 2000 02:09:11 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from dandelion.sonytel.be (dandelion.sonytel.be [193.74.243.153]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id LAA16365; Mon, 3 Apr 2000 11:09:01 +0200 (MET DST) Date: Mon, 3 Apr 2000 11:09:00 +0200 (MET DST) From: Geert Uytterhoeven To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: mips config.in patch 1 of N - Check for completeness In-Reply-To: <20000403103944.A278@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, 3 Apr 2000, Florian Lohoff wrote: > On Mon, Apr 03, 2000 at 10:29:31AM +0200, Geert Uytterhoeven wrote: > > On Sun, 2 Apr 2000, Florian Lohoff wrote: > > > + #Architectures possibly having pcmcia should include this > > > + #source drivers/pcmcia/Config.in > > > > i.e. CONFIG_PCI || CONFIG_ISA > > I didnt want to do that because i dont think anyone has seen > a RM200C with PCMCIA ? So i thought architectures explecitely > having a PCMCIA (Like probably the Handhelds like Aero, Cassiopaia etc) > would enable it with "CONFIG_AERO" or something. If it has PCI slots, you can insert a PCMCIA or Cardbus bridging card. Furthermore many wireless networking cards are just PCMCIA/Cardbus bridges with PC-card socket containing a standard wireless PC-card. > > > + #Architectures having PC Style Parports - please include > > > + #source drivers/parport/Config.in > > > > i.e. CONFIG_ISA > > > > Note that here are also non-PC style parport drivers (e.g. for Amiga), but for > > MIPS I think the PC-style parports are the only ones that matter. > > Are they represented in the above config ? ... Yes. There's even support for ATARI, Archimedes and SBUS. Unlike other subsystems, `PC-style hardware' is only a small section of the Config.in. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE) Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55 Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium From owner-linuxmips@oss.sgi.com Mon Apr 3 08:42:51 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 08:42:42 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:60007 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 08:42:22 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id IAA26523; Mon, 3 Apr 2000 08:37:40 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id IAA38500; Mon, 3 Apr 2000 08:42:21 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id IAA74038 for linux-list; Mon, 3 Apr 2000 08:26:09 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id IAA15872 for ; Mon, 3 Apr 2000 08:26:07 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 IAA05330 for ; Mon, 3 Apr 2000 08:26:04 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id E90D37FE; Mon, 3 Apr 2000 17:26:02 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 0764C8FC3; Mon, 3 Apr 2000 17:15:24 +0200 (CEST) Date: Mon, 3 Apr 2000 17:15:23 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: config.in revised #2 Message-ID: <20000403171523.B2632@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Ok, better like this ? Index: arch/mips/config.in =================================================================== RCS file: /cvs/linux/arch/mips/config.in,v retrieving revision 1.48 diff -u -r1.48 config.in --- arch/mips/config.in 2000/03/29 00:18:16 1.48 +++ arch/mips/config.in 2000/04/03 15:23:58 @@ -114,83 +114,83 @@ mainmenu_option next_comment comment 'General setup' -if [ "$CONFIG_DECSTATION" = "y" -o "$CONFIG_DDB5074" = "y" ]; then - define_bool CONFIG_CPU_LITTLE_ENDIAN y -else - bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN -fi - -if [ "$CONFIG_PROC_FS" = "y" ]; then - define_bool CONFIG_KCORE_ELF y -fi -define_bool CONFIG_ELF_KERNEL y - -if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then - define_bool CONFIG_BINFMT_IRIX y - define_bool CONFIG_FORWARD_KEYBOARD y -fi -define_bool CONFIG_BINFMT_AOUT n -define_bool CONFIG_BINFMT_ELF y -tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC - -bool 'Networking support' CONFIG_NET - -source drivers/pci/Config.in -source drivers/pcmcia/Config.in - -bool 'System V IPC' CONFIG_SYSVIPC -bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT -bool 'Sysctl support' CONFIG_SYSCTL - -if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then - source drivers/parport/Config.in -fi + if [ "$CONFIG_DECSTATION" = "y" -o "$CONFIG_DDB5074" = "y" ]; then + define_bool CONFIG_CPU_LITTLE_ENDIAN y + else + bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN + fi + + if [ "$CONFIG_PROC_FS" = "y" ]; then + define_bool CONFIG_KCORE_ELF y + fi + define_bool CONFIG_ELF_KERNEL y + + if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then + define_bool CONFIG_BINFMT_IRIX y + define_bool CONFIG_FORWARD_KEYBOARD y + fi + define_bool CONFIG_BINFMT_AOUT n + define_bool CONFIG_BINFMT_ELF y + tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC + + bool 'Networking support' CONFIG_NET + + if [ "$CONFIG_PCI" = "y" ]; then + source drivers/pci/Config.in + fi + + bool 'System V IPC' CONFIG_SYSVIPC + bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT + bool 'Sysctl support' CONFIG_SYSCTL + + source drivers/parport/Config.in + + bool 'Enable loadable module support' CONFIG_MODULES + if [ "$CONFIG_MODULES" = "y" ]; then + bool ' Set version information on all symbols for modules' CONFIG_MODVERSIONS + bool ' Kernel module loader' CONFIG_KMOD + fi + + if [ "$CONFIG_DECSTATION" = "y" ]; then + bool 'TURBOchannel support' CONFIG_TC + fi endmenu -mainmenu_option next_comment -comment 'Loadable module support' -bool 'Enable loadable module support' CONFIG_MODULES -if [ "$CONFIG_MODULES" = "y" ]; then - bool ' Set version information on all symbols for modules' CONFIG_MODVERSIONS - bool ' Kernel module loader' CONFIG_KMOD +if [ "$CONFIG_ISA" = "y" ]; then + source drivers/pnp/Config.in fi - -source drivers/pci/Config.in -endmenu - -if [ "$CONFIG_DECSTATION" = "y" ]; then - mainmenu_option next_comment - comment 'TURBOchannel support' - bool 'TURBOchannel support' CONFIG_TC -# if [ "$CONFIG_TC" = "y" ]; then -# tristate ' MAGMA Parallel port support' CONFIG_PARPORT -# fi - endmenu +if [ "$CONFIG_ISA" = "y" -o "$CONFIG_PCI" = "y" ]; then + source drivers/pcmcia/Config.in fi -source drivers/pnp/Config.in - source drivers/block/Config.in if [ "$CONFIG_NET" = "y" ]; then source net/Config.in fi - -source drivers/telephony/Config.in - -mainmenu_option next_comment -comment 'ATA/IDE/MFM/RLL support' - -tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE -if [ "$CONFIG_IDE" != "n" ]; then - source drivers/ide/Config.in -else - define_bool CONFIG_BLK_DEV_IDE_MODES n - define_bool CONFIG_BLK_DEV_HD n +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then + source drivers/telephony/Config.in +fi + +if [ "$CONFIG_SGI_IP22" != "n" -a \ + "$CONFIG_DECSTATION" != "n" ]; then + + mainmenu_option next_comment + comment 'ATA/IDE/MFM/RLL support' + + tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE + + if [ "$CONFIG_IDE" != "n" ]; then + source drivers/ide/Config.in + else + define_bool CONFIG_BLK_DEV_IDE_MODES n + define_bool CONFIG_BLK_DEV_HD n + fi + endmenu fi -endmenu mainmenu_option next_comment comment 'SCSI support' @@ -202,7 +202,10 @@ fi endmenu -source drivers/i2o/Config.in +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then + source drivers/i2o/Config.in +fi if [ "$CONFIG_NET" = "y" ]; then mainmenu_option next_comment @@ -210,8 +213,13 @@ bool 'Network device support' CONFIG_NETDEVICES if [ "$CONFIG_NETDEVICES" = "y" ]; then - if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then + + if [ "$CONFIG_SGI_IP22" != "y" -a \ + "$CONFIG_DECSTATION" != "y" -a \ + "$CONFIG_BAGET_MIPS" != "y" ]; then + source drivers/net/Config.in + if [ "$CONFIG_ATM" = "y" ]; then source drivers/atm/Config.in fi @@ -239,8 +247,11 @@ fi endmenu fi + +if [ "$CONFIG_SGI_IP22" != "y" -a \ + "$CONFIG_DECSTATION" != "y" -a \ + "$CONFIG_BAGET_MIPS" != "y" ]; then -if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then source drivers/net/hamradio/Config.in mainmenu_option next_comment @@ -264,20 +275,20 @@ endmenu fi -if [ "$CONFIG_DECSTATION" != "y" ]; then +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then source drivers/char/Config.in -else +fi + +if [ "$CONFIG_DECSTATION" = "y" ]; then mainmenu_option next_comment - comment 'DECstation Character devices' + comment 'DECStation Character devices' bool 'Virtual terminal' CONFIG_VT if [ "$CONFIG_VT" = "y" ]; then bool 'Support for console on virtual terminal' CONFIG_VT_CONSOLE fi tristate 'Standard/generic (dumb) serial support' CONFIG_SERIAL - if [ "$CONFIG_SGI_IP22" = "y" ]; then - bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE - fi if [ "$CONFIG_SERIAL" = "y" ]; then bool 'DZ11 Serial Support' CONFIG_DZ if [ "$CONFIG_TC" = "y" ]; then @@ -294,30 +305,43 @@ bool 'Enhanced Real Time Clock Support' CONFIG_RTC endmenu fi - -source drivers/usb/Config.in -#source drivers/misc/Config.in - -source fs/Config.in - -if [ "$CONFIG_VT" = "y" ]; then +if [ "$CONFIG_SGI_IP22" = "y" ]; then mainmenu_option next_comment - comment 'Console drivers' - if [ "$CONFIG_SGI_IP22" = "y" ]; then + comment 'SGI Character devices' + bool 'Virtual terminal' CONFIG_VT + if [ "$CONFIG_VT" = "y" ]; then + bool 'Support for console on virtual terminal' CONFIG_VT_CONSOLE tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE if [ "$CONFIG_SGI_NEWPORT_CONSOLE" != "y" ]; then define_bool CONFIG_DUMMY_CONSOLE y else define_bool CONFIG_FONT_8x16 y fi - else + bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE + fi + bool 'Unix98 PTY support' CONFIG_UNIX98_PTYS + if [ "$CONFIG_UNIX98_PTYS" = "y" ]; then + int 'Maximum number of Unix98 PTYs in use (0-2048)' CONFIG_UNIX98_PTY_COUNT 256 + fi + endmenu +fi + +#The ones having USB should include it +#source drivers/usb/Config.in + + +source fs/Config.in + +if [ "$CONFIG_VT" = "y" ]; then + mainmenu_option next_comment + + comment 'Console drivers' if [ "$CONFIG_DECSTATION" != "y" ]; then bool 'VGA text console' CONFIG_VGA_CONSOLE fi - bool 'Support for frame buffer devices' CONFIG_FB - source drivers/video/Config.in - fi + bool 'Support for frame buffer devices' CONFIG_FB + source drivers/video/Config.in endmenu fi @@ -339,7 +363,6 @@ mainmenu_option next_comment comment 'Kernel hacking' -#bool 'Debug kmalloc/kfree' CONFIG_DEBUG_MALLOC bool 'Are you using a crosscompiler' CONFIG_CROSSCOMPILE if [ "$CONFIG_MODULES" = "y" ]; then bool ' Build fp execption handler module' CONFIG_MIPS_FPE_MODULE -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 3 10:03:03 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 10:02:53 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:55158 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 10:02:28 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id KAA09677; Mon, 3 Apr 2000 10:06:11 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA56282; Mon, 3 Apr 2000 10:02:26 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA51247 for linux-list; Mon, 3 Apr 2000 09:51:44 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA57068 for ; Mon, 3 Apr 2000 09:51:38 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 JAA03640 for ; Mon, 3 Apr 2000 09:51:38 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id JAA05790; Mon, 3 Apr 2000 09:51:37 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id JAA14637; Mon, 3 Apr 2000 09:51:33 -0700 (PDT) Message-ID: <019d01bf9d8d$76b7a680$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Florian Lohoff" , Subject: Re: config.in revised #2 Date: Mon, 3 Apr 2000 18:55:41 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >-if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then >- define_bool CONFIG_BINFMT_IRIX y >- define_bool CONFIG_FORWARD_KEYBOARD y >-fi As someone more concerned with embedded apps than old SGI platforms, I would take issue with forcing IRIX binary format support and keyboard forwarding just because a big-endian CPU is configured. Yes, I know that this is for 2.3, and most of embedded apps are 2.0 or 2.2 based, but I figure it's better to speak up now... Regards, Kevin K. __ Kevin D. Kissell MIPS Technologies European Architecture Lab kevink@mips.com Tel. +33.4.78.38.70.67 FAX. +33.4.78.38.70.68 From owner-linuxmips@oss.sgi.com Mon Apr 3 16:55:37 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 16:55:28 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:28420 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 16:55:17 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id QAA03844; Mon, 3 Apr 2000 16:50:35 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA37123 for linux-list; Mon, 3 Apr 2000 16:44:42 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA42648 for ; Mon, 3 Apr 2000 16:44:41 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 QAA09631 for ; Mon, 3 Apr 2000 16:44:36 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 838B27FA; Tue, 4 Apr 2000 01:44:36 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 59DF98FC3; Tue, 4 Apr 2000 01:27:55 +0200 (CEST) Date: Tue, 4 Apr 2000 01:27:55 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: indigo2 problems - resume Message-ID: <20000404012755.C275@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, after trying at least 20 different kernels (Selfmade and binary images) i must say "Fu!&%!§!" - Basically its broken - The complete console thing is a bug with SGI_IP22 - If i get the kernel to boot until it mounts the nfs-root the console disappears (2.3.21 with serial console and 2.3.21 with prom console - cvs checkout -D 20000114) - Current CVS doesnt even boot until then. If i repair the prom console (Serial console doesnt work either) the kernel stops after "On node 0 totalpages: 65413" - Might the mm things be broken ? This looks really like NUMA issues Ralf is working on - Might this have broken the mips things ? Does anyone have an idea WHY the console disappears when going single user ? I see that the machine continues booting (strace on nfsd) - I tried nearly everything as "/dev/console" Major 5 minor 1 (serial-console howto), major 4 minor 64, link to ttyS0 - Nothing ... So currently i would say the SGI_IP22 mips things are unusable. Very frustrated Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 3 17:11:29 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 17:11:10 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:61493 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 17:10:54 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id RAA01576; Mon, 3 Apr 2000 17:14:39 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id RAA76428; Mon, 3 Apr 2000 17:10:54 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA98257 for linux-list; Mon, 3 Apr 2000 16:44:41 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA30562 for ; Mon, 3 Apr 2000 16:44:40 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 QAA05509 for ; Mon, 3 Apr 2000 16:44:36 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id A948E7FB; Tue, 4 Apr 2000 01:44:36 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 9702F8FC3; Tue, 4 Apr 2000 01:33:35 +0200 (CEST) Date: Tue, 4 Apr 2000 01:33:35 +0200 From: Florian Lohoff To: "Kevin D. Kissell" Cc: linux@cthulhu.engr.sgi.com Subject: Re: config.in revised #2 Message-ID: <20000404013335.D275@paradigm.rfc822.org> References: <019d01bf9d8d$76b7a680$0ceca8c0@satanas.mips.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=VS++wcV0S1rZb1Fb X-Mailer: Mutt 0.95.3i In-Reply-To: <019d01bf9d8d$76b7a680$0ceca8c0@satanas.mips.com>; from Kevin D. Kissell on Mon, Apr 03, 2000 at 06:55:41PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii On Mon, Apr 03, 2000 at 06:55:41PM +0200, Kevin D. Kissell wrote: > >-if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then > >- define_bool CONFIG_BINFMT_IRIX y > >- define_bool CONFIG_FORWARD_KEYBOARD y > >-fi > > As someone more concerned with embedded apps > than old SGI platforms, I would take issue with forcing > IRIX binary format support and keyboard forwarding just > because a big-endian CPU is configured. Yes, I know > that this is for 2.3, and most of embedded apps are > 2.0 or 2.2 based, but I figure it's better to speak up now... I already thought about that - Here #3 BTW: I didnt try to compile a big endian kernel without IRIX bincompat so - YMMV BTW: What is this CONFIG_FORWARD_KEYBOARD - I cant find anything in the mips specfic corner - Is this in use ? Comments ? Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=file Index: arch/mips/config.in =================================================================== RCS file: /cvs/linux/arch/mips/config.in,v retrieving revision 1.48 diff -u -r1.48 config.in --- arch/mips/config.in 2000/03/29 00:18:16 1.48 +++ arch/mips/config.in 2000/04/03 23:41:47 @@ -114,83 +114,84 @@ mainmenu_option next_comment comment 'General setup' -if [ "$CONFIG_DECSTATION" = "y" -o "$CONFIG_DDB5074" = "y" ]; then - define_bool CONFIG_CPU_LITTLE_ENDIAN y -else - bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN -fi - -if [ "$CONFIG_PROC_FS" = "y" ]; then - define_bool CONFIG_KCORE_ELF y -fi -define_bool CONFIG_ELF_KERNEL y - -if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then - define_bool CONFIG_BINFMT_IRIX y - define_bool CONFIG_FORWARD_KEYBOARD y -fi -define_bool CONFIG_BINFMT_AOUT n -define_bool CONFIG_BINFMT_ELF y -tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC - -bool 'Networking support' CONFIG_NET - -source drivers/pci/Config.in -source drivers/pcmcia/Config.in - -bool 'System V IPC' CONFIG_SYSVIPC -bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT -bool 'Sysctl support' CONFIG_SYSCTL - -if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then - source drivers/parport/Config.in -fi + if [ "$CONFIG_DECSTATION" = "y" -o "$CONFIG_DDB5074" = "y" ]; then + define_bool CONFIG_CPU_LITTLE_ENDIAN y + else + bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN + fi + + if [ "$CONFIG_PROC_FS" = "y" ]; then + define_bool CONFIG_KCORE_ELF y + fi + define_bool CONFIG_ELF_KERNEL y + + if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then + bool 'Include IRIX binary compatibility' CONFIG_BINFMT_IRIX + bool 'Include forward keyboard' CONFIG_FORWARD_KEYBOARD + fi + + define_bool CONFIG_BINFMT_AOUT n + define_bool CONFIG_BINFMT_ELF y + tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC + + bool 'Networking support' CONFIG_NET + + if [ "$CONFIG_PCI" = "y" ]; then + source drivers/pci/Config.in + fi + + bool 'System V IPC' CONFIG_SYSVIPC + bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT + bool 'Sysctl support' CONFIG_SYSCTL + + source drivers/parport/Config.in + + bool 'Enable loadable module support' CONFIG_MODULES + if [ "$CONFIG_MODULES" = "y" ]; then + bool ' Set version information on all symbols for modules' CONFIG_MODVERSIONS + bool ' Kernel module loader' CONFIG_KMOD + fi + + if [ "$CONFIG_DECSTATION" = "y" ]; then + bool 'TURBOchannel support' CONFIG_TC + fi endmenu -mainmenu_option next_comment -comment 'Loadable module support' -bool 'Enable loadable module support' CONFIG_MODULES -if [ "$CONFIG_MODULES" = "y" ]; then - bool ' Set version information on all symbols for modules' CONFIG_MODVERSIONS - bool ' Kernel module loader' CONFIG_KMOD +if [ "$CONFIG_ISA" = "y" ]; then + source drivers/pnp/Config.in fi - -source drivers/pci/Config.in -endmenu - -if [ "$CONFIG_DECSTATION" = "y" ]; then - mainmenu_option next_comment - comment 'TURBOchannel support' - bool 'TURBOchannel support' CONFIG_TC -# if [ "$CONFIG_TC" = "y" ]; then -# tristate ' MAGMA Parallel port support' CONFIG_PARPORT -# fi - endmenu +if [ "$CONFIG_ISA" = "y" -o "$CONFIG_PCI" = "y" ]; then + source drivers/pcmcia/Config.in fi -source drivers/pnp/Config.in - source drivers/block/Config.in if [ "$CONFIG_NET" = "y" ]; then source net/Config.in fi - -source drivers/telephony/Config.in - -mainmenu_option next_comment -comment 'ATA/IDE/MFM/RLL support' - -tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE -if [ "$CONFIG_IDE" != "n" ]; then - source drivers/ide/Config.in -else - define_bool CONFIG_BLK_DEV_IDE_MODES n - define_bool CONFIG_BLK_DEV_HD n +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then + source drivers/telephony/Config.in +fi + +if [ "$CONFIG_SGI_IP22" != "n" -a \ + "$CONFIG_DECSTATION" != "n" ]; then + + mainmenu_option next_comment + comment 'ATA/IDE/MFM/RLL support' + + tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE + + if [ "$CONFIG_IDE" != "n" ]; then + source drivers/ide/Config.in + else + define_bool CONFIG_BLK_DEV_IDE_MODES n + define_bool CONFIG_BLK_DEV_HD n + fi + endmenu fi -endmenu mainmenu_option next_comment comment 'SCSI support' @@ -202,7 +203,10 @@ fi endmenu -source drivers/i2o/Config.in +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then + source drivers/i2o/Config.in +fi if [ "$CONFIG_NET" = "y" ]; then mainmenu_option next_comment @@ -210,8 +214,13 @@ bool 'Network device support' CONFIG_NETDEVICES if [ "$CONFIG_NETDEVICES" = "y" ]; then - if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then + + if [ "$CONFIG_SGI_IP22" != "y" -a \ + "$CONFIG_DECSTATION" != "y" -a \ + "$CONFIG_BAGET_MIPS" != "y" ]; then + source drivers/net/Config.in + if [ "$CONFIG_ATM" = "y" ]; then source drivers/atm/Config.in fi @@ -239,8 +248,11 @@ fi endmenu fi + +if [ "$CONFIG_SGI_IP22" != "y" -a \ + "$CONFIG_DECSTATION" != "y" -a \ + "$CONFIG_BAGET_MIPS" != "y" ]; then -if [ "$CONFIG_SGI_IP22" != "y" -a "$CONFIG_DECSTATION" != "y" -a "$CONFIG_BAGET_MIPS" != "y" ]; then source drivers/net/hamradio/Config.in mainmenu_option next_comment @@ -264,20 +276,20 @@ endmenu fi -if [ "$CONFIG_DECSTATION" != "y" ]; then +if [ "$CONFIG_DECSTATION" != "n" -a \ + "$CONFIG_SGI_IP22" != "n" ]; then source drivers/char/Config.in -else +fi + +if [ "$CONFIG_DECSTATION" = "y" ]; then mainmenu_option next_comment - comment 'DECstation Character devices' + comment 'DECStation Character devices' bool 'Virtual terminal' CONFIG_VT if [ "$CONFIG_VT" = "y" ]; then bool 'Support for console on virtual terminal' CONFIG_VT_CONSOLE fi tristate 'Standard/generic (dumb) serial support' CONFIG_SERIAL - if [ "$CONFIG_SGI_IP22" = "y" ]; then - bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE - fi if [ "$CONFIG_SERIAL" = "y" ]; then bool 'DZ11 Serial Support' CONFIG_DZ if [ "$CONFIG_TC" = "y" ]; then @@ -294,30 +306,43 @@ bool 'Enhanced Real Time Clock Support' CONFIG_RTC endmenu fi - -source drivers/usb/Config.in -#source drivers/misc/Config.in - -source fs/Config.in - -if [ "$CONFIG_VT" = "y" ]; then +if [ "$CONFIG_SGI_IP22" = "y" ]; then mainmenu_option next_comment - comment 'Console drivers' - if [ "$CONFIG_SGI_IP22" = "y" ]; then + comment 'SGI Character devices' + bool 'Virtual terminal' CONFIG_VT + if [ "$CONFIG_VT" = "y" ]; then + bool 'Support for console on virtual terminal' CONFIG_VT_CONSOLE tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE if [ "$CONFIG_SGI_NEWPORT_CONSOLE" != "y" ]; then define_bool CONFIG_DUMMY_CONSOLE y else define_bool CONFIG_FONT_8x16 y fi - else + bool 'SGI PROM Console Support' CONFIG_SGI_PROM_CONSOLE + fi + bool 'Unix98 PTY support' CONFIG_UNIX98_PTYS + if [ "$CONFIG_UNIX98_PTYS" = "y" ]; then + int 'Maximum number of Unix98 PTYs in use (0-2048)' CONFIG_UNIX98_PTY_COUNT 256 + fi + endmenu +fi + +#The ones having USB should include it +#source drivers/usb/Config.in + + +source fs/Config.in + +if [ "$CONFIG_VT" = "y" ]; then + mainmenu_option next_comment + + comment 'Console drivers' if [ "$CONFIG_DECSTATION" != "y" ]; then bool 'VGA text console' CONFIG_VGA_CONSOLE fi - bool 'Support for frame buffer devices' CONFIG_FB - source drivers/video/Config.in - fi + bool 'Support for frame buffer devices' CONFIG_FB + source drivers/video/Config.in endmenu fi @@ -339,7 +364,6 @@ mainmenu_option next_comment comment 'Kernel hacking' -#bool 'Debug kmalloc/kfree' CONFIG_DEBUG_MALLOC bool 'Are you using a crosscompiler' CONFIG_CROSSCOMPILE if [ "$CONFIG_MODULES" = "y" ]; then bool ' Build fp execption handler module' CONFIG_MIPS_FPE_MODULE --VS++wcV0S1rZb1Fb-- From owner-linuxmips@oss.sgi.com Mon Apr 3 17:20:29 2000 Received: by oss.sgi.com id ; Mon, 3 Apr 2000 17:20:09 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:4663 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 3 Apr 2000 17:19:53 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id RAA09297; Mon, 3 Apr 2000 17:23:37 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id RAA78397; Mon, 3 Apr 2000 17:19:52 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id RAA52465 for linux-list; Mon, 3 Apr 2000 17:05:30 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id RAA17339 for ; Mon, 3 Apr 2000 17:05:29 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 RAA06951 for ; Mon, 3 Apr 2000 17:05:28 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id EF7E77D9; Tue, 4 Apr 2000 02:05:28 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id D91D28FC3; Tue, 4 Apr 2000 01:54:30 +0200 (CEST) Date: Tue, 4 Apr 2000 01:54:30 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: kernel hang indigo2 current cvs more specific Message-ID: <20000404015430.E275@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Ok, i debugged a bit arround and found that the current CVS kernel hang at "alloc_page.c" (For SGI_IP22) lmem_map = (struct page *) alloc_bootmem_node(nid, map_size); I had a small look into the function alloc_bootmem_node/core but didnt understand a word. Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 4 01:46:08 2000 Received: by oss.sgi.com id ; Tue, 4 Apr 2000 01:45:59 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:20562 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 4 Apr 2000 01:45:43 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id BAA02938; Tue, 4 Apr 2000 01:49:26 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA87204 for linux-list; Tue, 4 Apr 2000 01:34:22 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA30816 for ; Tue, 4 Apr 2000 01:34:21 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 BAA09516 for ; Tue, 4 Apr 2000 01:34:19 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id CAE9E7F9; Tue, 4 Apr 2000 10:34:19 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id D3F4F8FC3; Tue, 4 Apr 2000 10:22:52 +0200 (CEST) Date: Tue, 4 Apr 2000 10:22:52 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: Re: kernel hang indigo2 current cvs more specific Message-ID: <20000404102252.B276@paradigm.rfc822.org> References: <20000404015430.E275@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000404015430.E275@paradigm.rfc822.org>; from Florian Lohoff on Tue, Apr 04, 2000 at 01:54:30AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 04, 2000 at 01:54:30AM +0200, Florian Lohoff wrote: > Ok, > i debugged a bit arround and found that the current CVS kernel > hang at "alloc_page.c" (For SGI_IP22) > > lmem_map = (struct page *) alloc_bootmem_node(nid, map_size); > > I had a small look into the function alloc_bootmem_node/core but didnt > understand a word. Reduced it even more - At the end of alloc_bootmem_core the memset is the fault - It seems to overwrite something and/or does not return. My suspicion is that the memory map(s) are not correct and initializing existing memory causes this fault. Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 4 02:16:28 2000 Received: by oss.sgi.com id ; Tue, 4 Apr 2000 02:16:08 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:18004 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 4 Apr 2000 02:15:59 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id CAA01993; Tue, 4 Apr 2000 02:19:43 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id CAA60621; Tue, 4 Apr 2000 02:15:57 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id CAA64159 for linux-list; Tue, 4 Apr 2000 02:00:03 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id CAA88598 for ; Tue, 4 Apr 2000 02:00:00 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) 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 BAA07714 for ; Tue, 4 Apr 2000 01:59:52 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from dandelion.sonytel.be (dandelion.sonytel.be [193.74.243.153]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA06999; Tue, 4 Apr 2000 10:59:44 +0200 (MET DST) Date: Tue, 4 Apr 2000 10:59:43 +0200 (MET DST) From: Geert Uytterhoeven To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: kernel hang indigo2 current cvs more specific In-Reply-To: <20000404102252.B276@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, 4 Apr 2000, Florian Lohoff wrote: > On Tue, Apr 04, 2000 at 01:54:30AM +0200, Florian Lohoff wrote: > > i debugged a bit arround and found that the current CVS kernel > > hang at "alloc_page.c" (For SGI_IP22) > > > > lmem_map = (struct page *) alloc_bootmem_node(nid, map_size); > > > > I had a small look into the function alloc_bootmem_node/core but didnt > > understand a word. > > Reduced it even more - At the end of alloc_bootmem_core the memset is > the fault - It seems to overwrite something and/or does not return. > > My suspicion is that the memory map(s) are not correct and initializing > existing memory causes this fault. Perhaps this helps: the bootmem stuff in arch/mips/ddb5074/prom.c works fine. The DDB5074 has 64 MB of fixed non-upgradable memory at physical 0x00000000 virtual 0x80000000. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE) Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55 Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium From owner-linuxmips@oss.sgi.com Tue Apr 4 12:27:37 2000 Received: by oss.sgi.com id ; Tue, 4 Apr 2000 12:27:27 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:47131 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 4 Apr 2000 12:27:09 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA09446; Tue, 4 Apr 2000 12:30:55 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA70991 for linux-list; Tue, 4 Apr 2000 12:15:09 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA82674 for ; Tue, 4 Apr 2000 12:15:00 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 MAA04544 for ; Tue, 4 Apr 2000 12:14:40 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 91FED7F9; Tue, 4 Apr 2000 21:14:37 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A81258FC3; Tue, 4 Apr 2000 21:02:57 +0200 (CEST) Date: Tue, 4 Apr 2000 21:02:57 +0200 From: Florian Lohoff To: Geert Uytterhoeven Cc: linux@cthulhu.engr.sgi.com Subject: Re: kernel hang indigo2 current cvs more specific Message-ID: <20000404210257.A1517@paradigm.rfc822.org> References: <20000404102252.B276@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Geert Uytterhoeven on Tue, Apr 04, 2000 at 10:59:43AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 04, 2000 at 10:59:43AM +0200, Geert Uytterhoeven wrote: > > Perhaps this helps: the bootmem stuff in arch/mips/ddb5074/prom.c works fine. > The DDB5074 has 64 MB of fixed non-upgradable memory at physical 0x00000000 > virtual 0x80000000. Do you or anyone else have a clue why i cant find anything like this bootmap_size = init_bootmem(start_pfn, mem_size >> PAGE_SHIFT); /* Free the entire available memory after the _end symbol. */ free_start += bootmap_size; free_bootmem(free_start, free_end-free_start); in the arch/mips/sgi/kernel/ directory ? Could it be that this structure is new and has never been implemented for the IP22 ? Yep - Thats it - In 2.3.21 this init_bootmem thing doesnt exists - And though dec hasnt got it - In 2.3.99pre3 the dec has it - But not the sgi *grrrrr* Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 4 12:42:57 2000 Received: by oss.sgi.com id ; Tue, 4 Apr 2000 12:42:48 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:20253 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 4 Apr 2000 12:42:29 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA01857; Tue, 4 Apr 2000 12:46:14 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id MAA08727; Tue, 4 Apr 2000 12:42:27 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA98541 for linux-list; Tue, 4 Apr 2000 12:32:45 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA34369 for ; Tue, 4 Apr 2000 12:32:43 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 MAA00843 for ; Tue, 4 Apr 2000 12:32:41 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 8344A7F9; Tue, 4 Apr 2000 21:32:41 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A4F598FC3; Tue, 4 Apr 2000 21:11:17 +0200 (CEST) Date: Tue, 4 Apr 2000 21:11:17 +0200 From: Florian Lohoff To: Geert Uytterhoeven Cc: linux@cthulhu.engr.sgi.com Subject: Re: kernel hang indigo2 current cvs more specific Message-ID: <20000404211117.C1517@paradigm.rfc822.org> References: <20000404102252.B276@paradigm.rfc822.org> <20000404210257.A1517@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000404210257.A1517@paradigm.rfc822.org>; from Florian Lohoff on Tue, Apr 04, 2000 at 09:02:57PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 04, 2000 at 09:02:57PM +0200, Florian Lohoff wrote: > in the arch/mips/sgi/kernel/ directory ? Could it be that this structure > is new and has never been implemented for the IP22 ? > > Yep - Thats it - In 2.3.21 this init_bootmem thing doesnt exists - And though > dec hasnt got it - In 2.3.99pre3 the dec has it - But not the sgi *grrrrr* Ops - Better look around before writing mails - arc ... Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 4 13:57:48 2000 Received: by oss.sgi.com id ; Tue, 4 Apr 2000 13:57:38 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:19066 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 4 Apr 2000 13:57:30 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id NAA25369; Tue, 4 Apr 2000 13:52:48 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id NAA21767 for linux-list; Tue, 4 Apr 2000 13:46:00 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id NAA35601 for ; Tue, 4 Apr 2000 13:45:57 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 NAA00963 for ; Tue, 4 Apr 2000 13:45:55 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 893477D9; Tue, 4 Apr 2000 22:45:55 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 78DC48FC3; Tue, 4 Apr 2000 22:34:15 +0200 (CEST) Date: Tue, 4 Apr 2000 22:34:15 +0200 From: Florian Lohoff To: Geert Uytterhoeven Cc: linux@cthulhu.engr.sgi.com Subject: Re: kernel hang indigo2 current cvs more specific Message-ID: <20000404223415.D1517@paradigm.rfc822.org> References: <20000404102252.B276@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Geert Uytterhoeven on Tue, Apr 04, 2000 at 10:59:43AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 04, 2000 at 10:59:43AM +0200, Geert Uytterhoeven wrote: > > My suspicion is that the memory map(s) are not correct and initializing > > existing memory causes this fault. > > Perhaps this helps: the bootmem stuff in arch/mips/ddb5074/prom.c works fine. > The DDB5074 has 64 MB of fixed non-upgradable memory at physical 0x00000000 > virtual 0x80000000. IIRC the Virtual/Physical mapping is on the Mips cpus 1:1 on bootup right ? So what would one pass to init_bootmem and co ? At the moment i see start 0x8800 and size 0xff85 Then - A bit later - the bitmap gets allocated (Free all - allocate/reserve back - Changed that - Not the fault) ~0x1ff4 bytes ~2 Pages - I tried to increase this (bootmap_size*4) but still in the mm/bootmem.c the machine crashes in the memset as it trys to memset to 0 from 88002000 and ~4MB ... The most interesting thing is that even if i increase the bootmap_size (*4) the memset begins at the same address - It seems that it doesnt care on allocation. I had a look at the end of mm/bootmem.c:__alloc_bootmem_core and saw that it trys to memset from 0x88002000. So currently i think i lost the overview and something very obvious goes on ... Flo -- Florian Lohoff flo@rfc822.org +49-5241-470566 "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Wed Apr 5 11:46:10 2000 Received: by oss.sgi.com id ; Wed, 5 Apr 2000 11:45:54 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:45180 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 5 Apr 2000 11:45:21 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id LAA05086; Wed, 5 Apr 2000 11:49:06 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA34793 for linux-list; Wed, 5 Apr 2000 11:30:35 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA17002 for ; Wed, 5 Apr 2000 11:30:28 -0700 (PDT) mail_from (mikehill@hgeng.com) Received: from calvin.tor.onramp.ca (calvin.tor.onramp.ca [204.225.88.15]) 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 SMTP id LAA01701 for ; Wed, 5 Apr 2000 11:30:22 -0700 (PDT) mail_from (mikehill@hgeng.com) Received: (qmail 15654 invoked from network); 5 Apr 2000 18:30:19 -0000 Received: from imail.hgeng.com (HELO bart.hgeng.com) (199.246.72.233) by mail.onramp.ca with SMTP; 5 Apr 2000 18:30:19 -0000 Received: by BART with Internet Mail Service (5.5.2232.9) id ; Wed, 5 Apr 2000 14:23:02 -0400 Message-ID: From: Mike Hill To: "'Florian Lohoff'" , linux@cthulhu.engr.sgi.com Subject: RE: kernel for indigo2 Date: Wed, 5 Apr 2000 14:23:01 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi Florian, I re-ran the Hardhat installer with setup-1.9.2.noarch.rpm in place of 1.9.1. (The installer seemed to have a problem with the root password I entered.) I can now boot the Indigo2 with the 2.3.21 kernel (boot vmlinux root=/dev/sdb1 console=ttyS0) and see the kernel boot-up messages in the serial console. The last messages visible are: Freeing unused kernel memory: 48k freed Unable to find swap-space signature [this message appears four times] At this point, the hard drive is silent, and telnet from another machine elicits this response: Hard Hat Linux Hard Hat release 5.1 (Manhattan) Kernel 2.3.21 on a mips login: My attempted root login is then declared invalid. For my next trick I'll try pre-loading installfs/etc/passwd with a valid account, then re-running the installer. Is there any reason this shouldn't work? Thanks, Mike From owner-linuxmips@oss.sgi.com Wed Apr 5 12:04:11 2000 Received: by oss.sgi.com id ; Wed, 5 Apr 2000 12:03:51 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:23302 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 5 Apr 2000 12:03:34 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA08201; Wed, 5 Apr 2000 12:07:19 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA38331 for linux-list; Wed, 5 Apr 2000 11:52:54 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA73707 for ; Wed, 5 Apr 2000 11:52:49 -0700 (PDT) mail_from (richardh@penguin.nl) Received: from smtpf.casema.net (smtpf.casema.net [195.96.96.173]) 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 SMTP id LAA01718 for ; Wed, 5 Apr 2000 11:52:42 -0700 (PDT) mail_from (richardh@penguin.nl) Received: (qmail 6880 invoked by uid 0); 5 Apr 2000 18:52:37 -0000 Received: from unknown (HELO penguin.nl) (195.96.116.71) by smtpf.casema.net with SMTP; 5 Apr 2000 18:52:37 -0000 Message-ID: <38EB8BD1.8BB0AEB5@penguin.nl> Date: Wed, 05 Apr 2000 20:54:09 +0200 From: Richard X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.9 i686) X-Accept-Language: en MIME-Version: 1.0 To: Mike Hill CC: linux@cthulhu.engr.sgi.com Subject: Re: kernel for indigo2 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing > Hard Hat Linux Hard Hat release 5.1 (Manhattan) > Kernel 2.3.21 on a mips > > login: > > My attempted root login is then declared invalid. For my next trick I'll > try pre-loading installfs/etc/passwd with a valid account, then re-running > the installer. Is there any reason this shouldn't work? The reason your root login is not validated, is because Redhat doesn't allow root logins over a tellnet session by default, and because of some stupid decission made once, it doesn't allow you to make a user account during installation. That's why you've had to change the setup-noarch.rpm to add a secure tty, to login as root over a telnet session. your /etc/passwd trick would also work Richard From owner-linuxmips@oss.sgi.com Thu Apr 6 01:25:17 2000 Received: by oss.sgi.com id ; Thu, 6 Apr 2000 01:25:07 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:54067 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 6 Apr 2000 01:24:41 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA16639; Thu, 6 Apr 2000 01:19:58 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA03945 for linux-list; Thu, 6 Apr 2000 01:12:47 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA63435 for ; Thu, 6 Apr 2000 01:12:46 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA14530 for ; Thu, 6 Apr 2000 01:08:05 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 1DA597F4; Thu, 6 Apr 2000 09:59:35 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id B16008FC3; Wed, 5 Apr 2000 22:34:13 +0200 (CEST) Date: Wed, 5 Apr 2000 22:34:13 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: cause of early indigo2 crash Message-ID: <20000405223413.B996@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i discovered that the prom of the indigo2 reports 2 MEMTYPE_FREE segments - One at 08002000 and the other at 88000000 - The second one at least 16 times larger - If i exclude the first segment from beeing freed and thus used the kernel boots much further - This is what i did in the arch/mips/arc/memory.c for (i = 0; pblocks[i].size; i++) if (pblocks[i].type == MEMTYPE_FREE && pblocks[i].base != 0x8002000) free_bootmem(pblocks[i].base, pblocks[i].size); Now i get a very different crash - After SCSI Detection i get scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=96, scaling scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=80, scaling scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=64, scaling scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=48, scaling WARNING, not enough memory, pool not expanded Unable to handle kernel paging request at virtual address 00000000, epc == 880cc668, ra == 880cc5d8 [...] Thats it - Might the first area be DMA bounce buffer only which have to be initialized in the memory controller ? Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 6 03:45:59 2000 Received: by oss.sgi.com id ; Thu, 6 Apr 2000 03:45:39 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:30558 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 6 Apr 2000 03:45:09 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id DAA07991; Thu, 6 Apr 2000 03:39:06 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id DAA79414 for linux-list; Thu, 6 Apr 2000 03:36:08 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id DAA76172 for ; Thu, 6 Apr 2000 03:34:47 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id DAA06798 for ; Thu, 6 Apr 2000 03:30:06 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 8751C7F5; Thu, 6 Apr 2000 12:21:37 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 192D68FC3; Thu, 6 Apr 2000 12:08:31 +0200 (CEST) Date: Thu, 6 Apr 2000 12:08:31 +0200 From: Florian Lohoff To: Geert Uytterhoeven Cc: linux@cthulhu.engr.sgi.com Subject: Re: cause of early indigo2 crash Message-ID: <20000406120830.A276@paradigm.rfc822.org> References: <20000405223413.B996@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Geert Uytterhoeven on Thu, Apr 06, 2000 at 10:51:17AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 06, 2000 at 10:51:17AM +0200, Geert Uytterhoeven wrote: > > scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=48, scaling > > WARNING, not enough memory, pool not expanded > > Unable to handle kernel paging request at virtual address 00000000, epc == 880cc668, ra == 880cc5d8 > > [...] > ^^^^^ > What's here? Usually it tells the function where it crashes. :) I dont have an System.map available - But i think i know the cause of the crash - I think the arch/mips/arc/memory.c forgets to allocate/not-free the memory the kernel - I dont think the ARC Prom is able to mark the kernel memory different - But i cant see a location where it explicitly reserves/allocates the kernel pages. Dec and ddb to something like free_bootmem(bootmap,&_end,size-_end) - Nothing like that in the arc things ... They free all memory segments the ARC Prom gives back as "MEMTYPE_FREE" (arc_contigm, arc_freem) and then it just takes the largest segment (there are 2 segments - before and after the arc-prom segment) and installs the bootmem-map in there. The next alloc and memset causes the crash as it allocates from 88002000 which is the end of the mem map - My suspicion is (Which ill try tonight) that the memory map with 2 pages is that small that is just overwrites parts of the kernel with no effect - The next alloc and memset is 4MB - This destroys the kernel completely and though causes a crash. > I see these panics sometimes as well. Where does the crash happen? Please > lookup in System.map. Ill do tonight Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 6 12:51:56 2000 Received: by oss.sgi.com id ; Thu, 6 Apr 2000 12:51:46 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:60798 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 6 Apr 2000 12:51:39 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA09689; Thu, 6 Apr 2000 12:55:26 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id MAA97063; Thu, 6 Apr 2000 12:51:38 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA51448 for linux-list; Thu, 6 Apr 2000 01:55:15 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from deliverator.sgi.com (deliverator.sgi.com [150.166.91.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA40159 for ; Thu, 6 Apr 2000 01:55:14 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA21500 for ; Thu, 6 Apr 2000 01:50:17 -0700 (PDT) mail_from (Geert.Uytterhoeven@sonycom.com) Received: from dandelion.sonytel.be (dandelion.sonytel.be [193.74.243.153]) by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA04684; Thu, 6 Apr 2000 10:51:17 +0200 (MET DST) Date: Thu, 6 Apr 2000 10:51:17 +0200 (MET DST) From: Geert Uytterhoeven To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: cause of early indigo2 crash In-Reply-To: <20000405223413.B996@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, 5 Apr 2000, Florian Lohoff wrote: > i discovered that the prom of the indigo2 reports 2 MEMTYPE_FREE > segments - One at 08002000 and the other at 88000000 - The second one > at least 16 times larger - If i exclude the first segment from beeing > freed and thus used the kernel boots much further - This is what > i did in the arch/mips/arc/memory.c > > for (i = 0; pblocks[i].size; i++) > if (pblocks[i].type == MEMTYPE_FREE && > pblocks[i].base != 0x8002000) > free_bootmem(pblocks[i].base, pblocks[i].size); > > Now i get a very different crash - After SCSI Detection i get > > scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=96, scaling > scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=80, scaling > scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=64, scaling > scsi::resize_dma_pool: WARNING, dma_sectors=0, wanted=48, scaling > WARNING, not enough memory, pool not expanded > Unable to handle kernel paging request at virtual address 00000000, epc == 880cc668, ra == 880cc5d8 > [...] ^^^^^ What's here? Usually it tells the function where it crashes. > Thats it - Might the first area be DMA bounce buffer only which have to > be initialized in the memory controller ? I see these panics sometimes as well. Where does the crash happen? Please lookup in System.map. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE) Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55 Voice +32-2-7248638 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium From owner-linuxmips@oss.sgi.com Thu Apr 6 13:11:56 2000 Received: by oss.sgi.com id ; Thu, 6 Apr 2000 13:11:47 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:15632 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 6 Apr 2000 13:11:30 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id NAA00912; Thu, 6 Apr 2000 13:06:48 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id NAA83335 for linux-list; Thu, 6 Apr 2000 13:03:27 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id NAA83356 for ; Thu, 6 Apr 2000 13:03:26 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 NAA01215 for ; Thu, 6 Apr 2000 13:03:23 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 536657F9; Thu, 6 Apr 2000 22:03:23 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 0E3228FC3; Thu, 6 Apr 2000 21:50:17 +0200 (CEST) Date: Thu, 6 Apr 2000 21:50:16 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: DMA memory on IP22 unavailable ? Message-ID: <20000406215014.E5141@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i have fixed the original problem with the bootmem initialization for ARC which didnt reserve the kernel pages as unallocatable - This is already committed to CVS for the ones trying on IP22. Now i have a different problems - The kernel halts on further boot with no memory for SCSI DMA. This is due to my indigo2 having physical memory from 0x08002000 - 0x08740000 0x08200000 - 0x0ff85000 Now the official DMA able memory from include/asm/dma.h is #define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000) which is 0x81000000 which is completely out of range for the SGI. I now just changed this to 8f000000 but what is the correct way to solve this and what is the correct dma able memory (I suppose all memory is dma-able). -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 6 14:32:17 2000 Received: by oss.sgi.com id ; Thu, 6 Apr 2000 14:32:07 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:60430 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 6 Apr 2000 14:31:53 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA02664; Thu, 6 Apr 2000 14:35:40 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA09404 for linux-list; Thu, 6 Apr 2000 14:19:23 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA09586 for ; Thu, 6 Apr 2000 14:18:46 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 OAA01962 for ; Thu, 6 Apr 2000 14:18:09 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 740537FC; Thu, 6 Apr 2000 23:18:06 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 583918FC3; Thu, 6 Apr 2000 23:05:05 +0200 (CEST) Date: Thu, 6 Apr 2000 23:05:05 +0200 From: Florian Lohoff To: Geert Uytterhoeven Cc: linux@cthulhu.engr.sgi.com Subject: Re: cause of early indigo2 crash Message-ID: <20000406230505.E13727@paradigm.rfc822.org> References: <20000405223413.B996@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Geert Uytterhoeven on Thu, Apr 06, 2000 at 10:51:17AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 06, 2000 at 10:51:17AM +0200, Geert Uytterhoeven wrote: > What's here? Usually it tells the function where it crashes. > > > Thats it - Might the first area be DMA bounce buffer only which have to > > be initialized in the memory controller ? > > I see these panics sometimes as well. Where does the crash happen? Please > lookup in System.map. Its in drivers/scsi/scsi_dma.c It happens due to no available scsi dma buffers which is caused by the fact that MAX_DMA_ADDRESS is below the lowest free memory segment (Kernel overlaps). If i increase the MAX_DMA_ADDRESS include/asm/dma.h. As most of the drivers dont use the MAX_DMA_ADDRESS (zone allocator should have made it obsolete) i suggest leaving it like it is and changing arch/mips/mm/init.c to: #if defined(CONFIG_ISA) || defined(CONFIG_PCI) if (low < max_dma) zones_size[ZONE_DMA] = low; else { zones_size[ZONE_DMA] = max_dma; zones_size[ZONE_NORMAL] = low - max_dma; } #else zones_size[ZONE_DMA] = low; #endif as the dma.h comment says that this only applies to standard PC dma controllers. If no one objects ill commit this. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 6 16:08:27 2000 Received: by oss.sgi.com id ; Thu, 6 Apr 2000 16:08:18 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:42573 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 6 Apr 2000 16:07:54 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id QAA27194; Thu, 6 Apr 2000 16:03:12 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA42702 for linux-list; Thu, 6 Apr 2000 16:01:02 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgigate.sgi.com (sgigate.sgi.com [198.29.75.75]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA42868 for ; Thu, 6 Apr 2000 16:01:01 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Thu, 6 Apr 2000 15:37:41 -0700 Date: Thu, 6 Apr 2000 15:37:41 -0700 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com Subject: Re: DMA memory on IP22 unavailable ? Message-ID: <20000406153741.C801@uni-koblenz.de> References: <20000406215014.E5141@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000406215014.E5141@paradigm.rfc822.org>; from flo@rfc822.org on Thu, Apr 06, 2000 at 09:50:16PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 06, 2000 at 09:50:16PM +0200, Florian Lohoff wrote: > i have fixed the original problem with the bootmem initialization > for ARC which didnt reserve the kernel pages as unallocatable - This > is already committed to CVS for the ones trying on IP22. Now i have > a different problems - The kernel halts on further boot with > no memory for SCSI DMA. > > This is due to my indigo2 having physical memory from > 0x08002000 - 0x08740000 > 0x08200000 - 0x0ff85000 > > Now the official DMA able memory from include/asm/dma.h is > > #define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x01000000) > > which is 0x81000000 which is completely out of range for > the SGI. I now just changed this to 8f000000 but what > is the correct way to solve this and what is the correct > dma able memory (I suppose all memory is dma-able). This change is not acceptable for the IP22 because the Indigo2 has EISA slots. When only using the builtin SCSI hostadapter nothing should use GFP_DMA; on IP22 the entire memory is DMA-able. Ralf From owner-linuxmips@oss.sgi.com Fri Apr 7 01:38:43 2000 Received: by oss.sgi.com id ; Fri, 7 Apr 2000 01:38:24 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:17196 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 7 Apr 2000 01:38:14 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA09772; Fri, 7 Apr 2000 01:33:32 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA47731 for linux-list; Fri, 7 Apr 2000 01:27:35 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA48356 for ; Fri, 7 Apr 2000 01:27:34 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 BAA08749 for ; Fri, 7 Apr 2000 01:27:33 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 960307FC; Fri, 7 Apr 2000 10:27:18 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A5A828FC3; Fri, 7 Apr 2000 10:13:46 +0200 (CEST) Date: Fri, 7 Apr 2000 10:13:46 +0200 From: Florian Lohoff To: Ralf Baechle Cc: linux@cthulhu.engr.sgi.com Subject: Re: DMA memory on IP22 unavailable ? Message-ID: <20000407101346.C268@paradigm.rfc822.org> References: <20000406215014.E5141@paradigm.rfc822.org> <20000406153741.C801@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000406153741.C801@uni-koblenz.de>; from Ralf Baechle on Thu, Apr 06, 2000 at 03:37:41PM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 06, 2000 at 03:37:41PM -0700, Ralf Baechle wrote: > > This change is not acceptable for the IP22 because the Indigo2 has EISA > slots. OK > When only using the builtin SCSI hostadapter nothing should use GFP_DMA; > on IP22 the entire memory is DMA-able. It does request DMA pages which are not available within the zone allocator or at least not because the kernel occupies the dma able pages with the setup above. That causes the SCSI Partition scan to fail as scsi_dma.c requests space for 96 dmaable sectors which are not available. A couple of locations in the generic scsi code call scsi_resize_dma_pool which itself tries to get DMA memory via __get_free_pages(GFP_ATOMIC | GFP_DMA, 0); Which trys to get pages from ZONE_DMA which itself contains no free pages on MY indigo2 as the kernel occoupies the handful pages in the default specified range. This causes scsi_resize_dma_pool to fail but the locations i checked in the generic scsi code do not check for return values. BTW: Are the EISA slots supported ? Does the "Default" MAX_DMA_ADDRESS apply to that DMA controller ? My above solution just declares all memory to DMA-able memory. Solution ? Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 7 01:42:44 2000 Received: by oss.sgi.com id ; Fri, 7 Apr 2000 01:42:24 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:55340 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 7 Apr 2000 01:42:14 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA09995; Fri, 7 Apr 2000 01:37:31 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA68447 for linux-list; Fri, 7 Apr 2000 01:34:06 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA51062 for ; Fri, 7 Apr 2000 01:34:04 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 BAA07572 for ; Fri, 7 Apr 2000 01:34:03 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id B83737F4; Fri, 7 Apr 2000 10:34:04 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 303F48FC3; Fri, 7 Apr 2000 10:20:38 +0200 (CEST) Date: Fri, 7 Apr 2000 10:20:38 +0200 From: Florian Lohoff To: Ralf Baechle Cc: linux@cthulhu.engr.sgi.com Subject: Re: DMA memory on IP22 unavailable ? Message-ID: <20000407102038.D268@paradigm.rfc822.org> References: <20000406215014.E5141@paradigm.rfc822.org> <20000406153741.C801@uni-koblenz.de> <20000407101346.C268@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000407101346.C268@paradigm.rfc822.org>; from Florian Lohoff on Fri, Apr 07, 2000 at 10:13:46AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 07, 2000 at 10:13:46AM +0200, Florian Lohoff wrote: > BTW: Are the EISA slots supported ? > Does the "Default" MAX_DMA_ADDRESS apply to that DMA controller ? > My above solution just declares all memory to DMA-able memory. BTW: With above solution i meant a thread with Geert which contained a probably better solution. This is arch/mips/mm/init.c - Which puts all memory into ZONE_DMA when no ISA or PCI available. #if defined(CONFIG_ISA) || defined(CONFIG_PCI) if (low < max_dma) zones_size[ZONE_DMA] = low; else { zones_size[ZONE_DMA] = max_dma; zones_size[ZONE_NORMAL] = low - max_dma; } #else zones_size[ZONE_DMA] = low; #endif Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 7 14:12:38 2000 Received: by oss.sgi.com id ; Fri, 7 Apr 2000 14:12:18 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:60678 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 7 Apr 2000 14:11:48 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA08943; Fri, 7 Apr 2000 14:15:36 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id NAA77181 for linux-list; Fri, 7 Apr 2000 13:59:51 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id NAA74298 for ; Fri, 7 Apr 2000 13:59:48 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: from belgarath.esg-guetersloh.mediapoint.de (belgarath.esg-guetersloh.mediapoint.de [193.189.251.50]) 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 NAA01296 for ; Fri, 7 Apr 2000 13:59:35 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: by belgarath.esg-guetersloh.mediapoint.de (Postfix, from userid 1000) id 0DC8C512EA; Fri, 07 Apr 2000 22:59:46 +0200 (CEST) Date: Fri, 7 Apr 2000 22:59:45 +0200 From: Jan-Benedict Glaw To: linux@cthulhu.engr.sgi.com Subject: Indigo I / SNI RW320 / IP12 support Message-ID: <20000407225945.A5883@lug-owl.de> Reply-To: jbglaw@lug-owl.de Mail-Followup-To: linux@cthulhu.engr.sgi.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" X-Mailer: Mutt 1.0i X-Operating-System: Linux belgarath.esg-guetersloh.mediapoint.de 2.0.35 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi! I've got an old RW320 (which seems to simply be an Indogo) and we (Flo and /me) tried to boot a kernel. Stops immediately with an exception;( Well, is there any hardware docu available for this old box? We *think* that an early initialisation of some hardware (meybe memory related...) fails here. What I need is simply a bunch of papers... Can anybody help? MfG, JBG --=20 Fehler eingestehen, Gr=F6=DFe zeigen: Nehmt die Rechtschreibreform zur=FCck= !!! /* Jan-Benedict Glaw -- +49-177-5601720 */ keyID=3D0x8399E1BB fingerprint=3D250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 83= 99 E1BB --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEAREBAAYFAjjuTEEACgkQHb1edYOZ4bu7ZACcCIz2nk5cZbSV7IiUrw5K5zhX PZoAnj5+6+3RpKkSFsspgr3d7wbrIpsM =2DL+ -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb-- From owner-linuxmips@oss.sgi.com Mon Apr 10 16:47:38 2000 Received: by oss.sgi.com id ; Mon, 10 Apr 2000 16:47:29 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:25645 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 10 Apr 2000 16:47:07 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id QAA02464; Mon, 10 Apr 2000 16:50:59 -0700 (PDT) mail_from (owner-linux@sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id QAA42362; Mon, 10 Apr 2000 16:46:36 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA33986 for linux-list; Mon, 10 Apr 2000 16:26:03 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from calypso.engr.sgi.com (calypso.engr.sgi.com [163.154.5.113]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA37604; Mon, 10 Apr 2000 16:26:00 -0700 (PDT) mail_from (ulfc@calypso.engr.sgi.com) Received: from localhost (localhost [127.0.0.1]) by calypso.engr.sgi.com (Postfix) with ESMTP id 07EE2A7904; Mon, 10 Apr 2000 15:22:37 -0700 (PDT) Date: Mon, 10 Apr 2000 15:22:36 -0700 (PDT) From: Ulf Carlsson To: Jun Sun Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: gdb cross-debugging for MIPS linux target In-Reply-To: <38F252A4.21CF13E0@mvista.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing > Does anybody know if I can use gdb to cross-debug a MIPS/Linux target > with i386/Linux host? > > I downloaded gdb source and tried "./configure --target=mipsel-linux" on > my i386/Linux host. I got an error saying "mipsel-unknown-linux-gnu" > not supported. > > If such a port does not exist, can someone point to me a starting place > where I can do the port myself? I think there's a gdb tree in the CVS repository on oss.sgi.com. Try to check out the gdb module. I have been using gdb to cross debug my MIPS machine so it was at least functional last summer. I have a patch that adds kdb support do the MIPS kernel, but I don't think it's finished. Scott Lurndal was hacking on it a couple of months ago and I can send it to you if you're interested. Ulf From owner-linuxmips@oss.sgi.com Wed Apr 12 11:36:57 2000 Received: by oss.sgi.com id ; Wed, 12 Apr 2000 11:36:38 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:56600 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 12 Apr 2000 11:36:24 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA19100; Wed, 12 Apr 2000 11:31:41 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id LAA83710; Wed, 12 Apr 2000 11:34:38 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA83362 for linux-list; Wed, 12 Apr 2000 11:22:07 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA90563 for ; Wed, 12 Apr 2000 11:22:05 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 LAA04308 for ; Wed, 12 Apr 2000 11:22:04 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id CAC657F4; Wed, 12 Apr 2000 20:22:01 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 45EBC8FDF; Wed, 12 Apr 2000 20:18:30 +0200 (CEST) Date: Wed, 12 Apr 2000 20:18:29 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Cc: linux-kernel@vger.rutgers.edu Subject: sgiserial.c / rs_init invoke ? Message-ID: <20000412201829.A451@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i am currently digging deeper into sgiserial.c and friends. My problem right now is that i dont understand when and how the rs_init should and will be called - Currently i have an __initcall(rs_init) in arch/mips/sgi/kernel/setup.c which is definitly wrong - But should this be invoked - I cant find how i386 does this (Could somebody enlighten me what module_init(rs_init) in drivers/char/serial.c does ?) Currently i have problems switching from serial_console to tty code for userspace - I see sgiserial.c receiving transmit fifo empty IRQs and i see filling the fifo but i dont see any chars although i see chars with serial_console :( Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 14 06:32:38 2000 Received: by oss.sgi.com id ; Fri, 14 Apr 2000 06:32:29 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:25182 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 14 Apr 2000 06:32:20 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id GAA24884; Fri, 14 Apr 2000 06:27:36 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id GAA60175 for linux-list; Fri, 14 Apr 2000 06:07:52 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id GAA57178 for ; Fri, 14 Apr 2000 06:07:49 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from styx.cs.kuleuven.ac.be (styx.cs.kuleuven.ac.be [134.58.40.3]) 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 GAA08466 for ; Fri, 14 Apr 2000 06:07:48 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from cassiopeia.home (root@dialup006.cs.kuleuven.ac.be [134.58.47.135]) by styx.cs.kuleuven.ac.be (8.9.3/8.9.3) with ESMTP id PAA09979; Fri, 14 Apr 2000 15:07:20 +0200 (MET DST) Received: from localhost (geert@localhost) by cassiopeia.home (8.9.3/8.9.3/Debian/GNU) with ESMTP id OAA00471; Fri, 14 Apr 2000 14:48:42 +0200 X-Authentication-Warning: cassiopeia.home: geert owned process doing -bs Date: Fri, 14 Apr 2000 14:48:42 +0200 (CEST) From: Geert Uytterhoeven To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com, linux-kernel@vger.rutgers.edu Subject: Re: sgiserial.c / rs_init invoke ? In-Reply-To: <20000412201829.A451@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, 12 Apr 2000, Florian Lohoff wrote: > i am currently digging deeper into sgiserial.c and friends. > My problem right now is that i dont understand when and how the > rs_init should and will be called - Currently i have an > __initcall(rs_init) in arch/mips/sgi/kernel/setup.c which is definitly > wrong - But should this be invoked - I cant find how i386 does this > (Could somebody enlighten me what module_init(rs_init) in > drivers/char/serial.c does ?) module_init(rs_init) == __initcall(rs_init) Both add rs_init() to the list (read: array) of functions to be called during initialization. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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-linuxmips@oss.sgi.com Sun Apr 16 14:27:17 2000 Received: by oss.sgi.com id ; Sun, 16 Apr 2000 14:27:07 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:58981 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 16 Apr 2000 14:26:56 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id OAA06720; Sun, 16 Apr 2000 14:22:11 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA25487 for linux-list; Sun, 16 Apr 2000 14:07:42 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA79520 for ; Sun, 16 Apr 2000 14:07:39 -0700 (PDT) mail_from (engel@math.uni-siegen.de) Received: from jordan.numerik.math.uni-siegen.de (jordan.numerik.math.uni-siegen.de [141.99.112.9]) 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 OAA02627 for ; Sun, 16 Apr 2000 14:07:38 -0700 (PDT) mail_from (engel@math.uni-siegen.de) Received: (from engel@localhost) by jordan.numerik.math.uni-siegen.de (Mailhost) id XAA02036 for linux@cthulhu.engr.sgi.com; Sun, 16 Apr 2000 23:12:02 +0200 (MET DST) From: Michael Engel Message-Id: <200004162112.XAA02036@jordan.numerik.math.uni-siegen.de> Subject: Indigo R3000 PROM calls / To: linux@cthulhu.engr.sgi.com Date: Sun, 16 Apr 2000 23:12:02 +0200 (MET DST) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, I had some time over the weekend and started to hack on Linux for my good old R3000 Indigo (oh yeah, I should better try to write drivers for the PMAG-F and the FDDI adapter in my DECstations but Indigo hacking seemed to be more fun ;-)). I can load the kernel from sash and it actually starts at kernel_entry (whow) and - no wonder - crashes somewhere in init_arch (because I didn't change anything there ...). Now, it would of course be nice to have some kind of debugging output early on. Does anyone know if the R3k Indigo has the same ARCS console semantics as the Indy ? I.e. there is a PROMBLOCK struct at address 0xa0001000 (as defined in include/asm-mips/sgiarcs.h) which points to romvec which I can then use to dereference PROM functions ? Or is it something completely different ? Of course, if someone unexpectedly finds some Indigo R3k hardware docs somewhere, I'd appreciate it ;). Best regards, Michael Engel (engel@unix-ag.org) From owner-linuxmips@oss.sgi.com Sun Apr 16 15:37:07 2000 Received: by oss.sgi.com id ; Sun, 16 Apr 2000 15:36:58 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:58987 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 16 Apr 2000 15:36:35 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id PAA10178; Sun, 16 Apr 2000 15:31:51 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id PAA89222 for linux-list; Sun, 16 Apr 2000 15:17:31 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id PAA93829 for ; Sun, 16 Apr 2000 15:17:27 -0700 (PDT) mail_from (mfklar@ponymail.com) Received: from short.adgrafix.com (short.adgrafix.com [63.79.128.2]) 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 PAA07833 for ; Sun, 16 Apr 2000 15:17:26 -0700 (PDT) mail_from (mfklar@ponymail.com) Received: from ppan2 (oak-ts1-h1-48-98.ispmodems.net [209.162.48.98]) by short.adgrafix.com (8.9.3/8.9.3) with SMTP id SAA23063; Sun, 16 Apr 2000 18:13:51 -0400 (EDT) From: "Mike Klar" To: Cc: Subject: Unaligned address handling, and the cause of that login problem Date: Sun, 16 Apr 2000 15:19:01 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing While tracking down a random memory corruption bug, I stumbled across the cause of that telnet/ssh problem in recent kernels reported about a month ago: The version of down_trylock() for CPUs with support LL/SC assumes that struct semaphore is 64-bit aligned, since it accesses count and waking as a single dualword (with lld/scd). Nothing in struct semaphore guarantees this alignment, and in fact, struct tty_struct has a struct semaphore that is not 64-bit aligned. Depending on how a tty is used (I think it's a non-blocking read that triggers the problem, in drivers/char/n_tty.c), the kernel will attempt an unaligned lld, it will cause an address error, and the handler in arch/mips/kernel/unaligned.c will kill current with SIGBUS (since lld/scd cannot be properly simulated). The quick-and-dirty workaround is to put 32 bits of padding before the atomic_read member of struct tty_struct. Of course, that doesn't fix the real problem, and there may well be other non-64-bit aligned struct semaphore's out there. A proper fix would be to either hack up struct semaphore to guarantee dualword alignment, or rework the was down_trylock does its thing. While I'm on the topic of unaligned handling, this behavior of sending SIGBUS, SIGSEGV, or SIGILL to current on unaligned accesses seems to me like incorrect behavior if the original fault happened in kernel mode. The above example of an unaligned lld sending SIGBUS is not too bad, since the fault does happen while doing something on behalf of the current process. Consider this example, though: If kernel code attempts an unaligned word read to virtual address 0x00000001 (for example), the unaligned handler will attempt to simulate with 2 aligned reads, which will fault, and since the unaligned handler catches those faults, it will wind up sending SIGSEGV to current. I would think that condition should cause an oops, since that's what an equivalent aligned access would do, and especially since the access may have had nothing to do with current (it may happen from an interrupt, for example). Comments? Mike Klar Wyldfier Technology From owner-linuxmips@oss.sgi.com Mon Apr 17 00:48:32 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 00:48:23 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:44326 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 00:48:01 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id AAA08136; Mon, 17 Apr 2000 00:43:17 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id AAA04757 for linux-list; Mon, 17 Apr 2000 00:31:18 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id AAA62706 for ; Mon, 17 Apr 2000 00:31:15 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 AAA03682 for ; Mon, 17 Apr 2000 00:31:15 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id AAA18977; Mon, 17 Apr 2000 00:31:11 -0700 (PDT) Received: from Ulysses (fra-tgn-oyd-vty25.as.wcom.net [212.211.83.25]) by newman.mips.com (8.9.3/8.9.0) with SMTP id AAA23636; Mon, 17 Apr 2000 00:30:58 -0700 (PDT) Message-ID: <000601bfa83f$347bd540$1953d3d4@Ulysses> From: "Kevin D. Kissell" To: "Mike Klar" , Cc: Subject: Re: Unaligned address handling, and the cause of that login problem Date: Mon, 17 Apr 2000 09:32:04 +0200 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 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Note that, as part of what we had to do to support the newer generations of MIPS32 chips that support LL/SC, but only for 32-bit quantities, I did a complete rework of the semaphore support primatives to eliminate this dependency on 64-bit LL/SC. See the source tar and patch file on the MIPS FTP server ftp://ftp.mips.com/pub/linux/mips/kernel or even the slightly earlier patches webbed on the www.paralogos.com/mipslinux pages. It *was* a rewrite from first principles, based on study of the documentation and the x86 and PPC code, and while I can guarantee it won't have the unaligned doubleword problem, I'd be interested in anyone elses critique of the implementation. Regards, Kevin K. -----Original Message----- From: Mike Klar To: linux@cthulhu.engr.sgi.com Cc: linux-mips@fnet.fr Date: Monday, April 17, 2000 12:36 AM Subject: Unaligned address handling, and the cause of that login problem >While tracking down a random memory corruption bug, I stumbled across the >cause of that telnet/ssh problem in recent kernels reported about a month >ago: > >The version of down_trylock() for CPUs with support LL/SC assumes that >struct semaphore is 64-bit aligned, since it accesses count and waking as a >single dualword (with lld/scd). Nothing in struct semaphore guarantees this >alignment, and in fact, struct tty_struct has a struct semaphore that is not >64-bit aligned. Depending on how a tty is used (I think it's a non-blocking >read that triggers the problem, in drivers/char/n_tty.c), the kernel will >attempt an unaligned lld, it will cause an address error, and the handler in >arch/mips/kernel/unaligned.c will kill current with SIGBUS (since lld/scd >cannot be properly simulated). > >The quick-and-dirty workaround is to put 32 bits of padding before the >atomic_read member of struct tty_struct. Of course, that doesn't fix the >real problem, and there may well be other non-64-bit aligned struct >semaphore's out there. A proper fix would be to either hack up struct >semaphore to guarantee dualword alignment, or rework the was down_trylock >does its thing. > >While I'm on the topic of unaligned handling, this behavior of sending >SIGBUS, SIGSEGV, or SIGILL to current on unaligned accesses seems to me like >incorrect behavior if the original fault happened in kernel mode. The above >example of an unaligned lld sending SIGBUS is not too bad, since the fault >does happen while doing something on behalf of the current process. >Consider this example, though: If kernel code attempts an unaligned word >read to virtual address 0x00000001 (for example), the unaligned handler will >attempt to simulate with 2 aligned reads, which will fault, and since the >unaligned handler catches those faults, it will wind up sending SIGSEGV to >current. I would think that condition should cause an oops, since that's >what an equivalent aligned access would do, and especially since the access >may have had nothing to do with current (it may happen from an interrupt, >for example). > >Comments? > >Mike Klar >Wyldfier Technology > From owner-linuxmips@oss.sgi.com Mon Apr 17 04:38:14 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 04:37:53 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:39996 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 04:37:37 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id EAA19929; Mon, 17 Apr 2000 04:32:52 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id EAA46046 for linux-list; Mon, 17 Apr 2000 04:25:14 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id EAA53730 for ; Mon, 17 Apr 2000 04:25:12 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 EAA09012 for ; Mon, 17 Apr 2000 04:25:11 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id DBB6B7D9; Mon, 17 Apr 2000 13:25:12 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id BC0028FC4; Mon, 17 Apr 2000 13:17:01 +0200 (CEST) Date: Mon, 17 Apr 2000 13:17:01 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: sys_chown vs. sys_lchown Message-ID: <20000417131701.A4840@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i have discovered some interesting things concerning the chown/lchown syscall: gcc -O2 -s -o usermod usermod.o ../libmisc/libmisc.a ../lib/libshadow.a -lcrypt ../libmisc/libmisc.a(chowndir.o): In function `chown_tree': chowndir.c(.text+0x248): warning: lchown is not implemented and will always fail I discovered a anomaly there when trying to compile current strace which has sys_lchown which is sys_chown in current glibc and fails to compile thereof. I am not shure where the actual problem is but there is someone more knowledged ... Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 17 09:54:21 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 09:54:13 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:60760 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 09:53:58 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id JAA09054; Mon, 17 Apr 2000 09:57:57 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA24514 for linux-list; Mon, 17 Apr 2000 09:35:03 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA82964 for ; Mon, 17 Apr 2000 09:34:56 -0700 (PDT) mail_from (Harald.Koerfgen@home.ivm.de) Received: from mail.ivm.net (mail.ivm.net [62.204.1.4]) 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 JAA09669 for ; Mon, 17 Apr 2000 09:34:54 -0700 (PDT) mail_from (Harald.Koerfgen@home.ivm.de) Received: from franz.no.dom (port184.duesseldorf.ivm.de [195.247.65.184]) by mail.ivm.net (8.8.8/8.8.8) with ESMTP id SAA25123; Mon, 17 Apr 2000 18:34:34 +0200 X-To: linux@cthulhu.engr.sgi.com Message-ID: X-Mailer: XFMail 1.4.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200004162112.XAA02036@jordan.numerik.math.uni-siegen.de> Date: Mon, 17 Apr 2000 18:33:36 +0200 (CEST) Reply-To: Harald Koerfgen Organization: none From: Harald Koerfgen To: Michael Engel Subject: RE: Indigo R3000 PROM calls / Cc: linux@cthulhu.engr.sgi.com Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On 16-Apr-00 Michael Engel wrote: > I had some time over the weekend and started to hack on Linux for my > good old R3000 Indigo (oh yeah, I should better try to write drivers > for the PMAG-F and the FDDI adapter in my DECstations but Indigo > hacking seemed to be more fun ;-)). I can load the kernel from sash > and it actually starts at kernel_entry (whow) and - no wonder - crashes > somewhere in init_arch (because I didn't change anything there ...). > > Now, it would of course be nice to have some kind of debugging output > early on. Does anyone know if the R3k Indigo has the same ARCS console > semantics as the Indy ? I.e. there is a PROMBLOCK struct at address > 0xa0001000 (as defined in include/asm-mips/sgiarcs.h) which points to > romvec which I can then use to dereference PROM functions ? Or is it > something completely different ? Well, as you can imagine I have absolutely no idea, but if you have a chance to disassemble the beginning of the PROM (0xbfc00000) you can easily check if the Indigo provides callbacks a la MIPS (very much like the DS3100). If you find something like: 0: 0bf0008a j fc00228 4: 00000000 nop 8: 0bf0012a j fc004a8 c: 00000000 nop 10: 0bf0013f j fc004fc 14: 00000000 nop 18: 0bf0012c j fc004b0 1c: 00000000 nop (and I wouldn't be surprised if you did) then you should have a look at include/asm-mips/mipsprom.h and the startup code in arch/mips/dec/prom. -- Regards, Harald From owner-linuxmips@oss.sgi.com Mon Apr 17 09:54:42 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 09:54:22 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:60248 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 09:53:56 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id JAA03841; Mon, 17 Apr 2000 09:57:55 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA23978 for linux-list; Mon, 17 Apr 2000 09:35:07 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA28040 for ; Mon, 17 Apr 2000 09:35:03 -0700 (PDT) mail_from (Harald.Koerfgen@home.ivm.de) Received: from mail.ivm.net (mail.ivm.net [62.204.1.4]) 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 JAA06829 for ; Mon, 17 Apr 2000 09:35:01 -0700 (PDT) mail_from (Harald.Koerfgen@home.ivm.de) Received: from franz.no.dom (port184.duesseldorf.ivm.de [195.247.65.184]) by mail.ivm.net (8.8.8/8.8.8) with ESMTP id SAA25110; Mon, 17 Apr 2000 18:34:32 +0200 X-To: linux@cthulhu.engr.sgi.com Message-ID: X-Mailer: XFMail 1.4.0 on Linux X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.4.0.Linux:000417182219:353=_" In-Reply-To: Date: Mon, 17 Apr 2000 18:33:34 +0200 (CEST) Reply-To: Harald Koerfgen Organization: none From: Harald Koerfgen To: Mike Klar Subject: RE: Unaligned address handling, and the cause of that login prob Cc: linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing This message is in MIME format --_=XFMail.1.4.0.Linux:000417182219:353=_ Content-Type: text/plain; charset=us-ascii On 16-Apr-00 Mike Klar wrote: > While tracking down a random memory corruption bug, I stumbled across the > cause of that telnet/ssh problem in recent kernels reported about a month > ago: > > The version of down_trylock() for CPUs with support LL/SC assumes that > struct semaphore is 64-bit aligned, since it accesses count and waking as a > single dualword (with lld/scd). Good spotted. This is perfectly in line with my observation that telnet/ssh worked perfectly well if you built a kernel without CONFIG_CPU_HAS_LLSC. The attached patch seems to fix this, and another bug in waking_non_zero_interruptible() as well. Telnet is working again :) -- Regards, Harald --_=XFMail.1.4.0.Linux:000417182219:353=_ Content-Disposition: attachment; filename="sema-fix-041700" Content-Transfer-Encoding: base64 Content-Description: sema-fix-041700 Content-Type: application/octet-stream; name=sema-fix-041700; SizeOnDisk=1597 ZGlmZiAtcnVOIC9uZnMvY3ZzL2xpbnV4LTIuMy9saW51eC9pbmNsdWRlL2FzbS1taXBzL3NlbWFw aG9yZS1oZWxwZXIuaCBsaW51eC9pbmNsdWRlL2FzbS1taXBzL3NlbWFwaG9yZS1oZWxwZXIuaAot LS0gL25mcy9jdnMvbGludXgtMi4zL2xpbnV4L2luY2x1ZGUvYXNtLW1pcHMvc2VtYXBob3JlLWhl bHBlci5oCVR1ZSBNYXIgMjggMTc6MjU6MTkgMjAwMAorKysgbGludXgvaW5jbHVkZS9hc20tbWlw cy9zZW1hcGhvcmUtaGVscGVyLmgJTW9uIEFwciAxNyAxODoxMzoxNCAyMDAwCkBAIC0xMzQsOCAr MTM0LDYgQEAKIHsKIAlsb25nIHJldCwgdG1wOwogCi0jaWZkZWYgX19NSVBTRUJfXwotCiAgICAg ICAgIF9fYXNtX18gX192b2xhdGlsZV9fKCIKIAkuc2V0CXB1c2gKIAkuc2V0CW1pcHMzCkBAIC0x NTksNDYgKzE1Nyw2IEBACiAJLnNldAlwb3AiCiAJOiAiPSZyIihyZXQpLCAiPSZyIih0bXApLCAi PW0iKCpzZW0pCiAJOiAiciIoc2lnbmFsX3BlbmRpbmcodHNrKSksICJpIigtRUlOVFIpKTsKLQot I2VsaWYgZGVmaW5lZChfX01JUFNFTF9fKQotCi0JX19hc21fXyBfX3ZvbGF0aWxlX18oIgotCS5z ZXQJbWlwczMKLQkuc2V0CXB1c2gKLQkuc2V0CW5vYXQKLTA6Ci0JbGxkCSUxLCAlMgotCWxpCSUw LCAwCi0JYmxlegklMSwgMWYKLQlkbGkJJDEsIDB4MDAwMDAwMDEwMDAwMDAwMAotCWRzdWJ1CSUx LCAlMSwgJDEKLQlsaQklMCwgMQotCWIJMmYKLTE6Ci0JYmVxegklMywgMmYKLQlsaQklMCwgJTQK LQkvKiAKLQkgKiBJdCB3b3VsZCBiZSBuaWNlIHRvIGFzc3VtZSB0aGF0IHNlbS0+Y291bnQKLQkg KiBpcyAhPSAtMSwgYnV0IHdlIHdpbGwgZ3VhcmQgYWdhaW5zdCB0aGF0IGNhc2UKLQkgKi8KLQlk YWRkaXUJJDEsICUxLCAxCi0JZHNsbDMyCSQxLCAkMSwgMAotCWRzcmwzMgkkMSwgJDEsIDAKLQlk c3JsMzIJJTEsICUxLCAwCi0JZHNsbDMyCSUxLCAlMSwgMAotCW9yCSUxLCAlMSwgJDEKLTI6Ci0J c2NkCSUxLCAlMgotCWJlcXoJJTEsIDBiCi0KLQkuc2V0CXBvcAotCS5zZXQJbWlwczAiCi0JOiAi PSZyIihyZXQpLCAiPSZyIih0bXApLCAiPW0iKCpzZW0pCi0JOiAiciIoc2lnbmFsX3BlbmRpbmco dHNrKSksICJpIigtRUlOVFIpKTsKLQotI2Vsc2UKLSNlcnJvciAiTUlQUyBidXQgbmVpdGhlciBf X01JUFNFTF9fIG5vciBfX01JUFNFQl9fPyIKLSNlbmRpZgogCiAJcmV0dXJuIHJldDsKIH0KZGlm ZiAtcnVOIC9uZnMvY3ZzL2xpbnV4LTIuMy9saW51eC9pbmNsdWRlL2FzbS1taXBzL3NlbWFwaG9y ZS5oIGxpbnV4L2luY2x1ZGUvYXNtLW1pcHMvc2VtYXBob3JlLmgKLS0tIC9uZnMvY3ZzL2xpbnV4 LTIuMy9saW51eC9pbmNsdWRlL2FzbS1taXBzL3NlbWFwaG9yZS5oCVR1ZSBNYXIgMjggMTc6MjU6 MTkgMjAwMAorKysgbGludXgvaW5jbHVkZS9hc20tbWlwcy9zZW1hcGhvcmUuaAlNb24gQXByIDE3 IDE4OjExOjAxIDIwMDAKQEAgLTMxLDcgKzMxLDcgQEAKICNpZiBXQUlUUVVFVUVfREVCVUcKIAls b25nIF9fbWFnaWM7CiAjZW5kaWYKLX07Cit9IF9fYXR0cmlidXRlX18oKGFsaWduZWQoOCkpKTsK IAogI2lmIFdBSVRRVUVVRV9ERUJVRwogIyBkZWZpbmUgX19TRU1fREVCVUdfSU5JVChuYW1lKSBc Cg== --_=XFMail.1.4.0.Linux:000417182219:353=_-- End of MIME message From owner-linuxmips@oss.sgi.com Mon Apr 17 10:06:01 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 10:05:51 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:10842 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 10:05:31 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id KAA03736; Mon, 17 Apr 2000 10:09:29 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA31141 for linux-list; Mon, 17 Apr 2000 09:49:58 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA29060 for ; Mon, 17 Apr 2000 09:49:45 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 JAA06742 for ; Mon, 17 Apr 2000 09:49:44 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id C430F7D9; Mon, 17 Apr 2000 18:49:41 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 212D48FC4; Mon, 17 Apr 2000 18:42:27 +0200 (CEST) Date: Mon, 17 Apr 2000 18:42:27 +0200 From: Florian Lohoff To: Wichert Akkerman Cc: linux@cthulhu.engr.sgi.com Subject: Re: sys_chown vs. sys_lchown Message-ID: <20000417184227.H5359@paradigm.rfc822.org> References: <20000417131701.A4840@paradigm.rfc822.org> <20000417181225.A1832@mors.wiggy.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000417181225.A1832@mors.wiggy.net>; from Wichert Akkerman on Mon, Apr 17, 2000 at 06:12:25PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 17, 2000 at 06:12:25PM +0200, Wichert Akkerman wrote: > Previously Florian Lohoff wrote: > > I discovered a anomaly there when trying to compile current strace > > which has sys_lchown which is sys_chown in current glibc and fails > > to compile thereof. > > strace got that from include/asm-mips/unistd.h from a 2.3.99pre5 kernel > tree, which should be authoritive. Are you sure that your glibc is > compiled correctly? ;) As this is made by Ralf Baechle the "Master himself" ill trust that :) Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 17 14:27:17 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 14:27:08 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:33878 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 14:26:57 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id OAA24907; Mon, 17 Apr 2000 14:22:12 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA01993 for linux-list; Mon, 17 Apr 2000 14:14:47 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from dhcp-163-154-5-221.engr.sgi.com (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA91693 for ; Mon, 17 Apr 2000 14:14:46 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Mon, 17 Apr 2000 14:11:40 -0700 Date: Mon, 17 Apr 2000 14:11:40 -0700 From: Ralf Baechle To: Michael Engel Cc: linux@cthulhu.engr.sgi.com Subject: Re: Indigo R3000 PROM calls / Message-ID: <20000417141140.A3123@uni-koblenz.de> References: <200004162112.XAA02036@jordan.numerik.math.uni-siegen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200004162112.XAA02036@jordan.numerik.math.uni-siegen.de>; from engel@math.uni-siegen.de on Sun, Apr 16, 2000 at 11:12:02PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, Apr 16, 2000 at 11:12:02PM +0200, Michael Engel wrote: > I had some time over the weekend and started to hack on Linux for my > good old R3000 Indigo (oh yeah, I should better try to write drivers > for the PMAG-F and the FDDI adapter in my DECstations but Indigo > hacking seemed to be more fun ;-)). I can load the kernel from sash > and it actually starts at kernel_entry (whow) and - no wonder - crashes > somewhere in init_arch (because I didn't change anything there ...). > > Now, it would of course be nice to have some kind of debugging output > early on. Does anyone know if the R3k Indigo has the same ARCS console > semantics as the Indy ? I.e. there is a PROMBLOCK struct at address > 0xa0001000 (as defined in include/asm-mips/sgiarcs.h) which points to > romvec which I can then use to dereference PROM functions ? Or is it > something completely different ? Check out include/asm-mips/mipsprom.h, it should be fairly close to what you're looking for. SGI used two different PROM styles for their machines, those with 64-bit CPUs are ARCS, the older machines have another firmware implementation. I do have some tested code for this platform but it's back at home while I'm here at SGI ... > Of course, if someone unexpectedly finds some Indigo R3k hardware docs > somewhere, I'd appreciate it ;). A few power series systems are the oldest stuff that I've seen over here at SGI and even are mostly used as hightech door stops ... Ralf From owner-linuxmips@oss.sgi.com Mon Apr 17 17:00:19 2000 Received: by oss.sgi.com id ; Mon, 17 Apr 2000 16:59:59 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:65037 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 17 Apr 2000 16:59:31 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id RAA09888; Mon, 17 Apr 2000 17:03:30 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA63743 for linux-list; Mon, 17 Apr 2000 16:46:41 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from dhcp-163-154-5-221.engr.sgi.com (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA42007 for ; Mon, 17 Apr 2000 16:46:40 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Mon, 17 Apr 2000 16:43:33 -0700 Date: Mon, 17 Apr 2000 16:43:33 -0700 From: Ralf Baechle To: Mike Klar Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: Unaligned address handling, and the cause of that login problem Message-ID: <20000417164333.B3123@uni-koblenz.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from mfklar@ponymail.com on Sun, Apr 16, 2000 at 03:19:01PM -0700 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, Apr 16, 2000 at 03:19:01PM -0700, Mike Klar wrote: > While tracking down a random memory corruption bug, I stumbled across the > cause of that telnet/ssh problem in recent kernels reported about a month > ago: > > The version of down_trylock() for CPUs with support LL/SC assumes that > struct semaphore is 64-bit aligned, since it accesses count and waking as a > single dualword (with lld/scd). Nothing in struct semaphore guarantees this > alignment, and in fact, struct tty_struct has a struct semaphore that is not > 64-bit aligned. Depending on how a tty is used (I think it's a non-blocking > read that triggers the problem, in drivers/char/n_tty.c), the kernel will > attempt an unaligned lld, it will cause an address error, and the handler in > arch/mips/kernel/unaligned.c will kill current with SIGBUS (since lld/scd > cannot be properly simulated). > > The quick-and-dirty workaround is to put 32 bits of padding before the > atomic_read member of struct tty_struct. Of course, that doesn't fix the > real problem, and there may well be other non-64-bit aligned struct > semaphore's out there. A proper fix would be to either hack up struct > semaphore to guarantee dualword alignment, or rework the was down_trylock > does its thing. I'll put __attribute__ ((aligned(64))) to the structure which will fix this. This will have to be changed again when we add support for 32-bit processors with ll / sc instructions but for now we don't support them, so it's the right thing. > While I'm on the topic of unaligned handling, this behavior of sending > SIGBUS, SIGSEGV, or SIGILL to current on unaligned accesses seems to me like > incorrect behavior if the original fault happened in kernel mode. > The above > example of an unaligned lld sending SIGBUS is not too bad, since the fault > does happen while doing something on behalf of the current process. The assumption is that the kernel should never ever use ll, lld, sc and scd on improperly aligned memory objects, so not checking is ok. In other words it's it's perfectly ok if the kernel dies or behaves silly following such a can-not-happen case. Note that while we don't attemt to handle missaligned ll/sc/lld/scd instructions because that would break atomicity on SMP machines. On the other side again emulating them on CPUs that don't have them at all like the R3000 is ok because those are not used on SMP systems. That is not counting the oddball SMP systems which we'll probably not support ever. Ralf From owner-linuxmips@oss.sgi.com Tue Apr 18 02:11:13 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 02:11:05 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:53873 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 02:10:52 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id CAA08326; Tue, 18 Apr 2000 02:06:07 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA02690 for linux-list; Tue, 18 Apr 2000 01:57:51 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA91506 for ; Tue, 18 Apr 2000 01:57:46 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 BAA06395 for ; Tue, 18 Apr 2000 01:57:45 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 8A60F848; Tue, 18 Apr 2000 10:57:46 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id AB62C8FC4; Tue, 18 Apr 2000 10:53:48 +0200 (CEST) Date: Tue, 18 Apr 2000 10:53:48 +0200 From: Florian Lohoff To: Harald Koerfgen Cc: Mike Klar , linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com, Ralf Baechle Subject: Re: Unaligned address handling, and the cause of that login prob Message-ID: <20000418105348.A1247@paradigm.rfc822.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Harald Koerfgen on Mon, Apr 17, 2000 at 06:33:34PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 17, 2000 at 06:33:34PM +0200, Harald Koerfgen wrote: > Good spotted. This is perfectly in line with my observation that telnet/ssh > worked perfectly well if you built a kernel without CONFIG_CPU_HAS_LLSC. > > The attached patch seems to fix this, and another bug in > waking_non_zero_interruptible() as well. > > Telnet is working again :) Many thanks - It works :) (root@193)~# cat /proc/cpuinfo cpu : MIPS cpu model : R4000SC V3.0 system type : Digital DECstation 5000/1xx BogoMIPS : 49.81 byteorder : little endian unaligned accesses : 0 wait instruction : no microsecond timers : yes extra interrupt vector : no hardware watchpoint : yes VCED exceptions : 13636 VCEI exceptions : 113050 (root@193)~# uname -a Linux repeat.rfc822.org 2.3.99-pre3 #3 Tue Apr 18 10:31:47 CEST 2000 mips unknown But the (kernel) fix from Ralph concerning the sleep? syscalls seems to be incorrect or buggy - When calling top the display refreshes multiple times a second without a sleep and on the console i get an. Setting flush to zero for top. schedule_timeout: wrong timeout value fffbd0b2 from 800942b8 Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 18 02:29:43 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 02:29:24 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:11061 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 02:29:04 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id CAA00573; Tue, 18 Apr 2000 02:33:04 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id CAA85474 for linux-list; Tue, 18 Apr 2000 02:16:13 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id CAA93673 for ; Tue, 18 Apr 2000 02:16:11 -0700 (PDT) mail_from (ehab@aia.rwth-aachen.de) Received: from aia067.aia.RWTH-Aachen.DE (aia067.aia.RWTH-Aachen.DE [134.130.140.67]) 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 CAA01905 for ; Tue, 18 Apr 2000 02:16:10 -0700 (PDT) mail_from (ehab@aia.rwth-aachen.de) Received: from aia067 (ehab@localhost [127.0.0.1]) by aia067.aia.RWTH-Aachen.DE (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with SMTP id LAA09478 for ; Tue, 18 Apr 2000 11:16:04 +0200 From: Ehab Fares To: linux@cthulhu.engr.sgi.com Subject: 2GB RAM on SGI 540 Date: Tue, 18 Apr 2000 11:13:15 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00041811160400.09406@aia067> Content-Transfer-Encoding: 8bit Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, We have an SGI 540 Visual Workstation running under Linux. Has anyone been able to use the 2GB RAM of the machine ? For some reason the arclx doen't want to boot the kernel compiled with the 2GB RAM option. Right now we can only address 960MB RAM. Any help? Ehab -- ------------------------------------------------------------------AIA-RWTH-- Ehab Fares Email: ehab@aia.rwth-aachen.de Aerodynamisches Institut der RWTH-Aachen WWW: http://www.aia.rwth-aachen.de Wuellnerstr. zw. 5 u. 7 Ftp: ftp://ftp.aia.rwth-aachen.de D-52062 Aachen, Germany Phone:+49-241-80-5433 Fax: +49-241-8888-257 ---------------------------------------------------------------------------- !!!!!!!!!!!!!! Sending unsolicited commercial e-mail (UCE) to this address !Legal Notice! is indication of your consent to pay me $120/hour for 1 hour !!!!!!!!!!!!!! minimum for professional proofreading& technical assessment. ---------------------------------------------------------------------------- From owner-linuxmips@oss.sgi.com Tue Apr 18 03:20:04 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 03:19:54 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:33148 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 03:19:39 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id DAA13079; Tue, 18 Apr 2000 03:14:54 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id DAA78492; Tue, 18 Apr 2000 03:17:53 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id DAA05056 for linux-list; Tue, 18 Apr 2000 03:04:11 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id DAA02866 for ; Tue, 18 Apr 2000 03:04:09 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 DAA03264 for ; Tue, 18 Apr 2000 03:04:08 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id F1B0584F; Tue, 18 Apr 2000 12:04:09 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 586FD8FC4; Tue, 18 Apr 2000 12:00:06 +0200 (CEST) Date: Tue, 18 Apr 2000 12:00:05 +0200 From: Florian Lohoff To: Harald Koerfgen Cc: Mike Klar , linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com, Ralf Baechle Subject: Re: Unaligned address handling, and the cause of that login prob Message-ID: <20000418120005.A1940@paradigm.rfc822.org> References: <20000418105348.A1247@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000418105348.A1247@paradigm.rfc822.org>; from Florian Lohoff on Tue, Apr 18, 2000 at 10:53:48AM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 18, 2000 at 10:53:48AM +0200, Florian Lohoff wrote: > But the (kernel) fix from Ralph concerning the sleep? syscalls seems > to be incorrect or buggy - When calling top the display refreshes > multiple times a second without a sleep and on the console i get > an. > > Setting flush to zero for top. > schedule_timeout: wrong timeout value fffbd0b2 from 800942b8 And NTP still doesnt work as it still has a to strong drift ... status=c011 sync_alarm, sync_unspec, 1 event, event_restart processor="mips", system="Linux2.3.99-pre3", leap=11, stratum=16, precision=-18, rootdelay=0.00, rootdispersion=58.98, peer=0, refid=0.0.0.0, reftime=00000000.00000000 Thu, Feb 7 2036 6:28:16.000, poll=6, clock=bca6b000.defc8b00 Tue, Apr 18 2000 9:57:20.871, state=1, phase=0.000, frequency=14.728, jitter=0.000, stability=0.000 ~0.1 Seconds in 4 Seconds Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 18 08:57:37 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 08:57:27 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:11337 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 08:57:14 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id JAA04958; Tue, 18 Apr 2000 09:01:14 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id IAA33372; Tue, 18 Apr 2000 08:56:43 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id IAA06834 for linux-list; Tue, 18 Apr 2000 08:44:40 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id IAA80544 for ; Tue, 18 Apr 2000 08:44:38 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 IAA09872 for ; Tue, 18 Apr 2000 08:44:27 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 482DC818; Tue, 18 Apr 2000 17:44:28 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id E14478FC4; Tue, 18 Apr 2000 17:40:26 +0200 (CEST) Date: Tue, 18 Apr 2000 17:40:26 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: modutils 2.3.10,segfault in depmod Message-ID: <20000418174026.J476@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i am experiencing some aehm - interesting thing with current modutils. Basically insmod/modprobe/rmmod/lsmod work as expected. The only problem i have is "depmod" which segfaults in obj_free. If i comment the "obj_free" depmod works as expected. This is on Little Endian Mips (Decstation). Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 18 14:20:38 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 14:20:29 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:23660 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 14:20:08 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA00574; Tue, 18 Apr 2000 14:24:08 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA82122 for linux-list; Tue, 18 Apr 2000 14:07:25 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from dhcp-163-154-5-221.engr.sgi.com (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA87006 for ; Tue, 18 Apr 2000 14:07:24 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Tue, 18 Apr 2000 14:04:10 -0700 Date: Tue, 18 Apr 2000 14:04:10 -0700 From: Ralf Baechle To: Florian Lohoff Cc: Harald Koerfgen , Mike Klar , linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com Subject: Re: Unaligned address handling, and the cause of that login prob Message-ID: <20000418140410.A6271@uni-koblenz.de> References: <20000418105348.A1247@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000418105348.A1247@paradigm.rfc822.org>; from flo@rfc822.org on Tue, Apr 18, 2000 at 10:53:48AM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 18, 2000 at 10:53:48AM +0200, Florian Lohoff wrote: > But the (kernel) fix from Ralph concerning the sleep? syscalls seems > to be incorrect or buggy - When calling top the display refreshes > multiple times a second without a sleep and on the console i get > an. > > Setting flush to zero for top. > schedule_timeout: wrong timeout value fffbd0b2 from 800942b8 I'm fairly sure that my patch is not buggy - I haven't made any :-) Ralf From owner-linuxmips@oss.sgi.com Tue Apr 18 14:35:58 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 14:35:49 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:14957 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 14:35:22 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA04474; Tue, 18 Apr 2000 14:39:21 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id OAA99182; Tue, 18 Apr 2000 14:34:50 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA93827 for linux-list; Tue, 18 Apr 2000 14:21:18 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA89950 for ; Tue, 18 Apr 2000 14:21:16 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 OAA06150 for ; Tue, 18 Apr 2000 14:21:15 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 7EC2F7DD; Tue, 18 Apr 2000 23:21:16 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 1D2DE8FC4; Tue, 18 Apr 2000 23:16:52 +0200 (CEST) Date: Tue, 18 Apr 2000 23:16:52 +0200 From: Florian Lohoff To: Ralf Baechle Cc: Harald Koerfgen , Mike Klar , linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com Subject: Re: Unaligned address handling, and the cause of that login prob Message-ID: <20000418231652.A866@paradigm.rfc822.org> References: <20000418105348.A1247@paradigm.rfc822.org> <20000418140410.A6271@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000418140410.A6271@uni-koblenz.de>; from Ralf Baechle on Tue, Apr 18, 2000 at 02:04:10PM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 18, 2000 at 02:04:10PM -0700, Ralf Baechle wrote: > On Tue, Apr 18, 2000 at 10:53:48AM +0200, Florian Lohoff wrote: > > > But the (kernel) fix from Ralph concerning the sleep? syscalls seems > > to be incorrect or buggy - When calling top the display refreshes > > multiple times a second without a sleep and on the console i get > > an. > > > > Setting flush to zero for top. > > schedule_timeout: wrong timeout value fffbd0b2 from 800942b8 > > I'm fairly sure that my patch is not buggy - I haven't made any :-) Hasnt been there somethign with a missing syscall you wanted to add again to all kernels ? I remembered dark but couldnt find anything in the cvs. :) Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Tue Apr 18 14:51:28 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 14:51:09 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:53287 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 14:50:50 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id OAA02743; Tue, 18 Apr 2000 14:46:05 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id OAA04324; Tue, 18 Apr 2000 14:50:18 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA97594 for linux-list; Tue, 18 Apr 2000 14:36:09 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA99897 for ; Tue, 18 Apr 2000 14:36:07 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from styx.cs.kuleuven.ac.be (styx.cs.kuleuven.ac.be [134.58.40.3]) 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 OAA02606 for ; Tue, 18 Apr 2000 14:36:05 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from cassiopeia.home (root@dialup006.cs.kuleuven.ac.be [134.58.47.135]) by styx.cs.kuleuven.ac.be (8.9.3/8.9.3) with ESMTP id XAA10273; Tue, 18 Apr 2000 23:35:20 +0200 (MET DST) Received: from localhost (geert@localhost) by cassiopeia.home (8.9.3/8.9.3/Debian/GNU) with ESMTP id RAA00630; Tue, 18 Apr 2000 17:13:48 +0200 X-Authentication-Warning: cassiopeia.home: geert owned process doing -bs Date: Tue, 18 Apr 2000 17:13:48 +0200 (CEST) From: Geert Uytterhoeven To: Ralf Baechle cc: Mike Klar , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: Unaligned address handling, and the cause of that login problem In-Reply-To: <20000417164333.B3123@uni-koblenz.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, 17 Apr 2000, Ralf Baechle wrote: > I'll put __attribute__ ((aligned(64))) to the structure which will fix this. ^^ 8, I suppose? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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-linuxmips@oss.sgi.com Tue Apr 18 14:54:38 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 14:54:28 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:25199 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 14:54:12 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA03686; Tue, 18 Apr 2000 14:58:12 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA85866 for linux-list; Tue, 18 Apr 2000 14:43:44 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from dhcp-163-154-5-221.engr.sgi.com (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA02464 for ; Tue, 18 Apr 2000 14:43:43 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Tue, 18 Apr 2000 14:40:41 -0700 Date: Tue, 18 Apr 2000 14:40:41 -0700 From: Ralf Baechle To: Geert Uytterhoeven Cc: Mike Klar , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: Unaligned address handling, and the cause of that login problem Message-ID: <20000418144041.D6271@uni-koblenz.de> References: <20000417164333.B3123@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from geert@linux-m68k.org on Tue, Apr 18, 2000 at 05:13:48PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 18, 2000 at 05:13:48PM +0200, Geert Uytterhoeven wrote: > On Mon, 17 Apr 2000, Ralf Baechle wrote: > > I'll put __attribute__ ((aligned(64))) to the structure which will fix this. > ^^ > 8, I suppose? Of course. Ralf From owner-linuxmips@oss.sgi.com Tue Apr 18 14:55:39 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 14:55:30 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:33135 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 14:55:09 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA01486; Tue, 18 Apr 2000 14:59:10 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA98660 for linux-list; Tue, 18 Apr 2000 14:43:05 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from dhcp-163-154-5-221.engr.sgi.com (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA96633 for ; Tue, 18 Apr 2000 14:43:04 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Tue, 18 Apr 2000 14:39:59 -0700 Date: Tue, 18 Apr 2000 14:39:59 -0700 From: Ralf Baechle To: Florian Lohoff Cc: Harald Koerfgen , Mike Klar , linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com Subject: Re: Unaligned address handling, and the cause of that login prob Message-ID: <20000418143959.C6271@uni-koblenz.de> References: <20000418105348.A1247@paradigm.rfc822.org> <20000418140410.A6271@uni-koblenz.de> <20000418231652.A866@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000418231652.A866@paradigm.rfc822.org>; from flo@rfc822.org on Tue, Apr 18, 2000 at 11:16:52PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 18, 2000 at 11:16:52PM +0200, Florian Lohoff wrote: > Hasnt been there somethign with a missing syscall you wanted to add > again to all kernels ? I remembered dark but couldnt find anything > in the cvs. :) Oh yes, it just got lost. It's now in the works. Ralf From owner-linuxmips@oss.sgi.com Tue Apr 18 14:57:59 2000 Received: by oss.sgi.com id ; Tue, 18 Apr 2000 14:57:40 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:52335 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 18 Apr 2000 14:57:23 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id PAA02511; Tue, 18 Apr 2000 15:01:23 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA96209 for linux-list; Tue, 18 Apr 2000 14:47:43 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA98665 for ; Tue, 18 Apr 2000 14:47:42 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 OAA04417 for ; Tue, 18 Apr 2000 14:47:40 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 6C4BD7D9; Tue, 18 Apr 2000 23:47:42 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 1FE9A8FC4; Tue, 18 Apr 2000 23:43:20 +0200 (CEST) Date: Tue, 18 Apr 2000 23:43:20 +0200 From: Florian Lohoff To: Ralf Baechle Cc: Harald Koerfgen , Mike Klar , linux-mips@fnet.fr, linux@cthulhu.engr.sgi.com Subject: Re: Unaligned address handling, and the cause of that login prob Message-ID: <20000418234320.C866@paradigm.rfc822.org> References: <20000418105348.A1247@paradigm.rfc822.org> <20000418140410.A6271@uni-koblenz.de> <20000418231652.A866@paradigm.rfc822.org> <20000418143959.C6271@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000418143959.C6271@uni-koblenz.de>; from Ralf Baechle on Tue, Apr 18, 2000 at 02:39:59PM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Tue, Apr 18, 2000 at 02:39:59PM -0700, Ralf Baechle wrote: > On Tue, Apr 18, 2000 at 11:16:52PM +0200, Florian Lohoff wrote: > > > Hasnt been there somethign with a missing syscall you wanted to add > > again to all kernels ? I remembered dark but couldnt find anything > > in the cvs. :) > > Oh yes, it just got lost. It's now in the works. -----------flo > But the (kernel) fix from Ralph concerning the sleep? syscalls seems > to be incorrect or buggy - When calling top the display refreshes > multiple times a second without a sleep and on the console i get > an. -----------flo I stand corrected - It hasnt even been applied :) Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Wed Apr 19 03:08:21 2000 Received: by oss.sgi.com id ; Wed, 19 Apr 2000 03:08:11 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:7963 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 19 Apr 2000 03:07:54 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id DAA29596; Wed, 19 Apr 2000 03:03:08 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id CAA83973 for linux-list; Wed, 19 Apr 2000 02:56:18 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id CAA80754 for ; Wed, 19 Apr 2000 02:56:16 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 CAA07280 for ; Wed, 19 Apr 2000 02:56:14 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id B1515837; Wed, 19 Apr 2000 11:56:14 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 398858FC4; Wed, 19 Apr 2000 11:51:33 +0200 (CEST) Date: Wed, 19 Apr 2000 11:51:33 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: electric fence aborts test Message-ID: <20000419115133.A7793@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, does someone have an idea why electric fence may not work ? It fails in "Page_Create()" in page.c /* * In this version, "startAddr" is a _hint_, not a demand. * When the memory I map here is contiguous with other * mappings, the allocator can coalesce the memory from two * or more mappings into one large contiguous chunk, and thus * might be able to find a fit that would not otherwise have * been possible. I could _force_ it to be contiguous by using * the MMAP_FIXED flag, but I don't want to stomp on memory mappings * generated by other software, etc. */ allocation = (caddr_t) mmap( startAddr ,(int)size ,PROT_READ|PROT_WRITE ,MAP_PRIVATE|MAP_ANONYMOUS ,-1 ,0); Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Wed Apr 19 07:06:43 2000 Received: by oss.sgi.com id ; Wed, 19 Apr 2000 07:06:33 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:55871 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 19 Apr 2000 07:06:22 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id HAA14805; Wed, 19 Apr 2000 07:01:37 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id GAA20470 for linux-list; Wed, 19 Apr 2000 06:55:14 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id GAA29560 for ; Wed, 19 Apr 2000 06:55:11 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 GAA07979 for ; Wed, 19 Apr 2000 06:55:05 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id CAF37877; Wed, 19 Apr 2000 15:55:04 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 3970D8FC4; Wed, 19 Apr 2000 15:50:21 +0200 (CEST) Date: Wed, 19 Apr 2000 15:50:21 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: depmod segfault / cause / egcs/binutils bug ? Message-ID: <20000419155021.G7793@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i just got this mail because i opened a Bug in the Debian BTS concerning a segfault in depmod. I used egcs 1.0.3a and binutils 2.8.1 + mips patches to create the kernel + modules ... Might there be a bug in egcs and/or binutils ? ----- Forwarded message from Keith Owens ----- From: Keith Owens To: Florian Lohoff Subject: Re: Bug#62617: depmod segfaults on mips/mipsel Message-ID: <3565.956140102@ocs3.ocs-net> The problem is some input objects that do not conform to the ELF specification that modutils is using, modutils is written to Elf 1.1. Several of your modules have a mismatch between a field in the section headers and the data. In a section with type SHT_SYMTAB, the sh_info field should contain "One greater than the symbol table index of the last local symbol (binding STB_LOCAL)", obj_load uses sh_info to allocate the local symbol table. In st.o the symtab section has an sh_info of 10 but there are a lot more than 10 local symbols. This overflowed the local_symtab array, overwrote the next malloc area and broke free(). This patch lists the offending symbols instead of getting SEGV. I will include it in modutils 2.3.11 as a sanity check. However it drops the extra local symbols so the module may not load anyway. Are you using an unusual set of binutils? I think the next step is to pass this info to the MIPS binutils people and get them to check the format of your st.o object, with particular reference to the number of local symbols. for i in `find /lib/modules/2.3.99-pre3/ -name '*.o'`; do echo $i ; /sbin/depmod -ne $i ; done lists a lot of local symbol table overflows. Index: modutils-2.3.10/obj/obj_common.c --- modutils-2.3.10/obj/obj_common.c Thu, 13 Apr 2000 18:17:59 +1000 kaos (modutils-2.3/23_obj_common 1.3 644) +++ modutils-2.3.10/obj/obj_common.c Wed, 19 Apr 2000 20:02:17 +1000 kaos (modutils-2.3/23_obj_common 1.3 644) @@ -167,8 +167,13 @@ f->symtab[hash] = sym; sym->ksymidx = -1; - if (ELFW(ST_BIND)(info) == STB_LOCAL && symidx != -1) - f->local_symtab[symidx] = sym; + if (ELFW(ST_BIND)(info) == STB_LOCAL && symidx != -1) { + if (symidx >= f->local_symtab_size) + error("local symbol %s with index %ld exceeds local_symtab_size %ld", + name, (long) symidx, (long) f->local_symtab_size); + else + f->local_symtab[symidx] = sym; + } found: sym->name = name; ----- End forwarded message ----- -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Wed Apr 19 10:03:43 2000 Received: by oss.sgi.com id ; Wed, 19 Apr 2000 10:03:34 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:25462 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 19 Apr 2000 10:03:13 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id JAA06639; Wed, 19 Apr 2000 09:58:28 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA85189 for linux-list; Wed, 19 Apr 2000 09:53:10 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA75467 for ; Wed, 19 Apr 2000 09:53:09 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 JAA02614 for ; Wed, 19 Apr 2000 09:53:05 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 32FE07F3; Wed, 19 Apr 2000 18:53:00 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 838958FC4; Wed, 19 Apr 2000 18:48:13 +0200 (CEST) Date: Wed, 19 Apr 2000 18:48:13 +0200 From: Florian Lohoff To: Ralf Baechle Cc: linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: 2.3.99pre5 on Decstation 5000/150 Was: CVS Update@oss.sgi.com: linux Message-ID: <20000419184812.I7793@paradigm.rfc822.org> References: <20000419135535Z305163-391+262@oss.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000419135535Z305163-391+262@oss.sgi.com>; from Ralf Baechle on Wed, Apr 19, 2000 at 06:55:33AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, Apr 19, 2000 at 06:55:33AM -0700, Ralf Baechle wrote: > CVSROOT: /home/pub/cvs > Module name: linux > Changes by: ralf@oss.sgi.com 00/04/19 06:55:33 [...] > Log message: > Merge with Linux 2.3.99-pre5. Ok - Boots on Decstation 5000/150 which pre4 didnt do. [flo@repeat flo]$ uname -a Linux repeat 2.3.99-pre5 #1 Wed Apr 19 18:34:20 CEST 2000 mips unknown [flo@repeat flo]$ cat /proc/cpuinfo cpu : MIPS cpu model : R4000SC V3.0 system type : Digital DECstation 5000/1xx BogoMIPS : 49.81 byteorder : little endian unaligned accesses : 0 wait instruction : no microsecond timers : yes extra interrupt vector : no hardware watchpoint : yes VCED exceptions : 6694 VCEI exceptions : 40559 Pause syscall does what it should, top started to work - Many thanks. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Wed Apr 19 11:34:13 2000 Received: by oss.sgi.com id ; Wed, 19 Apr 2000 11:34:04 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:30745 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 19 Apr 2000 11:33:50 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA19055; Wed, 19 Apr 2000 11:29:06 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA14786 for linux-list; Wed, 19 Apr 2000 11:24:22 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA84795 for ; Wed, 19 Apr 2000 11:24:20 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 LAA08813 for ; Wed, 19 Apr 2000 11:24:19 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 23A237FB; Wed, 19 Apr 2000 20:24:21 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 07FB48FC4; Wed, 19 Apr 2000 20:19:39 +0200 (CEST) Date: Wed, 19 Apr 2000 20:19:39 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com, linux-kernel@vger.rutgers.edu Subject: include/linux/serial.h Message-ID: <20000419201939.B276@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, shouldnt include/linux/serial.h include asm/types.h ? It uses __u32 which causes a bomb out when i am trying to compile util-linux. Otherwise ifdef __KERNEL__ around struct async_icount Index: serial.h =================================================================== RCS file: /cvs/linux/include/linux/serial.h,v retrieving revision 1.12 diff -u -r1.12 serial.h --- serial.h 2000/03/27 23:54:41 1.12 +++ serial.h 2000/04/19 18:21:01 @@ -11,6 +11,7 @@ #define _LINUX_SERIAL_H #include +#include /* * Counters of the input lines (CTS, DSR, RI, CD) interrupts Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Wed Apr 19 16:20:15 2000 Received: by oss.sgi.com id ; Wed, 19 Apr 2000 16:20:05 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:54886 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 19 Apr 2000 16:19:42 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id QAA25260; Wed, 19 Apr 2000 16:14:57 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA02098 for linux-list; Wed, 19 Apr 2000 16:04:39 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from dhcp-163-154-5-221.engr.sgi.com (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA03616 for ; Wed, 19 Apr 2000 16:04:38 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Wed, 19 Apr 2000 16:01:26 -0700 Date: Wed, 19 Apr 2000 16:01:26 -0700 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: Re: 2.3.99pre5 on Decstation 5000/150 Was: CVS Update@oss.sgi.com: linux Message-ID: <20000419160126.C709@uni-koblenz.de> References: <20000419135535Z305163-391+262@oss.sgi.com> <20000419184812.I7793@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000419184812.I7793@paradigm.rfc822.org>; from flo@rfc822.org on Wed, Apr 19, 2000 at 06:48:13PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, Apr 19, 2000 at 06:48:13PM +0200, Florian Lohoff wrote: > [flo@repeat flo]$ uname -a > Linux repeat 2.3.99-pre5 #1 Wed Apr 19 18:34:20 CEST 2000 mips unknown > [flo@repeat flo]$ cat /proc/cpuinfo > cpu: MIPS > cpu model : R4000SC V3.0 Btw, that's a fairly old piece of silicon, you may be interested in walking through the errata and fix all the bugs that have workarounds ... Ralf From owner-linuxmips@oss.sgi.com Wed Apr 19 19:30:58 2000 Received: by oss.sgi.com id ; Wed, 19 Apr 2000 19:30:50 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:21765 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 19 Apr 2000 19:30:24 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id TAA08755; Wed, 19 Apr 2000 19:34:25 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id TAA53926 for linux-list; Wed, 19 Apr 2000 19:13:54 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id TAA58539 for ; Wed, 19 Apr 2000 19:13:52 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from ns4.sony.co.jp (ns4.Sony.CO.JP [202.238.80.4]) 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 TAA08326 for ; Wed, 19 Apr 2000 19:13:51 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from mail1.sony.co.jp (gatekeeper7.Sony.CO.JP [202.238.80.21]) by ns4.sony.co.jp (04/18/00) with ESMTP id LAA20510; Thu, 20 Apr 2000 11:13:52 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail1.sony.co.jp (3.7W990708a) with ESMTP id LAA19656; Thu, 20 Apr 2000 11:13:52 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.27.209.5]) by smail1.sm.sony.co.jp (8.8.8/3.6W) with ESMTP id LAA11821; Thu, 20 Apr 2000 11:13:10 +0900 (JST) Received: from mach0.sm.sony.co.jp (mach0.sm.sony.co.jp [43.27.210.135]) by imail.sm.sony.co.jp (8.8.8/3.7W) with ESMTP id LAA14833; Thu, 20 Apr 2000 11:13:21 +0900 (JST) Received: from localhost by mach0.sm.sony.co.jp (8.8.8/FreeBSD) with ESMTP id LAA18281; Thu, 20 Apr 2000 11:13:20 +0900 (JST) To: binutils@sourceware.cygnus.com, linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: MIPS gas problem X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000420111320Z.machida@sm.sony.co.jp> Date: Thu, 20 Apr 2000 11:13:20 +0900 From: Hiroyuki Machida X-Dispatcher: imput version 990905(IM130) Lines: 168 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi I found the problem "__attribute__ ((aligned(xx))" doesn't work properly on MIPS/Linux. Please try to execute the attached test. I think this problem can be reproduced on any ELF/MIPS box except EMBEDED system which has OS name "elf". I tracked down and finaly found gas/config/t-mips.c:s_change_sec(sec) sets always ".rodata" section-alignment to 2**4. This should be set to the maximum rodata object's alignment value. % cc -c rotest.c -o rotest.o % objdump -h rotest.o rotest.o: file format elf32-littlemips Sections: Idx Name Size VMA LMA File off Algn 0 .text 00000330 0000000000000000 0000000000000000 00000040 2**4 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .data 00000010 0000000000000000 0000000000000000 00000370 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .bss 00000000 0000000000000000 0000000000000000 00000380 2**4 ALLOC 3 .reginfo 00000018 0000000000000000 0000000000000000 00000380 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA,LINK_ONCE_SAME_SIZE 4 .mdebug 000002f8 0000000000000000 0000000000000000 00000398 2**2 CONTENTS, READONLY, DEBUGGING 5 .rodata 00002060 0000000000000000 0000000000000000 00000690 2**4 CONTENTS, ALLOC, LOAD, READONLY, DATA The sample fix for binutils 2.9.1 is following. (This can be apply to current CVS version, I suppose.) Does anyone know the reason why gas/config/t-mips.c set to "rodata' section alignment to 2**4 and ignore the maximum rodata object alignment.? We have to know why this restriction is made, anyway. --- Hiroyuki Machida Creative Station SCE Inc./Sony Corp. Index: tc-mips.c =================================================================== RCS file: /usr/cvsroot/caesar/src/compiler/binutils/gas/config/tc-mips.c,v retrieving revision 1.4 retrieving revision 1.5 diff -U10 -p -r1.4 -r1.5 --- tc-mips.c 1999/07/07 01:03:55 1.4 +++ tc-mips.c 2000/04/12 06:50:19 1.5 @@ -9727,21 +9727,28 @@ s_change_sec (sec) (subsegT) get_absolute_expression ()); if (OUTPUT_FLAVOR == bfd_target_elf_flavour) { bfd_set_section_flags (stdoutput, seg, (SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_RELOC | SEC_DATA)); if (strcmp (TARGET_OS, "elf") != 0) - bfd_set_section_alignment (stdoutput, seg, 4); + { + static char first = 1; + if (first) + { + bfd_set_section_alignment (stdoutput, seg, 4); + first=0; + } + } } demand_empty_rest_of_line (); } else { as_bad ("No read only data section in this object file format"); demand_empty_rest_of_line (); return; } break; @@ -9749,21 +9756,28 @@ s_change_sec (sec) case 's': if (USE_GLOBAL_POINTER_OPT) { seg = subseg_new (".sdata", (subsegT) get_absolute_expression ()); if (OUTPUT_FLAVOR == bfd_target_elf_flavour) { bfd_set_section_flags (stdoutput, seg, SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA); if (strcmp (TARGET_OS, "elf") != 0) - bfd_set_section_alignment (stdoutput, seg, 4); + { + static char first = 1; + if (first) + { + bfd_set_section_alignment (stdoutput, seg, 4); + first=0; + } + } } demand_empty_rest_of_line (); break; } else { as_bad ("Global pointers not supported; recompile -G 0"); demand_empty_rest_of_line (); return; } --- end of patch /* * rotest.c - rodata alignment test. */ #define AL1 1024 #define AL2 4096 const char globalc='a'; const int global1 __attribute__ ((aligned(AL1))) =0 ; const int global2 __attribute__ ((aligned(AL2))) =1; const int local1 __attribute__ ((aligned(AL1))) =0 ; const int local2 __attribute__ ((aligned(AL2))) =1; int total_ng=0; void check(char *addr, unsigned long al) { unsigned long mask = (al -1); if ((unsigned long) addr & mask){ total_ng ++; printf("err:%x expected:%x\n", addr, (unsigned long) addr & ~mask); } } int main(void) { printf("* readonly local/gloabl\n"); printf("chcking align:%x\n",AL1); check((char *)&local1,AL1); check((char *)&global1,AL1); printf("%x:%x\n", &local1,&global1); printf("chcking align:%x\n",4096); check((char *)&global1,AL2); check((char *)&global2,AL2); printf("%x:%x\n", &global1,&global2); printf("\n"); if (total_ng) { printf("NG:%d\n",total_ng); } else { printf("OK\n"); } printf("\n"); return total_ng; } --- end of test From owner-linuxmips@oss.sgi.com Thu Apr 20 03:36:18 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 03:36:08 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:34581 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 03:35:53 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id DAA07171; Thu, 20 Apr 2000 03:39:55 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id DAA14170; Thu, 20 Apr 2000 03:35:22 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id DAA59141 for linux-list; Thu, 20 Apr 2000 03:21:36 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id DAA45503 for ; Thu, 20 Apr 2000 03:21:34 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 DAA01539 for ; Thu, 20 Apr 2000 03:21:33 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id A44B687D; Thu, 20 Apr 2000 12:21:31 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id EA2188FC4; Thu, 20 Apr 2000 12:16:10 +0200 (CEST) Date: Thu, 20 Apr 2000 12:16:10 +0200 From: Florian Lohoff To: Hiroyuki Machida Cc: linux@cthulhu.engr.sgi.com Subject: Re: MIPS gas problem Message-ID: <20000420121610.B1247@paradigm.rfc822.org> References: <20000420111320Z.machida@sm.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000420111320Z.machida@sm.sony.co.jp>; from Hiroyuki Machida on Thu, Apr 20, 2000 at 11:13:20AM +0900 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 20, 2000 at 11:13:20AM +0900, Hiroyuki Machida wrote: > > I found the problem "__attribute__ ((aligned(xx))" doesn't work > properly on MIPS/Linux. Please try to execute the attached test. > I think this problem can be reproduced on any ELF/MIPS box except > EMBEDED system which has OS name "elf". > > I tracked down and finaly found gas/config/t-mips.c:s_change_sec(sec) > sets always ".rodata" section-alignment to 2**4. This should be set > to the maximum rodata object's alignment value. Hmm, if i understand that correctly i am seeing a different behaviour: (egcs 1.0.3a + binutils 2.8.1) [flo@repeat flo]$ gcc -save-temps -o rotest rotest.c rotest.c:8: warning: alignment of `global1' is greater than maximum object file alignment rotest.c:9: warning: alignment of `global2' is greater than maximum object file alignment rotest.c:11: warning: alignment of `local1' is greater than maximum object file alignment rotest.c:12: warning: alignment of `local2' is greater than maximum object file alignment And i see only a max alignment 3 in the rotest.s, and as expected the test fails: [flo@repeat flo]$ ./rotest * readonly local/gloabl chcking align:400 err:4007a8 expected:400400 err:400798 expected:400400 4007a8:400798 chcking align:1000 err:400798 expected:400000 err:4007a0 expected:400000 400798:4007a0 NG:4 Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 20 05:18:18 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 05:18:09 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:26391 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 05:18:02 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id FAA09613; Thu, 20 Apr 2000 05:22:03 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id FAA34956; Thu, 20 Apr 2000 05:17:30 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA88662 for linux-list; Thu, 20 Apr 2000 05:05:41 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA84946 for ; Thu, 20 Apr 2000 05:05:26 -0700 (PDT) mail_from (kk@ddeorg.soft.net) Received: from firewall.ddeorg.soft.net (firewall.ddeorg.soft.net [164.164.74.3]) 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 FAA08993 for ; Thu, 20 Apr 2000 05:05:17 -0700 (PDT) mail_from (kk@ddeorg.soft.net) Received: by firewall.ddeorg.soft.net (8.8.8/9.7) id RAA18483; Thu, 20 Apr 2000 17:38:29 +0530 (IST) Received: from madras.ddeorg.soft.net by ddeorg.soft.net (8.8.8/9.6) with ESMTP id RAA18470; Thu, 20 Apr 2000 17:38:22 +0530 (IST) Received: from localhost by madras.ddeorg.soft.net (8.8.5/9.7) with SMTP id RAA07021; Thu, 20 Apr 2000 17:37:57 +0530 (IST) Message-Id: <200004201207.RAA07021@madras.ddeorg.soft.net> X-Mailer: exmh version 2.0.1 12/23/97 To: Hiroyuki Machida cc: binutils@sourceware.cygnus.com, linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: Re: MIPS gas problem In-reply-to: Your message of "Thu, 20 Apr 2000 11:13:20 +0900." <20000420111320Z.machida@sm.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 20 Apr 2000 17:37:56 +0530 From: "Koundinya.K" Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing machida@sm.sony.co.jp said: -> Hi -> I found the problem "__attribute__ ((aligned(xx))" doesn't work -> properly on MIPS/Linux. Please try to execute the attached test. I -> think this problem can be reproduced on any ELF/MIPS box except -> EMBEDED system which has OS name "elf". -> I tracked down and finaly found gas/config/t-mips.c:s_change_sec(sec) -> sets always ".rodata" section-alignment to 2**4. This should be set -> to the maximum rodata object's alignment value. I am seeing something different (gcc 2.95.2 and binutils from snapshot 000213) on my mips based machine (mips-dde-sysv4.2MP) [~] gcc -c rotest.c -o rotest.o rotest.c:8: warning: alignment of `global1' is greater than maximum object file alignment. Using 8. rotest.c:9: warning: alignment of `global2' is greater than maximum object file alignment. Using 8. rotest.c:11: warning: alignment of `local1' is greater than maximum object file alignment. Using 8. rotest.c:12: warning: alignment of `local2' is greater than maximum object file alignment. Using 8. koundinya From owner-linuxmips@oss.sgi.com Thu Apr 20 06:02:38 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 06:02:28 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:49176 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 06:02:04 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id GAA08953; Thu, 20 Apr 2000 06:06:06 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA78323 for linux-list; Thu, 20 Apr 2000 05:47:01 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA85489 for ; Thu, 20 Apr 2000 05:47:00 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 FAA06195 for ; Thu, 20 Apr 2000 05:46:58 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 94799802; Thu, 20 Apr 2000 14:46:59 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 643D18FC4; Thu, 20 Apr 2000 14:41:39 +0200 (CEST) Date: Thu, 20 Apr 2000 14:41:39 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: Should send SIGFPE to .* Message-ID: <20000420144139.F1247@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i just rediscovered the kernel messages in the kern.log ... Apr 19 20:12:41 repeat kernel: Setting flush to zero for top. Apr 19 20:12:41 repeat kernel: Unimplemented exception for insn 46001124 at 0x00403588 in top. Apr 19 20:12:41 repeat kernel: Should send SIGFPE to top This is something i not really understand - After "Setting flush to zero" the instruction is "retried" and enters the exception again and say "Unimplemented exception" which means - The CPU doesnt support it and then "Simulates" this instruction in "simfp(insn)" - Until now nothing bad has happened and these two kernel messages should be encapsulated by a "#if DEBUG_FP_EXCEPTION" or something. Now i get an "Should send SIGFPE to top" which i dont understand - Shouldnt SIGFPE signal Floating Point errors (like div by zero) - As the code gets simulated in simfp this function should be responsible for sending the signal if something goes wrong ? arch/mips/kernel/traps.c 354 printk(KERN_DEBUG "Unimplemented exception for insn %08x at 0x%08lx in %s.\n", 355 insn, regs->cp0_epc, current->comm); 356 simfp(insn); 357 } 358 359 if (compute_return_epc(regs)) 360 goto out; 361 //force_sig(SIGFPE, current); 362 printk(KERN_DEBUG "Should send SIGFPE to %s\n", current->comm); 363 364 out: 365 unlock_kernel(); Might it be that compute_return_epc in branch.c does not support the mentioned instructions (FP instructions ?) and though can not calculate the correct epc ? Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots."iii From owner-linuxmips@oss.sgi.com Thu Apr 20 07:20:49 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 07:20:39 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:2922 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 07:20:34 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id HAA22069; Thu, 20 Apr 2000 07:15:49 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id HAA60734; Thu, 20 Apr 2000 07:20:03 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id HAA47852 for linux-list; Thu, 20 Apr 2000 07:07:26 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id HAA17115 for ; Thu, 20 Apr 2000 07:07:24 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 HAA03083 for ; Thu, 20 Apr 2000 07:07:23 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id HAA08042; Thu, 20 Apr 2000 07:07:24 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id HAA13492; Thu, 20 Apr 2000 07:07:21 -0700 (PDT) Message-ID: <00bf01bfaad1$fc42b460$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Florian Lohoff" , Subject: Re: Should send SIGFPE to .* Date: Thu, 20 Apr 2000 16:08:58 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >Hi, >i just rediscovered the kernel messages in the kern.log ... > >Apr 19 20:12:41 repeat kernel: Setting flush to zero for top. >Apr 19 20:12:41 repeat kernel: Unimplemented exception for insn 46001124 at 0x00403588 in top. >Apr 19 20:12:41 repeat kernel: Should send SIGFPE to top > >This is something i not really understand - After "Setting flush to zero" the >instruction is "retried" and enters the exception again and say >"Unimplemented exception" which means - The CPU doesnt support it >and then "Simulates" this instruction in "simfp(insn)" - Until >now nothing bad has happened and these two kernel messages >should be encapsulated by a "#if DEBUG_FP_EXCEPTION" or something. > >Now i get an "Should send SIGFPE to top" which i dont understand - Shouldnt >SIGFPE signal Floating Point errors (like div by zero) - As the code >gets simulated in simfp this function should be responsible for >sending the signal if something goes wrong ? Note that I didn't actually *write* the code in question, but having rewritten it fairly recently, I think I understand what's going on. The main thing to keep in mind here is that the "mini" form of the FPU emulator (the one in softfp.S) is an incomplete emulation of IEEE FP. Forcing flush-to-zero for denormalized results isn't really kosher, since that's supposed to be under the control of the application, but it avoids having to compute denormalized results in softfp.S, so the trap handler, as an expedient, changes the application's rounding mode in hopes that the problem was in fact a denormal result. If that "works", the application will get an incorrect answer, but one can hope that no one will notice ;-). If, having tried that trick, the trap handler gets invoked again, things are more serious, and the limited emulator is invoked. >arch/mips/kernel/traps.c > > 354 printk(KERN_DEBUG "Unimplemented exception for insn %08x at 0x%08lx in %s.\n", > 355 insn, regs->cp0_epc, current->comm); > 356 simfp(insn); > 357 } > 358 > 359 if (compute_return_epc(regs)) > 360 goto out; > 361 //force_sig(SIGFPE, current); > 362 printk(KERN_DEBUG "Should send SIGFPE to %s\n", current->comm); > 363 > 364 out: > 365 unlock_kernel(); > > >Might it be that compute_return_epc in branch.c does not support >the mentioned instructions (FP instructions ?) and though can not >calculate the correct epc ? I never did figure out why that code is in there. Perhaps it dates from a previous version of compute_return_epc(). The current version does try to emulate the branch-on-floating-condition instructions, and can only fail if the EPC is misaligned or if there is an error fetching the instruction from user space (which should have been caught earlier in the FP trap handler if it was actually a problem), and as such the force_sig() should use the value returned by compute_return_epc() as the signal number, and not SIGFPE, and the signal should really be sent to the process, not just noted as a signal wannabe. I was going to make another cleanup pass over traps.c this week, so it looks like you've found me another nit to excise. (Although we've got the full-blown Algorithmics emulator in our source base - coming soon to a repository near you - we kept the old stuff around for people wanting to build for a minimal footprint). Thanks, Kevin K. __ Kevin D. Kissell MIPS Technologies European Architecture Lab kevink@mips.com Tel. +33.4.78.38.70.67 FAX. +33.4.78.38.70.68 From owner-linuxmips@oss.sgi.com Thu Apr 20 09:28:39 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 09:28:29 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:65291 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 09:28:23 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id JAA06463; Thu, 20 Apr 2000 09:23:38 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA48799 for linux-list; Thu, 20 Apr 2000 09:19:33 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA70630 for ; Thu, 20 Apr 2000 09:19:29 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 JAA08462 for ; Thu, 20 Apr 2000 09:19:15 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id D54A1808; Thu, 20 Apr 2000 18:19:14 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 4487B8FC4; Thu, 20 Apr 2000 18:13:52 +0200 (CEST) Date: Thu, 20 Apr 2000 18:13:52 +0200 From: Florian Lohoff To: "Kevin D. Kissell" Cc: linux@cthulhu.engr.sgi.com Subject: Re: Should send SIGFPE to .* Message-ID: <20000420181352.A7304@paradigm.rfc822.org> References: <00bf01bfaad1$fc42b460$0ceca8c0@satanas.mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <00bf01bfaad1$fc42b460$0ceca8c0@satanas.mips.com>; from Kevin D. Kissell on Thu, Apr 20, 2000 at 04:08:58PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 20, 2000 at 04:08:58PM +0200, Kevin D. Kissell wrote: > If, having tried that trick, the trap handler gets invoked again, > things are more serious, and the limited emulator is invoked. I understood that aftersome loops over the code :) > if it was actually a problem), and as such the force_sig() should > use the value returned by compute_return_epc() as the signal I dont think compute_return_epc returns a signal value. > number, and not SIGFPE, and the signal should really be > sent to the process, not just noted as a signal wannabe. I think this was due to a annoyed user whos process died always when the fpu instruction got emulated :) > I was going to make another cleanup pass over traps.c this > week, so it looks like you've found me another nit to excise. > (Although we've got the full-blown Algorithmics emulator > in our source base - coming soon to a repository near you - > we kept the old stuff around for people wanting to build for > a minimal footprint). How much is the full emulator as binary ? Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 20 09:40:39 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 09:40:30 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:2605 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 09:40:10 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id JAA07241; Thu, 20 Apr 2000 09:44:13 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA33965 for linux-list; Thu, 20 Apr 2000 09:30:46 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA08181 for ; Thu, 20 Apr 2000 09:30:44 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 JAA02630 for ; Thu, 20 Apr 2000 09:30:41 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 94254808; Thu, 20 Apr 2000 18:30:43 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 759EE8FC4; Thu, 20 Apr 2000 18:25:22 +0200 (CEST) Date: Thu, 20 Apr 2000 18:25:22 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: bug in get_wchan ... Message-ID: <20000420182522.B7304@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i had some loops on the annoying "bug in get_wchan" and after i hopefully understood whats going on arch/mips/kernel/process.c 196 unsigned long get_wchan(struct task_struct *p) 197 { 198 unsigned long schedule_frame; 199 unsigned long pc; 200 201 if (!p || p == current || p->state == TASK_RUNNING) 202 return 0; 203 204 pc = thread_saved_pc(&p->thread); 205 if (pc == (unsigned long) interruptible_sleep_on 206 || pc == (unsigned long) sleep_on) { 207 schedule_frame = ((unsigned long *)p->thread.reg30)[9]; 208 return ((unsigned long *)schedule_frame)[15]; 209 } 210 if (pc == (unsigned long) interruptible_sleep_on_timeout 211 || pc == (unsigned long) sleep_on_timeout) { 212 schedule_frame = ((unsigned long *)p->thread.reg30)[9]; 213 return ((unsigned long *)schedule_frame)[16]; 214 } 215 if (pc >= first_sched && pc < last_sched) { 216 printk(KERN_DEBUG "Bug in %s\n", __FUNCTION__); 217 } 218 219 return pc; 220 } What does "thread_saved_pc(&p->thread);" return ? Does it really return the exact address of the schedule functions as assumed in 205-214 ? Most other architectures search the stack page for the calling function but it seems their asmlinkage is more strict in the means of location of the return address on the stack. The current implementation is buggy not only in the means of the printk but also in the wchan - Most of the output is "schedule" itself which means none of the statements above had been true but when extending the printk with the pc it never exactly matches &schedule so a == schedule wont help. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 20 09:48:19 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 09:48:09 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:36654 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 09:47:58 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id JAA09674; Thu, 20 Apr 2000 09:52:00 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA37496 for linux-list; Thu, 20 Apr 2000 09:40:45 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA30152 for ; Thu, 20 Apr 2000 09:40:41 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 JAA02116 for ; Thu, 20 Apr 2000 09:40:41 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id JAA10773; Thu, 20 Apr 2000 09:40:42 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id JAA17008; Thu, 20 Apr 2000 09:40:39 -0700 (PDT) Message-ID: <011e01bfaae7$66747a20$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Florian Lohoff" , Subject: Re: Should send SIGFPE to .* Date: Thu, 20 Apr 2000 18:42:15 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >arch/mips/kernel/traps.c > > 354 printk(KERN_DEBUG "Unimplemented exception for insn %08x at 0x%08lx in %s.\n", > 355 insn, regs->cp0_epc, current->comm); > 356 simfp(insn); > 357 } > 358 > 359 if (compute_return_epc(regs)) > 360 goto out; > 361 //force_sig(SIGFPE, current); > 362 printk(KERN_DEBUG "Should send SIGFPE to %s\n", current->comm); > 363 > 364 out: > 365 unlock_kernel(); > > >Might it be that compute_return_epc in branch.c does not support >the mentioned instructions (FP instructions ?) and though can not >calculate the correct epc ? My previous response was a bit confused, because I was looking at our already-modified code and reconstructing the old logic. Looking at the more-or-less-current 2.3 tree, I see the further bug to which you are referring. There *should* be another goto following the simfp() call. The code that does the compute_return_epc() followed by the force_sig(SIGFP) should be executed in all cases where the emulator was not invoked, which is to say in the cases of real FP exceptions, but not if the mini-emulator has handled the situation. Presumably, the absence of that bypass path was causing bogus SIGFPE's, prompting someone to comment out the force_sig() in all cases and add the printk(), but that's not the correct behaviour. The overall handler (MIPS version) looks like this: (and yes, it still can be improved, as I mentioned earlier...) /* * XXX Delayed fp exceptions when doing a lazy ctx switch XXX */ void do_fpe(struct pt_regs *regs, unsigned long fcr31) { #ifdef CONFIG_MIPS_FPU_EMULATOR if(!(mips_cpu.options & MIPS_CPU_FPU)) panic("Floating Point Exception with No FPU"); #endif #ifdef CONFIG_MIPS_FPE_MODULE if (fpe_handler != NULL) { fpe_handler(regs, fcr31); return; } #endif lock_kernel(); if (fcr31 & FPU_CSR_UNI_X) { #ifdef CONFIG_MIPS_FPU_EMULATOR extern void r4xx0_save_fp(struct task_struct *); extern void r4xx0_restore_fp(struct task_struct *); int sig; /* * Unimplemented operation exception. If we've got the * Full software emulator on-board, let's use it... * * Force FPU to dump state into task/thread context. * We're moving a lot of data here for what is probably * a single instruction, but the alternative is to * pre-decode the FP register operands before invoking * the emulator, which seems a bit extreme for what * should be an infrequent event. */ r4xx0_save_fp(current); /* Run the emulator */ sig = fpu_emulator_cop1Handler(0, regs); /* Restore the hardware register state */ r4xx0_restore_fp(current); /* If something went wrong, signal */ if(sig) { force_sig(sig, current); } #else /* Else use mini-emulator */ extern void simfp(int); unsigned long pc; unsigned int insn; /* Retry instruction with flush to zero ... */ if (!(fcr31 & (1<<24))) { printk("Setting flush to zero for %s.\n", current->comm); fcr31 &= ~FPU_CSR_UNI_X; fcr31 |= (1<<24); __asm__ __volatile__( "ctc1\t%0,$31" : /* No outputs */ : "r" (fcr31)); goto out; } pc = regs->cp0_epc + ((regs->cp0_cause & CAUSEF_BD) ? 4 : 0); if(pc & 0x80000000) insn = *(unsigned int *)pc; else if (get_user(insn, (unsigned int *)pc)) { /* XXX Can this happen? */ force_sig(SIGSEGV, current); } printk(KERN_DEBUG "Unimplemented exception for insn %08x at 0x%8lx in %s.\n", insn, regs->cp0_epc, current->comm); simfp(MIPSInst(insn)); compute_return_epc(regs); #endif /* CONFIG_MIPS_FPU_EMULATOR */ goto out; } if (compute_return_epc(regs)) { goto out; } force_sig(SIGFPE, current); printk(KERN_DEBUG "Sent SIGFPE to %s\n", current->comm); out: unlock_kernel(); } From owner-linuxmips@oss.sgi.com Thu Apr 20 10:18:09 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 10:17:59 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:26140 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 10:17:50 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id KAA13322; Thu, 20 Apr 2000 10:13:05 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA59348; Thu, 20 Apr 2000 10:17:19 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA64541 for linux-list; Thu, 20 Apr 2000 10:07:35 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA77275 for ; Thu, 20 Apr 2000 10:07:33 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 KAA07327 for ; Thu, 20 Apr 2000 10:07:33 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id KAA11388; Thu, 20 Apr 2000 10:07:34 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id KAA18150; Thu, 20 Apr 2000 10:07:31 -0700 (PDT) Message-ID: <012b01bfaaeb$27911800$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Florian Lohoff" Cc: Subject: Re: Should send SIGFPE to .* Date: Thu, 20 Apr 2000 19:09:07 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >> if it was actually a problem), and as such the force_sig() should >> use the value returned by compute_return_epc() as the signal > >I dont think compute_return_epc returns a signal value. Oops. You're right. It returns -EFAULT. And it handles the signal propagation all by its lonesome, so nothing further needs to be done if it failed. >> I was going to make another cleanup pass over traps.c this >> week, so it looks like you've found me another nit to excise. >> (Although we've got the full-blown Algorithmics emulator >> in our source base - coming soon to a repository near you - >> we kept the old stuff around for people wanting to build for >> a minimal footprint). > >How much is the full emulator as binary ? About 47Kbytes, I'm afraid. __ Kevin D. Kissell MIPS Technologies European Architecture Lab kevink@mips.com Tel. +33.4.78.38.70.67 FAX. +33.4.78.38.70.68 From owner-linuxmips@oss.sgi.com Thu Apr 20 14:44:42 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 14:44:31 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:37971 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 14:44:17 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA03536; Thu, 20 Apr 2000 14:48:19 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id OAA63852; Thu, 20 Apr 2000 14:43:46 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA22978 for linux-list; Thu, 20 Apr 2000 14:30:17 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA53858 for ; Thu, 20 Apr 2000 14:30:13 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 OAA01762 for ; Thu, 20 Apr 2000 14:30:09 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id B8F3280D; Thu, 20 Apr 2000 23:30:10 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id CE9E98FC4; Thu, 20 Apr 2000 23:03:45 +0200 (CEST) Date: Thu, 20 Apr 2000 23:03:45 +0200 From: Florian Lohoff To: "Kevin D. Kissell" Cc: linux@cthulhu.engr.sgi.com Subject: Re: Should send SIGFPE to .* Message-ID: <20000420230345.A272@paradigm.rfc822.org> References: <012b01bfaaeb$27911800$0ceca8c0@satanas.mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <012b01bfaaeb$27911800$0ceca8c0@satanas.mips.com>; from Kevin D. Kissell on Thu, Apr 20, 2000 at 07:09:07PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 20, 2000 at 07:09:07PM +0200, Kevin D. Kissell wrote: > >> if it was actually a problem), and as such the force_sig() should > >> use the value returned by compute_return_epc() as the signal > > > >I dont think compute_return_epc returns a signal value. > > Oops. You're right. It returns -EFAULT. And it handles > the signal propagation all by its lonesome, so nothing > further needs to be done if it failed. This is what i assumed :) > >How much is the full emulator as binary ? > > About 47Kbytes, I'm afraid. Hmmm - With a 2MB Kernel Image total and 64-128MB machines this is ok :) Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 20 19:05:15 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 19:05:05 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:19491 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 19:04:49 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id TAA13154; Thu, 20 Apr 2000 19:00:04 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA29413 for linux-list; Thu, 20 Apr 2000 18:53:36 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id SAA22214 for ; Thu, 20 Apr 2000 18:53:33 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from ns4.sony.co.jp (ns4.Sony.CO.JP [202.238.80.4]) 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 SAA07573 for ; Thu, 20 Apr 2000 18:53:31 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from mail2.sony.co.jp (gatekeeper7.Sony.CO.JP [202.238.80.21]) by ns4.sony.co.jp (04/18/00) with ESMTP id KAB11051; Fri, 21 Apr 2000 10:53:23 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail2.sony.co.jp (3.7W99040614b) with ESMTP id KAA08404; Fri, 21 Apr 2000 10:53:21 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.27.209.5]) by smail1.sm.sony.co.jp (8.8.8/3.6W) with ESMTP id KAA12121; Fri, 21 Apr 2000 10:52:15 +0900 (JST) Received: from mach0.sm.sony.co.jp (mach0.sm.sony.co.jp [43.27.210.135]) by imail.sm.sony.co.jp (8.8.8/3.7W) with ESMTP id KAA00633; Fri, 21 Apr 2000 10:52:26 +0900 (JST) Received: from localhost by mach0.sm.sony.co.jp (8.8.8/FreeBSD) with ESMTP id KAA09369; Fri, 21 Apr 2000 10:52:25 +0900 (JST) To: kk@ddeorg.soft.net, flo@rfc822.org, ian@zembu.com Cc: binutils@sourceware.cygnus.com, linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: Re: MIPS gas problem In-Reply-To: <20000420164812.17210.qmail@daffy.airs.com> References: <200004201207.RAA07021@madras.ddeorg.soft.net> <20000420164812.17210.qmail@daffy.airs.com> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000421105225J.machida@sm.sony.co.jp> Date: Fri, 21 Apr 2000 10:52:25 +0900 From: Hiroyuki Machida X-Dispatcher: imput version 990905(IM130) Lines: 79 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing I rewrite the test program which is not depending your gcc version or config. Please try this. #define P1 10 #define P2 12 #define P1STR "10" #define P2STR "12" #define AL1 (2<<(P1-1)) #define AL2 (2<<(P2-1)) asm( " .globl globalc;\n" " .rdata;\n" " .type globalc,@object;\n" " .size globalc,1;\n" "globalc:\n" " .byte 97;\n" ); asm( " .globl global1;\n" " .align " P1STR ";\n" " .type global1,@object;\n" " .size global1,4;\n" "global1:\n" " .word 0;\n" ); asm( " .globl global2;\n" " .align " P2STR ";\n" " .type global2,@object;\n" " .size global2,4;\n" "global2:\n" " .word 1;\n" ); int total_ng=0; void check(char *addr, unsigned long al) { unsigned long mask = (al -1); if ((unsigned long) addr & mask){ total_ng ++; printf("err:%x expected:%x\n", addr, (unsigned long) addr & ~mask); } } int main(void) { extern int global1, global2; extern char globalc; printf("* readonly gloabl\n"); printf("chcking align:%x\n",AL1); check((char *)&global1,AL1); printf("%x\n", &global1); printf("chcking align:%x\n",AL2); check((char *)&global2,AL2); printf("%x\n", &global2); printf("\n"); if (total_ng) { printf("NG:%d\n",total_ng); } else { printf("OK\n"); } printf("\n"); return total_ng; } From owner-linuxmips@oss.sgi.com Thu Apr 20 20:41:17 2000 Received: by oss.sgi.com id ; Thu, 20 Apr 2000 20:41:08 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:60462 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 20:40:54 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id UAA18613; Thu, 20 Apr 2000 20:36:09 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id UAA58931; Thu, 20 Apr 2000 20:40:23 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id UAA51972 for linux-list; Thu, 20 Apr 2000 20:31:02 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id UAA56123 for ; Thu, 20 Apr 2000 20:30:50 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from ns4.sony.co.jp (ns4.Sony.CO.JP [202.238.80.4]) 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 UAA06679 for ; Thu, 20 Apr 2000 20:30:45 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from mail3.sony.co.jp (gatekeeper7.Sony.CO.JP [202.238.80.21]) by ns4.sony.co.jp (04/18/00) with ESMTP id MAA07619; Fri, 21 Apr 2000 12:30:46 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail3.sony.co.jp (3.7W99051310c) with ESMTP id MAA23187; Fri, 21 Apr 2000 12:30:46 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.27.209.5]) by smail1.sm.sony.co.jp (8.8.8/3.6W) with ESMTP id MAA15639; Fri, 21 Apr 2000 12:30:04 +0900 (JST) Received: from mach0.sm.sony.co.jp (mach0.sm.sony.co.jp [43.27.210.135]) by imail.sm.sony.co.jp (8.8.8/3.7W) with ESMTP id MAA02297; Fri, 21 Apr 2000 12:30:15 +0900 (JST) Received: from localhost by mach0.sm.sony.co.jp (8.8.8/FreeBSD) with ESMTP id MAA11253; Fri, 21 Apr 2000 12:30:14 +0900 (JST) To: ian@zembu.com Cc: kk@ddeorg.soft.net, binutils@sourceware.cygnus.com, linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: Re: MIPS gas problem In-Reply-To: <20000420164812.17210.qmail@daffy.airs.com> References: <200004201207.RAA07021@madras.ddeorg.soft.net> <20000420164812.17210.qmail@daffy.airs.com> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000421123014J.machida@sm.sony.co.jp> Date: Fri, 21 Apr 2000 12:30:14 +0900 From: Hiroyuki Machida X-Dispatcher: imput version 990905(IM130) Lines: 122 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi Ian, From: Ian Lance Taylor Subject: Re: MIPS gas problem Date: 20 Apr 2000 09:48:12 -0700 > [~] gcc -c rotest.c -o rotest.o > rotest.c:8: warning: alignment of `global1' is greater than maximum object > file alignment. Using 8. This message is a gcc issue, as you said. But, my reported plobelm is really binutils issue. Sorry to confuse you. I will describe the problem using only asm file, again. Assmbling and linking attached al.S, I got the following result. % cc -o al -save-temps al.S % nm al.o | grep global 0000000000000400 R global1 0000000000001000 R global2 0000000000000000 R globalc % nm al | grep global 0000000000400dc0 R global1 00000000004019c0 R global2 00000000004009c0 R globalc Alignments of global1 and global2 in "al.o" looks good. But in "al" not. % objdump -h al.o | grep rodata 5 .rodata 00001010 0000000000000000 0000000000000000 00000250 2**4 % objdump -h al | grep rodata 9 .rodata 00001010 00000000004009c0 00000000004009c0 000009c0 2**4 I think when ld gathers read only section, the alignment will be broken. Because .rodata section alignment of al.o is not the maximum rodata object's alignment value(in this case 2**12). I tracked down and found that s_change_sec():gas/config/tc-mips.c resets section alignment to 2**4. So, the maximum rodata object's alignment value will be lost in the following sequence. .rdata // reset section-alignment to 2**4 .algin 10 // update section-alignment to 2**10 .type global1,@object; .size global1,4; global1: .word 0; .rdata // reset section-alignment to 2**4, Why?? .align 2 // not update ( 2 <= current section-alignment) string: .ascii "test\n" I want to know the reason why s_change_sec() always reset section-alignment to 2**4. I think this is wrong. --- al.S .abicalls .globl globalc; .rdata; .type globalc,@object; .size globalc,1; globalc: .byte 97; // rodata aligned 10 (1024) .globl global1; .align 10; .type global1,@object; .size global1,4; global1: .word 0; // rodata aligned 12 (4096) .globl global2; .align 12; .type global2,@object; .size global2,4; global2: .word 1; // data .globl total_ng .data .align 2 .type total_ng,@object .size total_ng,4 total_ng: .word 0 // rodata again .rdata .align 2 string: .ascii "test\n" .text .align 3 .globl main .ent main main: nop; nop nop .end main --- endof al.S --- Hiroyuki Machida Creative Station SCE Inc./Sony Corp. From owner-linuxmips@oss.sgi.com Fri Apr 21 01:48:49 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 01:48:39 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:54388 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 01:48:17 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id BAA00658; Fri, 21 Apr 2000 01:52:20 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id BAA47950; Fri, 21 Apr 2000 01:47:46 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA41775 for linux-list; Fri, 21 Apr 2000 01:38:20 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA28706 for ; Fri, 21 Apr 2000 01:38:14 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 BAA05293 for ; Fri, 21 Apr 2000 01:38:13 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id BAA27033; Fri, 21 Apr 2000 01:38:11 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id BAA10869; Fri, 21 Apr 2000 01:38:07 -0700 (PDT) Message-ID: <006401bfab6d$2a6cedb0$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Linux SGI" Cc: "Linux/MIPS fnet" Subject: More oddities in traps.c Date: Fri, 21 Apr 2000 10:39:51 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing So while we're on the topic of cruft in arch/mips/kernel/traps.c, does anyone know why the cache error exception vector is overwritten with a copy of the TLB miss handler as part of vector setup on R4xxx and R5xxx CPUs? __ Kevin D. Kissell MIPS Technologies European Architecture Lab kevink@mips.com Tel. +33.4.78.38.70.67 FAX. +33.4.78.38.70.68 From owner-linuxmips@oss.sgi.com Fri Apr 21 10:08:12 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 10:08:03 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:18701 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 10:07:40 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id KAA05121; Fri, 21 Apr 2000 10:11:43 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id JAA69180 for linux-list; Fri, 21 Apr 2000 09:58:56 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id JAA47517 for ; Fri, 21 Apr 2000 09:58:55 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Fri, 21 Apr 2000 09:55:07 -0700 Date: Fri, 21 Apr 2000 09:55:06 -0700 From: Ralf Baechle To: "Kevin D. Kissell" Cc: Linux SGI , Linux/MIPS fnet Subject: Re: More oddities in traps.c Message-ID: <20000421095506.A763@uni-koblenz.de> References: <006401bfab6d$2a6cedb0$0ceca8c0@satanas.mips.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <006401bfab6d$2a6cedb0$0ceca8c0@satanas.mips.com>; from kevink@mips.com on Fri, Apr 21, 2000 at 10:39:51AM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 10:39:51AM +0200, Kevin D. Kissell wrote: > So while we're on the topic of cruft in arch/mips/kernel/traps.c, > does anyone know why the cache error exception vector is > overwritten with a copy of the TLB miss handler as part of > vector setup on R4xxx and R5xxx CPUs? {\cruft[stupid_answer] Cache errors are that rare that nobody complained so far ...} Fixing ... Ralf From owner-linuxmips@oss.sgi.com Fri Apr 21 11:05:32 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 11:05:22 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:10260 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 11:05:07 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id LAA05431; Fri, 21 Apr 2000 11:09:10 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA42735 for linux-list; Fri, 21 Apr 2000 10:56:16 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA65589 for ; Fri, 21 Apr 2000 10:56:14 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 KAA06600 for ; Fri, 21 Apr 2000 10:56:10 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 4268A81B; Fri, 21 Apr 2000 19:56:11 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 8F4088FC4; Fri, 21 Apr 2000 19:48:01 +0200 (CEST) Date: Fri, 21 Apr 2000 19:48:01 +0200 From: Florian Lohoff To: Andreas Jaeger Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ulf Carlsson , Ralf Baechle Subject: Re: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000421194801.A5240@paradigm.rfc822.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Andreas Jaeger on Fri, Apr 21, 2000 at 10:30:21AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 10:30:21AM -0700, Andreas Jaeger wrote: > I would appreciate if you could build glibc and test it really hard. > I do expect problems in the following areas: > - definitions don't match between kernel and glibc. I've used the > latest 2.3 release. The glibc will not run with Linux 2.0.x. Linux 2.0 is low priority IMHO as there is a "Standalone" Mips port for 2.0 mainly used for the cobalts which has nevern been really developed much further. Nobody (except the embedded people) will use the 2.0 series now (And the embedded will use a smaller libc anyways) Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 21 11:05:42 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 11:05:32 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:14100 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 11:05:12 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id LAA07499; Fri, 21 Apr 2000 11:09:14 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA67372 for linux-list; Fri, 21 Apr 2000 10:56:16 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA57936 for ; Fri, 21 Apr 2000 10:56:14 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 KAA09205 for ; Fri, 21 Apr 2000 10:56:13 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 56C0781E; Fri, 21 Apr 2000 19:56:11 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A25538FC4; Fri, 21 Apr 2000 19:49:55 +0200 (CEST) Date: Fri, 21 Apr 2000 19:49:55 +0200 From: Florian Lohoff To: Andreas Jaeger Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ulf Carlsson , Ralf Baechle Subject: Re: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000421194955.B5240@paradigm.rfc822.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Andreas Jaeger on Fri, Apr 21, 2000 at 10:40:36AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 10:40:36AM -0700, Andreas Jaeger wrote: > Upps, I was to fast. I should have added that the handling of > floating point numbers seems to be quite broken. I haven't had time > to investigate whether this is a bug in glibc, kernel (at least > partially - we do need a real FPU emulation!) or gcc. A (full) FPU emulation is in the works and will soon appear on a cvs somewhere i was told :), so it will possibly available with kernel 2.4 and though be in line with glibc 2.2. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 21 12:05:21 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 12:05:13 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:11294 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 12:05:02 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA08825; Fri, 21 Apr 2000 12:09:06 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA36774 for linux-list; Fri, 21 Apr 2000 11:57:37 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA89985 for ; Fri, 21 Apr 2000 11:57:36 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Fri, 21 Apr 2000 11:53:59 -0700 Date: Fri, 21 Apr 2000 11:53:58 -0700 From: Ralf Baechle To: Florian Lohoff Cc: Andreas Jaeger , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ulf Carlsson Subject: Re: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000421115358.B1498@uni-koblenz.de> References: <20000421194801.A5240@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000421194801.A5240@paradigm.rfc822.org>; from flo@rfc822.org on Fri, Apr 21, 2000 at 07:48:01PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 07:48:01PM +0200, Florian Lohoff wrote: > On Fri, Apr 21, 2000 at 10:30:21AM -0700, Andreas Jaeger wrote: > Linux 2.0 is low priority IMHO as there is a "Standalone" Mips > port for 2.0 mainly used for the cobalts which has nevern been really > developed much further. Nobody (except the embedded people) will > use the 2.0 series now (And the embedded will use a smaller > libc anyways) 2.0 is dead as far as my interest in it goes. I'm however commited to continue support for 2.2 even after 2.4 is finally out. Ralf From owner-linuxmips@oss.sgi.com Fri Apr 21 12:05:31 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 12:05:22 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:10526 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 12:04:59 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA04685; Fri, 21 Apr 2000 12:09:02 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA75510 for linux-list; Fri, 21 Apr 2000 11:55:08 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA84177 for ; Fri, 21 Apr 2000 11:55:07 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Fri, 21 Apr 2000 11:51:21 -0700 Date: Fri, 21 Apr 2000 11:51:21 -0700 From: Ralf Baechle To: Andreas Jaeger Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ulf Carlsson Subject: Re: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000421115121.A1498@uni-koblenz.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from aj@oss.sgi.com on Fri, Apr 21, 2000 at 10:40:36AM -0700 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 10:40:36AM -0700, Andreas Jaeger wrote: > Upps, I was to fast. I should have added that the handling of > floating point numbers seems to be quite broken. I haven't had time > to investigate whether this is a bug in glibc, kernel (at least > partially - we do need a real FPU emulation!) or gcc. To keep you people up to date on this - I've got free shopping for the kernel FPU support software, that's is there are four solutions available: - two different ones from IRIX which I'm allowed to recycle for Linux - the Algorithmics code which already has been integrated into Linux by MIPS. - Write something new that is based on include/math-emu/. It used to be a relativly hard thing but it's no longer :-) Ralf From owner-linuxmips@oss.sgi.com Fri Apr 21 12:37:22 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 12:37:02 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:48191 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 12:36:56 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id MAA23565; Fri, 21 Apr 2000 12:32:11 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA93726 for linux-list; Fri, 21 Apr 2000 12:28:50 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA66268 for ; Fri, 21 Apr 2000 12:28:48 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 MAA00194 for ; Fri, 21 Apr 2000 12:28:46 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id D218081A; Fri, 21 Apr 2000 21:28:47 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 822B38FC4; Fri, 21 Apr 2000 21:22:34 +0200 (CEST) Date: Fri, 21 Apr 2000 21:22:34 +0200 From: Florian Lohoff To: Ralf Baechle Cc: Andreas Jaeger , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ulf Carlsson Subject: Re: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000421212234.B5928@paradigm.rfc822.org> References: <20000421115121.A1498@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000421115121.A1498@uni-koblenz.de>; from Ralf Baechle on Fri, Apr 21, 2000 at 11:51:21AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 11:51:21AM -0700, Ralf Baechle wrote: > To keep you people up to date on this - I've got free shopping for > the kernel FPU support software, that's is there are four solutions > available: > > - two different ones from IRIX which I'm allowed to recycle for Linux > - the Algorithmics code which already has been integrated into Linux > by MIPS. > - Write something new that is based on include/math-emu/. > > It used to be a relativly hard thing but it's no longer :-) Pick the good out of all ? :) Honestly - We should keep an eye on memory footprint as the embedded people will be very interested in this. How much work would the IRIX ones be and what is the difference between the two ? Are they probably available as they are right now to just publish them and someone with a lot time may produce a superset for Linux ? Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 21 13:14:32 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 13:14:22 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:24647 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 13:14:10 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id NAA26854; Fri, 21 Apr 2000 13:09:24 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id NAA99533 for linux-list; Fri, 21 Apr 2000 13:04:54 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from calypso.engr.sgi.com (calypso.engr.sgi.com [163.154.5.113]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id NAA02572; Fri, 21 Apr 2000 13:04:36 -0700 (PDT) mail_from (ulfc@calypso.engr.sgi.com) Received: from localhost (localhost [127.0.0.1]) by calypso.engr.sgi.com (Postfix) with ESMTP id C6275A7904; Fri, 21 Apr 2000 13:04:09 -0700 (PDT) Date: Fri, 21 Apr 2000 13:04:09 -0700 (PDT) From: Ulf Carlsson To: Andreas Jaeger Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ralf Baechle Subject: Re: GLIBC 2.2 should work on MIPS-Linux In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing > - binutils (use Ulf's version) and compiler (egcs 1.1.2 get internal > compiler errors in some cases). I'm trying to get gcc 2.96 CVS > running but do appreciate your help in testing and fixing. My binutils patch is here: oss.sgi.com /pub/linux/mips/src/binutils/binutils-000420.diff.gz We're using Ralf's egcs 1.1.2 patch (from the rpms): oss.sgi.com /pub/linux/mips/src/egcs/egcs-1.1.2.diff.gz Ulf From owner-linuxmips@oss.sgi.com Fri Apr 21 14:45:43 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 14:45:33 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:26667 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 14:45:18 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA00790; Fri, 21 Apr 2000 14:49:21 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id OAA67349; Fri, 21 Apr 2000 14:44:47 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA36036 for linux-list; Fri, 21 Apr 2000 14:31:59 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA88812 for ; Fri, 21 Apr 2000 14:31:58 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Fri, 21 Apr 2000 14:28:07 -0700 Date: Fri, 21 Apr 2000 14:28:07 -0700 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com Subject: Re: bug in get_wchan ... Message-ID: <20000421142807.B763@uni-koblenz.de> References: <20000420182522.B7304@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000420182522.B7304@paradigm.rfc822.org>; from flo@rfc822.org on Thu, Apr 20, 2000 at 06:25:22PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 20, 2000 at 06:25:22PM +0200, Florian Lohoff wrote: > What does "thread_saved_pc(&p->thread);" return ? Does it really > return the exact address of the schedule functions as assumed in > 205-214 ? It's supposed to return the address at which a currently non-executing process will continue it's execution. > Most other architectures search the stack page for the calling function > but it seems their asmlinkage is more strict in the means of > location of the return address on the stack. Yep, unwinding MIPS stackframes is not possible for the general case unless you use debug information. We don't want that, so have to use an alternative solution that is fairly fragile and you're observing yet another case of this. Fixing ... Ralf From owner-linuxmips@oss.sgi.com Fri Apr 21 14:49:22 2000 Received: by oss.sgi.com id ; Fri, 21 Apr 2000 14:49:12 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:38443 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 21 Apr 2000 14:49:06 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA09518; Fri, 21 Apr 2000 14:53:09 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id OAA26796; Fri, 21 Apr 2000 14:48:35 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA06359 for linux-list; Fri, 21 Apr 2000 14:38:29 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA32065 for ; Fri, 21 Apr 2000 14:38:28 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Fri, 21 Apr 2000 14:34:54 -0700 Date: Fri, 21 Apr 2000 14:34:54 -0700 From: Ralf Baechle To: Florian Lohoff Cc: Andreas Jaeger , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ulf Carlsson Subject: Re: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000421143454.E1498@uni-koblenz.de> References: <20000421115121.A1498@uni-koblenz.de> <20000421212234.B5928@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000421212234.B5928@paradigm.rfc822.org>; from flo@rfc822.org on Fri, Apr 21, 2000 at 09:22:34PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 09:22:34PM +0200, Florian Lohoff wrote: > Pick the good out of all ? :) Honestly - We should keep an eye on > memory footprint as the embedded people will be very interested in this. > > How much work would the IRIX ones be and what is the difference between > the two ? Are they probably available as they are right now to just > publish them and someone with a lot time may produce a superset for Linux ? There are two FP emulators in IRIX. The first one is fairly old, was already used in RISC/os and is written in assembler. I'm not sure if it can properly deal with MIPS IV. It's successor is written in C and is what's currently being used in IRIX, is pretty clean and maintainable code. It was clearly written with a heavily optimizing compiler such as SGI's in mind and I assume that it won't perform well without major restructuring when compiled with GCC. On the other side it's as far as I know the only package that gets all the cornercases right. Ralf From owner-linuxmips@oss.sgi.com Sat Apr 22 00:42:45 2000 Received: by oss.sgi.com id ; Sat, 22 Apr 2000 00:42:35 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:5660 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 22 Apr 2000 00:42:19 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id AAA08381; Sat, 22 Apr 2000 00:37:33 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id AAA68941; Sat, 22 Apr 2000 00:40:32 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id AAA78003 for linux-list; Sat, 22 Apr 2000 00:25:50 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id AAA71483 for ; Sat, 22 Apr 2000 00:25:35 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 AAA02507 for ; Sat, 22 Apr 2000 00:25:23 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id ECFD281E; Sat, 22 Apr 2000 09:25:19 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 651AA8FFD; Sat, 22 Apr 2000 09:18:46 +0200 (CEST) Date: Sat, 22 Apr 2000 09:18:46 +0200 From: Florian Lohoff To: Ulf Carlsson Cc: Andreas Jaeger , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu, Ralf Baechle Subject: binutils 4 kernel Was: GLIBC 2.2 should work on MIPS-Linux Message-ID: <20000422091846.F443@paradigm.rfc822.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Ulf Carlsson on Fri, Apr 21, 2000 at 01:04:09PM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 21, 2000 at 01:04:09PM -0700, Ulf Carlsson wrote: > My binutils patch is here: > > oss.sgi.com /pub/linux/mips/src/binutils/binutils-000420.diff.gz > > We're using Ralf's egcs 1.1.2 patch (from the rpms): > > oss.sgi.com /pub/linux/mips/src/egcs/egcs-1.1.2.diff.gz Ok - this combinations compiles an little endian dec mips kernel for me - Ill try to boot it in a second :) Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 23 10:50:11 2000 Received: by oss.sgi.com id ; Sun, 23 Apr 2000 10:50:02 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:25892 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 23 Apr 2000 10:49:44 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id KAA19604; Sun, 23 Apr 2000 10:44:59 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA11825 for linux-list; Sun, 23 Apr 2000 10:35:36 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA81603 for ; Sun, 23 Apr 2000 10:35:35 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 KAA06981 for ; Sun, 23 Apr 2000 10:35:34 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 22CEA81E; Sun, 23 Apr 2000 19:35:34 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 0FC4F8FFD; Sun, 23 Apr 2000 19:27:35 +0200 (CEST) Date: Sun, 23 Apr 2000 19:27:35 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: /usr/include/asm/io.h:308: undefined reference to `mips_io_port_base' Message-ID: <20000423192734.A3630@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i am trying to build "pileup" which is a "SoundBlaster" morse trainer. As it directly accesses hardware it seems to include some files which aehm - dont seem to work for userspace :) Does someone have an idea what goes wrong here ? [...] make CFLAGS="-O2 -g -Wall -D_REENTRANT" make[1]: Entering directory `/home/builder/build/pileup-1.1' gcc -O2 -g -Wall -D_REENTRANT -c AdLib.c gcc -O2 -g -Wall -D_REENTRANT -c pileup.c gcc -O2 -g -Wall -D_REENTRANT -o pileup pileup.o AdLib.o -lm -lpthread pileup.o: In function `stop_thread': /home/builder/build/pileup-1.1/pileup.c:229: undefined reference to `ioperm' /home/builder/build/pileup-1.1/pileup.c:230: undefined reference to `ioperm' pileup.o: In function `start_thread': /home/builder/build/pileup-1.1/pileup.c:289: undefined reference to `ioperm' /home/builder/build/pileup-1.1/pileup.c:290: undefined reference to `ioperm' pileup.o: In function `main': /home/builder/build/pileup-1.1/pileup.c:625: undefined reference to `ioperm' pileup.o:/home/builder/build/pileup-1.1/pileup.c:626: more undefined references to `ioperm' follow AdLib.o: In function `wr_register': /usr/include/asm/io.h:308: undefined reference to `mips_io_port_base' /usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' /usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' AdLib.o: In function `AdLib_found': /usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' AdLib.o: In function `ºm\*ºm\und': /usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' make[1]: *** [pileup] Error 1 make[1]: Leaving directory `/home/builder/build/pileup-1.1' make: *** [build] Error 2 [...] Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Sun Apr 23 12:17:20 2000 Received: by oss.sgi.com id ; Sun, 23 Apr 2000 12:17:11 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:53034 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 23 Apr 2000 12:16:51 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id MAA23159; Sun, 23 Apr 2000 12:12:01 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id MAA25624; Sun, 23 Apr 2000 12:15:01 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA51028 for linux-list; Sun, 23 Apr 2000 12:00:34 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA93200 for ; Sun, 23 Apr 2000 12:00:32 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 MAA08258 for ; Sun, 23 Apr 2000 12:00:32 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id MAA17635; Sun, 23 Apr 2000 12:00:33 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id MAA16016; Sun, 23 Apr 2000 12:00:29 -0700 (PDT) Message-ID: <000d01bfad56$7541c320$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Florian Lohoff" , Subject: Re: /usr/include/asm/io.h:308: undefined reference to `mips_io_port_base' Date: Sun, 23 Apr 2000 21:02:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >Hi, >i am trying to build "pileup" which is a "SoundBlaster" morse trainer. >As it directly accesses hardware it seems to include some files which >aehm - dont seem to work for userspace :) > >Does someone have an idea what goes wrong here ? Sure. The "IN" and "OUT" macros used to simulate x86 I/O instructions operating on ISA I/O space use mips_io_port_base as the base address for the memory-mapped I/O access to "non memory-mapped I/O" (in the PC sense) addresses. Since MIPS platforms don't always have the same address space layout as a standard PC, mips_io_port_base is not a constant, but a variable declared in arch/mips/kernel/setup.c and initialized (if a non-zero value is required) in the platform setup code. So arguably, what you need to do to make those macros work in user mode, is to have some kind of library module that you can link into the application that contains a declaration of mips_io_port_base, initialized to the correct value for your platform. >[...] >make CFLAGS="-O2 -g -Wall -D_REENTRANT" >make[1]: Entering directory `/home/builder/build/pileup-1.1' >gcc -O2 -g -Wall -D_REENTRANT -c AdLib.c >gcc -O2 -g -Wall -D_REENTRANT -c pileup.c >gcc -O2 -g -Wall -D_REENTRANT -o pileup pileup.o AdLib.o -lm -lpthread >pileup.o: In function `stop_thread': >/home/builder/build/pileup-1.1/pileup.c:229: undefined reference to `ioperm' >/home/builder/build/pileup-1.1/pileup.c:230: undefined reference to `ioperm' >pileup.o: In function `start_thread': >/home/builder/build/pileup-1.1/pileup.c:289: undefined reference to `ioperm' >/home/builder/build/pileup-1.1/pileup.c:290: undefined reference to `ioperm' >pileup.o: In function `main': >/home/builder/build/pileup-1.1/pileup.c:625: undefined reference to `ioperm' >pileup.o:/home/builder/build/pileup-1.1/pileup.c:626: more undefined references to `ioperm' follow >AdLib.o: In function `wr_register': >/usr/include/asm/io.h:308: undefined reference to `mips_io_port_base' >/usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' >/usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' >AdLib.o: In function `AdLib_found': >/usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' >AdLib.o: In function `ºm\*ºm\und': >/usr/include/asm/io.h:304: undefined reference to `mips_io_port_base' >make[1]: *** [pileup] Error 1 >make[1]: Leaving directory `/home/builder/build/pileup-1.1' >make: *** [build] Error 2 >[...] > >Flo >-- >Florian Lohoff flo@rfc822.org +49-subject-2-change >"Technology is a constant battle between manufacturers producing bigger and >more idiot-proof systems and nature producing bigger and better idiots." > From owner-linuxmips@oss.sgi.com Sun Apr 23 14:57:11 2000 Received: by oss.sgi.com id ; Sun, 23 Apr 2000 14:57:02 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:21353 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 23 Apr 2000 14:56:47 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id PAA09128; Sun, 23 Apr 2000 15:00:52 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id OAA64497; Sun, 23 Apr 2000 14:56:16 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA45139 for linux-list; Sun, 23 Apr 2000 14:40:42 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA32564 for ; Sun, 23 Apr 2000 14:40:40 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from styx.cs.kuleuven.ac.be (styx.cs.kuleuven.ac.be [134.58.40.3]) 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 OAA05734 for ; Sun, 23 Apr 2000 14:40:38 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from cassiopeia.home (geert@dialup006.cs.kuleuven.ac.be [134.58.47.135]) by styx.cs.kuleuven.ac.be (8.9.3/8.9.3) with ESMTP id XAA14755; Sun, 23 Apr 2000 23:40:31 +0200 (MET DST) Received: from localhost (geert@localhost) by cassiopeia.home (8.9.3/8.9.3/Debian/GNU) with ESMTP id XAA01852; Sun, 23 Apr 2000 23:40:26 +0200 X-Authentication-Warning: cassiopeia.home: geert owned process doing -bs Date: Sun, 23 Apr 2000 23:40:26 +0200 (CEST) From: Geert Uytterhoeven To: "Kevin D. Kissell" cc: Florian Lohoff , linux@cthulhu.engr.sgi.com Subject: Re: /usr/include/asm/io.h:308: undefined reference to `mips_io_port_base' In-Reply-To: <000d01bfad56$7541c320$0ceca8c0@satanas.mips.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, 23 Apr 2000, Kevin D. Kissell wrote: > >i am trying to build "pileup" which is a "SoundBlaster" morse trainer. > >As it directly accesses hardware it seems to include some files which > >aehm - dont seem to work for userspace :) > > > >Does someone have an idea what goes wrong here ? > > Sure. The "IN" and "OUT" macros used to simulate x86 > I/O instructions operating on ISA I/O space use > mips_io_port_base as the base address for the > memory-mapped I/O access to "non memory-mapped I/O" > (in the PC sense) addresses. Since MIPS platforms don't > always have the same address space layout as a standard PC, > mips_io_port_base is not a constant, but a variable declared > in arch/mips/kernel/setup.c and initialized (if a non-zero value > is required) in the platform setup code. > > So arguably, what you need to do to make those macros > work in user mode, is to have some kind of library module > that you can link into the application that contains a declaration > of mips_io_port_base, initialized to the correct value for > your platform. This is similar like on other platforms, like e.g. PPC. I think the best solution is to provide the value of mips_io_port_base through some /proc interface, so userspace knows where ISA I/O space is located. Of course this is best coordinated across the different architectures where this problem occurs (e.g. PPC). > >[...] > >make CFLAGS="-O2 -g -Wall -D_REENTRANT" > >make[1]: Entering directory `/home/builder/build/pileup-1.1' > >gcc -O2 -g -Wall -D_REENTRANT -c AdLib.c > >gcc -O2 -g -Wall -D_REENTRANT -c pileup.c > >gcc -O2 -g -Wall -D_REENTRANT -o pileup pileup.o AdLib.o -lm -lpthread > >pileup.o: In function `stop_thread': > >/home/builder/build/pileup-1.1/pileup.c:229: undefined reference to `ioperm' And we don't have ioperm() on architectures that don't have special I/O instructions. Just for reference, this is an example of what I use on PPC to access ISA I/O space (please also look at include/asm-ppc/io.h, which resembles a bit to the MIPS version). --- tulip/tulip-diag.c.orig Wed Mar 22 09:30:07 2000 +++ tulip/tulip-diag.c Wed Mar 22 18:18:22 2000 @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -168,6 +169,56 @@ static int scan_proc_pci(int card_num); static int parse_media_type(const char *capabilities); static int get_media_index(const char *name); + +#ifdef __powerpc__ +unsigned long isa_io_base; +static int io_fd = -1; + +#define REAL_ISA_IO_BASE 0xf8000000 /* for CHRP LongTrail */ +#define REAL_ISA_IO_SIZE 0x01000000 + +#warning Make sure REAL_ISA_IO_BASE is the correct base address for ISA I/O space! + +static void enable_isa_io(void) +{ + if ((io_fd = open("/dev/mem", O_RDWR)) == -1) { + perror("open /dev/mem"); + exit(1); + } + isa_io_base = (unsigned long)mmap(0, REAL_ISA_IO_SIZE, + PROT_READ | PROT_WRITE, MAP_SHARED, + io_fd, REAL_ISA_IO_BASE); + if (isa_io_base == (unsigned long)-1) { + fprintf(stderr, "mmap 0x%08x: %s", REAL_ISA_IO_BASE, strerror(errno)); + exit(1); + } +} + +static void disable_isa_io(void) +{ + if (isa_io_base != (unsigned long)-1) { + munmap((caddr_t)isa_io_base, REAL_ISA_IO_SIZE); + isa_io_base = (unsigned long)-1; + } + if (io_fd != -1) { + close(io_fd); + io_fd = -1; + } +} +#else +static void enable_isa_io(void) +{ + /* Get access to all of I/O space. */ + if (iopl(3) < 0) { + perror("Network adapter diagnostic: iopl()"); + fprintf(stderr, "This program must be run as root.\n"); + exit(1); + } +} + +#define disable_isa_io() do { } while (0) +#endif /* !__powerpc__ */ + int main(int argc, char **argv) @@ -244,12 +295,7 @@ return 3; } - /* Get access to all of I/O space. */ - if (iopl(3) < 0) { - perror("Network adapter diagnostic: iopl()"); - fprintf(stderr, "This program must be run as root.\n"); - return 2; - } + enable_isa_io(); /* Try to read a likely port_base value from /proc/pci. */ if (port_base) { @@ -270,6 +316,7 @@ " '-e' to show EEPROM contents, -ee for parsed contents,\n" " or '-m' or '-mm' to show MII management registers.\n"); + disable_isa_io(); return 0; } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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-linuxmips@oss.sgi.com Sun Apr 23 20:31:23 2000 Received: by oss.sgi.com id ; Sun, 23 Apr 2000 20:31:14 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:59502 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 23 Apr 2000 20:30:54 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id UAA01164; Sun, 23 Apr 2000 20:35:00 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id UAA83420 for linux-list; Sun, 23 Apr 2000 20:17:32 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id UAA03570 for ; Sun, 23 Apr 2000 20:17:31 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from ns4.sony.co.jp (ns4.Sony.CO.JP [202.238.80.4]) 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 UAA07255 for ; Sun, 23 Apr 2000 20:17:25 -0700 (PDT) mail_from (machida@sm.sony.co.jp) Received: from mail3.sony.co.jp (gatekeeper7.Sony.CO.JP [202.238.80.21]) by ns4.sony.co.jp (04/18/00) with ESMTP id MAA47600; Mon, 24 Apr 2000 12:17:23 +0900 (JST) Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1]) by mail3.sony.co.jp (3.7W99051310c) with ESMTP id MAA24951; Mon, 24 Apr 2000 12:17:23 +0900 (JST) Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.27.209.5]) by smail1.sm.sony.co.jp (8.8.8/3.6W) with ESMTP id MAA29716; Mon, 24 Apr 2000 12:16:39 +0900 (JST) Received: from mach0.sm.sony.co.jp (mach0.sm.sony.co.jp [43.27.210.135]) by imail.sm.sony.co.jp (8.8.8/3.7W) with ESMTP id MAA00528; Mon, 24 Apr 2000 12:16:52 +0900 (JST) Received: from localhost by mach0.sm.sony.co.jp (8.8.8/FreeBSD) with ESMTP id MAA04425; Mon, 24 Apr 2000 12:16:52 +0900 (JST) xTo: binutils@sourceware.cygnus.com Cc: linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: Re: MIPS gas problem In-Reply-To: <20000421154859.3820.qmail@daffy.airs.com> References: <20000420164812.17210.qmail@daffy.airs.com> <20000421123014J.machida@sm.sony.co.jp> <20000421154859.3820.qmail@daffy.airs.com> X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000424121651S.machida@sm.sony.co.jp> Date: Mon, 24 Apr 2000 12:16:51 +0900 From: Hiroyuki Machida X-Dispatcher: imput version 990905(IM130) Lines: 63 To: unlisted-recipients:; (no To-header on input) Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Thank you Ian and Alan. From: Ian Lance Taylor Subject: Re: MIPS gas problem Date: 21 Apr 2000 08:48:59 -0700 > Date: Fri, 21 Apr 2000 12:30:14 +0900 > From: Hiroyuki Machida > > This message is a gcc issue, as you said. > > But, my reported plobelm is really binutils issue. > > I know. I didn't mean to imply otherwise. Alan Modra's suggested > patch was the right one. > > Ian I summarize the problem and attach patch. Please install it, if you can. I don't know what procedure is required to install the patch to CVS tree. *Problem Description: Current tc-mips.c:s_change_sec() always sets '.rdata' and '.sdata' section alignments to 2**4, even if those contain over 2**4 aligned objects. *Solution: Tc-mips.c:s_change_sec() should use record_alignment(), not bfd_set_section_alignment(), for preventing reset section alignments. *Patch: 2000-04-24 Machida Hiroyuki tc-mips.c (s_change_sec): Use record_alignment(), not bfd_set_section_alignment() to preserve section aligenments. --- tc-mips.c.ORG Mon Apr 24 11:22:39 2000 +++ tc-mips.c Mon Apr 24 11:24:48 2000 @@ -10045,7 +10045,7 @@ s_change_sec (sec) | SEC_RELOC | SEC_DATA)); if (strcmp (TARGET_OS, "elf") != 0) - bfd_set_section_alignment (stdoutput, seg, 4); + record_alignment (stdoutput, seg, 4); } demand_empty_rest_of_line (); } @@ -10067,7 +10067,7 @@ s_change_sec (sec) SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA); if (strcmp (TARGET_OS, "elf") != 0) - bfd_set_section_alignment (stdoutput, seg, 4); + record_alignment (stdoutput, seg, 4); } demand_empty_rest_of_line (); break; From owner-linuxmips@oss.sgi.com Sun Apr 23 22:18:18 2000 Received: by oss.sgi.com id ; Sun, 23 Apr 2000 22:18:08 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:87 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 23 Apr 2000 22:17:41 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id WAA16793; Sun, 23 Apr 2000 22:12:55 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id WAA26138 for linux-list; Sun, 23 Apr 2000 22:04:38 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id WAA36848 for ; Sun, 23 Apr 2000 22:04:35 -0700 (PDT) mail_from (kk@ddeorg.soft.net) Received: from firewall.ddeorg.soft.net (firewall.ddeorg.soft.net [164.164.74.3]) 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 WAA07969 for ; Sun, 23 Apr 2000 22:04:19 -0700 (PDT) mail_from (kk@ddeorg.soft.net) Received: by firewall.ddeorg.soft.net (8.8.8/9.7) id KAA04138; Mon, 24 Apr 2000 10:37:29 +0530 (IST) Received: from madras.ddeorg.soft.net by ddeorg.soft.net (8.8.8/9.6) with ESMTP id KAA20530; Mon, 24 Apr 2000 10:37:24 +0530 (IST) Received: from localhost by madras.ddeorg.soft.net (8.8.5/9.7) with SMTP id KAA01485; Mon, 24 Apr 2000 10:36:38 +0530 (IST) Message-Id: <200004240506.KAA01485@madras.ddeorg.soft.net> X-Mailer: exmh version 2.0.1 12/23/97 To: Hiroyuki Machida cc: flo@rfc822.org, ian@zembu.com, binutils@sourceware.cygnus.com, linux@cthulhu.engr.sgi.com, debian-mips@lists.debian.org Subject: Re: MIPS gas problem In-reply-to: Your message of "Fri, 21 Apr 2000 10:52:25 +0900." <20000421105225J.machida@sm.sony.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 24 Apr 2000 10:36:37 +0530 From: "Koundinya.K" Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, machida@sm.sony.co.jp said: -> I rewrite the test program which is not depending your gcc version or -> config. Please try this. -> #define P1 10 #define P2 12 Sorry for the delay in trying out this test case. I was over the edge for the past 3 days :-) O.K, There were no warnings with this test case unlike the previous one. [~] gcc -c rotest1.c -o rotest1.o [~] objdump -h objtest1.o otest1.o: file format elf32-tradbigmips Sections: Idx Name Size VMA LMA File off Algn 0 .text 00000320 00000000 00000000 00000040 2**4 CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE 1 .data 00000010 00000000 00000000 00000360 2**4 CONTENTS, ALLOC, LOAD, DATA 2 .bss 00000000 00000000 00000000 00000370 2**4 ALLOC 3 .reginfo 00000018 00000000 00000000 00000370 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE 4 .mdebug 00000240 00000000 00000000 00000388 2**2 CONTENTS, READONLY, DEBUGGING 5 .note 00000014 00000000 00000000 000005c8 2**0 CONTENTS, READONLY 6 .comment 00000035 00000000 00000000 000005dc 2**0 CONTENTS, READONLY 7 .rodata 00001060 00000000 00000000 00000620 2**4 CONTENTS, ALLOC, LOAD, READONLY, DATA koundinya From owner-linuxmips@oss.sgi.com Mon Apr 24 04:45:10 2000 Received: by oss.sgi.com id ; Mon, 24 Apr 2000 04:45:01 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:16249 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 24 Apr 2000 04:44:53 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id EAA06526; Mon, 24 Apr 2000 04:49:00 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id EAA96784 for linux-list; Mon, 24 Apr 2000 04:31:10 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id EAA04568 for ; Mon, 24 Apr 2000 04:31:09 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 EAA01874 for ; Mon, 24 Apr 2000 04:31:08 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id B5BC883D; Mon, 24 Apr 2000 13:31:09 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 74D2F8FFD; Mon, 24 Apr 2000 13:22:21 +0200 (CEST) Date: Mon, 24 Apr 2000 13:22:21 +0200 From: Florian Lohoff To: Ulf Carlsson Cc: Florian Lohoff , linux@cthulhu.engr.sgi.com Subject: early crash on indigo2 fix breaks indy ... Message-ID: <20000424132221.D2583@paradigm.rfc822.org> References: <20000406181353Z305167-1649+66@oss.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Ulf Carlsson on Mon, Apr 24, 2000 at 03:49:21AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 24, 2000 at 03:49:21AM -0700, Ulf Carlsson wrote: > > Modified files: > > arch/mips/arc : memory.c > > > > Log message: > > Fix early crash on SGI_IP22 due to not reserving kernel > > pages in the boomem setup > > This breaks on my Indy. What machine are you using? Do we know whether the > part of memory where the kernel is loaded is reported as free memory from the > prom or should we add some tests? Indigo2 - I had the problem that the first alloc_bootmem i think got back pages in the kernel marked as "free" - The resulting memset let the kernel crash. My solution was to mark the kernel pages as reserved. BTW: What does break on indy ? Does it crash ? Does it hang in SCSI Detection ? The SCSI detection is a different thing - The problem is that the kernel gets loaded in a area which is from the MAX_DMA_ADDRESS DMAable memory. Afterwards no pages are left for DMA and the generic scsi layer is not able to get dma able pages (from zone 0 GFP_DMA) which results in error messages in the scsi layer. I solved this by changing mm/init.c to put ALL pages into zone 0 as from my understanding the MAX_DMA_ADDRESS is only aplicable to PC style DMA Controllers which the indy/indigo2 hopefully dont have. For this patch i didnt apply to CVS nobody gave back and usefull comment. Here is the fix i am using: Index: init.c =================================================================== RCS file: /cvs/linux/arch/mips/mm/init.c,v retrieving revision 1.27 diff -u -r1.27 init.c --- init.c 2000/02/23 01:33:56 1.27 +++ init.c 2000/04/24 11:29:51 @@ -256,13 +256,16 @@ max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; low = max_low_pfn; +#if defined(CONFIG_ISA) || defined(CONFIG_PCI) if (low < max_dma) zones_size[ZONE_DMA] = low; else { zones_size[ZONE_DMA] = max_dma; zones_size[ZONE_NORMAL] = low - max_dma; } - +#else + zones_size[ZONE_DMA] = low; +#endif free_area_init(zones_size); } Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 24 04:45:20 2000 Received: by oss.sgi.com id ; Mon, 24 Apr 2000 04:45:11 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:17273 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 24 Apr 2000 04:44:56 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id EAA08937; Mon, 24 Apr 2000 04:49:03 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id EAA08976 for linux-list; Mon, 24 Apr 2000 04:33:18 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id EAA94281 for ; Mon, 24 Apr 2000 04:33:16 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 EAA03135 for ; Mon, 24 Apr 2000 04:33:15 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 52E2783D; Mon, 24 Apr 2000 13:33:17 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 26E038FFD; Mon, 24 Apr 2000 13:24:33 +0200 (CEST) Date: Mon, 24 Apr 2000 13:24:33 +0200 From: Florian Lohoff To: Ulf Carlsson Cc: Florian Lohoff , linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... Message-ID: <20000424132433.E2583@paradigm.rfc822.org> References: <20000406181353Z305167-1649+66@oss.sgi.com> <20000424132221.D2583@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000424132221.D2583@paradigm.rfc822.org>; from Florian Lohoff on Mon, Apr 24, 2000 at 01:22:21PM +0200 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 24, 2000 at 01:22:21PM +0200, Florian Lohoff wrote: > On Mon, Apr 24, 2000 at 03:49:21AM -0700, Ulf Carlsson wrote: > > > Modified files: > > > arch/mips/arc : memory.c > > > > > > Log message: > > > Fix early crash on SGI_IP22 due to not reserving kernel > > > pages in the boomem setup > > > > This breaks on my Indy. What machine are you using? Do we know whether the > > part of memory where the kernel is loaded is reported as free memory from the > > prom or should we add some tests? BTW: allocating/preserving the pages twice (once per arc-prom and once afterwards shouldnt hurt at all. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 24 12:01:05 2000 Received: by oss.sgi.com id ; Mon, 24 Apr 2000 12:00:54 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:61218 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 24 Apr 2000 12:00:32 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA04524; Mon, 24 Apr 2000 12:04:39 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA28584 for linux-list; Mon, 24 Apr 2000 11:47:12 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA31196 for ; Mon, 24 Apr 2000 11:47:11 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 LAA02576 for ; Mon, 24 Apr 2000 11:47:10 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id EBE60853; Mon, 24 Apr 2000 20:47:11 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 7AEFE8FFD; Mon, 24 Apr 2000 20:38:06 +0200 (CEST) Date: Mon, 24 Apr 2000 20:38:06 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: /usr/include/statfsbuf.h - undefined __fsid_t Message-ID: <20000424203806.A1623@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, might this be a problem in the current glibc headers ? __fsid_t doesnt seem to be defined there ... In file included from /usr/include/sys/statfs.h:26, from /usr/include/sys/vfs.h:4, from unix/getfree.c:18: /usr/include/statfsbuf.h:34: parse error before `__fsid_t' /usr/include/statfsbuf.h:34: warning: no semicolon at end of struct or union /usr/include/statfsbuf.h:37: parse error before `}' Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 24 12:10:54 2000 Received: by oss.sgi.com id ; Mon, 24 Apr 2000 12:10:45 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:64857 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 24 Apr 2000 12:10:17 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id MAA21192; Mon, 24 Apr 2000 12:05:31 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA30251 for linux-list; Mon, 24 Apr 2000 11:58:14 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from calypso.engr.sgi.com (calypso.engr.sgi.com [163.154.5.113]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA17891; Mon, 24 Apr 2000 11:57:47 -0700 (PDT) mail_from (ulfc@calypso.engr.sgi.com) Received: from localhost (localhost [127.0.0.1]) by calypso.engr.sgi.com (Postfix) with ESMTP id 33A58A7904; Mon, 24 Apr 2000 11:57:13 -0700 (PDT) Date: Mon, 24 Apr 2000 11:57:13 -0700 (PDT) From: Ulf Carlsson To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... In-Reply-To: <20000424132221.D2583@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing > Indigo2 - I had the problem that the first alloc_bootmem i think > got back pages in the kernel marked as "free" - The resulting memset > let the kernel crash. My solution was to mark the kernel pages > as reserved. > > BTW: What does break on indy ? Does it crash ? Does it hang in SCSI Detection ? Yeah, I noted that it didn't make any difference to revert your change except that the algorithm breaks and I get spammed with zillions of ``hm, page already marked as reserved'' messages when we try to reserve the already reserved memory. Is it possible to detect this with the PROM version or something? Ulf From owner-linuxmips@oss.sgi.com Mon Apr 24 12:30:26 2000 Received: by oss.sgi.com id ; Mon, 24 Apr 2000 12:30:16 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:28197 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 24 Apr 2000 12:29:49 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA04152; Mon, 24 Apr 2000 12:33:56 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA39661 for linux-list; Mon, 24 Apr 2000 12:18:51 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA46585 for ; Mon, 24 Apr 2000 12:18:49 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 MAA02968 for ; Mon, 24 Apr 2000 12:18:47 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id A0BC383C; Mon, 24 Apr 2000 21:18:49 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 0DB018FFD; Mon, 24 Apr 2000 21:09:41 +0200 (CEST) Date: Mon, 24 Apr 2000 21:09:41 +0200 From: Florian Lohoff To: Ulf Carlsson Cc: linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... Message-ID: <20000424210940.C1623@paradigm.rfc822.org> References: <20000424132221.D2583@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Ulf Carlsson on Mon, Apr 24, 2000 at 11:57:13AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 24, 2000 at 11:57:13AM -0700, Ulf Carlsson wrote: > > Indigo2 - I had the problem that the first alloc_bootmem i think > > got back pages in the kernel marked as "free" - The resulting memset > > let the kernel crash. My solution was to mark the kernel pages > > as reserved. > > > > BTW: What does break on indy ? Does it crash ? Does it > > hang in SCSI Detection ? > > Yeah, I noted that it didn't make any difference to revert your change except > that the algorithm breaks and I get spammed with zillions of ``hm, page > already marked as reserved'' messages when we try to reserve the already > reserved memory. Is it possible to detect this with the PROM version or > something? One might check if you walk through the memory table the arc gives back and free it via the bootmem api you can check whether you got back a memory chunk which contains the kernel (Or overlaps) and realloc it after freeing or just not free it up. Should be obvious and trivial after the change i made ... Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Mon Apr 24 19:04:31 2000 Received: by oss.sgi.com id ; Mon, 24 Apr 2000 19:04:22 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:56402 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Mon, 24 Apr 2000 19:04:00 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id TAA03550; Mon, 24 Apr 2000 19:08:08 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id TAA81499; Mon, 24 Apr 2000 19:03:30 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA17611 for linux-list; Mon, 24 Apr 2000 18:47:10 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from calypso.engr.sgi.com (calypso.engr.sgi.com [163.154.5.113]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id SAA66903; Mon, 24 Apr 2000 18:47:08 -0700 (PDT) mail_from (ulfc@calypso.engr.sgi.com) Received: from localhost (localhost [127.0.0.1]) by calypso.engr.sgi.com (Postfix) with ESMTP id B34CAA7904; Mon, 24 Apr 2000 18:46:33 -0700 (PDT) Date: Mon, 24 Apr 2000 18:46:33 -0700 (PDT) From: Ulf Carlsson To: Jun Sun Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: failed to compile glibc 2.1.2 - BFD_RELOC_16_PCREL_S2 problem In-Reply-To: <3904E464.4B779CB1@mvista.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, 24 Apr 2000, Jun Sun wrote: > > I am having this problem while I am trying to build glibc v2.1.2. Does > anybody know about this problem? Do I need some MIPS patch for building > this? Thanks. You can't use glibc 2.1.2 on MIPS, try glibc 2.2 from the official cvs tree instead. Andreas Jaeger posted an announcement for glibc 2.2 on MIPS to this list last Friday with build instructions. > BFD_RELOC_16_PCREL_S2 relocation in this object file format > make[2]: *** [/root/rpm/BUILD/glibc-obj/setjmp/setjmp.o] Error 1 This is because it's not compiling as PIC. Ulf From owner-linuxmips@oss.sgi.com Tue Apr 25 13:07:54 2000 Received: by oss.sgi.com id ; Tue, 25 Apr 2000 13:07:44 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:36873 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 25 Apr 2000 13:07:32 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id NAA09530; Tue, 25 Apr 2000 13:02:45 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id NAA44647; Tue, 25 Apr 2000 13:07:00 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA67838 for linux-list; Tue, 25 Apr 2000 12:23:15 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA32973 for ; Tue, 25 Apr 2000 12:23:14 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Tue, 25 Apr 2000 12:19:20 -0700 Date: Tue, 25 Apr 2000 12:19:20 -0700 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com Subject: Re: /usr/include/statfsbuf.h - undefined __fsid_t Message-ID: <20000425121920.A1937@uni-koblenz.de> References: <20000424203806.A1623@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000424203806.A1623@paradigm.rfc822.org>; from flo@rfc822.org on Mon, Apr 24, 2000 at 08:38:06PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 24, 2000 at 08:38:06PM +0200, Florian Lohoff wrote: > might this be a problem in the current glibc headers ? > > __fsid_t doesnt seem to be defined there ... > > In file included from /usr/include/sys/statfs.h:26, > from /usr/include/sys/vfs.h:4, > from unix/getfree.c:18: > /usr/include/statfsbuf.h:34: parse error before `__fsid_t' > /usr/include/statfsbuf.h:34: warning: no semicolon at end of struct or union > /usr/include/statfsbuf.h:37: parse error before `}' Yes, should include . Fixing ... Ralf From owner-linuxmips@oss.sgi.com Tue Apr 25 13:44:43 2000 Received: by oss.sgi.com id ; Tue, 25 Apr 2000 13:44:33 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:63016 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Tue, 25 Apr 2000 13:44:21 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id NAA05918 for ; Tue, 25 Apr 2000 13:48:29 -0700 (PDT) mail_from (bigham@cthulhu.engr.sgi.com) Received: from virgil.engr.sgi.com (virgil.engr.sgi.com [163.154.5.20]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id NAA76353 for ; Tue, 25 Apr 2000 13:43:50 -0700 (PDT) Received: from engr.sgi.com (localhost [127.0.0.1]) by virgil.engr.sgi.com (980427.SGI.8.8.8/960327.SGI.AUTOCF) via ESMTP id NAA92250 for ; Tue, 25 Apr 2000 13:41:16 -0700 (PDT) Message-ID: <390602EB.6AD7A962@engr.sgi.com> Date: Tue, 25 Apr 2000 13:41:15 -0700 From: Nancy Bigham Organization: Linux X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX 6.5 IP22) X-Accept-Language: en MIME-Version: 1.0 To: linuxmips@oss.sgi.com Subject: bounces Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Test - I keep getting bounced messages from this list. Anybody out there? -- Nancy Bigham SGI MS 8U-500 650 933-1608 bigham@engr.sgi.com From owner-linuxmips@oss.sgi.com Wed Apr 26 01:00:29 2000 Received: by oss.sgi.com id ; Wed, 26 Apr 2000 01:00:19 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:49162 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 26 Apr 2000 00:59:54 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id AAA06265; Wed, 26 Apr 2000 00:55:08 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id AAA34014 for linux-list; Wed, 26 Apr 2000 00:50:28 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id AAA95419 for ; Wed, 26 Apr 2000 00:50:27 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Wed, 26 Apr 2000 00:46:16 -0700 Date: Wed, 26 Apr 2000 00:46:16 -0700 From: Ralf Baechle To: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: One more glibc 2.0 release Message-ID: <20000426004615.A9348@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing One more glibc release is in oss.sgi.com:/pub/linux/mip/test-glibc/, including source and binary rpms. It's only in the test-glibc directory but since it only fixes a minor glitch since the last release it should be fairly solid. Ralf From owner-linuxmips@oss.sgi.com Wed Apr 26 02:43:52 2000 Received: by oss.sgi.com id ; Wed, 26 Apr 2000 02:43:43 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:58391 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 26 Apr 2000 02:43:28 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id CAA12745; Wed, 26 Apr 2000 02:38:41 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id CAA50356 for linux-list; Wed, 26 Apr 2000 02:28:18 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id CAA05480; Wed, 26 Apr 2000 02:28:16 -0700 (PDT) mail_from (aj@suse.de) Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) 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 CAA06157; Wed, 26 Apr 2000 02:28:15 -0700 (PDT) mail_from (aj@suse.de) Received: from arthur.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id LAA11765; Wed, 26 Apr 2000 11:28:17 +0200 (CEST) (envelope-from aj@suse.de) Received: from gromit.rhein-neckar.de ([192.168.27.3] ident=postfix) by arthur.rhein-neckar.de with esmtp (Exim 3.11 #1) id 12kNZj-0001q8-00; Wed, 26 Apr 2000 10:53:39 +0200 Received: by gromit.rhein-neckar.de (Postfix, from userid 207) id 69FBE1821; Wed, 26 Apr 2000 10:53:38 +0200 (CEST) Mail-Copies-To: never To: Jun Sun Cc: Ulf Carlsson , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: failed to compile glibc 2.1.2 - BFD_RELOC_16_PCREL_S2 problem References: <3904ED75.209AFD22@mvista.com> From: Andreas Jaeger Date: 26 Apr 2000 10:53:38 +0200 In-Reply-To: Jun Sun's message of "Mon, 24 Apr 2000 17:57:25 -0700" Message-ID: Lines: 31 User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >>>>> Jun Sun writes: > Ulf Carlsson wrote: >> >> On Mon, 24 Apr 2000, Jun Sun wrote: >> >> > >> > I am having this problem while I am trying to build glibc v2.1.2. Does >> > anybody know about this problem? Do I need some MIPS patch for building >> > this? Thanks. >> >> You can't use glibc 2.1.2 on MIPS, > Is there a specific reason why I can't use glibc 2.1.2? We have been > using this version for other platforms (ppc, i386). It would be nice to > stick with the same version for MIPS. It's just that nobody did the work of porting glibc. A lot of has changed between glibc 2.0 and 2.1 (and also between 2.1 and 2.2). I've decided to port glibc 2.2 for MIPS. This involved a number of patches and but I don't have the time to backport everything - and I will not support such a backport at all. All my glibc 2.2 patches have been added to the glibc archives and therefore will be in the official sources of 2.2. Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.rhein-neckar.de From owner-linuxmips@oss.sgi.com Wed Apr 26 23:27:47 2000 Received: by oss.sgi.com id ; Wed, 26 Apr 2000 23:27:38 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:16910 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Wed, 26 Apr 2000 23:27:13 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id XAA10606; Wed, 26 Apr 2000 23:22:26 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id XAA82515 for linux-list; Wed, 26 Apr 2000 23:05:48 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id XAA94912 for ; Wed, 26 Apr 2000 23:05:46 -0700 (PDT) mail_from (tor@hammer.econsci.net) Received: from hammer.econsci.net (adsl-216-102-65-83.dsl.snfc21.pacbell.net [216.102.65.83]) 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 XAA04190 for ; Wed, 26 Apr 2000 23:05:41 -0700 (PDT) mail_from (tor@hammer.econsci.net) Received: from localhost (tor@localhost) by hammer.econsci.net (8.9.3/8.9.3) with ESMTP id XAA14988 for ; Wed, 26 Apr 2000 23:05:44 -0700 Date: Wed, 26 Apr 2000 23:05:44 -0700 (PDT) From: Tor Roberts To: linux@cthulhu.engr.sgi.com Subject: Is linux on SGI MIPS alive? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Sorry if I am off base, but is linux on SGI MIPS alive? I ask because the status on the web site is a year old and the mailing list archive is not working. I just picked up and Indy with no hardrive, and would like to put linux on it. I put a new drive in it, but from reading the hardhat FAQ, I need IRIX to partition the drive. Well I don't have IRIX, is there any other way to do it? I would love to get this beast running. -Tor From owner-linuxmips@oss.sgi.com Thu Apr 27 01:23:08 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 01:22:50 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:38449 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 01:22:43 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id BAA08634; Thu, 27 Apr 2000 01:26:52 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id BAA77107; Thu, 27 Apr 2000 01:22:12 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA11246 for linux-list; Thu, 27 Apr 2000 01:13:31 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA19720 for ; Thu, 27 Apr 2000 01:13:30 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 BAA04152 for ; Thu, 27 Apr 2000 01:13:27 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id D4D6480A; Thu, 27 Apr 2000 10:13:26 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 779FF8FFD; Thu, 27 Apr 2000 10:02:02 +0200 (CEST) Date: Thu, 27 Apr 2000 10:02:02 +0200 From: Florian Lohoff To: Tor Roberts Cc: linux@cthulhu.engr.sgi.com Subject: Re: Is linux on SGI MIPS alive? Message-ID: <20000427100202.B272@paradigm.rfc822.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Tor Roberts on Wed, Apr 26, 2000 at 11:05:44PM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, Apr 26, 2000 at 11:05:44PM -0700, Tor Roberts wrote: > > Sorry if I am off base, but is linux on SGI MIPS alive? I ask because the > status on the web site is a year old and the mailing list archive is not > working. It is alive - probably more than ever :) > I just picked up and Indy with no hardrive, and would like to put linux on > it. I put a new drive in it, but from reading the hardhat FAQ, I need IRIX > to partition the drive. Well I don't have IRIX, is there any other way to > do it? I would love to get this beast running. I havent used irix though - I used the hardhat fdisk an created an IRIX Disklabel. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 27 02:02:38 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 02:02:29 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:40738 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 02:02:08 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA21011; Thu, 27 Apr 2000 01:57:22 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA04888 for linux-list; Thu, 27 Apr 2000 01:53:28 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA18150 for ; Thu, 27 Apr 2000 01:53:27 -0700 (PDT) mail_from (maxence@manipura.com) Received: from albo.dazebreak.org (dazebreak.manipura.com [62.4.18.250]) 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 BAA06492 for ; Thu, 27 Apr 2000 01:53:22 -0700 (PDT) mail_from (maxence@manipura.com) Received: (from maxence@localhost) by albo.dazebreak.org (8.9.3/8.9.3/Debian 8.9.3-21) id MAA14359 for linux@engr.sgi.com; Thu, 27 Apr 2000 12:58:38 +0200 Date: Thu, 27 Apr 2000 12:58:36 +0200 From: maxence Lange To: linux@cthulhu.engr.sgi.com Subject: Just a little question .. Message-ID: <20000427125836.B14257@manipura.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing could we hope to see linux on Indigi r3000 one day ?!? :) maxence Lange ... From owner-linuxmips@oss.sgi.com Thu Apr 27 03:50:39 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 03:50:29 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:20782 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 03:50:07 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id DAA26651; Thu, 27 Apr 2000 03:45:20 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id DAA35209; Thu, 27 Apr 2000 03:48:21 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id DAA52389 for linux-list; Thu, 27 Apr 2000 03:36:54 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id DAA53251 for ; Thu, 27 Apr 2000 03:36:51 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: from belgarath.esg-guetersloh.mediapoint.de (belgarath.esg-guetersloh.mediapoint.de [193.189.251.50]) 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 DAA05365 for ; Thu, 27 Apr 2000 03:36:47 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: by belgarath.esg-guetersloh.mediapoint.de (Postfix, from userid 1000) id 922365131B; Thu, 27 Apr 2000 12:36:44 +0200 (CEST) Date: Thu, 27 Apr 2000 12:36:44 +0200 From: Jan-Benedict Glaw To: linux@cthulhu.engr.sgi.com Subject: Re: Just a little question .. Message-ID: <20000427123644.G11298@lug-owl.de> Reply-To: jbglaw@lug-owl.de Mail-Followup-To: linux@cthulhu.engr.sgi.com References: <20000427125836.B14257@manipura.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Ns7jmDPpOpCD+GE/" X-Mailer: Mutt 1.0i In-Reply-To: <20000427125836.B14257@manipura.com>; from maxence@manipura.com on Thu, Apr 27, 2000 at 12:58:36PM +0200 X-Operating-System: Linux belgarath.esg-guetersloh.mediapoint.de 2.0.35 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing --Ns7jmDPpOpCD+GE/ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Apr 27, 2000 at 12:58:36PM +0200, maxence Lange wrote: >=20 > could we hope to see linux on Indigi r3000 one day ?!? :) Right now: No success;( SOme days ago somebody asked for docs but I haven't heared that here are *any* docs at all;( Some days ago, we tested to boot a kernel, but this stopped immediately with an exception right after tftp'ing the kernel;( MfG, JBG --=20 Fehler eingestehen, Gr=F6=DFe zeigen: Nehmt die Rechtschreibreform zur=FCck= !!! /* Jan-Benedict Glaw -- +49-177-5601720 */ keyID=3D0x8399E1BB fingerprint=3D250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 83= 99 E1BB --Ns7jmDPpOpCD+GE/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEAREBAAYFAjkIGDsACgkQHb1edYOZ4buHxwCcC/VyEZM0+oAZ31m1rtlWf2wm fRUAnjCXG5nBbZKavgxYpuONnZo/fbe9 =/Lnu -----END PGP SIGNATURE----- --Ns7jmDPpOpCD+GE/-- From owner-linuxmips@oss.sgi.com Thu Apr 27 06:08:09 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 06:07:59 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:13119 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 06:07:52 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id GAA08320; Thu, 27 Apr 2000 06:12:02 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA21866 for linux-list; Thu, 27 Apr 2000 05:57:56 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA77532 for ; Thu, 27 Apr 2000 05:57:54 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 FAA06169 for ; Thu, 27 Apr 2000 05:57:53 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id FAA16881; Thu, 27 Apr 2000 05:57:54 -0700 (PDT) Received: from Ulysses (uk4-tgn-lmr-vty4.as.wcom.net [195.232.18.4]) by newman.mips.com (8.9.3/8.9.0) with SMTP id FAA22385; Thu, 27 Apr 2000 05:57:44 -0700 (PDT) Message-ID: <001b01bfb048$85ab6780$0412e8c3@Ulysses> From: "Kevin D. Kissell" To: "maxence Lange" , Subject: Re: Just a little question .. Date: Thu, 27 Apr 2000 14:59:59 +0200 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 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >could we hope to see linux on Indigi r3000 one day ?!? :) If and when someone finds a lost time-capsule of Indigo HW design information. It ain't the CPU that's the problem... Kevin K. From owner-linuxmips@oss.sgi.com Thu Apr 27 08:42:31 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 08:42:21 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:4963 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 08:42:13 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id IAA20799; Thu, 27 Apr 2000 08:37:27 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id IAA10182 for linux-list; Thu, 27 Apr 2000 08:10:06 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id IAA13368 for ; Thu, 27 Apr 2000 08:10:04 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 IAA07249 for ; Thu, 27 Apr 2000 08:09:30 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 776B97F6; Thu, 27 Apr 2000 17:09:30 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 1B36C8FFD; Thu, 27 Apr 2000 16:58:03 +0200 (CEST) Date: Thu, 27 Apr 2000 16:58:03 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: VC exceptions Message-ID: <20000427165803.H272@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i had a conversation with Harald concerning a "strong" time drift on my R4000 Decstation. He than was astonished on the large number of VCE. I than searched all my Mips books for an definition of those exceptions. But i dont think i currently understand the cause of those exceptions. BTW: [flo@resume flo]$ uptime && cat /proc/cpuinfo 2:55pm up 13 days, 20 min, 3 users, load average: 1.15, 1.09, 1.01 cpu : MIPS cpu model : R4000SC V6.0 system type : SGI Indy BogoMIPS : 124.93 byteorder : big endian unaligned accesses : 90 wait instruction : no microsecond timers : no extra interrupt vector : no hardware watchpoint : yes VCED exceptions : 130546469 VCEI exceptions : 36073607 On a medium loaded machine i see 40-50 VCEDs per second. Now i read in the "Mips R4000 Users`s Manual" page 133 ------ Cause: A Virtual Coherency exception occurs when one of the following conditions is true: - a primary cache miss hits in the secondary cache - bits 14:12 of the virtual address were not equal to the corresponding bits of the PIdx field of the secondary cache tag. - the cache algorithm for the page specifies that the page is cached. ------ The "Mips Risc Architecture" says that ALL conditions are to be met which i trust more :) As a resume - The exception is taken when the index of the 1st and the 2nd level cache are not identical - Right ? So - why is there a mismatch ? Might it be due to some invalidation of the 1st (and not the 2nd) level cache ? As the exception is taken quiet often and the "Mips Risc Architecture" states "Software can avoid the cost of this trap by using constistent virtual primary cache indexes to access the same physical data". Currently i dont think whats the exact cause of this exception and a probably optimization which brings this down. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 27 10:27:02 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 10:26:52 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:17750 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 10:26:32 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id KAA03640; Thu, 27 Apr 2000 10:30:42 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA78612; Thu, 27 Apr 2000 10:26:01 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA50719 for linux-list; Thu, 27 Apr 2000 10:15:12 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA49035 for ; Thu, 27 Apr 2000 10:15:09 -0700 (PDT) mail_from (tor@hammer.econsci.net) Received: from hammer.econsci.net (adsl-216-102-65-83.dsl.snfc21.pacbell.net [216.102.65.83]) 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 KAA09825 for ; Thu, 27 Apr 2000 10:15:08 -0700 (PDT) mail_from (tor@hammer.econsci.net) Received: from localhost (tor@localhost) by hammer.econsci.net (8.9.3/8.9.3) with ESMTP id KAA15576; Thu, 27 Apr 2000 10:15:05 -0700 Date: Thu, 27 Apr 2000 10:15:05 -0700 (PDT) From: Tor Roberts To: Florian Lohoff cc: linux@cthulhu.engr.sgi.com Subject: Re: Is linux on SGI MIPS alive? In-Reply-To: <20000427100202.B272@paradigm.rfc822.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Thanks for the reply. In terms of doing the hardhat install without IRIX, can that be done entirely over the network, or do I need a boot floppy ( I have no floptical drive )? Thanks, -Tor On Thu, 27 Apr 2000, Florian Lohoff wrote: > On Wed, Apr 26, 2000 at 11:05:44PM -0700, Tor Roberts wrote: > > > > Sorry if I am off base, but is linux on SGI MIPS alive? I ask because the > > status on the web site is a year old and the mailing list archive is not > > working. > > It is alive - probably more than ever :) > > > I just picked up and Indy with no hardrive, and would like to put linux on > > it. I put a new drive in it, but from reading the hardhat FAQ, I need IRIX > > to partition the drive. Well I don't have IRIX, is there any other way to > > do it? I would love to get this beast running. > > I havent used irix though - I used the hardhat fdisk an created an > IRIX Disklabel. > > Flo > -- > Florian Lohoff flo@rfc822.org +49-subject-2-change > "Technology is a constant battle between manufacturers producing bigger and > more idiot-proof systems and nature producing bigger and better idiots." > From owner-linuxmips@oss.sgi.com Thu Apr 27 11:28:51 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 11:28:32 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:12569 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 11:28:16 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA13573; Thu, 27 Apr 2000 11:23:29 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA72890 for linux-list; Thu, 27 Apr 2000 11:10:21 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA76364 for ; Thu, 27 Apr 2000 11:10:17 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 LAA04025 for ; Thu, 27 Apr 2000 11:10:15 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id LAA22675; Thu, 27 Apr 2000 11:10:07 -0700 (PDT) Received: from Ulysses (fra-tgn-oyh-vty9.as.wcom.net [212.211.87.9]) by newman.mips.com (8.9.3/8.9.0) with SMTP id LAA01406; Thu, 27 Apr 2000 11:09:58 -0700 (PDT) Message-ID: <001001bfb074$22311480$0957d3d4@Ulysses> From: "Kevin D. Kissell" To: "Florian Lohoff" , Subject: Re: VC exceptions Date: Thu, 27 Apr 2000 20:12:14 +0200 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 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing It's a thing that can happen whenever caches are virtually indexed (for speed) but physically tagged (for correctness), and caches get large enough for the algorithm to be wrong once in a while. They can be avoided with a little thought and overhead in the assignment of physical pages to virtual addresses. Gimme a day or so to look at the code, and I'll propose a fix for Linux... Kevin K. -----Original Message----- From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Date: Thursday, April 27, 2000 5:39 PM Subject: VC exceptions > >Hi, >i had a conversation with Harald concerning a "strong" time drift >on my R4000 Decstation. He than was astonished on the large >number of VCE. > >I than searched all my Mips books for an definition of those >exceptions. But i dont think i currently understand the >cause of those exceptions. > >BTW: > >[flo@resume flo]$ uptime && cat /proc/cpuinfo > 2:55pm up 13 days, 20 min, 3 users, load average: 1.15, 1.09, 1.01 > cpu : MIPS > cpu model : R4000SC V6.0 > system type : SGI Indy > BogoMIPS : 124.93 > byteorder : big endian > unaligned accesses : 90 > wait instruction : no > microsecond timers : no > extra interrupt vector : no > hardware watchpoint : yes > VCED exceptions : 130546469 > VCEI exceptions : 36073607 > >On a medium loaded machine i see 40-50 VCEDs per second. > >Now i read in the "Mips R4000 Users`s Manual" page 133 > >------ >Cause: A Virtual Coherency exception occurs when one of the > following conditions is true: > > - a primary cache miss hits in the secondary cache > - bits 14:12 of the virtual address were not equal to > the corresponding bits of the PIdx field of the secondary > cache tag. > - the cache algorithm for the page specifies that the page is cached. >------ > >The "Mips Risc Architecture" says that ALL conditions are to be met which >i trust more :) > >As a resume - The exception is taken when the index of the 1st and >the 2nd level cache are not identical - Right ? >So - why is there a mismatch ? Might it be due to some invalidation >of the 1st (and not the 2nd) level cache ? > >As the exception is taken quiet often and the "Mips Risc Architecture" states >"Software can avoid the cost of this trap by using constistent virtual >primary cache indexes to access the same physical data". > >Currently i dont think whats the exact cause of this exception and >a probably optimization which brings this down. > >Flo >-- >Florian Lohoff flo@rfc822.org +49-subject-2-change >"Technology is a constant battle between manufacturers producing bigger and >more idiot-proof systems and nature producing bigger and better idiots." > From owner-linuxmips@oss.sgi.com Thu Apr 27 11:44:31 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 11:44:23 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:34333 "EHLO convert rfc822-to-8bit deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 11:44:00 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA15482; Thu, 27 Apr 2000 11:39:13 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA19719 for linux-list; Thu, 27 Apr 2000 11:38:08 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA76948 for ; Thu, 27 Apr 2000 11:38:06 -0700 (PDT) mail_from (gmich@sae.gr) Received: from argos.sae.gr (argos.sae.gr [194.219.29.77]) 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 LAA09595 for ; Thu, 27 Apr 2000 11:38:04 -0700 (PDT) mail_from (gmich@sae.gr) Received: from alkinoos (alkinoos.sae.gr [194.219.29.234]) by argos.sae.gr (8.8.8/8.8.8) with ESMTP id VAA01844; Thu, 27 Apr 2000 21:37:52 +0300 Message-Id: <4.2.0.58.20000427213528.00ac05b8@mail.sae.gr> X-Sender: gmich@mail.sae.gr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Thu, 27 Apr 2000 21:37:49 +0300 To: Tor Roberts , linux@cthulhu.engr.sgi.com From: "George A. Michalopoulos" Subject: Re: Is linux on SGI MIPS alive? In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8BIT Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing At 09:05 ðì 27/4/2000 , Tor Roberts wrote: >Sorry if I am off base, but is linux on SGI MIPS alive? I ask because the >status on the web site is a year old and the mailing list archive is not >working. i bought an O2 few weeks ago, so i wanted to know if all this development you do is only for Indys... is there any way to use Linux on an O2 ? i'm novice, so please forgive my off-topic question.. ..Happy 1900.. oops.. i'm not Y2K compatible !!!!! George A. Michalopoulos World Council of Hellenes Abroad 5-7 Ethnikis Aminis Str. & Mitropoleos 133 Thessaloniki, 54621, HELLAS Tel: ++30 31 256394 Fax: ++30 31 256393 E-mail: saeinfo@sae.gr URL: http://www.sae.gr ICQ: 3515484 From owner-linuxmips@oss.sgi.com Thu Apr 27 13:07:23 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 13:07:04 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:49715 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 13:06:42 -0700 Received: from nodin.corp.sgi.com (fddi-nodin.corp.sgi.com [198.29.75.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id NAA26102; Thu, 27 Apr 2000 13:01:55 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id NAA12208; Thu, 27 Apr 2000 13:06:11 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA02270 for linux-list; Thu, 27 Apr 2000 12:59:11 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA02887 for ; Thu, 27 Apr 2000 12:58:59 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 MAA01524 for ; Thu, 27 Apr 2000 12:58:50 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 331957F9; Thu, 27 Apr 2000 21:58:50 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id A2A568FFD; Thu, 27 Apr 2000 21:35:31 +0200 (CEST) Date: Thu, 27 Apr 2000 21:35:31 +0200 From: Florian Lohoff To: Tor Roberts Cc: linux@cthulhu.engr.sgi.com Subject: Re: Is linux on SGI MIPS alive? Message-ID: <20000427213531.B3117@paradigm.rfc822.org> References: <20000427100202.B272@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Tor Roberts on Thu, Apr 27, 2000 at 10:15:05AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 27, 2000 at 10:15:05AM -0700, Tor Roberts wrote: > Thanks for the reply. > In terms of doing the hardhat install without IRIX, can that be done > entirely over the network, or do I need a boot floppy ( I have no > floptical drive )? Completely over the network - It was a bit tricky for me as i wasnt able to use the default kernel - But - try it. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Thu Apr 27 18:43:25 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 18:43:06 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:28942 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 18:43:02 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id SAA09937; Thu, 27 Apr 2000 18:47:12 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA99787 for linux-list; Thu, 27 Apr 2000 18:36:43 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id SAA83200 for ; Thu, 27 Apr 2000 18:36:42 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Wed, 26 Apr 2000 13:10:47 -0700 Date: Wed, 26 Apr 2000 13:10:47 -0700 From: Ralf Baechle To: Florian Lohoff Cc: Ulf Carlsson , linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... Message-ID: <20000426131047.F757@uni-koblenz.de> References: <20000424132221.D2583@paradigm.rfc822.org> <20000424210940.C1623@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000424210940.C1623@paradigm.rfc822.org>; from flo@rfc822.org on Mon, Apr 24, 2000 at 09:09:41PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Mon, Apr 24, 2000 at 09:09:41PM +0200, Florian Lohoff wrote: > > Yeah, I noted that it didn't make any difference to revert your change except > > that the algorithm breaks and I get spammed with zillions of ``hm, page > > already marked as reserved'' messages when we try to reserve the already > > reserved memory. Is it possible to detect this with the PROM version or > > something? > > One might check if you walk through the memory table the > arc gives back and free it via the bootmem api you can check whether > you got back a memory chunk which contains the kernel (Or overlaps) > and realloc it after freeing or just not free it up. Should be obvious > and trivial after the change i made ... I don't see why the kernel memory could ever be treated as free. Initially the entire memory is considered to be allocated. Then all areas that are free as per ARC(S) firmware get freed. The kernel itself should of course not be part of those areas. Then even later once again as part of free_initmem() the rest of the ARC(S) memory gets freed, that's all the firmware temporary areas. Again the kernel memory should not reside in any of those areas. So I can't make any sense out of your changes? Ralf From owner-linuxmips@oss.sgi.com Thu Apr 27 18:43:26 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 18:43:07 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:28686 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 18:43:02 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id SAA03661; Thu, 27 Apr 2000 18:47:11 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA93687 for linux-list; Thu, 27 Apr 2000 18:36:43 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id SAA04595 for ; Thu, 27 Apr 2000 18:36:42 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Thu, 27 Apr 2000 16:23:59 -0700 Date: Thu, 27 Apr 2000 16:23:59 -0700 From: Ralf Baechle To: maxence Lange Cc: linux@cthulhu.engr.sgi.com Subject: Re: Just a little question .. Message-ID: <20000427162359.A6362@uni-koblenz.de> References: <20000427125836.B14257@manipura.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000427125836.B14257@manipura.com>; from maxence@manipura.com on Thu, Apr 27, 2000 at 12:58:36PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 27, 2000 at 12:58:36PM +0200, maxence Lange wrote: > could we hope to see linux on Indigi r3000 one day ?!? :) Chances that we'll ever support this machine are quite low. Most of the documentation is lost or scattered somewhere over zillions of backup tapes somewhere here at SGI ... Ralf From owner-linuxmips@oss.sgi.com Thu Apr 27 18:45:05 2000 Received: by oss.sgi.com id ; Thu, 27 Apr 2000 18:44:56 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:39694 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 27 Apr 2000 18:44:45 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id SAA04663; Thu, 27 Apr 2000 18:48:56 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id SAA84046; Thu, 27 Apr 2000 18:44:14 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA15306 for linux-list; Thu, 27 Apr 2000 18:36:43 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id SAA09185 for ; Thu, 27 Apr 2000 18:36:42 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Wed, 26 Apr 2000 13:06:03 -0700 Date: Wed, 26 Apr 2000 13:06:03 -0700 From: Ralf Baechle To: Andreas Jaeger Cc: Jun Sun , Ulf Carlsson , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: failed to compile glibc 2.1.2 - BFD_RELOC_16_PCREL_S2 problem Message-ID: <20000426130603.E757@uni-koblenz.de> References: <3904ED75.209AFD22@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from aj@suse.de on Wed, Apr 26, 2000 at 10:53:38AM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, Apr 26, 2000 at 10:53:38AM +0200, Andreas Jaeger wrote: > It's just that nobody did the work of porting glibc. A lot of has > changed between glibc 2.0 and 2.1 (and also between 2.1 and 2.2). > I've decided to port glibc 2.2 for MIPS. This involved a number of > patches and but I don't have the time to backport everything - and I > will not support such a backport at all. > > All my glibc 2.2 patches have been added to the glibc archives and > therefore will be in the official sources of 2.2. All in all I think that given the work that has been invested into making a solid 2.2 port 2.2 might soon be the better choice than 2.0 and source compatibility issues should make a port of 2.1 mostly a non-issue. Ralf From owner-linuxmips@oss.sgi.com Fri Apr 28 01:30:47 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 01:30:28 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:63061 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 01:30:01 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id BAA12845; Fri, 28 Apr 2000 01:25:14 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id BAA08727; Fri, 28 Apr 2000 01:28:15 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA01772 for linux-list; Fri, 28 Apr 2000 01:02:35 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA84224 for ; Fri, 28 Apr 2000 01:02:33 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 BAA03711 for ; Fri, 28 Apr 2000 01:02:20 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 65541816; Fri, 28 Apr 2000 10:02:09 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 397878FFD; Fri, 28 Apr 2000 09:16:46 +0200 (CEST) Date: Fri, 28 Apr 2000 09:16:46 +0200 From: Florian Lohoff To: Ralf Baechle Cc: Ulf Carlsson , linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... Message-ID: <20000428091646.A1458@paradigm.rfc822.org> References: <20000424132221.D2583@paradigm.rfc822.org> <20000424210940.C1623@paradigm.rfc822.org> <20000426131047.F757@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000426131047.F757@uni-koblenz.de>; from Ralf Baechle on Wed, Apr 26, 2000 at 01:10:47PM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Wed, Apr 26, 2000 at 01:10:47PM -0700, Ralf Baechle wrote: > > I don't see why the kernel memory could ever be treated as free. Initially > the entire memory is considered to be allocated. Then all areas that are > free as per ARC(S) firmware get freed. The kernel itself should of course > not be part of those areas. Then even later once again as part of > free_initmem() the rest of the ARC(S) memory gets freed, that's all the > firmware temporary areas. Again the kernel memory should not reside in > any of those areas. So I can't make any sense out of your changes? > The problem i seen on MY indigo2 is that i get a memory chunk from the ARC which is freed up although the kernel resides in that memory chunk. The first allocation of memory (still in the bootmem) then gets kernel pages - does a "memset" and dead we are. Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 28 02:07:17 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 02:07:08 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:19037 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 02:06:43 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id CAA15683; Fri, 28 Apr 2000 02:01:56 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id CAA66185; Fri, 28 Apr 2000 02:06:12 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id BAA21171 for linux-list; Fri, 28 Apr 2000 01:56:53 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from lappi (dhcp-163-154-5-221.engr.sgi.com [163.154.5.221]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id BAA97925 for ; Fri, 28 Apr 2000 01:56:52 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: by lappi.waldorf-gmbh.de id ; Fri, 28 Apr 2000 01:52:28 -0700 Date: Fri, 28 Apr 2000 01:52:28 -0700 From: Ralf Baechle To: Florian Lohoff Cc: Ulf Carlsson , linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... Message-ID: <20000428015227.E797@uni-koblenz.de> References: <20000424132221.D2583@paradigm.rfc822.org> <20000424210940.C1623@paradigm.rfc822.org> <20000426131047.F757@uni-koblenz.de> <20000428091646.A1458@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000428091646.A1458@paradigm.rfc822.org>; from flo@rfc822.org on Fri, Apr 28, 2000 at 09:16:46AM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 28, 2000 at 09:16:46AM +0200, Florian Lohoff wrote: > > I don't see why the kernel memory could ever be treated as free. Initially > > the entire memory is considered to be allocated. Then all areas that are > > free as per ARC(S) firmware get freed. The kernel itself should of course > > not be part of those areas. Then even later once again as part of > > free_initmem() the rest of the ARC(S) memory gets freed, that's all the > > firmware temporary areas. Again the kernel memory should not reside in > > any of those areas. So I can't make any sense out of your changes? > > > > The problem i seen on MY indigo2 is that i get a memory chunk from > the ARC which is freed up although the kernel resides in that memory > chunk. The first allocation of memory (still in the bootmem) > then gets kernel pages - does a "memset" and dead we are. In that case I suggest you enable the define DEBUG near the top of arch/mips/arc/memory.c and take a closer look at the printout. Ralf From owner-linuxmips@oss.sgi.com Fri Apr 28 03:50:08 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 03:49:59 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:59760 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 03:49:42 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id DAA23764; Fri, 28 Apr 2000 03:44:55 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id DAA69754; Fri, 28 Apr 2000 03:47:56 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id DAA35777 for linux-list; Fri, 28 Apr 2000 03:35:34 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id DAA14963 for ; Fri, 28 Apr 2000 03:35:32 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 DAA07582 for ; Fri, 28 Apr 2000 03:35:25 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id AA39081F; Fri, 28 Apr 2000 12:35:21 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 85BEE8FFD; Fri, 28 Apr 2000 11:18:35 +0200 (CEST) Date: Fri, 28 Apr 2000 11:18:35 +0200 From: Florian Lohoff To: Ralf Baechle Cc: Ulf Carlsson , linux@cthulhu.engr.sgi.com Subject: Re: early crash on indigo2 fix breaks indy ... Message-ID: <20000428111835.B2891@paradigm.rfc822.org> References: <20000424132221.D2583@paradigm.rfc822.org> <20000424210940.C1623@paradigm.rfc822.org> <20000426131047.F757@uni-koblenz.de> <20000428091646.A1458@paradigm.rfc822.org> <20000428015227.E797@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <20000428015227.E797@uni-koblenz.de>; from Ralf Baechle on Fri, Apr 28, 2000 at 01:52:28AM -0700 Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, Apr 28, 2000 at 01:52:28AM -0700, Ralf Baechle wrote: > > The problem i seen on MY indigo2 is that i get a memory chunk from > > the ARC which is freed up although the kernel resides in that memory > > chunk. The first allocation of memory (still in the bootmem) > > then gets kernel pages - does a "memset" and dead we are. > > In that case I suggest you enable the define DEBUG near the top of > arch/mips/arc/memory.c and take a closer look at the printout. I did that - And i also included a lot more debugging myself. I also mailed to output to the list but nobody seemed able to help - So i fixed it myself ... Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 28 05:04:20 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 05:04:10 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:17019 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 05:04:00 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id EAA29178; Fri, 28 Apr 2000 04:59:14 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id EAA34106 for linux-list; Fri, 28 Apr 2000 04:50:43 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id EAA75294; Fri, 28 Apr 2000 04:50:39 -0700 (PDT) mail_from (nop@nop.com) Received: from chmls05.mediaone.net (ne.mediaone.net [24.128.1.70]) 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 EAA04538; Fri, 28 Apr 2000 04:50:37 -0700 (PDT) mail_from (nop@nop.com) Received: from decoy (h00a0cc39f081.ne.mediaone.net [24.218.252.183]) by chmls05.mediaone.net (8.8.7/8.8.7) with SMTP id HAA24825; Fri, 28 Apr 2000 07:50:08 -0400 (EDT) Message-ID: <228c01bfb107$fb22c2f0$0a00000a@decoy> From: "Jay Carlson" To: "Ralf Baechle" , "Andreas Jaeger" Cc: "Jun Sun" , "Ulf Carlsson" , , References: <3904ED75.209AFD22@mvista.com> <20000426130603.E757@uni-koblenz.de> Subject: Re: failed to compile glibc 2.1.2 - BFD_RELOC_16_PCREL_S2 problem Date: Fri, 28 Apr 2000 07:50:36 -0400 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.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Ralf Baechle writes: > All in all I think that given the work that has been invested into making > a solid 2.2 port 2.2 might soon be the better choice than 2.0 and > source compatibility issues should make a port of 2.1 mostly a non-issue. If my builds of 2.1 are any indication: 2.0 may still be the better choice on very space-constrained platforms until there are good options for reducing the size of 2.2. I mean, 2.2 is not huge, but on devices with 2M non-volatile store *total*, it's an obvious target. I am not volunteering to work on this (yet), but I suspect that people who care intensely about size will have to start digging around in the link maps. H. J. Lu has done some of the work in this direction already. On the other hand, maybe the really tiny devices will go away. Jay From owner-linuxmips@oss.sgi.com Fri Apr 28 05:49:50 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 05:49:40 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:59909 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 05:49:35 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id FAA02707; Fri, 28 Apr 2000 05:44:48 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA87576 for linux-list; Fri, 28 Apr 2000 05:35:12 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA59989 for ; Fri, 28 Apr 2000 05:35:10 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: from belgarath.esg-guetersloh.mediapoint.de (belgarath.esg-guetersloh.mediapoint.de [193.189.251.50]) 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 FAA00025 for ; Fri, 28 Apr 2000 05:34:54 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: by belgarath.esg-guetersloh.mediapoint.de (Postfix, from userid 1000) id B30EF51315; Fri, 28 Apr 2000 14:34:55 +0200 (CEST) Date: Fri, 28 Apr 2000 14:34:55 +0200 From: Jan-Benedict Glaw To: linux@cthulhu.engr.sgi.com Subject: Re: Just a little question .. Message-ID: <20000428143455.C25322@lug-owl.de> Reply-To: jbglaw@lug-owl.de Mail-Followup-To: linux@cthulhu.engr.sgi.com References: <20000427125836.B14257@manipura.com> <20000427162359.A6362@uni-koblenz.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="SO98HVl1bnMOfKZd" X-Mailer: Mutt 1.0i In-Reply-To: <20000427162359.A6362@uni-koblenz.de>; from ralf@oss.sgi.com on Thu, Apr 27, 2000 at 04:23:59PM -0700 X-Operating-System: Linux belgarath.esg-guetersloh.mediapoint.de 2.0.35 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing --SO98HVl1bnMOfKZd Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Apr 27, 2000 at 04:23:59PM -0700, Ralf Baechle wrote: > On Thu, Apr 27, 2000 at 12:58:36PM +0200, maxence Lange wrote: >=20 > > could we hope to see linux on Indigi r3000 one day ?!? :) >=20 > Chances that we'll ever support this machine are quite low. Most of the > documentation is lost or scattered somewhere over zillions of backup > tapes somewhere here at SGI ... I would help searching as I've got such a box and want to run Linux on it (instead of IRIX 5.2;) Btw, my box has a card added which has transceivers vor glass cables. Does anybody know what this is (FDDI or 10MBit ethernet...)? Transmitter: AMP 269011-1, 125MBit/s, @1300nm Receiver: AMP 269011-1, 125MBit/s, @1300nm The board is connected on top of the CPU board and labeled with "SILICON GRAPHICS INC. ASSY NO. 030-0246-006 REV A MADE IN U.S.A 1992". Next to transmitter/receiver, there's a crystal oscillator with 25MHz. That card al= so has an own "processor", a AMD Am29030, build 1991. MfG, JBG --=20 Fehler eingestehen, Gr=F6=DFe zeigen: Nehmt die Rechtschreibreform zur=FCck= !!! /* Jan-Benedict Glaw -- +49-177-5601720 */ keyID=3D0x8399E1BB fingerprint=3D250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 83= 99 E1BB --SO98HVl1bnMOfKZd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iEUEAREBAAYFAjkJhW8ACgkQHb1edYOZ4buEUgCXWcczlM/g5AbFM1mXd59WQo7b lgCcDLRMlMxkTImK1veSOE+yhWkzw+Q= =FgPW -----END PGP SIGNATURE----- --SO98HVl1bnMOfKZd-- From owner-linuxmips@oss.sgi.com Fri Apr 28 05:50:30 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 05:50:21 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:36405 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 05:50:10 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id FAA06899; Fri, 28 Apr 2000 05:54:21 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA94075 for linux-list; Fri, 28 Apr 2000 05:43:51 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA63170; Fri, 28 Apr 2000 05:43:31 -0700 (PDT) mail_from (nop@nop.com) Received: from chmls05.mediaone.net (ne.mediaone.net [24.128.1.70]) 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 FAA07681; Fri, 28 Apr 2000 05:43:17 -0700 (PDT) mail_from (nop@nop.com) Received: from decoy (h00a0cc39f081.ne.mediaone.net [24.218.252.183]) by chmls05.mediaone.net (8.8.7/8.8.7) with SMTP id IAA10786; Fri, 28 Apr 2000 08:43:05 -0400 (EDT) Message-ID: <22a801bfb10f$5d7c5b80$0a00000a@decoy> From: "Jay Carlson" To: "Jay Carlson" , "Ralf Baechle" , "Andreas Jaeger" Cc: "Jun Sun" , "Ulf Carlsson" , , References: <3904ED75.209AFD22@mvista.com> <20000426130603.E757@uni-koblenz.de> <228c01bfb107$fb22c2f0$0a00000a@decoy> Subject: Re: failed to compile glibc 2.1.2 - BFD_RELOC_16_PCREL_S2 problem Date: Fri, 28 Apr 2000 08:43:33 -0400 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.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing I wrote: > 2.0 may still be the better choice on very space-constrained platforms until > there are good options for reducing the size of 2.2. I mean, 2.2 is not > huge, but on devices with 2M non-volatile store *total*, it's an obvious > target. To which I should add: I am very grateful for the work on 2.2. It needs to be done. Many people will benefit from it, including me. Great thanks to Andreas! The problems with code size are not Andreas's fault... :-) Jay From owner-linuxmips@oss.sgi.com Fri Apr 28 05:53:20 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 05:53:10 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:30518 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 05:53:08 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id FAA04212; Fri, 28 Apr 2000 05:57:19 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA94490 for linux-list; Fri, 28 Apr 2000 05:41:05 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA76742 for ; Fri, 28 Apr 2000 05:40:59 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 FAA03754 for ; Fri, 28 Apr 2000 05:40:43 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 1845481F; Fri, 28 Apr 2000 14:40:33 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id DD2618FFD; Fri, 28 Apr 2000 14:28:21 +0200 (CEST) Date: Fri, 28 Apr 2000 14:28:21 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: serial_console_init Message-ID: <20000428142821.D2891@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, serial_console_init is currently only called when CONFIG_SERIAL AND CONFIG_SERIAL_CONSOLE is defined as shown in drivers/char/tty_io.c 2189 #ifdef CONFIG_SERIAL_CONSOLE 2190 #ifdef CONFIG_8xx 2191 console_8xx_init(); 2192 #elif defined(CONFIG_SERIAL) 2193 serial_console_init(); 2194 #endif /* CONFIG_8xx */ 2195 #if defined(CONFIG_MVME162_SCC) || defined(CONFIG_BVME6000_SCC) || defined(CONFIG_MVME147_SCC) 2196 vme_scc_console_init(); 2197 #endif 2198 #if defined(CONFIG_SERIAL167) 2199 serial167_console_init(); 2200 #endif 2201 #endif As we changed CONFIG_SERIAL to CONFIG_SGI_SERIAL this NEVER gets true whereas serial_console_init() never gets called. What would be the correct way to go - Just append a || defined(CONFIG_SGI_SERIAL) ? Or the other way round - Change CONFIG_SGI_SERIAL to CONFIG_SERIAL and exclude building serial.c -> serial.o in the drivers/char/Makefile ... Ill do it if somebody (Ralf?) gives me some hints ... Flo -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 28 07:21:04 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 07:20:54 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:44824 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 07:20:32 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id HAA12288; Fri, 28 Apr 2000 07:15:46 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id HAA82613 for linux-list; Fri, 28 Apr 2000 07:07:36 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id HAA60508 for ; Fri, 28 Apr 2000 07:07:35 -0700 (PDT) mail_from (flo@rfc822.org) Received: from noose.gt.owl.de (noose.gt.owl.de [62.52.19.4]) 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 HAA08924 for ; Fri, 28 Apr 2000 07:07:20 -0700 (PDT) mail_from (flo@rfc822.org) Received: by noose.gt.owl.de (Postfix, from userid 10) id 1EB347DD; Fri, 28 Apr 2000 16:07:16 +0200 (CEST) Received: by paradigm.rfc822.org (Postfix, from userid 1000) id 06AA28FFD; Fri, 28 Apr 2000 15:55:06 +0200 (CEST) Date: Fri, 28 Apr 2000 15:55:05 +0200 From: Florian Lohoff To: linux@cthulhu.engr.sgi.com Subject: [patch] getting cvs to run on IP22 Message-ID: <20000428155505.F2891@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i Organization: rfc822 - pure communication Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing Hi, i had the time today and retry getting 2.3.99pre6 (current cvs) to run on SGI. I'll just attach the patch with what you get the kernel to work. Following things get changes: - Move __initcall(rs_init) to drivers/char/sgiserial.c This is obvious and rs_init in mips/sgi/kernel/setup.c is definitly only a dirty hack i introduced - Do a different (probably incorrect but working) memory setup - I had the problem of not having any DMAable pages after initialization. Now ALL pages get into ZONE_DMA which might be right ( I surrounded this by CONFIG_ISA and CONFIG_PCI as the PCee controllers mostly have DMA limits ) - Call init_serial_console even if CONFIG_SERIAL isnt set (but CONFIG_SGI_SERIAL) - Remove the console initialisation from sgi/kernel/setup.c as this hmmm - isnt the thing i think is correct. Normally a kernel "console=" parameter should override the setup of the prom (i have ArcEnv = g but want serial console) TODO: - Cleanup of mips/arc/memory.c changes for kernel allocation I seem to have luck to get the only broken prom version on the planet not allocating the kernel space. So - prevent allocating already allocated pages or ignorant freeing of ARC memory chunks for some broken proms. - Clean way of setting the console (Arc Console Env as fallback and priotity to console= command line and support for the major 5 minor 1 console device like on i386 etc ... I would like to have some comments on the different fragments. Flo Index: arch/mips/mm/init.c =================================================================== RCS file: /cvs/linux/arch/mips/mm/init.c,v retrieving revision 1.27 diff -u -r1.27 init.c --- arch/mips/mm/init.c 2000/02/23 01:33:56 1.27 +++ arch/mips/mm/init.c 2000/04/28 13:47:55 @@ -256,12 +256,16 @@ max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; low = max_low_pfn; +#if defined(CONFIG_PCI) || defined(CONFIG_ISA) if (low < max_dma) zones_size[ZONE_DMA] = low; else { zones_size[ZONE_DMA] = max_dma; zones_size[ZONE_NORMAL] = low - max_dma; } +#else + zones_size[ZONE_DMA] = low; +#endif free_area_init(zones_size); } Index: arch/mips/sgi/kernel/setup.c =================================================================== RCS file: /cvs/linux/arch/mips/sgi/kernel/setup.c,v retrieving revision 1.32 diff -u -r1.32 setup.c --- arch/mips/sgi/kernel/setup.c 2000/04/06 20:26:58 1.32 +++ arch/mips/sgi/kernel/setup.c 2000/04/28 13:47:55 @@ -160,20 +160,6 @@ /* Now enable boardcaches, if any. */ indy_sc_init(); -#ifdef CONFIG_SERIAL_CONSOLE - /* ARCS console environment variable is set to "g?" for - * graphics console, it is set to "d" for the first serial - * line and "d2" for the second serial line. - */ - ctype = ArcGetEnvironmentVariable("console"); - if(*ctype == 'd') { - if(*(ctype+1)=='2') - console_setup ("ttyS1"); - else - console_setup ("ttyS0"); - } -#endif - #ifdef CONFIG_REMOTE_DEBUG kgdb_ttyd = prom_getcmdline(); if ((kgdb_ttyd = strstr(kgdb_ttyd, "kgdb=ttyd")) != NULL) { @@ -195,10 +181,6 @@ } #endif -#ifdef CONFIG_SGI_PROM_CONSOLE - console_setup("ttyS0"); -#endif - sgi_volume_set(simple_strtoul(ArcGetEnvironmentVariable("volume"), NULL, 10)); #ifdef CONFIG_VT @@ -230,4 +212,3 @@ init_vino(); #endif } -__initcall(rs_init); Index: drivers/char/tty_io.c =================================================================== RCS file: /cvs/linux/drivers/char/tty_io.c,v retrieving revision 1.33 diff -u -r1.33 tty_io.c --- drivers/char/tty_io.c 2000/04/28 01:09:37 1.33 +++ drivers/char/tty_io.c 2000/04/28 13:47:58 @@ -2189,7 +2189,7 @@ #ifdef CONFIG_SERIAL_CONSOLE #ifdef CONFIG_8xx console_8xx_init(); -#elif defined(CONFIG_SERIAL) +#elif defined(CONFIG_SERIAL) || defined(CONFIG_SGI_SERIAL) serial_console_init(); #endif /* CONFIG_8xx */ #if defined(CONFIG_MVME162_SCC) || defined(CONFIG_BVME6000_SCC) || defined(CONFIG_MVME147_SCC) Index: drivers/sgi/char/sgiserial.c =================================================================== RCS file: /cvs/linux/drivers/sgi/char/sgiserial.c,v retrieving revision 1.23 diff -u -r1.23 sgiserial.c --- drivers/sgi/char/sgiserial.c 2000/01/27 01:05:35 1.23 +++ drivers/sgi/char/sgiserial.c 2000/04/28 13:48:21 @@ -2251,3 +2251,5 @@ { register_console(&sgi_console_driver); } + +__initcall(rs_init); -- Florian Lohoff flo@rfc822.org +49-subject-2-change "Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots." From owner-linuxmips@oss.sgi.com Fri Apr 28 11:01:44 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 11:01:35 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:61787 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 11:01:18 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id KAA13698; Fri, 28 Apr 2000 10:56:32 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA29273 for linux-list; Fri, 28 Apr 2000 10:31:58 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA56430 for ; Fri, 28 Apr 2000 10:31:56 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 KAA08652 for ; Fri, 28 Apr 2000 10:31:53 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id KAA15916 for ; Fri, 28 Apr 2000 10:31:50 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id KAA08291 for ; Fri, 28 Apr 2000 10:31:48 -0700 (PDT) Message-ID: <008a01bfb137$ec2c3120$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "SGI Linux Alias" Subject: Merge of MIPS 2.2 kernel enhancements for FPU emulation, etc. Date: Fri, 28 Apr 2000 19:33:46 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing OK folks, here's the deal. As some of you will have noticed, I checked the FPU emulation machinery of for the MIPS 2.2 kernel into the oss.sgi.com repository earlier this week. Since then, I've been working on merging in the changes to the other kernel modules (most importantly traps.c, but a number of others) necessary to integrate it into the kernel. I had hoped to keep it to a subset of the mods and fixes we've made at MIPS, but as is often the case, there are chains of interdependency. I cannot spare the time to re-engineer everything to isolate the FP emulation support. In particular, I'm not going to back-out the changes that were made to eliminate the (intrinsically unsafe) use of bitfields for instruction decoding. So, here's the deal. Either I will merge the totality of our mods into the 2.2 repository, or I will leave things as they are now, and leave it to others to re-implement what we did at MIPS (and which can be ownloaded from ftp://ftp.mips.com/pub/linux/kernel ). My inclination is to check the stuff in and get it over with, but this *will* create some differences with the 2.3 tree that might confuse some people. It will also be the case that there I cannot test all known configurations - indeed, as far as SGI boxes go, I can only test on an Indy - and risk leaving some minor problems to be cleaned up by someone else with the appropriate platform. So it those sorts of prospects scare you, speak up now. Regards, Kevin K. __ Kevin D. Kissell MIPS Technologies European Architecture Lab kevink@mips.com Tel. +33.4.78.38.70.67 FAX. +33.4.78.38.70.68 From owner-linuxmips@oss.sgi.com Fri Apr 28 11:57:45 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 11:57:35 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:34926 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 11:57:27 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA21361; Fri, 28 Apr 2000 11:52:40 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA55585 for linux-list; Fri, 28 Apr 2000 11:49:20 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA65105; Fri, 28 Apr 2000 11:49:07 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from styx.cs.kuleuven.ac.be (styx.cs.kuleuven.ac.be [134.58.40.3]) 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 LAA07338; Fri, 28 Apr 2000 11:48:27 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from cassiopeia.home (root@dialup004.cs.kuleuven.ac.be [134.58.47.133]) by styx.cs.kuleuven.ac.be (8.9.3/8.9.3) with ESMTP id UAA20325; Fri, 28 Apr 2000 20:48:17 +0200 (MET DST) Received: from localhost (geert@localhost) by cassiopeia.home (8.9.3/8.9.3/Debian/GNU) with ESMTP id UAA00921; Fri, 28 Apr 2000 20:22:11 +0200 X-Authentication-Warning: cassiopeia.home: geert owned process doing -bs Date: Fri, 28 Apr 2000 20:22:11 +0200 (CEST) From: Geert Uytterhoeven To: Jay Carlson cc: Ralf Baechle , Andreas Jaeger , Jun Sun , Ulf Carlsson , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr Subject: Re: failed to compile glibc 2.1.2 - BFD_RELOC_16_PCREL_S2 problem In-Reply-To: <228c01bfb107$fb22c2f0$0a00000a@decoy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, 28 Apr 2000, Jay Carlson wrote: > 2.0 may still be the better choice on very space-constrained platforms until > there are good options for reducing the size of 2.2. I mean, 2.2 is not > huge, but on devices with 2M non-volatile store *total*, it's an obvious > target. > > I am not volunteering to work on this (yet), but I suspect that people who > care intensely about size will have to start digging around in the link > maps. H. J. Lu has done some of the work in this direction already. FYI, on PPC some people are working on kernel size optimization, ranging from automatically throwing away never used functions and data at link time to getting rid of all the kernel messages (I heard that's about 150 kB of textual data). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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-linuxmips@oss.sgi.com Fri Apr 28 12:00:15 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 12:00:05 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:56169 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 11:59:51 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id MAA05787; Fri, 28 Apr 2000 12:04:02 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA66480 for linux-list; Fri, 28 Apr 2000 11:48:27 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id LAA72003 for ; Fri, 28 Apr 2000 11:48:20 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from styx.cs.kuleuven.ac.be (styx.cs.kuleuven.ac.be [134.58.40.3]) 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 LAA02814 for ; Fri, 28 Apr 2000 11:48:08 -0700 (PDT) mail_from (geert@linux-m68k.org) Received: from cassiopeia.home (root@dialup004.cs.kuleuven.ac.be [134.58.47.133]) by styx.cs.kuleuven.ac.be (8.9.3/8.9.3) with ESMTP id UAA20316; Fri, 28 Apr 2000 20:47:52 +0200 (MET DST) Received: from localhost (geert@localhost) by cassiopeia.home (8.9.3/8.9.3/Debian/GNU) with ESMTP id UAA00924; Fri, 28 Apr 2000 20:25:04 +0200 X-Authentication-Warning: cassiopeia.home: geert owned process doing -bs Date: Fri, 28 Apr 2000 20:25:04 +0200 (CEST) From: Geert Uytterhoeven To: Jan-Benedict Glaw cc: linux@cthulhu.engr.sgi.com Subject: Re: Just a little question .. In-Reply-To: <20000428143455.C25322@lug-owl.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Fri, 28 Apr 2000, Jan-Benedict Glaw wrote: > Btw, my box has a card added which has transceivers vor glass cables. Does > anybody know what this is (FDDI or 10MBit ethernet...)? > Transmitter: AMP 269011-1, 125MBit/s, @1300nm > Receiver: AMP 269011-1, 125MBit/s, @1300nm > The board is connected on top of the CPU board and labeled with "SILICON > GRAPHICS INC. ASSY NO. 030-0246-006 REV A MADE IN U.S.A 1992". Next to > transmitter/receiver, there's a crystal oscillator with 25MHz. That card also > has an own "processor", a AMD Am29030, build 1991. The 125 MBit/s looks like a 100 Mbps signal with 4-to-5 encoding. Since 100-Base FX Ethernet didn't exist in 1992 and ATM runs at 155 Mbps, I guess it's FDDI. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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-linuxmips@oss.sgi.com Fri Apr 28 12:39:54 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 12:39:45 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:33917 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 12:39:29 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id MAA28454; Fri, 28 Apr 2000 12:34:42 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id MAA81749 for linux-list; Fri, 28 Apr 2000 12:30:51 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id MAA66689 for ; Fri, 28 Apr 2000 12:30:28 -0700 (PDT) mail_from (nick@ns.snowman.net) From: nick@ns.snowman.net Received: from ns.snowman.net (ns.snowman.net [63.80.4.34]) 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 MAA00303 for ; Fri, 28 Apr 2000 12:30:11 -0700 (PDT) mail_from (nick@ns.snowman.net) Received: from localhost (nick@localhost) by ns.snowman.net (8.9.1a/8.9.0) with ESMTP id PAA29832; Fri, 28 Apr 2000 15:40:05 -0400 Date: Fri, 28 Apr 2000 15:40:05 -0400 (EDT) To: Geert Uytterhoeven cc: Jan-Benedict Glaw , linux@cthulhu.engr.sgi.com Subject: Re: Just a little question .. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing FDDI sounds right. What does the physical connector look like? I think FDDI does 4-5 encoding? Nick On Fri, 28 Apr 2000, Geert Uytterhoeven wrote: > On Fri, 28 Apr 2000, Jan-Benedict Glaw wrote: > > Btw, my box has a card added which has transceivers vor glass cables. Does > > anybody know what this is (FDDI or 10MBit ethernet...)? > > Transmitter: AMP 269011-1, 125MBit/s, @1300nm > > Receiver: AMP 269011-1, 125MBit/s, @1300nm > > The board is connected on top of the CPU board and labeled with "SILICON > > GRAPHICS INC. ASSY NO. 030-0246-006 REV A MADE IN U.S.A 1992". Next to > > transmitter/receiver, there's a crystal oscillator with 25MHz. That card also > > has an own "processor", a AMD Am29030, build 1991. > > The 125 MBit/s looks like a 100 Mbps signal with 4-to-5 encoding. Since > 100-Base FX Ethernet didn't exist in 1992 and ATM runs at 155 Mbps, I guess > it's FDDI. > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- 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-linuxmips@oss.sgi.com Fri Apr 28 14:31:47 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 14:31:38 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:50720 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 14:31:16 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id OAA13841; Fri, 28 Apr 2000 14:26:29 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA71281 for linux-list; Fri, 28 Apr 2000 14:21:08 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA52929 for ; Fri, 28 Apr 2000 14:21:05 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: from belgarath.esg-guetersloh.mediapoint.de (belgarath.esg-guetersloh.mediapoint.de [193.189.251.50]) 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 OAA06317 for ; Fri, 28 Apr 2000 14:20:56 -0700 (PDT) mail_from (jbglaw@ev-stift-gymn.guetersloh.de) Received: by belgarath.esg-guetersloh.mediapoint.de (Postfix, from userid 1000) id 1B8C8512EA; Fri, 28 Apr 2000 23:21:13 +0200 (CEST) Date: Fri, 28 Apr 2000 23:21:12 +0200 From: Jan-Benedict Glaw To: linux@cthulhu.engr.sgi.com Subject: Re: Just a little question .. Message-ID: <20000428232112.A9839@lug-owl.de> Reply-To: jbglaw@lug-owl.de Mail-Followup-To: linux@cthulhu.engr.sgi.com References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" X-Mailer: Mutt 1.0i In-Reply-To: ; from nick@ns.snowman.net on Fri, Apr 28, 2000 at 03:40:05PM -0400 X-Operating-System: Linux belgarath.esg-guetersloh.mediapoint.de 2.0.35 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing --jI8keyz6grp/JLjh Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Apr 28, 2000 at 03:40:05PM -0400, nick@ns.snowman.net wrote: > FDDI sounds right. What does the physical connector look like? I think > FDDI does 4-5 encoding? > Nick The whole connector is separated into 2 halfes and looks like this: +-----------+ | | | |_ | O _| | | | | |-----------| | | | |_ | O _| | | | | +-----------+ The upper connector's data direction seems to be computer -> glass cable, the lower one is glass cable -> computer (according to arrows printed on "Transmitter" (upper one) and "Receiver" (lower one). On thr right side there are 2 holes (sorry, don't know the english word for german "Aussparungen";( It's about 25x10mm. MfG, JBG --=20 Fehler eingestehen, Gr=F6=DFe zeigen: Nehmt die Rechtschreibreform zur=FCck= !!! /* Jan-Benedict Glaw -- +49-177-5601720 */ keyID=3D0x8399E1BB fingerprint=3D250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 83= 99 E1BB --jI8keyz6grp/JLjh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEAREBAAYFAjkKAMgACgkQHb1edYOZ4bulxwCgjFqOyHo6TtS9qQQq8Efrguyq VeEAn3MbFzyekUw3+abIlBTjATA92gZ2 =pm/p -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From owner-linuxmips@oss.sgi.com Fri Apr 28 16:35:58 2000 Received: by oss.sgi.com id ; Fri, 28 Apr 2000 16:35:39 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:33293 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Fri, 28 Apr 2000 16:35:30 -0700 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id QAA04236; Fri, 28 Apr 2000 16:39:40 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id QAA56821 for linux-list; Fri, 28 Apr 2000 16:30:03 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from kilimanjaro.engr.sgi.com (kilimanjaro.engr.sgi.com [163.154.5.32]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA25727 for ; Fri, 28 Apr 2000 16:30:02 -0700 (PDT) mail_from (owner-linux@kilimanjaro.engr.sgi.com) Received: from kilimanjaro.engr.sgi.com (localhost [127.0.0.1]) by kilimanjaro.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id QAA55852; Fri, 28 Apr 2000 16:30:03 -0700 (PDT) Message-Id: <200004282330.QAA55852@kilimanjaro.engr.sgi.com> To: jbglaw@lug-owl.de, linux@kilimanjaro.engr.sgi.com Subject: Re: Just a little question .. In-reply-to: Your message of "Fri, 28 Apr 2000 14:34:55 +0200." Date: Fri, 28 Apr 2000 16:30:02 -0700 From: Joan Eslinger Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing * From: Jan-Benedict Glaw * * Btw, my box has a card added which has transceivers vor glass cables. Does * anybody know what this is (FDDI or 10MBit ethernet...)? * The board is connected on top of the CPU board and labeled with "SILICON * GRAPHICS INC. ASSY NO. 030-0246-006 REV A MADE IN U.S.A 1992". Next to I found something listing 030-0246-007 as "FDDIXP GIOBUS" for an Indigo. The last 3 digits are for part rev level, so your card is similar. From owner-linuxmips@oss.sgi.com Sat Apr 29 10:48:06 2000 Received: by oss.sgi.com id ; Sat, 29 Apr 2000 10:47:58 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:31514 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 29 Apr 2000 10:47:38 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id KAA19021; Sat, 29 Apr 2000 10:42:50 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id KAA09542; Sat, 29 Apr 2000 10:47:07 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id KAA89442 for linux-list; Sat, 29 Apr 2000 10:39:01 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id KAA00709 for ; Sat, 29 Apr 2000 10:38:59 -0700 (PDT) mail_from (mikehill@hgeng.com) Received: from calvin.tor.onramp.ca (calvin.tor.onramp.ca [204.225.88.15]) 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 SMTP id KAA08264 for ; Sat, 29 Apr 2000 10:38:58 -0700 (PDT) mail_from (mikehill@hgeng.com) Received: (qmail 6478 invoked from network); 29 Apr 2000 17:38:58 -0000 Received: from imail.hgeng.com (HELO bart.hgeng.com) (199.246.72.233) by mail.onramp.ca with SMTP; 29 Apr 2000 17:38:58 -0000 Received: by BART with Internet Mail Service (5.5.2232.9) id ; Sat, 29 Apr 2000 13:38:47 -0400 Message-ID: From: Mike Hill To: "'Florian Lohoff'" , linux@cthulhu.engr.sgi.com Subject: RE: [patch] getting cvs to run on IP22 Date: Sat, 29 Apr 2000 13:38:42 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing >>>>> "Flo" == Florian Lohoff writes: Flo> Hi, i had the time today and retry getting 2.3.99pre6 Flo> (current cvs) to run on SGI. I'll just attach the patch with Flo> what you get the kernel to work. Patched but quits like below (native compile). Am I missing something in my .config? Thanks, Mike gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -pipe -c -o init/main.o init/main.c In file included from /usr/src/linux/include/asm/bitops.h:13, from /usr/src/linux/include/linux/fs.h:25, from /usr/src/linux/include/linux/capability.h:13, from /usr/src/linux/include/linux/binfmts.h:5, from /usr/src/linux/include/linux/sched.h:9, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/malloc.h:4, from /usr/src/linux/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux/include/asm/byteorder.h:24: linux/byteorder/big_endian.h: No such file or directory init/main.c:24: linux/raid/md.h: No such file or directory /usr/src/linux/include/asm/bitops.h: In function `ext2_find_next_zero_bit': In file included from /usr/src/linux/include/linux/fs.h:25, from /usr/src/linux/include/linux/capability.h:13, from /usr/src/linux/include/linux/binfmts.h:5, from /usr/src/linux/include/linux/sched.h:9, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/malloc.h:4, from /usr/src/linux/include/linux/proc_fs.h:5, from init/main.c:15: /usr/src/linux/include/asm/bitops.h:512: warning: implicit declaration of function `__swab32' make: *** [init/main.o] Error 1 From owner-linuxmips@oss.sgi.com Sat Apr 29 15:08:49 2000 Received: by oss.sgi.com id ; Sat, 29 Apr 2000 15:08:30 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:19014 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 29 Apr 2000 15:08:20 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id PAA12159; Sat, 29 Apr 2000 15:03:33 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id PAA51277; Sat, 29 Apr 2000 15:06:34 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA55758 for linux-list; Sat, 29 Apr 2000 14:57:44 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA49353 for ; Sat, 29 Apr 2000 14:57:42 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from mailhost.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 OAA08115 for ; Sat, 29 Apr 2000 14:57:40 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from cacc-23.uni-koblenz.de (cacc-23.uni-koblenz.de [141.26.131.23]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id XAA10024; Sat, 29 Apr 2000 23:57:34 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sat, 29 Apr 2000 07:18:08 +0200 Date: Sat, 29 Apr 2000 07:18:07 +0200 From: Ralf Baechle To: Florian Lohoff Cc: linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: Re: VC exceptions Message-ID: <20000429071807.A491@uni-koblenz.de> References: <20000427165803.H272@paradigm.rfc822.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW" X-Mailer: Mutt 1.0.1i In-Reply-To: <20000427165803.H272@paradigm.rfc822.org>; from flo@rfc822.org on Thu, Apr 27, 2000 at 04:58:03PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii On Thu, Apr 27, 2000 at 04:58:03PM +0200, Florian Lohoff wrote: > i had a conversation with Harald concerning a "strong" time drift > on my R4000 Decstation. He than was astonished on the large > number of VCE. > On a medium loaded machine i see 40-50 VCEDs per second. VCE isn't related to timekeeping and only may delay interrupts minimally; they're very lightweight. In fact keeping the VCE statistics makes a significant part of the overhead. So while the number of VCEs may look high the total price is not too bad. > As a resume - The exception is taken when the index of the 1st and > the 2nd level cache are not identical - Right ? > So - why is there a mismatch ? Might it be due to some invalidation > of the 1st (and not the 2nd) level cache ? > > As the exception is taken quiet often and the "Mips Risc Architecture" states > "Software can avoid the cost of this trap by using constistent virtual > primary cache indexes to access the same physical data". Attached a small test program that generates a large number of vced exceptions. It's causing aliases with the page cache and these are not covered by my patch. > Currently i dont think whats the exact cause of this exception and > a probably optimization which brings this down. The easiest part of the solution is choosing apropriate addresses for all memory mappings without forced addresses, that is mmap(2) and mmap2(2) without MAP_FIXED. A patch which fixes this part of the problem is attached. This patch does not fix other types of aliases like mmap(2) and mmap2(2) with MAP_FIXED or aliases between multiple mappings out of the page cache. Users of R2000 / R3000 / R7000 / R10000 CPUs can ignore this whole thread, those CPUs don't have such incredibly f*cked caches. Ralf --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="vce-gen.c" #include #include #include #include #include #include #include #include #define TESTFILE "hurz" int main(int argc, char *argv[]) { char template[] = "/tmp/mmap-XXXXXX"; int fd, res, i; char *addr1, *addr2; fd = mkstemp(template); if (fd < 0) { perror("Opening testfile failed"); exit(EXIT_FAILURE); } unlink(template); res = write(fd, "x", 1); if (res < 0) { perror("Write failed"); exit(EXIT_FAILURE); } addr1 = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); if (addr1 == MAP_FAILED) { perror("Mapping file failed"); } addr2 = mmap(addr1 + 4096, 4096, PROT_READ|PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, 0); if (addr2 == MAP_FAILED) { perror("Mapping file at alias address failed"); } for (i = 100000000; i; i--) { * (volatile char *) addr1 = 1; * (volatile char *) addr2 = 2; } exit(EXIT_SUCCESS); } --0F1p//8PRICkK4MW-- From owner-linuxmips@oss.sgi.com Sat Apr 29 15:08:49 2000 Received: by oss.sgi.com id ; Sat, 29 Apr 2000 15:08:30 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:20051 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 29 Apr 2000 15:08:11 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id PAA02768; Sat, 29 Apr 2000 15:12:23 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA57321 for linux-list; Sat, 29 Apr 2000 14:57:42 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA39397 for ; Sat, 29 Apr 2000 14:57:41 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from mailhost.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 OAA01404 for ; Sat, 29 Apr 2000 14:57:39 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from cacc-23.uni-koblenz.de (cacc-23.uni-koblenz.de [141.26.131.23]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id XAA10027; Sat, 29 Apr 2000 23:57:37 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sat, 29 Apr 2000 07:33:24 +0200 Date: Sat, 29 Apr 2000 07:33:24 +0200 From: Ralf Baechle To: "Kevin D. Kissell" Cc: Florian Lohoff , linux@cthulhu.engr.sgi.com Subject: Re: VC exceptions Message-ID: <20000429073324.B491@uni-koblenz.de> References: <001001bfb074$22311480$0957d3d4@Ulysses> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <001001bfb074$22311480$0957d3d4@Ulysses>; from kevink@mips.com on Thu, Apr 27, 2000 at 08:12:14PM +0200 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Thu, Apr 27, 2000 at 08:12:14PM +0200, Kevin D. Kissell wrote: > It's a thing that can happen whenever caches are > virtually indexed (for speed) but physically tagged > (for correctness), and caches get large enough for > the algorithm to be wrong once in a while. They can > be avoided with a little thought and overhead in the > assignment of physical pages to virtual addresses. > Gimme a day or so to look at the code, and I'll propose > a fix for Linux... Apropriate placement of mappings in the address space isn't always possible. MAP_FIXED is one example. Aliases in the page cache are harder to handle. If one of the page cache mappings is writable then readers may even observe stale data or in worst case stale data being written to disk. Btw, the creators of the MIPS ABI were smart, they specified a sufficiently large value for SHMLBA such that we don't need to care about SysV IPC. Ralf From owner-linuxmips@oss.sgi.com Sat Apr 29 15:28:09 2000 Received: by oss.sgi.com id ; Sat, 29 Apr 2000 15:27:59 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:40265 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 29 Apr 2000 15:27:45 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id PAA13874; Sat, 29 Apr 2000 15:22:58 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id PAA40025 for linux-list; Sat, 29 Apr 2000 15:22:17 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id PAA58173 for ; Sat, 29 Apr 2000 15:22:15 -0700 (PDT) mail_from (nick@ns.snowman.net) From: nick@ns.snowman.net Received: from ns.snowman.net (ns.snowman.net [63.80.4.34]) 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 PAA06756 for ; Sat, 29 Apr 2000 15:22:10 -0700 (PDT) mail_from (nick@ns.snowman.net) Received: from localhost (nick@localhost) by ns.snowman.net (8.9.1a/8.9.0) with ESMTP id SAA04205; Sat, 29 Apr 2000 18:33:55 -0400 Date: Sat, 29 Apr 2000 18:33:54 -0400 (EDT) To: Ralf Baechle cc: Florian Lohoff , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: Re: VC exceptions In-Reply-To: <20000429071807.A491@uni-koblenz.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing What is a r7000? I've heard of the r8000, is that the same? Nick On Sat, 29 Apr 2000, Ralf Baechle wrote: > On Thu, Apr 27, 2000 at 04:58:03PM +0200, Florian Lohoff wrote: > > > i had a conversation with Harald concerning a "strong" time drift > > on my R4000 Decstation. He than was astonished on the large > > number of VCE. > > > On a medium loaded machine i see 40-50 VCEDs per second. > > VCE isn't related to timekeeping and only may delay interrupts minimally; > they're very lightweight. In fact keeping the VCE statistics makes a > significant part of the overhead. So while the number of VCEs may look > high the total price is not too bad. > > > As a resume - The exception is taken when the index of the 1st and > > the 2nd level cache are not identical - Right ? > > So - why is there a mismatch ? Might it be due to some invalidation > > of the 1st (and not the 2nd) level cache ? > > > > As the exception is taken quiet often and the "Mips Risc Architecture" states > > "Software can avoid the cost of this trap by using constistent virtual > > primary cache indexes to access the same physical data". > > Attached a small test program that generates a large number of vced exceptions. > It's causing aliases with the page cache and these are not covered by my > patch. > > > Currently i dont think whats the exact cause of this exception and > > a probably optimization which brings this down. > > The easiest part of the solution is choosing apropriate addresses for all > memory mappings without forced addresses, that is mmap(2) and mmap2(2) > without MAP_FIXED. A patch which fixes this part of the problem is attached. > > This patch does not fix other types of aliases like mmap(2) and mmap2(2) > with MAP_FIXED or aliases between multiple mappings out of the page cache. > > Users of R2000 / R3000 / R7000 / R10000 CPUs can ignore this whole thread, > those CPUs don't have such incredibly f*cked caches. > > Ralf > From owner-linuxmips@oss.sgi.com Sat Apr 29 15:53:10 2000 Received: by oss.sgi.com id ; Sat, 29 Apr 2000 15:52:51 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:50765 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sat, 29 Apr 2000 15:52:29 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id PAA16218; Sat, 29 Apr 2000 15:47:42 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id PAA54496 for linux-list; Sat, 29 Apr 2000 15:46:40 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id PAA60406 for ; Sat, 29 Apr 2000 15:46:37 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from mailhost.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 PAA02148 for ; Sat, 29 Apr 2000 15:46:35 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from cacc-23.uni-koblenz.de (cacc-23.uni-koblenz.de [141.26.131.23]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id AAA12337; Sun, 30 Apr 2000 00:46:31 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 30 Apr 2000 00:45:58 +0200 Date: Sun, 30 Apr 2000 00:45:58 +0200 From: Ralf Baechle To: nick@ns.snowman.net Cc: Ralf Baechle , Florian Lohoff , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: Re: VC exceptions Message-ID: <20000430004557.A1972@uni-koblenz.de> References: <20000429071807.A491@uni-koblenz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from nick@ns.snowman.net on Sat, Apr 29, 2000 at 06:33:54PM -0400 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sat, Apr 29, 2000 at 06:33:54PM -0400, nick@ns.snowman.net wrote: > What is a r7000? I've heard of the r8000, is that the same? Stupid answer: No, otherwise they'd have the same name :-) The R8000 was some kind of CPU hack which SGI came up with when the R4400 performance was begining to look bad in comparison to the Alphas and the R10000 project still would have taken quite some time. It was featuring roughly the integer performance and twice or trice the fp performance of a 250MHz R4400 while running at just 75 - 90 MHz. It was used only by SGI. The R7000 is kind of a successor to the R5000 featuring roughly R10000 performance but at a much lower price. This was developed by either IDT or QED mostly for embedded purposes. Ralf From owner-linuxmips@oss.sgi.com Sun Apr 30 05:38:36 2000 Received: by oss.sgi.com id ; Sun, 30 Apr 2000 05:38:26 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:4188 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 30 Apr 2000 05:38:07 -0700 Received: from nodin.corp.sgi.com (nodin.corp.sgi.com [192.26.51.193]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id FAA00224; Sun, 30 Apr 2000 05:33:20 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by nodin.corp.sgi.com (980427.SGI.8.8.8/980728.SGI.AUTOCF) via ESMTP id FAA20928; Sun, 30 Apr 2000 05:36:21 -0700 (PDT) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id FAA51517 for linux-list; Sun, 30 Apr 2000 05:25:29 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id FAA27100 for ; Sun, 30 Apr 2000 05:25:19 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from mailhost.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 FAA01710 for ; Sun, 30 Apr 2000 05:25:17 -0700 (PDT) mail_from (ralf@oss.sgi.com) Received: from cacc-14.uni-koblenz.de (cacc-14.uni-koblenz.de [141.26.131.14]) by mailhost.uni-koblenz.de (8.9.3/8.9.3) with ESMTP id OAA12800; Sun, 30 Apr 2000 14:25:13 +0200 (MET DST) Received: by lappi.waldorf-gmbh.de id ; Sun, 30 Apr 2000 14:24:42 +0200 Date: Sun, 30 Apr 2000 14:24:42 +0200 From: Ralf Baechle To: Dominic Sweetman Cc: nick@ns.snowman.net, Florian Lohoff , linux@cthulhu.engr.sgi.com, linux-mips@fnet.fr, linux-mips@vger.rutgers.edu Subject: Re: VC exceptions Message-ID: <20000430142442.A10896@uni-koblenz.de> References: <20000429071807.A491@uni-koblenz.de> <20000430004557.A1972@uni-koblenz.de> <200004301056.LAA12672@mudchute.algor.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200004301056.LAA12672@mudchute.algor.co.uk>; from dom@algor.co.uk on Sun, Apr 30, 2000 at 11:56:03AM +0100 X-Accept-Language: de,en,fr Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Sun, Apr 30, 2000 at 11:56:03AM +0100, Dominic Sweetman wrote: > So the R10000 was desperately complicated, and the RM7000 is simple > but has onchip secondary cache. At the same clock rate, the R10000 is > going to be much faster (and use much more power, and cost much more > to build into a system). I doubt if even the just-announced 400Mhz > RM7000 is really faster overall than a 180MHz R10000 - but Ralf might > have access to some measurements. I don't have hard numbers nor hardware, so I had to rely on the `hard facts' that others had given to me. In any case, the race stays unequal since the newest child of the R10000 family, the 400MHz R12000, will also enter the game soon if it isn't even already shipping. Ralf From owner-linuxmips@oss.sgi.com Sun Apr 30 14:28:07 2000 Received: by oss.sgi.com id ; Sun, 30 Apr 2000 14:27:58 -0700 Received: from pneumatic-tube.sgi.com ([204.94.214.22]:538 "EHLO pneumatic-tube.sgi.com") by oss.sgi.com with ESMTP id ; Sun, 30 Apr 2000 14:27:38 -0700 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA05261; Sun, 30 Apr 2000 14:31:51 -0700 (PDT) mail_from (owner-linux@cthulhu.engr.sgi.com) Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id OAA45306 for linux-list; Sun, 30 Apr 2000 14:17:46 -0700 (PDT) mail_from (owner-linux@relay.engr.sgi.com) Received: from sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via ESMTP id OAA51020 for ; Sun, 30 Apr 2000 14:17:44 -0700 (PDT) mail_from (kevink@mips.com) Received: from mx.mips.com (mx.mips.com [206.31.31.226]) 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 OAA09770 for ; Sun, 30 Apr 2000 14:17:44 -0700 (PDT) mail_from (kevink@mips.com) Received: from newman.mips.com (newman [206.31.31.8]) by mx.mips.com (8.9.3/8.9.0) with ESMTP id OAA28833; Sun, 30 Apr 2000 14:17:44 -0700 (PDT) Received: from satanas (satanas [192.168.236.12]) by newman.mips.com (8.9.3/8.9.0) with SMTP id OAA14816; Sun, 30 Apr 2000 14:17:41 -0700 (PDT) Message-ID: <002801bfb2e9$d0bec2f0$0ceca8c0@satanas.mips.com> From: "Kevin D. Kissell" To: "Ralf Baechle" Cc: "Florian Lohoff" , Subject: Re: VC exceptions Date: Sun, 30 Apr 2000 23:19:41 +0200 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 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-linuxmips@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linuxmips-outgoing On Saturday, April 29, 2000 at 11:57PM, Ralf Baechle wrote: >On Thu, Apr 27, 2000 at 08:12:14PM +0200, Kevin D. Kissell wrote: > >> It's a thing that can happen whenever caches are >> virtually indexed (for speed) but physically tagged >> (for correctness), and caches get large enough for >> the algorithm to be wrong once in a while. They can >> be avoided with a little thought and overhead in the >> assignment of physical pages to virtual addresses. >> Gimme a day or so to look at the code, and I'll propose >> a fix for Linux... Sadly, I've been handed a more urgent (and more to the point, paid) assignment, and won't be able to do anything about this a quickly as I would like. I note that you've posted a patch, Ralf, so one can hope that it will deal with Florian's problem. >Apropriate placement of mappings in the address space isn't always possible. >MAP_FIXED is one example. Aliases in the page cache are harder to handle. >If one of the page cache mappings is writable then readers may even observe >stale data or in worst case stale data being written to disk. mmap() is allowed to fail. I would think that, if someone tries to force an unsafe mapping, one should give them EINVAL if one doesn't want to deal with the special case otherwise, or create a copy-on-write clone in a safe physical page if one wants to be extra-specially nice... Kevin K. .