From owner-freebsd-ia64 Fri Oct 5 20:55:32 2001 Delivered-To: freebsd-ia64@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id CC57A37B403 for ; Fri, 5 Oct 2001 20:55:14 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f963tEM62111 for ; Fri, 5 Oct 2001 20:55:14 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 3E30E380A; Fri, 5 Oct 2001 20:55:14 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Marcel Moolenaar Cc: ia64@FreeBSD.ORG Subject: Re: Not all devices get attached In-Reply-To: <20011005204741.A4324@dhcp01.pn.xcllnt.net> Date: Fri, 05 Oct 2001 20:55:14 -0700 From: Peter Wemm Message-Id: <20011006035514.3E30E380A@overcee.netplex.com.au> Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This was fixed a few seconds ago, see the acpi_pcib.c commit. int bus; BUS_READ_IVAR(.... , (uintptr_t *)&bus); ===> stack trashed. I changed it to this: int bus; uintptr_t up; BUS_READ_IVAR(.... , &up); bus = up; And we live! I even have scsi disks! :-) fxp0: port 0x1140-0x117f mem 0xf7e00000-0xf7efffff,0xf7cc9000-0xf7cc9fff irq 39 at device 2.0 on pci0 fxp0: using memory space register mapping fxp0: Ethernet address 00:d0:b7:af:cb:3b fxp0: PCI IDs: 8086 1229 8086 000c 0008 fxp0: Chip Type: 0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ... uhci0: port 0x1180-0x119f irq 47 at device 3.2 on pci0 uhci0: (New UHCI DeviceId=0x76028086) usb0: on uhci0 usb0: USB revision 1.0 uhub0: (0x76028086) UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ... Qlogic ISP Driver, FreeBSD Version 5.9, Core Version 2.4 isp0: port 0x2000-0x20ff mem 0xeffdf000-0xeffdffff irq 27 at device 0.0 on pci2 isp0: using I/O space register mapping isp0: bus 0 is in LVD Mode isp0: bus 1 is in LVD Mode isp0: Board Type 1280, Chip Revision 0x3, resident F/W Revision 8.9.0 isp0: Last F/W revision was 8.9.0 isp0: 547 max I/O commands supported isp0: Initiator ID is 7 on Channel 0 isp0: Initiator ID is 7 on Channel 1 isp0: Enabled FW features (0x3) ... ata0-master: piomode=2 dmamode=-1 udmamode=-1 dmaflag=0 ata0-master: success setting PIO2 on generic chip Creating DISK afd0 afd0: rewriteable drive at ata0 as master afd0: 24MB (12780288 sectors), 49923 cyls, 8 heads, 32 S/T, 2 B/S afd0: 0KB/s, PIO2 ata1-master: piomode=4 dmamode=2 udmamode=2 dmaflag=1 ata1-master: success setting PIO4 on generic chip acd0: CDROM drive at ata1 as master acd0: read 4782KB/s (4782KB/s), 30720KB buffer, PIO4 acd0: Reads: CD-R, CD-RW, CD-DA stream, packet acd0: Writes: acd0: Audio: play, 65280 volume levels acd0: Mechanism: ejectable tray, unlocked acd0: Medium: no/blank disc Waiting 15 seconds for SCSI devices to settle isp0: driver initiated bus reset of bus 0 isp0: driver initiated bus reset of bus 1 (probe0:isp0:0:0:0): Retrying Command Creating DISK da0 pass0 at isp0 bus 0 target 0 lun 0 pass0: Fixed Direct Access SCSI-3 device pass0: Serial Number 369000930119 pass0: 80.000MB/s transfers (40.000MHz, offset 8, 16bit), Tagged Queueing Enabled da0 at isp0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: Serial Number 369000930119 ... Yes!!! :-) Marcel Moolenaar wrote: > Entering /kernel at 0xe00000000050a000... > ACPI debug layer 0x0 debug level 0x0 > Copyright (c) 1992-2001 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.0-CURRENT #10: Fri Oct 5 20:24:52 PDT 2001 > marcel@dhcp01.pn.xcllnt.net:/usr/src/sys/ia64/compile/ITANIUM > CPU: Itanium (733.35-Mhz) > Origin = "GenuineIntel" Model = 0 Revision = 4 > Features = 0x0 > real memory = 1056202752 (1031448K bytes) > avail memory = 1023221760 (999240K bytes) > Preloaded elf kernel "/kernel" at 0xe000000000b70000. > acpi0: on motherboard > acpi0: power button is handled as a fixed feature programming model. > Timecounter "ACPI" frequency 3579545 Hz > acpi_cpu0: on acpi0 > acpi_cpu1: on acpi0 > acpi_pcib0: port 0xcf8-0xcff on acpi0 > pci0: on acpi_pcib0 > pci0: at device 0.0 (no driver attach ed) > isab0: at device 3.0 on pci0 > isa0: on isab0 > atapci0: port 0x1070-0x107f at device 3.1 on pci 0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > pci0: at device 3.2 (no driver attached) > pci0: at device 3.3 (no driver attached) > pci0: at device 4.0 (no driver attached) > fxp0: port 0x1000-0x103f mem 0xfdf00000-0xf df0 > fxp0: could not map interrupt > device_probe_and_attach: fxp0 attach returned 6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > atkbdc0: port 0x64,0x60 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > psm0: irq 12 on atkbdc0 > psm0: model Generic PS/2 mouse, device ID 0 > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0 port 0x3f8-0x3ff irq 4 on acpi0 > sio0: type 16550A, console > acpi_pcib1: on acpi0 > pci1: on acpi_pcib1 > pci1: at device 15.0 (no driver attached) > acpi_pcib2: on acpi0 > pci2: on acpi_pcib2 > isp0: port 0x2000-0x20ff mem 0xf7fdf000-0x f72 > isp0: could not allocate interrupt > device_probe_and_attach: isp0 attach returned 6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > pci2: at device 15.0 (no driver attached) > acpi_pcib3: on acpi0 > pci3: on acpi_pcib3 > pci3: at device 0.0 (no driver attached) > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xa08-0xa0b on acpi0 > orm0: