Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: snapper does not work on PowerBook5,6
Michael wrote:
>> Here the whole system freezes (interrupt storm?) when I send a
>> bigger file to /dev/audio. With very short
>> files nothing will happen at all.
>
> This is weird.
I correct myself: the freeze happens always, also with small files.
> Got any dmesg output?
Sure:
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010
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.99.39 (POWERBOOKG4) #6: Sat Oct 9 21:36:46 CEST 2010
xxx:/home/frank/netbsd/current/src/sys/arch/macppc/compile/obj/POWERBOOKG4
total memory = 1024 MB
avail memory = 987 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:0/netbsd
mainbus0 (root)
cpu0 at mainbus0: 7447A (Revision 1.2), ID 0 (primary)
cpu0: HID0
0x84d0c1bc<EMCP,EICE,DOZE,NAP,DPM,ICE,DCE,IFEM,SGE,BTIC,FBIOB,ABE,BHT>,
powersave: 1
cpu0: 752.32 MHz, 512KB L2 cache no parity parity enabled
memory0 at mainbus0: len=256
spdmem0 at memory0
spdmem0: DDR SDRAM, no parity or ECC, 512MB, 400MHz (PC-3200)
spdmem0: 13 rows, 10 cols, 2 ranks, 4 banks/chip, 5.0ns cycle time
spdmem0: tAA-tRCD-tRP-tRAS: 2-3-3-8
spdmem0: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
spdmem1 at memory0
spdmem1: DDR SDRAM, no parity or ECC, 512MB, 333MHz (PC-2700)
spdmem1: 13 rows, 10 cols, 2 ranks, 4 banks/chip, 6.0ns cycle time
spdmem1: tAA-tRCD-tRP-tRAS: 1-3-3-7
spdmem1: voltage SSTL 2.5V, refresh time 7.8us (self-refreshing)
uni_n0 at mainbus0 address 0xf8000000
hw-clock at uni_n0 not configured
i2c at uni_n0 address 0xf8001000 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: ATI Technologies Radeon Mobility 9600/9700
(M10/11) NP
genfb0: framebuffer at 0xb8008000, size 1280x854, depth 8, stride 1280
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 Wireless
bwi0: interrupting at irq 52
bwi0: BBP id 0x4306, BBP rev 0x3, BBP pkg 0
bwi0: MAC: rev 5
bwi0: PHY type 2, rev 2, ver 2
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
cbb0 at pci1 dev 19 function 0: Texas Instruments PCI1510 PCI-CardBus Bridge
(rev. 0x00)
obio0 at pci1 dev 23 function 0: addr 0x80000000
obio0: enabling Intrepid CPU speed control
zsc0 at obio0 irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
snapper0 at obio0 offset 0x0: irq 30,1,2
pmu0 at obio0 offset 0x16000 irq 47: rev. 12
pmu0: initializing IIC bus
pmu0: initializing RTC
pmu0: pmu not configured
pmu0: power-mgt not configured
smartbat0 at pmu0 addr 0: smart battery
flags: 7 AC charging present
ki2c0 at obio0
iic0 at ki2c0: I2C bus
codec at ki2c0 address 0x6a not configured
wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
atabus0 at wdc0 channel 0
snapper0: software codec
audio0 at snapper0: full duplex, playback, capture
ohci0 at pci1 dev 25 function 0: Apple Computer Intrepid USB Controller
(rev. 0x00)
ohci0: can't map mem space
ohci1 at pci1 dev 26 function 0: Apple Computer Intrepid USB Controller
(rev. 0x00)
ohci1: interrupting at irq 29
ohci1: OHCI version 1.0, legacy support
usb0 at ohci1: USB revision 1.0
ohci2 at pci1 dev 27 function 0: NEC USB Host Controller (rev. 0x43)
ohci2: interrupting at irq 63
ohci2: OHCI version 1.0
usb1 at ohci2: USB revision 1.0
ohci3 at pci1 dev 27 function 1: NEC USB Host Controller (rev. 0x43)
ohci3: interrupting at irq 63
ohci3: OHCI version 1.0
usb2 at ohci3: USB revision 1.0
ehci0 at pci1 dev 27 function 2: NEC USB Host Controller (rev. 0x04)
ehci0: interrupting at irq 63
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci2 ohci3
usb3 at ehci0: USB revision 2.0
cbb0: cacheline 0x8 lattimer 0x10
cbb0: bhlc 0x21008
cbb0: interrupting at irq 53
cardslot0 at cbb0
cardbus0 at cardslot0: bus 1
pcmcia0 at cardslot0
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 0: interrupting at irq 39
atabus1 at wdc1 channel 0
fwohci0 at pci2 dev 14 function 0: Apple Computer UniNorth Firewire (rev.
0x81)
fwohci0: interrupting at irq 40
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:11:24:ff:fe:xx:xx:xx
fwohci0: invalid speed 7 (fixed to 3).
fwohci0: Phy 1394a available S800, 3 ports.
fwohci0: Link S800, max_rec 4096 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)
gem0: interrupting at irq 41
makphy0 at gem0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
gem0: Ethernet address 00:11:24:xx:xx:xx, 10KB RX fifo, 4KB TX fifo
biomask 8003ffe netmask 8003ffe ttymask 8003ffe
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "mftb" frequency 18432000 Hz quality 100
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
ieee1394if0: bus manager 0
uhub0 at usb0: 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 usb1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
uhub2 at usb2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 5 ports with 5 removable, self powered
AC Power: AC adapter online.
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Apple Computer product 0x1000, rev 2.00/17.92, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub0 port 1 configuration 1 interface 1
uhidev1: Apple Computer product 0x1000, rev 2.00/17.92, addr 2, iclass 3/1
atapibus0 at atabus0: 2 targets
cd0 at atapibus0 drive 0: <MATSHITACD-RW CW-8123, , CA14> cdrom removable
ums0 at uhidev1: 5 buttons
wsmouse0 at ums0 mux 0
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(wdc0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
wd0 at atabus1 drive 0: <FUJITSU MHT2080AH>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488
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)
uhidev2 at uhub0 port 2 configuration 1 interface 0
uhidev2: Apple Computer Apple Internal Keyboard/Trackpad, rev 2.00/0.28,
addr 3, iclass 3/1
ukbd1 at uhidev2: 8 modifier keys, 5 key codes
wskbd1 at ukbd1 mux 1
wskbd1: connecting to wsdisplay0
uhidev3 at uhub0 port 2 configuration 1 interface 1
uhidev3: Apple Computer Apple Internal Keyboard/Trackpad, rev 2.00/0.28,
addr 3, iclass 3/1
pbms0 at uhidev3: 15 inch PowerBook Trackpad
wsmouse1 at pbms0 mux 0
uhidev4 at uhub0 port 2 configuration 1 interface 2
uhidev4: Apple Computer Apple Internal Keyboard/Trackpad, rev 2.00/0.28,
addr 3, iclass 3/0
pbms1 at uhidev4: 15 inch PowerBook Trackpad
wsmouse2 at pbms1 mux 0
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
> Apple seems to reorganize its device tree with
> every model no matter if the actual hardware changed or not. Snapper
> needs the deq driver to attach in order to find the codec which should
> live on iic at ki2c at obio.
Seems this codec was not found. The OF structure on my PowerBook looks like
this:
ff98be28: /i2c@18000
ff98ca00: /i2c-bus@0
ff98cbc8: /codec@6a
So there are two problem in deq.c:
1. The node is called "codec" instead of "deq".
2. There is no "i2c-address" property.
I hacked that in to make deq attach:
[...]
snapper0 at obio0 offset 0x0: irq 30,1,2
pmu0 at obio0 offset 0x16000 irq 47: rev. 12
pmu0: initializing IIC bus
pmu0: initializing RTC
pmu0: pmu not configured
pmu0: power-mgt not configured
smartbat0 at pmu0 addr 0: smart battery
flags: 5 AC present
ki2c0 at obio0
iic0 at ki2c0: I2C bus
deq0 at ki2c0 Apple Digital Equalizer, addr 0x6a
wdc0 at obio0 offset 0x20000 irq 24, level triggered: DMA transfer
atabus0 at wdc0 channel 0
snapper0: codec: TAS3004
audio0 at snapper0: full duplex, playback, capture
[...]
But still no difference. The system freezes when writing to /dev/audio. :(
--
Frank Wille
Home |
Main Index |
Thread Index |
Old Index