Subject: Fwd: "xf86MapVidMem: could not mmap to screen" problem
To: None <port-macppc@netbsd.org>
From: Perry Trolard <perry.trolard@gmail.com>
List: port-macppc
Date: 08/25/2007 01:13:14
Oops -- I only sent this to Jared... Here's my dmesg output.

---------- Forwarded message ----------
From: Perry Trolard <perry.trolard@gmail.com>
Date: Aug 25, 2007 12:05 AM
Subject: Re: "xf86MapVidMem: could not mmap to screen" problem
To: "Jared D. McNeill" <jmcneill@invisible.ca>


Hi,

On 8/24/07, Jared D. McNeill <jmcneill@invisible.ca> wrote:
> What console driver is your kernel using? Can you post a dmesg? At least
> in 4.0, only the ofb(4) console driver supports the OFB_FAKE_VGA_FB option.

The dmesg output is below. I'm a little out of my depth here, but it
looks like the kernel _is_ using ofb for the console driver. The
relevant bit is probably:

---[dmesg excerpt]--
ofb0 at pci0 dev 16 function 0: ATI Technologies Rage Fury MAXX AGP 4x (TMDS)
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
---[end excerpt]--

I'm running 3.1; would the situation otherwise be better on 4?

Thanks for your help,
Perry



---[dmesg text]--

at pci1 dev 24 function 0: Apple Computer KeyLargo USB Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB
Controller (rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
wdc2 at pci2 dev 13 function 0: interrupting at irq 39
atabus2 at wdc2 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x01)
fwohci0: interrupting at irq 40
fwohci0: OHCI 1.1, 00:03:93:ff:fe:a9:5a:7e, 400Mb/s, 2048 max_rec, 8
ir_ctx, 8 it_ctx
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x00)
gem0: interrupting at irq 41
gem0: Ethernet address 00:03:93:a9:5a:7e, 10KB RX fifo, 4KB TX fifo
brgphy0 at gem0 phy 0: BCM5421 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
Kernelized RAIDframe activated
fw at fwohci0 not configured
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <PHILIPS CDD5101, H92290729LXVA, A3.5> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
uhub2 at uhub0 port 1
uhub2: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0,
rev 1.10/4.20, addr 2
uhub2: 3 ports with 2 removable, bus powered
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Mitsumi Electric Apple Optical USB Mouse, rev 1.10/1.08, addr
3, iclass 3/1
ums0 at uhidev0: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus2 drive 0: <Maxtor 54098U8>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 39082 MB, 79406 cyl, 16 head, 63 sec, 512 bytes/sect x 80041248 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(wdc2:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66) (using DMA)
uhidev1 at uhub2 port 3 configuration 1 interface 0
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20,
addr 4, iclass 3/1
ukbd0 at uhidev1
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub2 port 3 configuration 1 interface 1
uhidev2: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20,
addr 4, iclass 3/0
uhidev2: 3 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=3, output=0, feature=0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: started
syncing disks... done
unmounting file systems... done
halt{1}
rebooting

NetBSD 3.1 (powerMac.at.home) #1: Fri Aug 24 18:44:16 UTC 2007
        perry@powerMac.at.home:/usr/src/sys/arch/macppc/compile/powerMac.at.home
total memory = 1280 MB
avail memory = 1224 MB
mainbus0 (root)
cpu0 at mainbus0: 7455 (Revision 2.1), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpu0: 866.67 MHz, 256KB L2 cache, 1MB no-parity L3 cache (DDR SRAM) at 4:1 ratio
cpu1 at mainbus0cpu1: 866.66 MHz
: 7455 (Revision 2.1), ID 1
cpu1: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpu1: 866.67 MHz, 256KB L2 cache, 1MB no-parity L3 cache (DDR SRAM) at 4:1 ratio
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Bridge (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies Rage Fury MAXX AGP 4x (TMDS)
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
obio0 at pci1 dev 23 function 0: addr 0x80000000
enabling KeyLargo internal modem
zsc0 at obio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
i2s at obio0 offset 0x10000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
apm0 at adb0: battery flags 0x9, 0% charged
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atabus1 at wdc1 channel 0
ohci0 at pci1 dev 24 function 0: Apple Computer KeyLargo USB
Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB
Controller (rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
wdc2 at pci2 dev 13 function 0: interrupting at irq 39
atabus2 at wdc2 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x01)
fwohci0: interrupting at irq 40
fwohci0: OHCI 1.1, 00:03:93:ff:fe:a9:5a:7e, 400Mb/s, 2048 max_rec, 8
ir_ctx, 8 it_ctx
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x00)
gem0: interrupting at irq 41
gem0: Ethernet address 00:03:93:a9:5a:7e, 10KB RX fifo, 4KB TX fifo
brgphy0 at gem0 phy 0: BCM5421 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
Kernelized RAIDframe activated
fw at fwohci0 not configured
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <PHILIPS CDD5101, H92290729LXVA, A3.5> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
uhub2 at uhub0 port 1
uhub2: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0,
rev 1.10/4.20, addr 2
uhub2: 3 ports with 2 removable, bus powered
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Mitsumi Electric Apple Optical USB Mouse, rev 1.10/1.08, addr
3, iclass 3/1
ums0 at uhidev0: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus2 drive 0: <Maxtor 54098U8>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 39082 MB, 79406 cyl, 16 head, 63 sec, 512 bytes/sect x 80041248 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(wdc2:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66) (using DMA)
uhidev1 at uhub2 port 3 configuration 1 interface 0
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20,
addr 4, iclass 3/1
ukbd0 at uhidev1
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub2 port 3 configuration 1 interface 1
uhidev2: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20,
addr 4, iclass 3/0
uhidev2: 3 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=3, output=0, feature=0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: started
syncing disks... done
unmounting file systems... done
halt{1}
rebooting


