tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

X server and PCI_MAGIC_IO_RANGE



Hi again,


Some powerpc machines like bebox fail executing "Xorg -configure"
with this log.

[  3158.559] (WW) xf86EnableIO -1
[  3158.562] (II) xf86EnableIO: ffffffff
[  3158.565] (WW) Can't map IO space!  
[  3158.568] No devices to configure.  Configuration failed.


I think this reason is failed to mmap() with PCI_MAGIC_IO_RANGE.
The mmap() was call before to initialize to xf86Info.screenFd.


hw/xfree86/common/xf86Init.c:InitOutput()
  hw/xfree86/loader/loader.c:LoaderInit()
    print "Loader magic:\n"
    print "Module ABI versions\n"
  hw/xfree86/common/xf86Configure.c:DoConfigure()
    print "List of video drivers:\n"
    xf86LoadModules()
      print modules name...
    hw/xfree86/os-support/bsd/ppc_video.c:xf86EnableIO()
#ifdef PCI_MAGIC_IO_RANGE
      print "xf86EnableIO %d\n", xf86Info.screenFd
      mmap(,,,, xf86Info.screenFd, )
      print "xf86EnableIO: %08x\n"
      if (MAP_FAILED) {
        print "Can't map IO space!\n"
        return FALSE;
      }
      return TRUE;
#else
      return TRUE;
#endif
    if (nDevToConfig <= 0)
      print "No devices to configure.  Configuration failed.\n"
  :
  :
  hw/xfree86/os-support/bsd/bsd_init.c:xf86OpenConsole();
    xf86Info.consoleFd = fd;


Thanks,
--
kiyohara

[  3152.761] 
X.Org X Server 1.9.2
Release Date: 2010-10-30
[  3153.091] X Protocol Version 11, Revision 0
[  3153.201] Build Operating System: NetBSD/bebox  - 
[  3153.315] Current Operating System: NetBSD tower.fool 5.99.48 NetBSD 5.99.48 
(TOWER) #5: Sat Apr  9 15:32:18 JST 2011  
lance%magician.fool@localhost:/usr/src/sys/arch/bebox/compile/TOWER bebox
[  3153.673] Build Date: 23 November 2010  01:33:05AM
[  3153.786]  
[  3153.895] Current version of pixman: 0.21.4
[  3154.005]    Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
[  3154.227] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  3154.595] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr  9 16:47:47 
2011
[  3154.717] (II) Loader magic: 0x1a35e78
[  3154.720] (II) Module ABI versions:
[  3154.724]    X.Org ANSI C Emulation: 0.4
[  3154.727]    X.Org Video Driver: 8.0
[  3154.730]    X.Org XInput driver : 11.0
[  3154.733]    X.Org Server Extension : 4.0
[  3154.976] (WW) xf86EnableIO -1
[  3154.979] (II) xf86EnableIO: ffffffff
[  3154.983] (WW) Can't map IO space!
[  3156.674] (--) PCI:*(0:0:14:0) 5333:8811:0000:0000 rev 68, Mem @ 
0x00000000/67108864, BIOS @ 0x????????/65536
[  3156.685] (--) PCI: (0:0:15:0) 109e:0350:0000:0000 rev 17, Mem @ 
0x04110000/4096
[  3156.791] List of video drivers:
[  3156.944]    cirrus
[  3157.063]    kbd
[  3157.181]    mga
[  3157.298]    mouse
[  3157.413]    s3
[  3157.528]    s3virge
[  3157.642]    ws
[  3157.759] (II) LoadModule: "cirrus"
[  3157.814] (II) Loading /usr/X11R7/lib/modules/drivers/cirrus_drv.so
[  3157.835] (II) Module cirrus: vendor="X.Org Foundation"
[  3157.838]    compiled for 1.9.2, module version = 1.3.2
[  3157.842]    Module class: X.Org Video Driver
[  3157.845]    ABI class: X.Org Video Driver, version 8.0
[  3157.849] (II) LoadModule: "kbd"
[  3157.910] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[  3157.931] (II) Module kbd: vendor="X.Org Foundation"
[  3157.935]    compiled for 1.9.2, module version = 1.5.0
[  3157.939]    Module class: X.Org XInput Driver
[  3157.942]    ABI class: X.Org XInput driver, version 11.0
[  3157.945] (II) LoadModule: "mga"
[  3158.012] (II) Loading /usr/X11R7/lib/modules/drivers/mga_drv.so
[  3158.059] (II) Module mga: vendor="X.Org Foundation"
[  3158.062]    compiled for 1.9.2, module version = 1.4.13
[  3158.066]    Module class: X.Org Video Driver
[  3158.069]    ABI class: X.Org Video Driver, version 8.0
[  3158.073] (II) LoadModule: "mouse"
[  3158.146] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
[  3158.169] (II) Module mouse: vendor="X.Org Foundation"
[  3158.172]    compiled for 1.9.2, module version = 1.6.0
[  3158.176]    Module class: X.Org XInput Driver
[  3158.179]    ABI class: X.Org XInput driver, version 11.0
[  3158.183] (II) LoadModule: "s3"
[  3158.258] (II) Loading /usr/X11R7/lib/modules/drivers/s3_drv.so
[  3158.296] (II) Module s3: vendor="X.Org Foundation"
[  3158.298]    compiled for 1.9.2, module version = 0.6.3
[  3158.303]    Module class: X.Org Video Driver
[  3158.305]    ABI class: X.Org Video Driver, version 8.0
[  3158.310] (II) LoadModule: "s3virge"
[  3158.392] (II) Loading /usr/X11R7/lib/modules/drivers/s3virge_drv.so
[  3158.421] (II) Module s3virge: vendor="X.Org Foundation"
[  3158.424]    compiled for 1.9.2, module version = 1.10.4
[  3158.428]    Module class: X.Org Video Driver
[  3158.431]    ABI class: X.Org Video Driver, version 8.0
[  3158.435] (II) LoadModule: "ws"
[  3158.522] (II) Loading /usr/X11R7/lib/modules/drivers/ws_drv.so
[  3158.545] (II) Module ws: vendor="X.Org Foundation"
[  3158.548]    compiled for 1.9.2, module version = 1.2.9
[  3158.552]    Module class: X.Org XInput Driver
[  3158.555]    ABI class: X.Org XInput driver, version 11.0
[  3158.559] (WW) xf86EnableIO -1
[  3158.562] (II) xf86EnableIO: ffffffff
[  3158.565] (WW) Can't map IO space!
[  3158.568] No devices to configure.  Configuration failed.


Home | Main Index | Thread Index | Old Index