Port-macppc archive

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

X server through the xsrc sets on PowerBook G4 with NVidia card



The other day I tried installing the X sets from the (now gone)
20100313 entry at <ftp://nyftp.NetBSD.org/pub/NetBSD-daily/netbsd-5/>
to obtain an X server.  I did this inside a pkg_comp chroot -- that
may be relevant, but I doubt it.  Upon running `X' (no arguments, no
config file), the X server loaded up a number of modules and then
segfaulted after mmap failed with EINVAL in pci_device_map_range in
NVCommonSetup of xf86-video-nv.  Here's the invocation of mmap from
ktrace:

  1067      1 Xorg     CALL  mmap(0,0x1000000,3,1,7,0,0,0x91000000)
  1067      1 Xorg     RET   mmap -1 errno 22 Invalid argument

Running `X' with a breakpoint on pci_device_map_range in gdb shows
when the SIGSEGV is delivered.  File descriptor 7 at that point is
/dev/pci0.  Any ideas on how to proceed?

My kernel configuration is GENERIC plus

options DIAGNOSTIC
options DEBUG
makeoptions DEBUG="-g"
options OFB_ENABLE_CACHE
bwi* at pci? dev ? function ?
pseudo-device drvctl

Here is my dmesg output.  Let me know if you'd like to see pcictl or
ofctl output, or the X server log, or anything else involved.

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.0_STABLE (RIABWI) #7: Fri Aug 21 20:53:23 EDT 2009
        
riastradh%Oberon.local@localhost:/Users/riastradh/os/netbsd/5/obj/sys/arch/macppc/compile/RIABWI
total memory = 640 MB
avail memory = 607 MB
timecounter: Timecounters tick every 10.000 msec
found openpic PIC at 80040000
OpenPIC Version 1.2: Supports 4 CPUs and 64 interrupt sources.
bootpath: /pci@f4000000/ata-6@d/disk@0:3,/netbsd-RIABWI
mainbus0 (root)
cpu0 at mainbus0: 7455 (Revision 3.3), ID 0 (primary)
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>, 
powersave: 1
cpu0: 533.33 MHz, 256KB L2 cache no parity parity enabled
memory0 at mainbus0: len=256
spdmem0 at memory0
spdmem0: DDR SDRAM memory, no parity or ECC, 512MB, 267MHz (PC-2100)
spdmem0: 13 rows, 10 cols, 2 ranks, 4 banks/chip, 7.5ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 1-3-3-6
spdmem0: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
uni_n0 at mainbus0 address 0xf8000000
hw-clock at uni_n0 not configured
ki2c0 at uni_n0 address 0xf8001000
iic1 at ki2c0: I2C bus
dbcool0 at ki2c0
dbcool0: ADM1030 dBCool(tm) Controller (rev 0x0083)
cereal at ki2c0 address 0x1c0 not configured
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)
genfb0 at pci0 dev 16 function 0: NVIDIA product 0x0179
genfb0: framebuffer at 0x94004000, size 1024x768, depth 8, stride 1024
wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
drm at genfb0 not configured
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)
bwi0 at pci1 dev 18 function 0: Broadcom Wirelessgenppc_pci_intr_map: pin: 1, 
line: 52
bwi0: interrupting at irq 52
bwi0: BBP id 0x4306, BBP rev 0x2, BBP pkg 0
bwi0: MAC: rev 4
bwi0: PHY type 2, rev 1, ver 1
bwi0: RF manu 0x17f, type 0x2050, rev 2
bwi0: invalid antenna gain in sprom
bwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
bwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 
36Mbps 48Mbps 54Mbps
obio0 at pci1 dev 23 function 0: addr 0x80000000
zsc0 at obio0 irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at obio0 offset 0x10000: irq 30,1,2
pmu0 at obio0 offset 0x16000 irq 47:  rev. 12
pmu0: initializing IIC bus
pmu0: initializing RTC
pmu0: initializing ADB
nadb0 at pmu0: Apple Desktop Bus
pmu0: power-mgt not configured
smartbat0 at pmu0 addr 0: smart battery
 flags: 5 AC present
ki2c1 at obio0
iic2 at ki2c1: I2C bus
cereal at ki2c1 address 0x1c0 not configured
deq0 at ki2c1 Apple Digital Equalizer, addr 0x6a
ki2c1: device (i2c-modem) has no reg or i2c-address property.
wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
atabus0 at wdc0 channel 0
snapper0: codec: TAS3004
audio0 at snapper0: full duplex
ohci0 at pci1 dev 24 function 0: Apple Computer Intrepid USB Controller (rev. 
0x00)
genppc_pci_intr_map: pin: 1, line: 27
ohci0: interrupting at irq 27
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci1 dev 25 function 0: Apple Computer Intrepid USB Controller (rev. 
0x00)
genppc_pci_intr_map: pin: 1, line: 28
ohci1: interrupting at irq 28
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ohci2 at pci1 dev 26 function 0: Apple Computer Intrepid USB Controller (rev. 
0x00)
genppc_pci_intr_map: pin: 1, line: 29
ohci2: interrupting at irq 29
ohci2: OHCI version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
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)
wdc1 at pci2 dev 13 function 0genppc_pci_intr_map: pin: 1, line: 39
: interrupting at irq 39
atabus1 at wdc1 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev. 0x81)
genppc_pci_intr_map: pin: 1, line: 40
fwohci0: interrupting at irq 40
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:0a:95:ff:fe:e4:96:12
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
gem0 at pci2 dev 15 function 0: Apple Computer GMAC Ethernet (rev. 0x80)
genppc_pci_intr_map: pin: 1, line: 41
gem0: interrupting at irq 41
bmtphy0 at gem0 phy 0: BCM5221 10/100 media interface, rev. 4
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem0: Ethernet address 00:0a:95:e4:96:12, 10KB RX fifo, 4KB TX fifo
biomask 8007ffe netmask 8007ffe ttymask 8007ffe
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 33280357 Hz quality 100
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
uhub0 at usb1: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb2: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb0: Apple Computer OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITACD-RW  CW-8122, , BA21> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
conf[0] = 0x11823, cyc = 4 (120 ns), act = 3 (75 ns), inact = 1
cd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
adbkbd0 at nadb0 addr 2: PowerBook G3 keyboard
wskbd0 at adbkbd0 mux 1
wskbd0: connecting to wsdisplay0
wsmouse0 at adbkbd0 mux 0
adbms0 at nadb0 addr 3: EMP trackpad <tpad> 2-button, 400 dpi
wsmouse1 at adbms0 mux 0
adbbt0 at nadb0 addr 7: button device
AC Power: AC adapter online.
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Apple Computer product 0x1000, rev 2.00/15.86, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub2 port 2 configuration 1 interface 1
uhidev1: Apple Computer product 0x1000, rev 2.00/15.86, addr 2, iclass 3/1
ums0 at uhidev1: 5 buttons
wsmouse2 at ums0 mux 0
wd0 at atabus1 drive 0: <Hitachi IC25N040ATMR04-0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(wdc1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) 
(using DMA)
raidattach: Asked for 8 units
Kernelized RAIDframe activated
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
pid 891 (Xorg), uid 0: exited on signal 6 (core dumped)
pid 1067 (Xorg), uid 0: exited on signal 6 (core dumped)
bwi0: firmware rev 0x0127, patch level 0x000e


Home | Main Index | Thread Index | Old Index