Bug 5225 - Xorg doesn't scan PCI buses above 0000
Summary: Xorg doesn't scan PCI buses above 0000
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 6.8.2
Hardware: SPARC Linux (All)
: highest critical
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-02 20:14 UTC by Giulio Sichel
Modified: 2008-07-14 08:35 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Giulio Sichel 2005-12-02 20:14:25 UTC
Xorg doesn't scan all PCI buses, but just 0000, avoiding the detection of my PCI
graphic card (Voodoo Banshee), located on 0001.
I'm running kernel version 2.6.14.3 sparc64:

Mater:~# uname -a
Linux Mater 2.6.14.3 #1 Sat Nov 26 11:14:34 CET 2005 sparc64 GNU/Linux

and all PCI devices are detected:

Mater:~#  lspci -vvx
0000:80:00.0 Host bridge: Sun Microsystems Computer Corp. Psycho PCI Bus Module
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+
Stepping- SERR+ FastB2B-
        Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
        Latency: 64
00: 8e 10 00 80 46 01 a0 22 00 00 00 06 00 40 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0001:00:00.0 Host bridge: Sun Microsystems Computer Corp. Psycho PCI Bus Module
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+
Stepping- SERR+ FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
        Latency: 64
00: 8e 10 00 80 46 01 80 22 00 00 00 06 00 40 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0001:00:01.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+
Stepping- SERR+ FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 80 (2500ns min, 6250ns max), Cache Line Size: 0x10 (64 bytes)
        Region 0: Memory at 000001fff0000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at 000001fff1000000 (32-bit, non-prefetchable) [size=8M]
        Expansion ROM at 0000000083000000 [disabled] [size=16M]
00: 8e 10 00 10 46 01 80 02 01 00 80 06 10 50 80 00
10: 00 00 00 70 00 00 00 71 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 03 00 00 00 00 00 00 00 00 00 00 0a 19

0001:00:01.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal
(rev 01)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 80 (2500ns min, 1250ns max), Cache Line Size: 0x10 (64 bytes)
        Interrupt: pin ? routed to IRQ 00673120
        Region 0: Memory at 000001ff80008000 (32-bit, non-prefetchable) [size=32K]
        Expansion ROM at 0000000088000000 [disabled] [size=16M]
00: 8e 10 01 10 06 00 80 02 01 00 00 02 10 50 80 00
10: 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 08 00 00 00 00 00 00 00 00 20 00 0a 05

0001:00:02.0 Bridge: Sun Microsystems Computer Corp. EBUS (rev 01)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 80 (2500ns min, 6250ns max), Cache Line Size: 0x10 (64 bytes)
        Interrupt: pin A routed to IRQ 00000000
        Region 0: Memory at 000001ff81000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at 000001ff82000000 (32-bit, non-prefetchable) [size=8M]
        Expansion ROM at 0000000089000000 [disabled] [size=16M]
00: 8e 10 00 10 06 00 80 02 01 00 80 06 10 50 80 00
10: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 09 00 00 00 00 00 00 00 00 00 01 0a 19

0001:00:02.1 Ethernet controller: Sun Microsystems Computer Corp. Happy Meal
(rev 01)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 80 (2500ns min, 1250ns max), Cache Line Size: 0x10 (64 bytes)
        Interrupt: pin B routed to IRQ 00672f20
        Region 0: Memory at 000001ff82800000 (32-bit, non-prefetchable) [size=32K]
        Expansion ROM at 000000008a000000 [disabled] [size=16M]
00: 8e 10 01 10 06 00 80 02 01 00 00 02 10 50 80 00
10: 00 00 80 02 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 0a 00 00 00 00 00 00 00 00 20 02 0a 05

0001:00:03.0 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 03)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr+
Stepping- SERR+ FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 136 (4250ns min, 16000ns max), Cache Line Size: 0x10 (64 bytes)
        Interrupt: pin A routed to IRQ 00673100
        Region 0: I/O ports at 0000000002010400 [size=256]
        Region 1: Memory at 000001ff80010000 (32-bit, non-prefetchable) [size=256]
        Region 2: Memory at 000001ff80011000 (32-bit, non-prefetchable) [size=4K]
00: 00 10 0f 00 57 01 00 02 03 00 00 01 10 88 00 00
10: 01 04 00 00 00 00 01 00 00 10 01 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 01 11 40

0001:00:05.0 VGA compatible controller: 3Dfx Interactive, Inc. Voodoo Banshee
(rev 03) (prog-if 00 [VGA])
        Subsystem: Creative Labs: Unknown device 1017
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
        Interrupt: pin A routed to IRQ 00673080
        Region 0: Memory at 000001ff84000000 (32-bit, non-prefetchable) [size=32M]
        Region 1: Memory at 000001ff86000000 (32-bit, prefetchable) [size=32M]
        Region 2: I/O ports at 0000000002010800 [size=256]
        Expansion ROM at 0000000080020000 [disabled] [size=64K]
        Capabilities: [60] 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: 1a 12 03 00 03 00 b0 00 03 00 00 03 00 00 00 00
