I have a SGI O200 (dual 250MHz CPUs, 1GB RAM) with three PCI cards installed in the main chassis card cage (i.e., Slot 1: Ethernet controller: Silicon Graphics, Inc. AceNIC Gigabit Ethernet (rev 01); Slot 2: SCSI storage controller: QLogic Corp. QLA2200 64-bit Fibre Channel Adapter (rev 05); and Slot 3: SCSI storage controller: QLogic Corp. ISP1080 SCSI Host Adapter (rev 01). These cards worked fine when the machine ran IRIX. A new build of gentoo-mips-2.6.20.18 with gcc/kgcc-4.1.1 is stable, except that the three PCI mentioned above are not initialized during boot-up. The relevant 'dmesg | grep PCI' messages are: myhost ~ # dmesg | grep PCI PCI: Device 0000:00:05.0 not available because of resource collisions qla1280: QLA1040 found on PCI bus 0, dev 0 PCI: Enabling device 0000:00:00.0 (0006 -> 0007) scsi0 : QLogic QLA1040 PCI to SCSI Host Adapter qla1280: QLA1040 found on PCI bus 0, dev 1 PCI: Enabling device 0000:00:01.0 (0006 -> 0007) scsi1 : QLogic QLA1040 PCI to SCSI Host Adapter qla1280: QLA1080 found on PCI bus 0, dev 7 PCI: Device 0000:00:07.0 not available because of resource collisions PCI: Device 0000:00:06.0 not available because of resource collisions myhost ~ # From dmesg, it is apparent that there are "resource collisions" for each of the three PCI cards (i.e., devices 05, 06, and 07 on bus 00). Further, a 'lspci -vv' shows that each of the three PCI cards do not have proper IRQs assigned; that is, each card has "Interrupt: pin A routed to IRQ 0", as shown below: 00:05.0 Ethernet controller: Silicon Graphics, Inc. AceNIC Gigabit Ethernet (rev 01) Subsystem: Silicon Graphics, Inc. AceNIC Gigabit Ethernet Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 0 00:06.0 SCSI storage controller: QLogic Corp. QLA2200 64-bit Fibre Channel Adapter (rev 05) Subsystem: QLogic Corp. QLA2200 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 0 Region 0: I/O ports at <unassigned> [disabled] Capabilities: [44] Power Management version 1 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:07.0 SCSI storage controller: QLogic Corp. ISP1080 SCSI Host Adapter (rev 01) Subsystem: QLogic Corp. Device 0005 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 0 Region 0: I/O ports at <unassigned> [disabled] Capabilities: [44] Power Management version 1 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- I tried to manually reset the IRQ for each card with 'setpci -s 00:0x INTERRUPT_LINE=0y', where {x,y} were {5,5}, {6,6}, and {7,7}, respectively, but the INTERRUPT_LINE register did not change on a subsequent 'lspci -vv' command. Finally, I rebuilt the kernel with the IOC4 framework installed, but there was no change in the symptoms of this problem. Thus, I'm stuck. The PCI cards appear to be recognized by the kernel, but not properly initialized. Please help.
emerge --info Portage 12175-svn (default-linux/mips/2007.1-dev/ip27/o32, gcc-4.1.1, glibc-2.6.1-r0, 2.6.20.18-mipsgit-20070902-ip27r10k+ mips64) ================================================================= System uname: Linux-2.6.20.18-mipsgit-20070902-ip27r10k+-mips64-R10000_V3.4_FPU_V0.0-with-glibc2.0 Timestamp of tree: Sun, 25 Jan 2009 00:45:02 +0000 distcc 3.1 mips-unknown-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p48 dev-lang/python: 2.4.3-r1, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.0 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.15-r1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="mips ~mips" CBUILD="mips-unknown-linux-gnu" CFLAGS="-O2 -march=mips4 -mabi=32 -pipe -fomit-frame-pointer" CHOST="mips-unknown-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=mips4 -mabi=32 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X apache2 bash-completion berkdb cdr cli cracklib cups dbus expat firefox fortran ftp gdbm gif gpm gtk iconv imap ip27 isdnlog javascript jpeg libwww maildir midi mips mudflap mysql mysqli nls nptl nptlonly openmp pam pcre pdf perl png ppds pppd python readline reflection ruby samba sasl sdl session spell spl ssl startup-notification syslog tcl tcpd tiff tokenizer truetype unicode vhosts xinetd xml xorg xscreensaver zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 179835 [details] gentoo-mips-2.6.20.18 .config file This attached file is the .config used to build the gentoo-mips-2.6.20.18 kernel affected by the reported PCI slot initialization problem.
This is Gentoo Linux on mips hardware. yes? The alt team doesn't do that...please review how you are creating bugs, this is not the first time I have seen a misassigned bug from you. (If you are unsure of where to file it, please let the bug-wranglers do it) Thanks.
Thanks. And apologizes for creating some extra work for you. I did not see an assignment option related to mips on the bug submission form. I'll figure out who the bug-wranglers are and, then, send my future issues through them. I thought this was a public forum for reporting problems, based on the installation docs provided with gentoo.
you can just leave the "assign to" field blank when filing your bug and it will be handled by the bug wranglers.
Is this still a bug? 2.6.20 is pretty ancient. Since many reporters seem to ignore old bugs like this, I'm going to close this one, but please reopen if it's still a bug with newer kernels. Even then, I think this is a bug for upstream.