From owner-freebsd-sparc64@FreeBSD.ORG Thu Jun 19 12:42:57 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 AFC4437B401 for ; Thu, 19 Jun 2003 12:42:57 -0700 (PDT) Received: from collab.or8.net (collab.or8.net [209.94.128.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id EED1543F3F for ; Thu, 19 Jun 2003 12:42:55 -0700 (PDT) (envelope-from cjackNOSPAM@klatsch.org) Received: by collab.or8.net (Postfix, from userid 1002) id 87619531E; Thu, 19 Jun 2003 15:42:55 -0400 (EDT) Date: Thu, 19 Jun 2003 15:42:55 -0400 From: Chris Jackman To: Thomas Moestl Message-ID: <20030619194255.GG61629@collab.or8.net> References: <20030613160140.GE658@crow.dom2ip.de> <20030614000838.GE670@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030614000838.GE670@crow.dom2ip.de> User-Agent: Mutt/1.4.1i cc: sparc64@freebsd.org Subject: Re: TESTERS NEEDED: new OFW PCI code 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, 19 Jun 2003 19:42:58 -0000 On Sat, Jun 14, 2003 at 02:08:38AM +0200, Thomas Moestl wrote: > On Fri, 2003/06/13 at 18:01:41 +0200, Thomas Moestl wrote: > > Hi, > > > > I've finished implementing the long-promised new OFW PCI code; the > > patch is available at > > http://people.freebsd.org/~tmm/ofw-newpci.diff > > I've put an updated diff at > http://people.freebsd.org/~tmm/ofw-newpci2.diff > > It contains some cleanups, and fixes panics on machines with psycho > host bridges. I put this on the same 250 that I posted about earlier, with clean source tree. Hunk 7 of sparc64/pci/apb.c had to be hand patched because the comments are different from what i got from cvs yesterday, but the code is the same. I added the options OFW_NEWPCI, OFW_PCI_DEBUG and PSYCHO_DEBUG, and have attached the dmesg from this kernel below. This patch and the sparc64.jake.patch both touch the psycho.c file. I can add most of the sparc64.jake.patch changes after this patch, but for now i just have two /boot/kernel directories. Here's the dmesg fwiw: stray vector interrupt 2029 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 Jun 19 18:34:55 GMT 2003 root@e250:/usr/obj/usr/src/sys/E250 Preloaded elf kernel "/boot/kernel/kernel" at 0xc0484000. Timecounter "tick" frequency 296000000 Hz real memory = 536870912 (512 MB) avail memory = 489938944 (467 MB) cpu0: Sun Microsystems UltraSparc-II Processor (296.00 MHz CPU) cpu1: Sun Microsystems UltraSparc-II Processor (296.00 MHz CPU) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs nexus0: nexus0: , type (unknown) (no driver attached) pcib0: on nexus0 pcib0: Psycho, impl 0, version 4, ign 0x7c0, bus B initialializing counter-timer Timecounter "counter-timer" frequency 1000000 Hz DVMA map: 0xfc000000 to 0xffffffff pcib0: intr map (pci) 0: 0x7c0 pcib0: intr map (pci) 1: 0x7c4 pcib0: intr map (pci) 2: 0x7d0 pcib0: intr map (pci) 3: 0x7d4 pcib0: intr map (pci) 4: 0x800007d0 pcib0: intr map (pci) 5: 0x800007d4 pcib0: intr map (pci) 6: 0x7d8 pcib0: intr map (pci) 7: 0x7dc pcib0: intr map (obio) 0: 0x7e0, clr: 0x1800 pcib0: intr map (obio) 1: 0x7e1, clr: 0x1808 pcib0: intr map (obio) 2: 0x7e2, clr: 0x1810 pcib0: intr map (obio) 3: 0x7e3, clr: 0x1818 pcib0: intr map (obio) 4: 0x7e4, clr: 0x1820 pcib0: intr map (obio) 5: 0x800007e5, clr: 0x1828 pcib0: intr map (obio) 6: 0x7e6, clr: 0x1830 pcib0: intr map (obio) 7: 0x7e7, clr: 0x1838 pcib0: intr map (obio) 8: 0x7e8, clr: 0x1840 pcib0: intr map (obio) 9: 0x7e9, clr: 0x1848 pcib0: intr map (obio) 10: 0x7ea, clr: 0x1850 pcib0: intr map (obio) 11: 0x7eb, clr: 0x1858 pci0: on pcib0 pcib0: device 0/1/0: latency timer 10 -> 82 pcib0: device 0/1/1: latency timer 10 -> 82 pcib0: device 0/3/0: latency timer 17 -> 140 pcib0: device 0/3/1: latency timer 17 -> 140 pcib0: device 0/5/0: latency timer 8 -> 66 ebus0: revision 0x01 ebus0: mem 0x71000000-0x717fffff,0x70000000-0x70ffffff at device 1.0 on pci0 ebus0: addr 0x140072f000-0x140072f003,0x140072c000-0x140072c003,0x140072a000-0x140072a003,0x1400728000-0x1400728003,0x1400726000-0x1400726003 (no driver attached) ebus0: addr 0x1400724000-0x1400724003 (no driver attached) ebus0: addr 0x1400504000-0x1400504002 (no driver attached) ebus0: addr 0x1400500000-0x1400500007 (no driver attached) sab0: addr 0x1400400000-0x140040007f irq 43 on ebus0 pcib0: psycho_setup_intr: INO 43, map 0x1058, clr 0x1858 sabtty0: on sab0 sabtty0: console 9600,8,n,1,- sabtty1: on sab0 sab1: addr 0x1400200000-0x140020007f irq 35 on ebus0 pcib0: psycho_setup_intr: INO 35, map 0x1018, clr 0x1818 sabtty2: on sab1 sabtty3: on sab1 ebus0: addr 0x14003083f8-0x14003083ff irq 41 (no driver attached) ebus0: addr 0x14003062f8-0x14003062ff irq 33 (no driver attached) ebus0: addr 0x1400700000-0x140070000f,0x1400300398-0x1400300399,0x14003043bc-0x14003043cb irq 33 (no driver attached) eeprom0: addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 eeprom0: hostid 80a289f2 ebus0: addr 0x1000000000-0x10000fffff,0x1000000000-0x10000fffff (no driver attached) ebus0: addr 0x1400600000-0x1400600003 irq 37,40 (no driver attached) hme0: mem 0x8000-0xffff at device 1.1 on pci0 hme0: Ethernet address: 08:00:20:a2:89:f2 miibus0: on hme0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib0: psycho_setup_intr: INO 33, map 0x1008, clr 0x1808 sym0: <875> port 0x400-0x4ff mem 0x12000-0x12fff,0x10000-0x100ff at device 3.0 on pci0 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking pcib0: psycho_setup_intr: INO 32, map 0x1000, clr 0x1800 sym1: <875> port 0x800-0x8ff mem 0x16000-0x16fff,0x14000-0x140ff at device 3.1 on pci0 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking pcib0: psycho_setup_intr: INO 38, map 0x1030, clr 0x1830 pci0: at device 5.0 (no driver attached) pcib1: on nexus0 pcib1: Psycho, impl 0, version 4, ign 0x7c0, bus A pcib1: intr map (pci) 0: 0x7c0 pcib1: intr map (pci) 1: 0x800007c4 pcib1: intr map (pci) 2: 0x800007d0 pcib1: intr map (pci) 3: 0x800007d4 pcib1: intr map (pci) 4: 0x800007d0 pcib1: intr map (pci) 5: 0x800007d4 pcib1: intr map (pci) 6: 0x800007d8 pcib1: intr map (pci) 7: 0x800007dc pcib1: intr map (obio) 0: 0x800007e0, clr: 0x1800 pcib1: intr map (obio) 1: 0x800007e1, clr: 0x1808 pcib1: intr map (obio) 2: 0x800007e2, clr: 0x1810 pcib1: intr map (obio) 3: 0x800007e3, clr: 0x1818 pcib1: intr map (obio) 4: 0x800007e4, clr: 0x1820 pcib1: intr map (obio) 5: 0x800007e5, clr: 0x1828 pcib1: intr map (obio) 6: 0x800007e6, clr: 0x1830 pcib1: intr map (obio) 7: 0x800007e7, clr: 0x1838 pcib1: intr map (obio) 8: 0x800007e8, clr: 0x1840 pcib1: intr map (obio) 9: 0x800007e9, clr: 0x1848 pcib1: intr map (obio) 10: 0x800007ea, clr: 0x1850 pcib1: intr map (obio) 11: 0x800007eb, clr: 0x1858 pci1: on pcib1 nexus0: , type system-service-processor (no driver attached) nexus0: , type memory-controller (no driver attached) Timecounters tick every 10.000 msec Waiting 15 seconds for SCSI devices to settle cd0 at sym0 bus 0 target 6 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 16) cd0: cd present [1240320 x 512 byte records] da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da0: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) da1 at sym0 bus 0 target 8 lun 0 da1: Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da1: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) da2 at sym0 bus 0 target 9 lun 0 da2: Fixed Direct Access SCSI-2 device da2: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da2: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) da3 at sym0 bus 0 target 10 lun 0 da3: Fixed Direct Access SCSI-2 device da3: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da3: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) da4 at sym0 bus 0 target 11 lun 0 da4: Fixed Direct Access SCSI-2 device da4: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da4: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) da5 at sym0 bus 0 target 12 lun 0 da5: Fixed Direct Access SCSI-2 device da5: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da5: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C) SMP: AP CPU #1 Launched! Mounting root from ufs:/dev/da3a