10: 00 00 00 04 08 00 00 06 01 08 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 02 11 17 10
30: 00 00 02 00 60 00 00 00 00 00 00 00 00 01 00 00


The other graphic card is perfectly working (Elite 3D with sunffb driver). I'd
like to use the Banshee as secondary framebuffer, but
this is what Xorg log file reports:

Mater:~# cat /var/log/Xorg.1.log
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.2
        X.Org Video Driver: 0.7
        X.Org XInput driver : 0.4
        X.Org Server Extension : 0.2
        X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "scanpci"
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Video Driver, version 0.7
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 80:00:0: chip 108e,8000 card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: End of PCI scan
Probing for PCI devices (Bus:Device:Function)

(128:0:0) Sun Microsystems Computer Corp. Psycho PCI Bus Module

It seems that the scanpci module isn't unable to manage multi-domain PCI:

Mater:~# Xorg :1 -scanpci
Probing for PCI devices (Bus:Device:Function)

(128:0:0) Sun Microsystems Computer Corp. Psycho PCI Bus Module

This is my xorg.conf file:

Mater:~# cat /etc/X11/xorg.conf
# xorg.conf.dpkg-new (Xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf.dpkg-new manual page.
# (Type "man xorg.conf.dpkg-new" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
#   cp /etc/X11/xorg.conf.dpkg-new /etc/X11/xorg.conf.dpkg-new.custom
#   md5sum /etc/X11/xorg.conf.dpkg-new >/var/lib/xfree86/xorg.conf.dpkg-new.md5sum
#   dpkg-reconfigure xserver-xorg

Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        # FontPath      "/usr/lib/X11/fonts/misc"
        # FontPath      "/usr/lib/X11/fonts/cyrillic"
        # FontPath      "/usr/lib/X11/fonts/100dpi/:unscaled"
        # FontPath      "/usr/lib/X11/fonts/75dpi/:unscaled"
        # FontPath      "/usr/lib/X11/fonts/Type1"
        # FontPath      "/usr/lib/X11/fonts/CID"
        # FontPath      "/usr/lib/X11/fonts/100dpi"
        # FontPath      "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "record"
        Load    "type1"
        Load    "v4l"
        Load    "vbe"
EndSection

Section "ServerFlags"
        Option  "Xinerama" "true"
EndSection

Section "InputDevice"
        Identifier      "SUN Type6 Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        # Option                "XkbRules"      "sun"
        # Option                "XkbModel"      "type5"
        # Option                "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "SUN Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "Auto"
        Option          "Emulate3Buttons"       "false"
EndSection

Section "Device"
        Identifier      "SUN Elite3D"
        Driver          "sunffb"
        BusID           "SBUS:/SUNW,afb@1e,0"
EndSection

Section "Device"
        Identifier      "Voodoo Banshee"
        Driver          "tdfx"
        BusID           "PCI:0:5:0"
EndSection

Section "Monitor"
        Identifier      "SUN GDM-5010PT Monitor"
        Option          "DPMS"
        HorizSync       30-96
        VertRefresh     48-160
EndSection


Section "Screen"
        Identifier      "Screen_0"
        Device          "SUN Elite3D"
        Monitor         "SUN GDM-5010PT Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x1024"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "Screen_1"
        Device          "Voodoo Banshee"
        Monitor         "SUN GDM-5010PT Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1600x1200"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1600x1200"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1600x1200"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1600x1200"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1600x1200"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1600x1200"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen 0        "Screen_0"
        Screen 1        "Screen_1" RightOf "Screen_0"
        InputDevice     "SUN Type6 Keyboard"
        InputDevice     "SUN Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection
Comment 1 Alex Deucher 2005-12-29 16:36:38 UTC
you might try this patch:
http://lists.freedesktop.org/archives/xorg/2005-December/011892.html
Comment 2 DEMAINE Benoit-Pierre 2006-02-16 11:45:38 UTC
AS4100 = Alpha Server 4100, two PCI bus, same problem:

Xorg can list any hardware on the low chain, including sound and SCSI, but
nothing on higher chain: nor NICs not vga ...

lspci still confirms cards are ok in slots, and other cards of the high chain
works ok.
Comment 3 Daniel Stone 2007-02-27 01:29:03 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 4 Adam Jackson 2008-07-11 14:42:48 UTC
This should be resolved thanks to pciaccess.  If not, please reopen.
Comment 5 DEMAINE Benoit-Pierre 2008-07-11 17:19:34 UTC
Since which version should it be fixed ? to know, if it still occurs on some machines, how long I shall wait for updates from my distrbution :)
Comment 6 Alan Coopersmith 2008-07-14 08:35:52 UTC
(In reply to comment #5)
> Since which version should it be fixed ? to know, if it still occurs on some
> machines, how long I shall wait for updates from my distrbution :)

pciaccess support is in X11R7.4 / xserver-1.5, which is in Release Candidate
phase now, and should be released soon.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.