From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bounces.ut.ee ([193.40.5.137]:39194 "EHLO bounces.ut.ee" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754602Ab2HPPP1 (ORCPT ); Thu, 16 Aug 2012 11:15:27 -0400 Date: Thu, 16 Aug 2012 18:15:24 +0300 (EEST) From: Meelis Roos To: sparclinux@vger.kernel.org, linux-pci@vger.kernel.org Subject: PCI resource allocation problem on Sun Ultra 10 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-pci-owner@vger.kernel.org List-ID: (resent without typo in sparclinux address - please reply to this one instead) Hello, I tried to populate my Sun Ultra 10 with PCI cards. All but the last slot work but the last slot is assigned a non-working BAR. It sees that this area is reserved for Video ROM. Why is there Video ROM placeholder at that address - I see no resource in ATI VGA for it? Cards are aic7xxx, sym53c895, qla2200 and tg3, in that order. Loading tg3 driver results in tg3 0000:02:04.0: BAR 0: can't reserve [mem 0x1ff000c0000-0x1ff000cffff] tg3 0000:02:04.0: Cannot obtain PCI resources, aborting tg3: probe of 0000:02:04.0 failed with error -16 /proc/iomem, lspci -vvv, prtconf -pv and full dmesg below. /proc/iomem: 1fc00400000-1fc0040000f : ffb dac 1fc00600000-1fc00600983 : ffb fbc 1ff00000000-1ffffffffff : /pci@1f,0 1ff00002000-1ff00002fff : aic7xxx 1ff00020000-1ff000200ff : sym53c8xx 1ff00022000-1ff00022fff : sym53c8xx 1ff00080000-1ff00080fff : qla2xxx 1ff000a0000-1ff000bffff : Video RAM area 1ff000c0000-1ff000c7fff : Video ROM 1ff000f0000-1ff000fffff : System ROM 1ffc0000000-1ffdfffffff : IOMMU 1ffe0000000-1ffe000701f : sunhme 1ffe1000000-1ffe1ffffff : atyfb 1fff1000000-1fff1001fff : eeprom 1fff1200000-1fff120000f : cs4231 1fff13062f8-1fff13062ff : su 1fff13083f8-1fff13083ff : su 1fff1400000-1fff140003f : sab 1fff1400040-1fff140007f : sab 1fff1702000-1fff170200f : cs4231_pdma 1fff1704000-1fff170400f : cs4231_cdma 1fff1724000-1fff1724003 : power 1fff1726000-1fff1726003 : auxio lspci -vvv: 00:01.0 PCI bridge: Oracle/SUN Simba Advanced PCI Bridge (rev 13) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- 00:01.1 PCI bridge: Oracle/SUN Simba Advanced PCI Bridge (rev 13) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- Reset- FastB2B- PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn- 01:01.0 Bridge: Oracle/SUN EBUS (rev 01) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- at 0 vgaarb: device added: PCI:0000:01:02.0,decodes=io+mem,owns=none,locks=none vgaarb: loaded vgaarb: bridge control possible 0000:01:02.0 SCSI subsystem initialized /pci@1f,0/pci@1,1/ebus@1/eeprom@14,0: Mostek regs at 0x1fff1000000 AUXIO: Found device at /pci@1f,0/pci@1,1/ebus@1/auxio@14,726000 Switching to clocksource tick NET: Registered protocol family 2 TCP established hash table entries: 32768 (order: 6, 524288 bytes) TCP bind hash table entries: 32768 (order: 5, 262144 bytes) TCP: Hash tables configured (established 32768 bind 32768) TCP: reno registered UDP hash table entries: 512 (order: 1, 16384 bytes) UDP-Lite hash table entries: 512 (order: 1, 16384 bytes) NET: Registered protocol family 1 PCI: CLS 64 bytes, default 64 power: Control reg at 1fff1724000 VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 8192 bytes) msgmni has been set to 2015 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) start plist test end plist test PCI: Enabling device: (0000:01:02.0), cmd 82 atyfb: 3D RAGE PRO (Mach64 GP, PQFP, PCI) [0x4750 rev 0x7c] atyfb: 4M SGRAM (1:1), 14.31818 MHz XTAL, 230 MHz PLL, 100 Mhz MCLK, 100 MHz XCLK Console: switching to colour frame buffer device 80x30 atyfb: fb0: ATY Mach64 frame buffer device on PCI /SUNW,ffb@1e,0: FFB at 000001fc00000000, type 51, DAC pnum[236e] rev[10] manuf_rev[1] /pci@1f,0/pci@1,1/ebus@1/su@14,3083f8: Keyboard port at 1fff13083f8, irq 6 /pci@1f,0/pci@1,1/ebus@1/su@14,3062f8: Mouse port at 1fff13062f8, irq 7 f0061c64: ttyS0 at MMIO 0x1fff1400000 (irq = 5) is a SAB82532 V3.2 Console: ttyS0 (SAB82532) console [ttyS0] enabled f0061c64: ttyS1 at MMIO 0x1fff1400040 (irq = 5) is a SAB82532 V3.2 [sched_delayed] sched: RT throttling activated Floppy drive(s): fd0 is 1.44M FDC 0 is a National Semiconductor PC87306 scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs PCI: Enabling device: (0000:01:01.1), cmd 2 sunhme.c:v3.10 August 26, 2008 David S. Miller (davem@davemloft.net) eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 08:00:20:9e:82:fd scsi 0:0:0:0: Direct-Access QUANTUM ATLAS IV 18 WLS 0909 PQ: 0 ANSI: 3 scsi0:A:0:0: Tagged Queuing enabled. Depth 253 scsi target0:0:0: Beginning Domain Validation mousedev: PS/2 mouse device common for all mice rtc-m48t59 rtc-m48t59.0: rtc core: registered m48t59 as rtc0 TCP: cubic registered NET: Registered protocol family 17 Key type dns_resolver registered registered taskstats version 1 rtc-m48t59 rtc-m48t59.0: setting system clock to 2012-08-16 11:20:41 UTC (1345116041) scsi target0:0:0: wide asynchronous scsi target0:0:0: FAST-10 WIDE SCSI 20.0 MB/s ST (100 ns, offset 8) scsi target0:0:0: Domain Validation skipping write tests scsi target0:0:0: Ending Domain Validation input: Sun Mouse as /devices/root/f005f9c0/f00601b4/f0061504/f0064df4/serio1/input/input0 sd 0:0:0:0: [sda] 35885168 512-byte logical blocks: (18.3 GB/17.1 GiB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: e3 00 10 08 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA sda: sda1 sda2 sda3 sda4 sd 0:0:0:0: [sda] Attached SCSI disk EXT3-fs (sda4): error: couldn't mount because of unsupported optional features (240) EXT2-fs (sda4): error: couldn't mount because of unsupported optional features (240) EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext4 filesystem) readonly on device 8:4. /pci@1f,0/pci@1,1/ebus@1/flashprom@10,0: OBP Flash, RD 1fff0000000[100000] WR 1fff0000000[100000] PCI: Enabling device: (0000:02:02.0), cmd 3 sym0: <895> rev 0x2 at pci 0000:02:02.0 irq 16 sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking sym0: SCSI BUS has been reset. scsi1 : sym-2.2.3 libata version 3.00 loaded. qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 8.04.00.03-k. PCI: Enabling device: (0000:02:03.0), cmd 3 qla2xxx [0000:02:03.0]-001d: : Found an ISP2200 irq 17 iobase 0x000001ff00080000. scsi3 : pata_cmd64x scsi4 : pata_cmd64x ata1: PATA max MWDMA2 cmd 0x1fe02c00000 ctl 0x1fe02c00008 bmdma 0x1fe02c00020 irq 14 ata2: PATA max MWDMA2 cmd 0x1fe02c00010 ctl 0x1fe02c00018 bmdma 0x1fe02c00028 irq 14 pata_cmd64x: active 10 recovery 10 setup 3. pata_cmd64x: active 10 recovery 10 setup 3. pata_cmd64x: active 10 recovery 10 setup 3. pata_cmd64x: active 10 recovery 10 setup 3. scsi2 : qla2xxx qla2xxx [0000:02:03.0]-505f:2: Link is operational (1 Gbps). qla2xxx [0000:02:03.0]-00fb:2: QLogic QLA22xx - . qla2xxx [0000:02:03.0]-00fc:2: ISP2200: PCI (33 MHz) @ 0000:02:03.0 hdma- host#=2 fw=2.02.08 TP. tg3.c:v3.124 (March 21, 2012) PCI: Enabling device: (0000:02:04.0), cmd 2 tg3 0000:02:04.0: BAR 0: can't reserve [mem 0x1ff000c0000-0x1ff000cffff] tg3 0000:02:04.0: Cannot obtain PCI resources, aborting tg3: probe of 0000:02:04.0 failed with error -16 scsi 2:0:0:0: Direct-Access SUN T300 0302 PQ: 0 ANSI: 3 sd 2:0:0:0: [sdb] 564133888 512-byte logical blocks: (288 GB/269 GiB) sd 2:0:0:0: [sdb] Write Protect is off sd 2:0:0:0: [sdb] Mode Sense: 6f 00 00 08 sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sdb: sdb1 sd 2:0:0:0: [sdb] Attached SCSI disk sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 2:0:0:0: Attached scsi generic sg1 type 0 Adding 1052248k swap on /dev/sda2. Priority:-1 extents:1 across:1052248k EXT4-fs (sda4): re-mounted. Opts: (null) EXT4-fs (sda4): re-mounted. Opts: errors=remount-ro loop: module loaded NET: Registered protocol family 10 eth0: Link is up using internal transceiver at 100Mb/s, Full Duplex. -- Meelis Roos (mroos@linux.ee)