NetBSD 3.1 (powerMac.at.home) #1: Fri Aug 24 18:44:16 UTC 2007
        perry@powerMac.at.home:/usr/src/sys/arch/macppc/compile/powerMac.at.home

total memory = 1280 MB
avail memory = 1224 MB
mainbus0 (root)
cpu0 at mainbus0: 7455 (Revision 2.1), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpu0: 866.67 MHz, 256KB L2 cache, 1MB no-parity L3 cache (DDR SRAM) at 4:1 ratio
cpu1 at mainbus0cpu1: 866.66 MHz
: 7455 (Revision 2.1), ID 1
cpu1: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpu1: 866.67 MHz, 256KB L2 cache, 1MB no-parity L3 cache (DDR SRAM) at 4:1 ratio
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Bridge (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies Rage Fury MAXX AGP 4x (TMDS)
ofb0: 640 x 480, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
pci1: i/o space, memory space enabled
pchb1 at pci1 dev 11 function 0
pchb1: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
obio0 at pci1 dev 23 function 0: addr 0x80000000
enabling KeyLargo internal modem
zsc0 at obio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
i2s at obio0 offset 0x10000 not configured
adb0 at obio0 offset 0x16000 irq 47: pm_adb_op: timeout. command = 0x0
0 targets
aed0 at adb0 addr 0: ADB Event device
apm0 at adb0: battery flags 0x9, 0% charged
wdc0 at obio0 offset 0x1f000 irq 19: DMA transfer
atabus0 at wdc0 channel 0
wdc1 at obio0 offset 0x20000 irq 20: DMA transfer
atabus1 at wdc1 channel 0
ohci0 at pci1 dev 24 function 0: Apple Computer KeyLargo USB
Controller (rev. 0x00)
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci1 dev 25 function 0: Apple Computer KeyLargo USB
Controller (rev. 0x00)
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uninorth2 at mainbus0
pci2 at uninorth2 bus 0
pci2: i/o space, memory space enabled
pchb2 at pci2 dev 11 function 0
pchb2: Apple Computer UniNorth Host-PCI Bridge (rev. 0x00)
wdc2 at pci2 dev 13 function 0: interrupting at irq 39
atabus2 at wdc2 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x01)
fwohci0: interrupting at irq 40
fwohci0: OHCI 1.1, 00:03:93:ff:fe:a9:5a:7e, 400Mb/s, 2048 max_rec, 8
ir_ctx, 8 it_ctx
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x00)
gem0: interrupting at irq 41
gem0: Ethernet address 00:03:93:a9:5a:7e, 10KB RX fifo, 4KB TX fifo
brgphy0 at gem0 phy 0: BCM5421 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
Kernelized RAIDframe activated
fw at fwohci0 not configured
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <PHILIPS CDD5101, H92290729LXVA, A3.5> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(wdc1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
uhub2 at uhub0 port 1
uhub2: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0,
rev 1.10/4.20, addr 2
uhub2: 3 ports with 2 removable, bus powered
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Mitsumi Electric Apple Optical USB Mouse, rev 1.10/1.08, addr
3, iclass 3/1
ums0 at uhidev0: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus2 drive 0: <Maxtor 54098U8>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 39082 MB, 79406 cyl, 16 head, 63 sec, 512 bytes/sect x 80041248 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(wdc2:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66) (using DMA)
uhidev1 at uhub2 port 3 configuration 1 interface 0
uhidev1: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20,
addr 4, iclass 3/1
ukbd0 at uhidev1
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub2 port 3 configuration 1 interface 1
uhidev2: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/4.20,
addr 4, iclass 3/0
uhidev2: 3 report ids
uhid0 at uhidev2 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev2 reportid 3: input=3, output=0, feature=0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
cpu1: started

---[end dmesg]--