From: Meelis Roos Date: Mon, 31 May 2010 13:20:44 +0000 Subject: 2.6.35-rc1: duplicate pci slot name warnings on Sun E250 Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org I tried 2.6.35-rc1 on Sun E250 (lspci below) and it gives warnings about registering pci slot names in sysfs: sysfs: cannot create duplicate filename '/devices/root/f006d1b0/pci0000:00/0000:00:03.0/slot' These happen for 4 PCI devies out of 5 - graphics card does not give this warning but onboard devices do. ls -ld /sys/bus/pci/devices/0000\:00\:0*/slot lrwxrwxrwx 1 root root 0 May 31 16:20 /sys/bus/pci/devices/0000:00:01.0/slot -> ../../../../../bus/pci/slots/PCI Slot 2 lrwxrwxrwx 1 root root 0 May 31 16:20 /sys/bus/pci/devices/0000:00:01.1/slot -> ../../../../../bus/pci/slots/PCI Slot 2 lrwxrwxrwx 1 root root 0 May 31 16:20 /sys/bus/pci/devices/0000:00:03.0/slot -> ../../../../../bus/pci/slots/PCI Slot 1 lrwxrwxrwx 1 root root 0 May 31 16:20 /sys/bus/pci/devices/0000:00:03.1/slot -> ../../../../../bus/pci/slots/PCI Slot 1 prtconf -pv is also below for OF properties but it doesn't seem there are any slot names there - don't know where the overlapping names come from 00:01.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01) Physical Slot: PCI Slot 2 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- 0x00027f5f [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[3] active PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00027eff [ 0.000000] 0: 0x00027f00 -> 0x00027f4b [ 0.000000] 0: 0x00027f53 -> 0x00027f5f [ 0.000000] On node 0 totalpages: 163670 [ 0.000000] Normal zone: 1279 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 162391 pages, LIFO batch:15 [ 0.000000] Booting Linux... [ 0.000000] PERCPU: Embedded 6 pages/cpu @fffff80001c00000 s13120 r8192 d27840 u2097152 [ 0.000000] pcpu-alloc: s13120 r8192 d27840 u2097152 alloc=1*4194304 [ 0.000000] pcpu-alloc: [0] 0 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 162391 [ 0.000000] Kernel command line: root=/dev/sda2 ro debug ignore_loglevel [ 0.000000] PID hash table entries: 4096 (order: 2, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 2097152 bytes) [ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 1048576 bytes) [ 0.000000] Memory: 1284584k available (2976k kernel code, 1264k data, 176k init) [fffff80000000000,000000004febe000] [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Verbose stalled-CPUs detection is disabled. [ 0.000000] NR_IRQS:255 [ 0.000000] clocksource: mult[81084210] shift[29] [ 0.000000] clockevent: mult[3f7ced91] shift[32] [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled, bootconsole disabled [ 79.639108] Calibrating delay using timer specific routine.. 497.05 BogoMIPS (lpj$85285) [ 79.639182] pid_max: default: 32768 minimum: 301 [ 79.639601] Security Framework initialized [ 79.639824] Mount-cache hash table entries: 512 [ 79.700016] CPU 1: synchronized TICK with master CPU (last diff -13 cycles, maxerr 546 cycles) [ 79.700060] Brought up 2 CPUs [ 79.702259] khelper used greatest stack depth: 13152 bytes left [ 79.704045] NET: Registered protocol family 16 [ 79.709317] khelper used greatest stack depth: 12568 bytes left [ 79.714118] khelper used greatest stack depth: 11984 bytes left [ 79.756522] /pci@1f,4000: PCI IO[1fe02010000] MEM[1ff80000000] [ 79.756624] /pci@1f,4000: PSYCHO PCI Bus Module ver[4:0] [ 79.756669] PCI: Scanning PBM /pci@1f,4000 [ 79.762008] /pci@1f,2000: PCI IO[1fe02000000] MEM[1ff00000000] [ 79.762082] /pci@1f,2000: PSYCHO PCI Bus Module ver[4:0] [ 79.762124] PCI: Scanning PBM /pci@1f,2000 [ 79.786453] bio: create slab at 0 [ 79.788993] vgaarb: loaded [ 79.791275] SCSI subsystem initialized [ 79.796649] /pci@1f,4000/ebus@1/eeprom@14,0: Mostek regs at 0x1fff1000000 [ 79.798604] AUXIO: Found device at /pci@1f,4000/ebus@1/auxio@14,726000 [ 79.799162] Switching to clocksource tick [ 79.805548] NET: Registered protocol family 2 [ 79.806000] IP route cache hash table entries: 65536 (order: 6, 524288 bytes) [ 79.810260] TCP established hash table entries: 262144 (order: 9, 4194304 bytes) [ 79.833221] TCP bind hash table entries: 65536 (order: 7, 1048576 bytes) [ 79.838976] TCP: Hash tables configured (established 262144 bind 65536) [ 79.839080] TCP reno registered [ 79.839177] UDP hash table entries: 1024 (order: 2, 32768 bytes) [ 79.839462] UDP-Lite hash table entries: 1024 (order: 2, 32768 bytes) [ 79.840469] NET: Registered protocol family 1 [ 79.840665] PCI: CLS 0 bytes, default 64 [ 79.841007] power: Control reg at 1fff1724000 [ 79.848301] VFS: Disk quotas dquot_6.5.2 [ 79.848567] Dquot-cache hash table entries: 1024 (order 0, 8192 bytes) [ 79.849467] msgmni has been set to 2508 [ 79.851467] alg: No test for stdrng (krng) [ 79.852397] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 79.852525] io scheduler noop registered [ 79.852714] io scheduler cfq registered (default) [ 79.893585] /pci@1f,4000/ebus@1/su@14,3083f8: Keyboard port at 1fff13083f8, irq 9 [ 79.893969] /pci@1f,4000/ebus@1/su@14,3062f8: Mouse port at 1fff13062f8, irq 10 [ 79.896138] f0070074: ttyS0 at MMIO 0x1fff1400000 (irq = 7) is a SAB82532 V3.2 [ 79.896265] Console: ttyS0 (SAB82532) [ 85.636324] console [ttyS0] enabled [ 85.678365] f0070074: ttyS1 at MMIO 0x1fff1400040 (irq = 7) is a SAB82532 V3.2 [ 85.764994] f0071b18: ttyS2 at MMIO 0x1fff1200000 (irq = 8) is a SAB82532 V3.2 [ 85.851606] f0071b18: ttyS3 at MMIO 0x1fff1200040 (irq = 8) is a SAB82532 V3.2 [ 85.940488] PCI: Enabling device: (0000:00:03.0), cmd 147 [ 86.005665] sym0: <875> rev 0x14 at pci 0000:00:03.0 irq 13 [ 86.158372] sym0: No NVRAM, ID 7, Fast-20, SE, parity checking [ 86.234770] sym0: SCSI BUS has been reset. [ 86.282917] scsi0 : sym-2.2.3 [ 86.321002] PCI: Enabling device: (0000:00:03.1), cmd 3 [ 86.384008] sym1: <875> rev 0x14 at pci 0000:00:03.1 irq 14 [ 86.536620] sym1: No NVRAM, ID 7, Fast-20, SE, parity checking [ 86.613071] sym1: SCSI BUS has been reset. [ 86.661198] scsi1 : sym-2.2.3 [ 86.701990] mice: PS/2 mouse device common for all mice [ 86.767075] rtc-m48t59 rtc-m48t59.0: rtc core: registered m48t59 as rtc0 [ 86.849892] TCP cubic registered [ 86.888039] NET: Registered protocol family 10 [ 86.942237] lo: Disabled Privacy Extensions [ 86.991679] NET: Registered protocol family 17 [ 87.046750] registered taskstats version 1 [ 87.095111] ------------[ cut here ]------------ [ 87.150055] WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x8c/0xc0() [ 87.226040] sysfs: cannot create duplicate filename '/devices/root/f006d1b0/pci0000:00/0000:00:01.0/slot' [ 87.340634] Modules linked in: [ 87.377009] Call Trace: [ 87.406251] [000000000045c0cc] warn_slowpath_fmt+0x2c/0x40 [ 87.472898] [000000000052b54c] sysfs_add_one+0x8c/0xc0 [ 87.535419] [000000000052c738] sysfs_do_create_link+0xb8/0x180 [ 87.606262] [00000000005acd48] pci_create_sysfs_dev_files+0x348/0x4a0 [ 87.684360] [0000000000841a80] pci_sysfs_init+0x20/0x6c [ 87.747877] [0000000000426ab8] do_one_initcall+0x18/0x180 [ 87.813513] [0000000000830334] kernel_init+0x1a8/0x240 [ 87.876001] [000000000042b650] kernel_thread+0x30/0x60 [ 87.938481] [00000000006dda98] rest_init+0x18/0x80 [ 87.996793] ---[ end trace 7b2d525f2c996b63 ]--- [ 88.052259] ------------[ cut here ]------------ [ 88.107276] WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x8c/0xc0() [ 88.183245] sysfs: cannot create duplicate filename '/devices/root/f006d1b0/pci0000:00/0000:00:01.1/slot' [ 88.297846] Modules linked in: [ 88.334213] Call Trace: [ 88.363459] [000000000045c0cc] warn_slowpath_fmt+0x2c/0x40 [ 88.430100] [000000000052b54c] sysfs_add_one+0x8c/0xc0 [ 88.492626] [000000000052c738] sysfs_do_create_link+0xb8/0x180 [ 88.563453] [00000000005acd48] pci_create_sysfs_dev_files+0x348/0x4a0 [ 88.641561] [0000000000841a80] pci_sysfs_init+0x20/0x6c [ 88.705095] [0000000000426ab8] do_one_initcall+0x18/0x180 [ 88.770699] [0000000000830334] kernel_init+0x1a8/0x240 [ 88.833199] [000000000042b650] kernel_thread+0x30/0x60 [ 88.895684] [00000000006dda98] rest_init+0x18/0x80 [ 88.954006] ---[ end trace 7b2d525f2c996b64 ]--- [ 89.009303] ------------[ cut here ]------------ [ 89.064422] WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x8c/0xc0() [ 89.140445] sysfs: cannot create duplicate filename '/devices/root/f006d1b0/pci0000:00/0000:00:03.0/slot' [ 89.255046] Modules linked in: [ 89.291416] Call Trace: [ 89.320642] [000000000045c0cc] warn_slowpath_fmt+0x2c/0x40 [ 89.387302] [000000000052b54c] sysfs_add_one+0x8c/0xc0 [ 89.449810] [000000000052c738] sysfs_do_create_link+0xb8/0x180 [ 89.520652] [00000000005acd48] pci_create_sysfs_dev_files+0x348/0x4a0 [ 89.598750] [0000000000841a80] pci_sysfs_init+0x20/0x6c [ 89.662292] [0000000000426ab8] do_one_initcall+0x18/0x180 [ 89.727897] [0000000000830334] kernel_init+0x1a8/0x240 [ 89.790394] [000000000042b650] kernel_thread+0x30/0x60 [ 89.852882] [00000000006dda98] rest_init+0x18/0x80 [ 89.911208] ---[ end trace 7b2d525f2c996b65 ]--- [ 89.966497] ------------[ cut here ]------------ [ 90.021625] WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x8c/0xc0() [ 90.097648] sysfs: cannot create duplicate filename '/devices/root/f006d1b0/pci0000:00/0000:00:03.1/slot' [ 90.212252] Modules linked in: [ 90.248620] Call Trace: [ 90.277845] [000000000045c0cc] warn_slowpath_fmt+0x2c/0x40 [ 90.344507] [000000000052b54c] sysfs_add_one+0x8c/0xc0 [ 90.407004] [000000000052c738] sysfs_do_create_link+0xb8/0x180 [ 90.477855] [00000000005acd48] pci_create_sysfs_dev_files+0x348/0x4a0 [ 90.555961] [0000000000841a80] pci_sysfs_init+0x20/0x6c [ 90.619482] [0000000000426ab8] do_one_initcall+0x18/0x180 [ 90.685125] [0000000000830334] kernel_init+0x1a8/0x240 [ 90.747602] [000000000042b650] kernel_thread+0x30/0x60 [ 90.810087] [00000000006dda98] rest_init+0x18/0x80 [ 90.868400] ---[ end trace 7b2d525f2c996b66 ]--- [ 90.923880] scsi: waiting for bus probes to complete ... [ 90.993690] scsi target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 15) [ 91.082570] scsi 0:0:0:0: Direct-Access HP 9.10GB A 80-6331 PQ: 0 ANSI: 2 [ 91.178662] scsi target0:0:0: tagged command queuing enabled, command queue depth 16. [ 91.272422] scsi target0:0:0: Beginning Domain Validation [ 91.353613] scsi target0:0:0: Domain Validation skipping write tests [ 91.428793] scsi target0:0:0: Ending Domain Validation [ 92.982752] scsi 0:0:6:0: CD-ROM TOSHIBA XM6201TASUN32XCD 1103 PQ: 0 ANSI: 2 [ 93.078798] scsi target0:0:6: Beginning Domain Validation [ 93.144772] scsi target0:0:6: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 16) [ 93.228316] scsi target0:0:6: Domain Validation skipping write tests [ 93.303504] scsi target0:0:6: Ending Domain Validation [ 95.711748] sd 0:0:0:0: [sda] 17773524 512-byte logical blocks: (9.10 GB/8.47 GiB) [ 95.712901] scsi_scan_0 used greatest stack depth: 10704 bytes left [ 95.876776] rtc-m48t59 rtc-m48t59.0: setting system clock to 2010-05-31 13:11:28 UTC (1275311488) [ 95.982924] sd 0:0:0:0: [sda] Write Protect is off [ 96.040152] sd 0:0:0:0: [sda] Mode Sense: 9f 00 10 08 [ 96.102714] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA [ 96.210752] sda: sda1 sda2 sda3 sda4 [ 96.272637] sd 0:0:0:0: [sda] Attached SCSI disk [ 96.347821] EXT3-fs: barriers not enabled [ 96.404350] kjournald starting. Commit interval 5 seconds [ 96.469172] EXT3-fs (sda2): mounted filesystem with writeback data mode [ 96.548212] VFS: Mounted root (ext3 filesystem) readonly on device 8:2. [ 97.321865] async/0 used greatest stack depth: 10048 bytes left [ 97.471896] modprobe used greatest stack depth: 9344 bytes left [ 97.964343] date used greatest stack depth: 8656 bytes left [ 99.411071] udevd used greatest stack depth: 8 bytes left [ 100.219774] PCI: Enabling device: (0000:00:01.1), cmd 2 [ 100.281510] sunhme.c:v3.10 August 26, 2008 David S. Miller (davem@davemloft.net) [ 100.372159] eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 08:00:20:b0:4e:f6 [ 100.818660] sr0: scsi-1 drive [ 100.853496] Uniform CD-ROM driver Revision: 3.20 [ 100.909555] sr 0:0:6:0: Attached scsi CD-ROM sr0 [ 101.161794] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 101.224834] sr 0:0:6:0: Attached scsi generic sg1 type 5 [ 102.562874] Adding 441776k swap on /dev/sda4. Priority:-1 extents:1 across:441776k [ 102.997251] EXT3-fs (sda2): using internal journal [ 103.474959] loop: module loaded [ 110.261672] eth0: Link is up using internal transceiver at 100Mb/s, Full Duplex. -- Meelis Roos (mroos@linux.ee)