Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Oct 2001 20:55:14 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        ia64@FreeBSD.ORG
Subject:   Re: Not all devices get attached 
Message-ID:  <20011006035514.3E30E380A@overcee.netplex.com.au>
In-Reply-To: <20011005204741.A4324@dhcp01.pn.xcllnt.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

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: <Intel Pro 10/100B/100+ Ethernet> 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: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
...
uhci0: <UHCI (generic) USB controller> port 0x1180-0x119f irq 47 at device 3.2 on pci0
uhci0: (New UHCI DeviceId=0x76028086)
usb0: <UHCI (generic) USB controller> 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: <Qlogic ISP 1280 PCI SCSI Adapter> 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: <SL1-02F 02 0 80 HU DlFpoyp/20020K90> 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: <TL4N38/LBF1> 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: <QUANTUM ATLAS IV 9 WLS 0B0B> 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: <QUANTUM ATLAS IV 9 WLS 0B0B> 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: <Intel  W460GXBS> on motherboard                                      
       
> acpi0: power button is handled as a fixed feature programming model.         
       
> Timecounter "ACPI"  frequency 3579545 Hz                                     
       
> acpi_cpu0: <CPU> on acpi0                                                    
       
> acpi_cpu1: <CPU> on acpi0                                                    
       
> acpi_pcib0: <Host-PCI bridge> port 0xcf8-0xcff on acpi0                      
       
> pci0: <PCI bus> on acpi_pcib0                                                
       
> pci0: <base peripheral, interrupt controller> at device 0.0 (no driver attach
    ed)
> isab0: <PCI-ISA bridge> at device 3.0 on pci0                                
       
> isa0: <ISA bus> on isab0                                                     
       
> atapci0: <Generic PCI ATA controller> 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: <serial bus, USB> at device 3.2 (no driver attached)                   
       
> pci0: <serial bus, SMBus> at device 3.3 (no driver attached)                 
       
> pci0: <multimedia, audio> at device 4.0 (no driver attached)                 
       
> fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x1000-0x103f mem 0xfdf00000-0xf
    df0
> fxp0: could not map interrupt                                                
       
> device_probe_and_attach: fxp0 attach returned 6                              
       
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0         
       
> atkbd0: <AT Keyboard> irq 1 on atkbdc0                                       
       
> psm0: <PS/2 Mouse> 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: <Host-PCI bridge> on acpi0                                       
       
> pci1: <PCI bus> on acpi_pcib1                                                
       
> pci1: <base peripheral> at device 15.0 (no driver attached)                  
       
> acpi_pcib2: <Host-PCI bridge> on acpi0                                       
       
> pci2: <PCI bus> on acpi_pcib2                                                
       
> isp0: <Qlogic ISP 1280 PCI SCSI Adapter> port 0x2000-0x20ff mem 0xf7fdf000-0x
    f72
> isp0: could not allocate interrupt                                           
       
> device_probe_and_attach: isp0 attach returned 6                              
       
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> pci2: <base peripheral> at device 15.0 (no driver attached)                  
       
> acpi_pcib3: <Host-PCI bridge> on acpi0                                       
       
> pci3: <PCI bus> on acpi_pcib3                                                
       
> pci3: <display, VGA> at device 0.0 (no driver attached)                      
       
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0xa08-0xa0b on acpi0         
       
> orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xca7ff,0xca800-0xcd7ff 
    on0
> sc0: <System console> on isa0                                                
       
> sc0: VGA <16 virtual consoles, flags=0x0>                                    
       
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0    
       
> Timecounter "IA64 ITC"  frequency 733350024 Hz                               
       
> acpi_cpu: CPU throttling enabled, 8 steps from 100% to 12.5%                 
       
> ata0-master: <SL1-02F 02 0 80 HU DlFpoyp/20020K90> floppy device - NO DRIVER!
       
> acd0: CDROM <TL4N38> at ata0-slave PIO4                                      
       
>                                                                              
       
> Manual root filesystem specification:                                        
       
>   <fstype>:<device>  Mount <device> using filesystem <fstype>                
       
>                        eg. ufs:/dev/da0s1a                                   
       
>   ?                  List valid disk boot devices                            
       
>   <empty line>       Abort manual input                                      
       
>                                                                              
       
> 
> I got the VGA almost working. I think fb is not writing to the right
> memory location or there's no virtual mapping. The VGA is probed and
> used though, because I need to add -h to force the serial interface.
> 
> FYI,
> 
> -- 
>  Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-ia64" in the body of the message
> 
> 

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011006035514.3E30E380A>