From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 25 05:16:47 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94A9B16A4BF for ; Mon, 25 Aug 2003 05:16:47 -0700 (PDT) Received: from surfeu.fi (mailbox.surfeu.fi [213.173.154.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83BA243FEC for ; Mon, 25 Aug 2003 05:16:42 -0700 (PDT) (envelope-from vezku@surfeu.fi) Received: from [213.173.154.9] (HELO surfeu.fi) by surfeu.fi (CommuniGate Pro SMTP 3.4.1) with SMTP id 49095956 for freebsd-sparc64@freebsd.org; Mon, 25 Aug 2003 15:16:27 +0300 Received: from 62.142.81.6 (SquirrelMail authenticated user vezku) by redbull.tiscali.fi with HTTP; Mon, 25 Aug 2003 15:10:34 +0300 (EEST) Message-ID: <4848.62.142.81.6.1061813434.squirrel@redbull.tiscali.fi> Date: Mon, 25 Aug 2003 15:10:34 +0300 (EEST) From: To: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: slow UID/GID resolving X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2003 12:16:47 -0000 Hi folks, I'm running FBSD 5.1-RELEASE on SUN E250 ( 2 x Ultrasparc II 450Mhz, 1Gb RAM). There are about 5000 accounts on that machine and the problem follows: File listing is slow. I figured it might have something to do with resolving UID/GID numbers to names. It's not too slow on shell, but SSH file transfer is unbearable. If I try to open a directory with 190 files/subdirs, SSH process eats up all CPU time and it takes 3-4 mins to get the listing. There is only one UID/GID pair used in this dir. CPU load average is otherwise under 10%. I tried both OpenSSH and non-commercial SSH, so it can't be the SSH itself. And since file listing is slow on terminal too, could there be some other problem? Disk load was my next suspection since it has one NFS share, but below is iostat output. The disk in question is da1 (SCSI U160). tty da0 da1 da2 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 0 19 13.96 0 0.01 10.86 0 0.00 0.24 0 0.00 0 0 1 0 99 Is the hardware too slow or am I missing something here? Any hints? -Vesa, SysAdmin From owner-freebsd-sparc64@FreeBSD.ORG Mon Aug 25 11:04:11 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32E5916A4BF for ; Mon, 25 Aug 2003 11:04:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C65443FBD for ; Mon, 25 Aug 2003 11:04:02 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7PI42Up030913 for ; Mon, 25 Aug 2003 11:04:02 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7PI420E030907 for freebsd-sparc64@freebsd.org; Mon, 25 Aug 2003 11:04:02 -0700 (PDT) Date: Mon, 25 Aug 2003 11:04:02 -0700 (PDT) Message-Id: <200308251804.h7PI420E030907@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2003 18:04:11 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/24] sparc64/53670sparc64 pthreads implementation on 5.1-Release sp 1 problem total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/02/03] sparc64/47845sparc64 4 second daily clock drift 1 problem total. From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 02:57:27 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11FFB16A4BF for ; Thu, 28 Aug 2003 02:57:27 -0700 (PDT) Received: from hotmail.com (bay1-f88.bay1.hotmail.com [65.54.245.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84A8D43FCB for ; Thu, 28 Aug 2003 02:57:26 -0700 (PDT) (envelope-from rob_macgregor@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 02:57:26 -0700 Received: from 217.40.34.137 by by1fd.bay1.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 09:57:26 GMT X-Originating-IP: [217.40.34.137] X-Originating-Email: [rob_macgregor@hotmail.com] From: "Rob MacGregor" To: freebsd-sparc64@freebsd.org Date: Thu, 28 Aug 2003 09:57:26 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 09:57:26.0371 (UTC) FILETIME=[C8FFA330:01C36D4A] Subject: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@privacy.net List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 09:57:27 -0000 I have a minor problem with FreeBSD 5.1 on a SunFire V100. I'll skip the fact that the default kernel doesn't support the network interfaces (dc) and I had to recompile the kernel :-) My problem is that, now they're available, neither interface reports it's MAC address (it did when Solaris 9 was installed): # ifconfig dc1 dc1: flags=8802 mtu 1500 inet6 fe80::d41d:8cd9:8f00:b204%dc1 prefixlen 64 scopeid 0x2 ether 00:00:00:00:00:00 media: Ethernet autoselect (100baseTX ) status: active There is another minor problem in that the interfaces are the "wrong" way around. Interface 0 is reported as dc1 and interface 1 as dc0. I'm also getting: dc1: watchdog timeout dc1: failed to force tx and rx to idle state dc1: failed to force tx and rx to idle state A search of the archives indicate it was a known problem (well, irritant) in 5.0. Strangely I don't get this for dc0. Finally, a strange one: warning: no time-of-day clock registered, system time will not be set accurately Now, I've got a few days to play with this system before I have to lock it down and put it live. If anybody has anything they think is worth trying I'll give it a go. TIA Please DO NOT send me ANY email directly unless it's a privacy issue. Reply-to mangled to assist those who don't read the above. -- Rob | What part of "no" was it you didn't understand? _________________________________________________________________ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 03:00:45 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C420516A4BF for ; Thu, 28 Aug 2003 03:00:45 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E48843FFD for ; Thu, 28 Aug 2003 03:00:44 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7SA0dUu053436; Thu, 28 Aug 2003 13:00:40 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7SA0WaH053433; Thu, 28 Aug 2003 13:00:32 +0300 (EEST) Date: Thu, 28 Aug 2003 13:00:32 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030828100032.GI8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20030823180012.GA668@crow.dom2ip.de> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 10:00:45 -0000 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Aug 23, 2003 at 08:00:13PM +0200, Thomas Moestl wrote: >> but i no reslolve next problem. >> in my Ultra AXi motherboard i have: >> 1. 4 rl cards >> 2. dual-port sio card >> 3. VGA+dual ethernet (hme) card >> >> on 5.1-RELEASE on all hme cards (one onboard and two on PCI card) i have >> same mac-address. Width any value OFW option "local-mac-address?". > >That should not be too hard to fix. Do you actually require different >MAC addresses for some network setup? hmmm. no, it's no principial... >> i rebuild kernel to 5-CURRENT width options OFW_NEWPCI, but i have same >> effect. width new problem: rl cards no worked. i have not any arp addresses >> from rl cards. > >The attached patch might fix that, I haven't tested it because of lack >of hardware, though. ohh. rl(4) driver no work at 5.1-CURRENT from *default release=cvs tag=. date=2003.08.22.00.00.00 my dmesg in attachemnt. all segments inserted to true ethernet cards, but in kernel indexes of ethernet cards is broken? P.S. sorry for my bad english -- Maxim Mazurok (MMP2-RIPE) --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.to.sent" Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.1-CURRENT #0: Thu Aug 28 11:06:46 EEST 2003 root@fang.km.ua:/var/src/sys/sparc64/compile/FANG Preloaded elf kernel "/boot/kernel/kernel" at 0xc0372000. Timecounter "tick" frequency 360130765 Hz quality 0 real memory = 536870912 (512 MB) avail memory = 507486208 (483 MB) cpu0: Sun Microsystems UltraSparc-IIi Processor (360.13 MHz CPU) nexus0: pcib0: on nexus0 pcib0: Sabre, impl 0, version 0, ign 0x7c0, bus A DVMA map: 0xc0000000 to 0xc3ffffff pci0: on pcib0 pcib1: at device 1.1 on pci0 pci1: on pcib1 ebus0: revision 0x01 ebus0: mem 0xf1000000-0xf17fffff,0xf0000000-0xf0ffffff at device 1.0 on pci1 ebus0: addr 0x140072f000-0x140072f003,0x140072c000-0x140072c003,0x140072a000-0x140072a003,0x1400728000-0x1400728003,0x1400726000-0x1400726003 (no driver attached) ebus0: addr 0x1400724000-0x1400724003 irq 37 (no driver attached) ebus0: addr 0x1400504000-0x1400504002 (no driver attached) sab0: addr 0x1400400000-0x140040007f irq 43 on ebus0 sabtty0: on sab0 sabtty0: console 9600,8,n,1,- sabtty1: on sab0 sio0 addr 0x14003803f8-0x14003803ff irq 41 on ebus0 sio0: type 16550A sio1 addr 0x14003602f8-0x14003602ff irq 42 on ebus0 sio1: type 16550A ebus0: addr 0x1400700000-0x140070000f,0x140030015c-0x140030015d,0x1400340278-0x1400340287 irq 34 (no driver attached) ebus0: addr 0x1400720000-0x1400720003,0x1400706000-0x140070600f,0x14003203f0-0x14003203f7 irq 39 (no driver attached) eeprom0: addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 eeprom0: hostid 80c62684 ebus0: addr 0x1000000000-0x10000fffff (no driver attached) ebus0: addr 0x1400722000-0x1400722003 (no driver attached) ebus0: addr 0x1400600000-0x1400600003 irq 37,40 (no driver attached) hme0: mem 0x40008000-0x4000ffff at device 1.1 on pci1 hme0: Ethernet address: 08:00:20:c6:26:84 miibus0: on hme0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: port 0x800400-0x8004ff mem 0x40010000-0x400100ff at device 2.0 on pci1 rl0: Ethernet address: 00:30:4f:21:b4:b6 miibus1: on rl0 rlphy0: on miibus1 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl1: port 0x800800-0x8008ff mem 0x40012000-0x400120ff at device 3.0 on pci1 rl1: Ethernet address: 00:30:4f:21:b5:c3 miibus2: on rl1 rlphy1: on miibus2 rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl2: port 0x800c00-0x800cff mem 0x40014000-0x400140ff at device 4.0 on pci1 rl2: Ethernet address: 00:30:4f:21:b4:4e miibus3: on rl2 rlphy2: on miibus3 rlphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib2: at device 1.0 on pci0 pci2: on pcib2 sym0: <875> port 0x1000-0x10ff mem 0x6002000-0x6002fff,0x6000000-0x60000ff at device 1.0 on pci2 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym1: <875> port 0x1400-0x14ff mem 0x6006000-0x6006fff,0x6004000-0x60040ff at device 1.1 on pci2 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking rl3: port 0x1800-0x18ff mem 0x6008000-0x60080ff at device 2.0 on pci2 rl3: Ethernet address: 00:30:4f:21:bc:91 miibus4: on rl3 rlphy3: on miibus4 rlphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto puc0: port 0x1c30-0x1c3f,0x1c20-0x1c27,0x1c18-0x1c1f,0x1c10-0x1c17,0x1c08-0x1c0f,0x1c00-0x1c07 at device 3.0 on pci2 sio2: type 16550A sio3: type 16550A pcib3: at device 4.0 on pci2 pci3: on pcib3 pci3: at device 0.0 (no driver attached) hme1: mem 0x2800000-0x2807fff at device 0.1 on pci3 pcib3: slot 0 INTB is routed to irq 17 hme1: Ethernet address: 08:00:20:c6:26:84 miibus5: on hme1 ukphy0: on miibus5 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci3: at device 1.0 (no driver attached) hme2: mem 0x4800000-0x4807fff at device 1.1 on pci3 pcib3: slot 1 INTB is routed to irq 18 hme2: Ethernet address: 08:00:20:c6:26:84 miibus6: on hme2 ukphy1: on miibus6 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci3: at device 8.0 (no driver attached) Timecounters tick every 10.000 msec ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging unlimited Waiting 5 seconds for SCSI devices to settle da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da0: 2170MB (4445380 512 byte sectors: 255H 63S/T 276C) da1 at sym0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) da1: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C) da2 at sym0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-2 device da2: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) da2: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C) Mounting root from ufs:/dev/da0a arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 rl0: promiscuous mode enabled arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 arp: 193.201.117.14 is on rl2 but got reply from 00:30:4f:21:b6:c4 on rl1 arp: 193.201.117.10 is on rl1 but got reply from 00:0b:fd:45:27:50 on rl0 rl0: promiscuous mode disabled arp: 193.201.117.14 is on rl2 but got reply from 00:30:4f:21:b6:c4 on rl1 rl0: promiscuous mode enabled rl0: promiscuous mode disabled rl0: promiscuous mode enabled --bg08WKrSYDhXBjb5-- From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 03:42:18 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 794CD16A4BF for ; Thu, 28 Aug 2003 03:42:18 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0BC143FEC for ; Thu, 28 Aug 2003 03:42:14 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7SAgDUu057141; Thu, 28 Aug 2003 13:42:13 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7SAgCfn057140; Thu, 28 Aug 2003 13:42:12 +0300 (EEST) Date: Thu, 28 Aug 2003 13:42:12 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030828104212.GL8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828100032.GI8966@km.ua> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 10:42:18 -0000 On Thu, Aug 28, 2003 at 01:00:32PM +0300, Maxim Mazurok wrote: >ohh. >rl(4) driver no work at 5.1-CURRENT from >*default release=cvs tag=. date=2003.08.22.00.00.00 > >my dmesg in attachemnt. >all segments inserted to true ethernet cards, but in kernel indexes of >ethernet cards is broken? > >P.S. sorry for my bad english ops. i wrong. after recompile kernel width options OFW_NEWPCI my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> rl2. you swapped scan of two bloks of pci slot. it's good. but i have one small problem :) rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' can you fix this? and one more Q: you planned to commit this pathes (sio(4) and rl(4)) to CURRENT tree? if i cvsup sources width '*default release=cvs tag=.' your latest patch for sio(4) (sio-s64-20030822.diff) applied width errors. :) -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 03:55:17 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19C8D16A4BF for ; Thu, 28 Aug 2003 03:55:17 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 940CA43FAF for ; Thu, 28 Aug 2003 03:55:15 -0700 (PDT) (envelope-from pete@sorted.org) Received: by radix.sorted.org (Postfix, from userid 501) id 9A6752BA62; Thu, 28 Aug 2003 11:55:13 +0100 (BST) Date: Thu, 28 Aug 2003 11:55:13 +0100 From: Pete Bentley To: freebsd-sparc64@freebsd.org Message-ID: <20030828105513.GB32941@sorted.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 10:55:17 -0000 On Thu, Aug 28, 2003 at 09:57:26AM +0000, Rob MacGregor wrote: > My problem is that, now they're available, neither interface reports it's > MAC address (it did when Solaris 9 was installed): Yup, see the "Netra X1" threads recently, they're basically the same hardware. Interestingly, I have another X1 running Solaris 9 and I get the impression these interfaces may not have a MAC address EEPROM at all... Under Solaris, these interfaces appear to ignore the local-mac-address? eeprom setting. Dmfe0 gets the host's MAC address while dmfe1 gets that address plus 1, regardless of the EEPROM setting, ie:- Sun Netra X1 (UltraSPARC-IIe 400MHz), No Keyboard OpenBoot 4.0, 640 MB memory installed, Serial #50737502. Ethernet address 0:3:ba:6:31:5e, Host ID: 8306315e. [...] Aug 27 17:46:40 peach gld: [ID 944156 kern.info] dmfe0: Davicom DM9102 (v1.1): type "ether" mac address 00:03:ba:06:31:5e Aug 27 17:46:40 peach gld: [ID 944156 kern.info] dmfe1: Davicom DM9102 (v1.1): type "ether" mac address 00:03:ba:06:31:5f This is regardless of the OBP version (I just upgraded that box from 1.0.1 to 1.0.18 - not done the FreeBSD box yet). My current workaround is that I explicitly set the MAC address using ifconfig from a script in /etc/rc.d which works fine. There is also a patch to the dc driver that Marius Strobl posted on Aug 22 that should set the MAC address to that of the host... Not tried it yet due to hardware/work issues but should have some results later today or tomorrow. > There is another minor problem in that the interfaces are the "wrong" way > around. Interface 0 is reported as dc1 and interface 1 as dc0. Do you have "options OFW_NEWPCI" in your kernel config? If not, try it as this should make the probing order more like that of Solaris. (Actually, I believe that is the default now so you may just need a newer -current) > dc1: watchdog timeout > dc1: failed to force tx and rx to idle state > dc1: failed to force tx and rx to idle state Ditto, but it seems like a harmless timeout when configuring the interface. > Finally, a strange one: > > warning: no time-of-day clock registered, system time will not be set > accurately Yup, there's no driver for the time-of-day clock in these beasties. Even Solaris 8 needed a patch to add one. End result, the machine has no idea about the passage of time when it's not running an OS. Workaround: Set the time at boot time with ntpdate or rdate and then run NTP. When I get a moment (ha), I'll go see if there's a driver we can crib from in the other BSDs or Lin*x. > Now, I've got a few days to play with this system before I have to lock it > down and put it live. If anybody has anything they think is worth trying > I'll give it a go. Depends what you mean by "live". FreeBSD/sparc64 is definitely getting there but (at least on this low-end hardware) I don't think it's production quality yet... I had one IOMMU-related panic last night, but unfortunately lost the details (unexpectedly short xterm scrollback, sorry) about an hour *after* it completed a cvsup+make world... And then there was the vfork()/perl weirdness just recently. I'd say hammer on it and track down/report/fix bugs but don't use it for an application where crashes are unacceptable. Pete. PS Anyone know a source for drive sleds and cooling fans for the X1 in the UK? Cheap and cheerful 3rd party stuff is fine, otherwise I guess I'll have to go through the Sun VAR we use at work and pay their prices. From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 06:03:56 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A0BE16A4C0 for ; Thu, 28 Aug 2003 06:03:56 -0700 (PDT) Received: from hotmail.com (bay1-f77.bay1.hotmail.com [65.54.245.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B10E43FE9 for ; Thu, 28 Aug 2003 06:03:53 -0700 (PDT) (envelope-from rob_macgregor@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 06:03:53 -0700 Received: from 217.40.34.137 by by1fd.bay1.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 13:03:53 GMT X-Originating-IP: [217.40.34.137] X-Originating-Email: [rob_macgregor@hotmail.com] From: "Rob MacGregor" To: freebsd-sparc64@freebsd.org Date: Thu, 28 Aug 2003 13:03:53 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 13:03:53.0302 (UTC) FILETIME=[D4EDD760:01C36D64] Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@privacy.net List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 13:03:56 -0000 >From: Pete Bentley > >Depends what you mean by "live". FreeBSD/sparc64 is definitely >getting there but (at least on this low-end hardware) I don't think >it's production quality yet... > >I had one IOMMU-related panic last night, but unfortunately lost >the details (unexpectedly short xterm scrollback, sorry) about >an hour *after* it completed a cvsup+make world... And then there >was the vfork()/perl weirdness just recently. > >I'd say hammer on it and track down/report/fix bugs but don't use >it for an application where crashes are unacceptable. Well, I've just proven that any attempt to ping causes an IOMMU fault :-( I'll be using NetBSD on this box by the looks of things. If I get another box and enough spare time I'll raise a bug report. Please DO NOT send me ANY email directly unless it's a privacy issue. Reply-to mangled to assist those who don't read the above. -- Rob | What part of "no" was it you didn't understand? _________________________________________________________________ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 06:12:05 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA6DF16A4BF for ; Thu, 28 Aug 2003 06:12:05 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E3C343FFB for ; Thu, 28 Aug 2003 06:12:04 -0700 (PDT) (envelope-from pete@sorted.org) Received: by radix.sorted.org (Postfix, from userid 501) id F02722BA62; Thu, 28 Aug 2003 14:12:02 +0100 (BST) Date: Thu, 28 Aug 2003 14:12:02 +0100 From: Pete Bentley To: freebsd-sparc64@freebsd.org Message-ID: <20030828131202.GC32941@sorted.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 13:12:05 -0000 On Thu, Aug 28, 2003 at 01:03:53PM +0000, Rob MacGregor wrote: > Well, I've just proven that any attempt to ping causes an IOMMU fault :-( Really? Not on my X1 it doesn't... You *did* set the MAC address to something non-zero before trying that, right? > I'll be using NetBSD on this box by the looks of things. If I get another > box and enough spare time I'll raise a bug report. For what it's worth, I also had trouble with NetBSD on the X1 so decided to persevere with FreeBSD. YMMV. Pete. From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 07:10:09 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C1DA16A4BF for ; Thu, 28 Aug 2003 07:10:09 -0700 (PDT) Received: from hotmail.com (bay1-f34.bay1.hotmail.com [65.54.245.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22E0843FF5 for ; Thu, 28 Aug 2003 07:10:09 -0700 (PDT) (envelope-from rob_macgregor@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 07:10:05 -0700 Received: from 217.40.34.137 by by1fd.bay1.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 14:10:04 GMT X-Originating-IP: [217.40.34.137] X-Originating-Email: [rob_macgregor@hotmail.com] From: "Rob MacGregor" To: freebsd-sparc64@freebsd.org Date: Thu, 28 Aug 2003 14:10:04 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 14:10:05.0180 (UTC) FILETIME=[145A53C0:01C36D6E] Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@privacy.net List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 14:10:09 -0000 >From: Pete Bentley > >Really? Not on my X1 it doesn't... > >You *did* set the MAC address to something non-zero before trying >that, right? Yeah. I tried with and without. No matter what I do after a ping, even a single ping packet, it does: IOMMU fault virtual address 0x63206000 panic: pcib: uncorrectable DMA error AFAR 0xc0758818 AFSR 0x4100ff0060800000 cpuid = 0; > > I'll be using NetBSD on this box by the looks of things. If I get >another > > box and enough spare time I'll raise a bug report. > >For what it's worth, I also had trouble with NetBSD on the X1 >so decided to persevere with FreeBSD. YMMV. Not good news. I may end up having to install Solaris on this box in that case, something I want to avoid. Any other OSs worth suggesting? Please DO NOT send me ANY email directly unless it's a privacy issue. Reply-to mangled to assist those who don't read the above. -- Rob | What part of "no" was it you didn't understand? _________________________________________________________________ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 07:18:55 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CE8A16A4BF for ; Thu, 28 Aug 2003 07:18:55 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BDB243FF5 for ; Thu, 28 Aug 2003 07:18:52 -0700 (PDT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 934FA2ED416; Thu, 28 Aug 2003 07:18:52 -0700 (PDT) Date: Thu, 28 Aug 2003 16:18:52 +0200 From: Maxime Henrion To: me@privacy.net Message-ID: <20030828141852.GE28730@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-sparc64@freebsd.org Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 14:18:55 -0000 Rob MacGregor wrote: > >From: Pete Bentley > > > >Really? Not on my X1 it doesn't... > > > >You *did* set the MAC address to something non-zero before trying > >that, right? > > Yeah. I tried with and without. No matter what I do after a ping, even a > single ping packet, it does: > > IOMMU fault virtual address 0x63206000 > panic: pcib: uncorrectable DMA error AFAR 0xc0758818 AFSR 0x4100ff0060800000 > cpuid = 0; You need -CURRENT for the dc(4) driver to have a chance to work on sparc64. I have converted it to the busdma and made it endian-clean after 5.1-RELEASE, and without these modifications it has 0 chances of working, hence why it wasn't included in 5.1-RELEASE GENERIC kernel. You'll still have the MAC address problem though. That should be fixed hopefully sometime soon. Cheers, Maxime From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 07:19:49 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D049716A4BF for ; Thu, 28 Aug 2003 07:19:49 -0700 (PDT) Received: from hotmail.com (bay1-f28.bay1.hotmail.com [65.54.245.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCC0E43FB1 for ; Thu, 28 Aug 2003 07:19:46 -0700 (PDT) (envelope-from rob_macgregor@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 07:19:46 -0700 Received: from 217.40.34.137 by by1fd.bay1.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 14:19:46 GMT X-Originating-IP: [217.40.34.137] X-Originating-Email: [rob_macgregor@hotmail.com] From: "Rob MacGregor" To: freebsd-sparc64@freebsd.org Date: Thu, 28 Aug 2003 14:19:46 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 14:19:46.0566 (UTC) FILETIME=[6EE2CA60:01C36D6F] Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@privacy.net List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 14:19:49 -0000 >From: "Rob MacGregor" > >Yeah. I tried with and without. No matter what I do after a ping, even a >single ping packet, it does: > >IOMMU fault virtual address 0x63206000 >panic: pcib: uncorrectable DMA error AFAR 0xc0758818 AFSR >0x4100ff0060800000 >cpuid = 0; I take it back, simply assigning an IP address seems to do it :-( Just give it enough time and it'll die. Enough time being roughly the amount of time between the interface being brought up during boot and the boot process almost finishing. Doesn't quite get to the login prompt before: IOMMU fault virtual address 0x63206000 panic: pcib: uncorrectable DMA error AFAR 0xc0758818 AFSR 0x4100ff0060800000 cpuid = 0; If I can get it stable and talking I'll try cvsuping to HEAD. Failing that I'll try NetBSD and see if I've got some bad hardware here. Please DO NOT send me ANY email directly unless it's a privacy issue. Reply-to mangled to assist those who don't read the above. -- Rob | What part of "no" was it you didn't understand? _________________________________________________________________ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 07:33:01 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 570BE16A4BF for ; Thu, 28 Aug 2003 07:33:01 -0700 (PDT) Received: from hotmail.com (bay1-f28.bay1.hotmail.com [65.54.245.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCFDC43FA3 for ; Thu, 28 Aug 2003 07:33:00 -0700 (PDT) (envelope-from rob_macgregor@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 07:33:00 -0700 Received: from 217.40.34.137 by by1fd.bay1.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 14:33:00 GMT X-Originating-IP: [217.40.34.137] X-Originating-Email: [rob_macgregor@hotmail.com] From: "Rob MacGregor" To: freebsd-sparc64@freebsd.org Date: Thu, 28 Aug 2003 14:33:00 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 14:33:00.0566 (UTC) FILETIME=[48259360:01C36D71] Subject: Re: FreeBSD 5.1-RELEASE on SunFire V100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@privacy.net List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 14:33:01 -0000 >From: Maxime Henrion > >You need -CURRENT for the dc(4) driver to have a chance to work on >sparc64. I have converted it to the busdma and made it endian-clean >after 5.1-RELEASE, and without these modifications it has 0 chances of >working, hence why it wasn't included in 5.1-RELEASE GENERIC kernel. Ok, I'll see about dragging a copy of the source from HEAD across from another system. >You'll still have the MAC address problem though. That should be fixed >hopefully sometime soon. As long as the system is mostly stable I'm not worried about having to do workarounds :-) Please DO NOT send me ANY email directly unless it's a privacy issue. Reply-to mangled to assist those who don't read the above. -- Rob | What part of "no" was it you didn't understand? _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 08:59:23 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9858716A4BF for ; Thu, 28 Aug 2003 08:59:23 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3FC4E43FEA for ; Thu, 28 Aug 2003 08:59:22 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 20708 invoked by uid 65534); 28 Aug 2003 15:59:20 -0000 Received: from p508E689E.dip.t-dialin.net (EHLO timesink.dyndns.org) (80.142.104.158) by mail.gmx.net (mp025) with SMTP; 28 Aug 2003 17:59:20 +0200 Received: by galatea (Postfix, from userid 1001) id B245CCD; Thu, 28 Aug 2003 17:59:28 +0200 (CEST) Date: Thu, 28 Aug 2003 17:59:28 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030828155927.GA707@timesink.dyndns.org> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828104212.GL8966@km.ua> User-Agent: Mutt/1.4.1i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 15:59:23 -0000 On Thu, 2003/08/28 at 13:42:12 +0300, Maxim Mazurok wrote: > On Thu, Aug 28, 2003 at 01:00:32PM +0300, Maxim Mazurok wrote: > > >ohh. > >rl(4) driver no work at 5.1-CURRENT from > >*default release=cvs tag=. date=2003.08.22.00.00.00 > > > >my dmesg in attachemnt. > >all segments inserted to true ethernet cards, but in kernel indexes of > >ethernet cards is broken? > > > >P.S. sorry for my bad english > > ops. i wrong. > after recompile kernel width > options OFW_NEWPCI > my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> > rl2. > you swapped scan of two bloks of pci slot. > it's good. > but i have one small problem :) > rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' > can you fix this? That's very strange. So you cannot see them in tcpdump if you do not put the interface in promiscuous mode (by using the -p argument to tcpdump)? Can you receive broadcast packets (e.g. a broadcast ping) at all? > and one more Q: you planned to commit this pathes (sio(4) and rl(4)) to CURRENT tree? > if i cvsup sources width '*default release=cvs tag=.' your latest patch for > sio(4) (sio-s64-20030822.diff) applied width errors. :) I'll commit the rl fix after review. The sio patch is unlikely to get committed, but Marcel's uart driver, which will hopefully hit the tree soon, will take care of that. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 10:47:19 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40AB216A4BF for ; Thu, 28 Aug 2003 10:47:19 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 793F043FF2 for ; Thu, 28 Aug 2003 10:47:17 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7SHlFUu090392; Thu, 28 Aug 2003 20:47:15 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7SHlFY2090391; Thu, 28 Aug 2003 20:47:15 +0300 (EEST) Date: Thu, 28 Aug 2003 20:47:15 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030828174715.GR8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> <20030828155927.GA707@timesink.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828155927.GA707@timesink.dyndns.org> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 17:47:19 -0000 On Thu, Aug 28, 2003 at 05:59:28PM +0200, Thomas Moestl wrote: >> >ohh. >> >rl(4) driver no work at 5.1-CURRENT from >> >*default release=cvs tag=. date=2003.08.22.00.00.00 >> > >> >my dmesg in attachemnt. >> >all segments inserted to true ethernet cards, but in kernel indexes of >> >ethernet cards is broken? >> > >> >P.S. sorry for my bad english >> >> ops. i wrong. >> after recompile kernel width >> options OFW_NEWPCI >> my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> >> rl2. >> you swapped scan of two bloks of pci slot. >> it's good. >> but i have one small problem :) >> rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' >> can you fix this? > >That's very strange. So you cannot see them in tcpdump if you do not >put the interface in promiscuous mode (by using the -p argument to >tcpdump)? Can you receive broadcast packets (e.g. a broadcast ping) at >all? so... experiment: root@fang:~#ifconfig rl3 rl3: flags=8843 mtu 1500 options=8 inet 193.201.116.249 netmask 0xfffffffc broadcast 193.201.116.251 ether 00:30:4f:21:bc:91 media: Ethernet 10baseT/UTP status: active root@fang:~#tcpdump -p -n -i rl3 tcpdump: listening on rl3 20:44:38.398657 193.201.116.250 > 255.255.255.255: icmp: echo request 20:44:40.396496 193.201.116.250 > 255.255.255.255: icmp: echo request 20:44:42.396451 193.201.116.250 > 255.255.255.255: icmp: echo request 20:44:44.396559 193.201.116.250 > 255.255.255.255: icmp: echo request 20:44:46.396483 193.201.116.250 > 255.255.255.255: icmp: echo request 20:45:06.189118 193.201.116.250 > 255.255.255.255: icmp: echo request 20:45:08.188716 193.201.116.250 > 255.255.255.255: icmp: echo request 20:45:10.188696 193.201.116.250 > 255.255.255.255: icmp: echo request 20:45:12.188856 193.201.116.250 > 255.255.255.255: icmp: echo request 20:45:14.188944 193.201.116.250 > 255.255.255.255: icmp: echo request ^C 10 packets received by filter 0 packets dropped by kernel remote side - cisco 25xx. ap-ec#sh run in e 0 Building configuration... Current configuration : 105 bytes ! interface Ethernet0 ip address 193.201.116.250 255.255.255.252 no ip mroute-cache no keepalive end ap-ec#ping 193.201.116.251 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 193.201.116.251, timeout is 2 seconds: ..... ap-ec#ping 193.201.116.249 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 193.201.116.249, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) ap-ec#ping 193.201.116.248 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 193.201.116.248, timeout is 2 seconds: ..... so? >> and one more Q: you planned to commit this pathes (sio(4) and rl(4)) to CURRENT tree? >> if i cvsup sources width '*default release=cvs tag=.' your latest patch for >> sio(4) (sio-s64-20030822.diff) applied width errors. :) > >I'll commit the rl fix after review. The sio patch is unlikely to get >committed, but Marcel's uart driver, which will hopefully hit the tree >soon, will take care of that. ok -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 10:53:39 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09A1B16A4BF for ; Thu, 28 Aug 2003 10:53:39 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BCC043FDF for ; Thu, 28 Aug 2003 10:53:37 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7SHraUu091180; Thu, 28 Aug 2003 20:53:36 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7SHranO091179; Thu, 28 Aug 2003 20:53:36 +0300 (EEST) Date: Thu, 28 Aug 2003 20:53:36 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030828175336.GS8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828104212.GL8966@km.ua> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 17:53:39 -0000 On Thu, Aug 28, 2003 at 01:42:12PM +0300, Maxim Mazurok wrote: >ops. i wrong. >after recompile kernel width >options OFW_NEWPCI >my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> >rl2. >you swapped scan of two bloks of pci slot. >it's good. >but i have one small problem :) >rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' >can you fix this? >and one more Q: you planned to commit this pathes (sio(4) and rl(4)) to CURRENT tree? >if i cvsup sources width '*default release=cvs tag=.' your latest patch for >sio(4) (sio-s64-20030822.diff) applied width errors. :) oops. i have new problem :) root@fang:~#ipfw list ipfw: getsockopt(IP_FW_GET): Bad address root@fang:~#ipfw show ipfw: getsockopt(IP_FW_GET): Bad address root@fang:~#cat /var/run/dmesg.boot | grep ipfw ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to accept, logging unlimited root@fang:~#kldstat Id Refs Address Size Name 1 3 0xc0000000 36e130 kernel 3 1 0xc3088000 120000 nfsserver.ko 4 1 0xc2f6e000 11a000 if_ppp.ko -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 13:45:56 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D71D016A4BF for ; Thu, 28 Aug 2003 13:45:56 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 32D1D43FDF for ; Thu, 28 Aug 2003 13:45:55 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 8832 invoked by uid 65534); 28 Aug 2003 20:45:53 -0000 Received: from p508E5BC6.dip.t-dialin.net (EHLO timesink.dyndns.org) (80.142.91.198) by mail.gmx.net (mp004) with SMTP; 28 Aug 2003 22:45:53 +0200 Received: by galatea (Postfix, from userid 1001) id 0E610BD; Thu, 28 Aug 2003 22:46:02 +0200 (CEST) Date: Thu, 28 Aug 2003 22:46:02 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030828204602.GA709@timesink.dyndns.org> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> <20030828175336.GS8966@km.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20030828175336.GS8966@km.ua> User-Agent: Mutt/1.4.1i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 20:45:57 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, 2003/08/28 at 20:53:36 +0300, Maxim Mazurok wrote: > On Thu, Aug 28, 2003 at 01:42:12PM +0300, Maxim Mazurok wrote: > > >ops. i wrong. > >after recompile kernel width > >options OFW_NEWPCI > >my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> > >rl2. > >you swapped scan of two bloks of pci slot. > >it's good. > >but i have one small problem :) > >rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' > >can you fix this? > >and one more Q: you planned to commit this pathes (sio(4) and rl(4)) to CURRENT tree? > >if i cvsup sources width '*default release=cvs tag=.' your latest patch for > >sio(4) (sio-s64-20030822.diff) applied width errors. :) > > oops. i have new problem :) Try the attached patch. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ipfw-socklen.diff" Index: ipfw2.c =================================================================== RCS file: /vol/ncvs/src/sbin/ipfw/ipfw2.c,v retrieving revision 1.38 diff -u -r1.38 ipfw2.c --- ipfw2.c 21 Jul 2003 09:56:05 -0000 1.38 +++ ipfw2.c 21 Jul 2003 23:42:21 -0000 @@ -363,7 +363,7 @@ * conditionally runs the command. */ static int -do_cmd(int optname, void *optval, socklen_t optlen) +do_cmd(int optname, void *optval, uintptr_t optlen) { static int s = -1; /* the socket */ int i; @@ -1556,7 +1556,7 @@ nbytes = sizeof(struct ip_fw); if ((data = calloc(1, nbytes)) == NULL) err(EX_OSERR, "calloc"); - if (do_cmd(IP_FW_GET, data, (socklen_t)&nbytes) < 0) + if (do_cmd(IP_FW_GET, data, (uintptr_t)&nbytes) < 0) err(EX_OSERR, "getsockopt(IP_FW_GET)"); bcopy(&((struct ip_fw *)data)->next_rule, &set_disable, sizeof(set_disable)); @@ -1701,7 +1701,7 @@ nbytes = nalloc; if ((data = realloc(data, nbytes)) == NULL) err(EX_OSERR, "realloc"); - if (do_cmd(ocmd, data, (socklen_t)&nbytes) < 0) + if (do_cmd(ocmd, data, (uintptr_t)&nbytes) < 0) err(EX_OSERR, "getsockopt(IP_%s_GET)", do_pipe ? "DUMMYNET" : "FW"); } @@ -3493,7 +3493,7 @@ rule->cmd_len = (uint32_t *)dst - (uint32_t *)(rule->cmd); i = (char *)dst - (char *)rule; - if (do_cmd(IP_FW_ADD, rule, (socklen_t)&i) == -1) + if (do_cmd(IP_FW_ADD, rule, (uintptr_t)&i) == -1) err(EX_UNAVAILABLE, "getsockopt(%s)", "IP_FW_ADD"); if (!do_quiet) show_ipfw(rule, 0, 0); --yrj/dFKFPuw6o+aM-- From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 14:02:52 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9069F16A4BF for ; Thu, 28 Aug 2003 14:02:52 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17EBA43FFD for ; Thu, 28 Aug 2003 14:02:51 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7SL2nUu006401; Fri, 29 Aug 2003 00:02:49 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7SL2nEY006400; Fri, 29 Aug 2003 00:02:49 +0300 (EEST) Date: Fri, 29 Aug 2003 00:02:49 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030828210249.GX8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> <20030828175336.GS8966@km.ua> <20030828204602.GA709@timesink.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828204602.GA709@timesink.dyndns.org> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 21:02:52 -0000 On Thu, Aug 28, 2003 at 10:46:02PM +0200, Thomas Moestl wrote: >> >ops. i wrong. >> >after recompile kernel width >> >options OFW_NEWPCI >> >my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> >> >rl2. >> >you swapped scan of two bloks of pci slot. >> >it's good. >> >but i have one small problem :) >> >rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' >> >can you fix this? >> >and one more Q: you planned to commit this pathes (sio(4) and rl(4)) to CURRENT tree? >> >if i cvsup sources width '*default release=cvs tag=.' your latest patch for >> >sio(4) (sio-s64-20030822.diff) applied width errors. :) >> >> oops. i have new problem :) > >Try the attached patch. it's worked! tnx! resume: i have 3 patch and one problem :) -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 15:05:56 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3166516A4BF for ; Thu, 28 Aug 2003 15:05:56 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id E06B443FDD for ; Thu, 28 Aug 2003 15:05:54 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 14952 invoked by uid 65534); 28 Aug 2003 22:05:53 -0000 Received: from p508E5BC6.dip.t-dialin.net (EHLO timesink.dyndns.org) (80.142.91.198) by mail.gmx.net (mp012) with SMTP; 29 Aug 2003 00:05:53 +0200 Received: by galatea (Postfix, from userid 1001) id 56566BD; Fri, 29 Aug 2003 00:06:03 +0200 (CEST) Date: Fri, 29 Aug 2003 00:06:03 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030828220603.GC709@timesink.dyndns.org> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline In-Reply-To: <20030828104212.GL8966@km.ua> User-Agent: Mutt/1.4.1i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 22:05:56 -0000 --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, 2003/08/28 at 13:42:12 +0300, Maxim Mazurok wrote: > On Thu, Aug 28, 2003 at 01:00:32PM +0300, Maxim Mazurok wrote: > > >ohh. > >rl(4) driver no work at 5.1-CURRENT from > >*default release=cvs tag=. date=2003.08.22.00.00.00 > > > >my dmesg in attachemnt. > >all segments inserted to true ethernet cards, but in kernel indexes of > >ethernet cards is broken? > > > >P.S. sorry for my bad english > > ops. i wrong. > after recompile kernel width > options OFW_NEWPCI > my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> > rl2. > you swapped scan of two bloks of pci slot. > it's good. > but i have one small problem :) > rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' > can you fix this? Hmmm, actually, are you sure that you have applied the patch to if_rl.c I sent previously? I just noticed that it wouldn't even compile due to a change that I forgot (sorry about that); updated version attached. - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rl-enaddr.diff" Index: if_rl.c =================================================================== RCS file: /vol/ncvs/src/sys/pci/if_rl.c,v retrieving revision 1.113 diff -u -r1.113 if_rl.c --- if_rl.c 22 Aug 2003 07:13:21 -0000 1.113 +++ if_rl.c 28 Aug 2003 21:34:37 -0000 @@ -2658,6 +2658,7 @@ struct ifnet *ifp = &sc->arpcom.ac_if; struct mii_data *mii; u_int32_t rxcfg = 0; + int i; RL_LOCK(sc); mii = device_get_softc(sc->rl_miibus); @@ -2673,8 +2674,9 @@ * register write enable" mode to modify the ID registers. */ CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_WRITECFG); - CSR_WRITE_4(sc, RL_IDR0, *(u_int32_t *)(&sc->arpcom.ac_enaddr[0])); - CSR_WRITE_4(sc, RL_IDR4, *(u_int32_t *)(&sc->arpcom.ac_enaddr[4])); + /* Init our MAC address */ + for (i = 0; i < ETHER_ADDR_LEN; i++) + CSR_WRITE_1(sc, RL_IDR0 + i, sc->arpcom.ac_enaddr[i]); CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF); /* --oLBj+sq0vYjzfsbl-- From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 15:40:17 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86BFB16A4BF for ; Thu, 28 Aug 2003 15:40:17 -0700 (PDT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3532843FE3 for ; Thu, 28 Aug 2003 15:40:13 -0700 (PDT) (envelope-from tmoestl@gmx.net) Received: (qmail 9324 invoked by uid 65534); 28 Aug 2003 22:40:12 -0000 Received: from p508E5BC6.dip.t-dialin.net (EHLO timesink.dyndns.org) (80.142.91.198) by mail.gmx.net (mp016) with SMTP; 29 Aug 2003 00:40:12 +0200 Received: by galatea (Postfix, from userid 1001) id 3F67FBD; Fri, 29 Aug 2003 00:40:22 +0200 (CEST) Date: Fri, 29 Aug 2003 00:40:22 +0200 From: Thomas Moestl To: Maxim Mazurok Message-ID: <20030828224021.GD709@timesink.dyndns.org> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828104212.GL8966@km.ua> User-Agent: Mutt/1.4.1i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 22:40:17 -0000 On Thu, 2003/08/28 at 13:42:12 +0300, Maxim Mazurok wrote: > if i cvsup sources width '*default release=cvs tag=.' your latest patch for > sio(4) (sio-s64-20030822.diff) applied width errors. :) An up-to-date diff is available at http://people.freebsd.org/~tmm/sio-s64-20030829.diff - Thomas -- Thomas Moestl http://www.tu-bs.de/~y0015675/ http://people.FreeBSD.org/~tmm/ PGP fingerprint: 1C97 A604 2BD0 E492 51D0 9C0F 1FE6 4F1D 419C 776C From owner-freebsd-sparc64@FreeBSD.ORG Thu Aug 28 15:48:47 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D213216A4BF for ; Thu, 28 Aug 2003 15:48:47 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 796C843F93 for ; Thu, 28 Aug 2003 15:48:46 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h7SMmjUu014336; Fri, 29 Aug 2003 01:48:45 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7SMmjhC014335; Fri, 29 Aug 2003 01:48:45 +0300 (EEST) Date: Fri, 29 Aug 2003 01:48:45 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030828224844.GY8966@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030822131349.GD21392@km.ua> <20030822145956.GA673@crow.dom2ip.de> <20030822185956.GL21392@km.ua> <20030823180012.GA668@crow.dom2ip.de> <20030828100032.GI8966@km.ua> <20030828104212.GL8966@km.ua> <20030828220603.GC709@timesink.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030828220603.GC709@timesink.dyndns.org> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 22:48:47 -0000 On Fri, Aug 29, 2003 at 12:06:03AM +0200, Thomas Moestl wrote: >> >ohh. >> >rl(4) driver no work at 5.1-CURRENT from >> >*default release=cvs tag=. date=2003.08.22.00.00.00 >> > >> >my dmesg in attachemnt. >> >all segments inserted to true ethernet cards, but in kernel indexes of >> >ethernet cards is broken? >> > >> >P.S. sorry for my bad english >> >> ops. i wrong. >> after recompile kernel width >> options OFW_NEWPCI >> my ethernet cards change numbers. rl0 ->rl3, rl1 -> rl0, rl2 -> rl1, rl3 -> >> rl2. >> you swapped scan of two bloks of pci slot. >> it's good. >> but i have one small problem :) >> rl cards in my system see any remote arp's only if i run 'tcpdump -n -i rl1' >> can you fix this? > >Hmmm, actually, are you sure that you have applied the patch to >if_rl.c I sent previously? I just noticed that it wouldn't even >compile due to a change that I forgot (sorry about that); updated >version attached. yes, i applied this patch. i small known C and i patch your patch :) -- Maxim Mazurok (MMP2-RIPE) From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 29 14:16:42 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E210C16A4BF for ; Fri, 29 Aug 2003 14:16:42 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 753FD43FAF for ; Fri, 29 Aug 2003 14:16:41 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7TLGfwO001273 for ; Fri, 29 Aug 2003 14:16:41 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h7TLGfhs000665 for ; Fri, 29 Aug 2003 14:16:41 -0700 (PDT) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h7TLGfhl000664 for sparc64@FreeBSD.org; Fri, 29 Aug 2003 14:16:41 -0700 (PDT) (envelope-from marcel) Date: Fri, 29 Aug 2003 14:16:41 -0700 From: Marcel Moolenaar To: sparc64@FreeBSD.org Message-ID: <20030829211641.GA628@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Q: resource range for SBus oddity X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 21:16:43 -0000 Gang, I'm playing with uart(4) on Jake's u2, which has 2 zs(4) devices attached to sbus. A GENERIC kernel gives me the following: : zs0: mem 0x1100000-0x1100003 irq 2024 on sbus0 zstty0: on zs0 zstty0: console 9600,8,n,1,- zstty1: on zs0 sbus0: , type serial (no driver attached) : A kernel with uart(4) yields currently (it's a WIP): : puc0: mem 0x1100000-0x1100003 irq 2024 on sbus0 uart0: on puc0 uart0: console uart1: on puc0 puc1: mem 0x1000000-0x1000003 irq 2024 on sbus0 uart2: on puc1 uart3: on puc1 : As you can see, the memory I/O resource is 4 bytes wide. However, the channel A registers on the z8530 chip are at offsets 4 (control) and 6 (data). This lies outside the reserved range. I would think that with 2 channels and 2 addressable registers per channel we would be using offsets 0-3. Question: Is there an implied multiplication or division factor? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 29 17:30:54 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9341B16A4BF for ; Fri, 29 Aug 2003 17:30:54 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FA3F43FF7 for ; Fri, 29 Aug 2003 17:30:53 -0700 (PDT) (envelope-from pete@sorted.org) Received: from sorted.org (bubble.sorted.org [194.70.217.145]) by radix.sorted.org (Postfix) with ESMTP id 7F4B02E364 for ; Sat, 30 Aug 2003 01:30:48 +0100 (BST) Date: Sat, 30 Aug 2003 01:30:50 +0100 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Pete Bentley To: freebsd-sparc64@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20030822013101.A24406@newtrinity.zeist.de> Message-Id: <352D3384-DA81-11D7-8C90-000A959F6E56@sorted.org> X-Mailer: Apple Mail (2.552) Subject: Re: Netra X1 - Status query and stupid question X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2003 00:30:54 -0000 On Friday, August 22, 2003, at 12:31 AM, Marius Strobl wrote: > Just curious, could you please try the attached patch and check if the > MAC addresses get set and then set local-mac-address in the > OpenFirmware > and check again if the dc interfaces get different MAC addresses? Sorry for being a bit slow here, had other issues to deal with. I've just tried this patch - applies fine, builds fine (prevents the dc module from building, but I simply disabled that as a workaround). Tried it with and without local-mac-address set and with versions 1.0.1 and 1.0.18 of the Netra boot PROM and it works the same in all 4 instances... Works the same as Solaris 9, that is dc0 gets the hosts's MAC address and dc1 gets that address 'plus 1' (see output below). So in effect, local-mac-address is ignored but in a way that isn't likely to matter. Oh, and I guess my earlier reading of the patch was wrong too, sorry. Thanks for the patch - definitely better than hacking via an rc.d script. Pete. ------------------------------------------------- Sun Netra X1 (UltraSPARC-IIe 400MHz), No Keyboard OpenBoot 4.0, 640 MB memory installed, Serial #50735782. Ethernet address 0:3:ba:6:2a:a6, Host ID: 83062aa6. [...] dc0: port 0x10000-0x100ff at device 12.0 on pci0 dc0: Ethernet address: 00:03:ba:06:2a:a6 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc1: port 0x10100-0x101ff mem 0x2000-0x20ff at device 5.0 on pci0 dc1: Ethernet address: 00:03:ba:06:2a:a7 miibus1: on dc1 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 29 18:58:49 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23FCE16A4BF for ; Fri, 29 Aug 2003 18:58:49 -0700 (PDT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 023F443FE3 for ; Fri, 29 Aug 2003 18:58:48 -0700 (PDT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) h7U1wilc087951; Sat, 30 Aug 2003 03:58:44 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.9/8.12.9/Submit) id h7U1wcdS087950; Sat, 30 Aug 2003 03:58:38 +0200 (CEST) (envelope-from marius) Date: Sat, 30 Aug 2003 03:58:38 +0200 From: Marius Strobl To: Pete Bentley Message-ID: <20030830035838.A87651@newtrinity.zeist.de> References: <20030822013101.A24406@newtrinity.zeist.de> <352D3384-DA81-11D7-8C90-000A959F6E56@sorted.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <352D3384-DA81-11D7-8C90-000A959F6E56@sorted.org>; from pete@sorted.org on Sat, Aug 30, 2003 at 01:30:50AM +0100 cc: freebsd-sparc64@freebsd.org Subject: Re: Netra X1 - Status query and stupid question X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2003 01:58:49 -0000 On Sat, Aug 30, 2003 at 01:30:50AM +0100, Pete Bentley wrote: > On Friday, August 22, 2003, at 12:31 AM, Marius Strobl wrote: > > Just curious, could you please try the attached patch and check if the > > MAC addresses get set and then set local-mac-address in the > > OpenFirmware > > and check again if the dc interfaces get different MAC addresses? > > Sorry for being a bit slow here, had other issues to deal with. > > I've just tried this patch - applies fine, builds fine (prevents the > dc module from building, but I simply disabled that as a workaround). Adding the following to sys/modules/dc/Makefile should fix this: .if ${MACHINE_ARCH} == sparc64 SRCS+= opt_ofw_pci.h .endif > > Tried it with and without local-mac-address set and with versions 1.0.1 > and 1.0.18 of the Netra boot PROM and it works the same in all 4 > instances... > > Works the same as Solaris 9, that is dc0 gets the hosts's MAC address > and dc1 > gets that address 'plus 1' (see output below). > > So in effect, local-mac-address is ignored but in a way that isn't > likely > to matter. > This is strange, it rather looks like local-mac-address is always true for these interfaces, or at least for the second one. You could add a printf() to check if the call to OF_getprop() fails and the node address then gets read via OF_getetheraddr(). Thanks for testing!