2.6.25 / mainline tracking effort / Sound broken

Andy Green andy at openmoko.com
Sun Apr 13 15:00:44 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:

| Basing against Linux 2.6.25-rc9 we are in fairly good shape after some
| mokopatch kickings-around to deal with breakage.  There are three
| obvious breakages I saw:

Sound is broken.

cat /dev/urandom > /dev/dsp

gets --->

[  516.650000] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
[  516.650000] pgd = c6d88000
[  516.655000] [00000000] *pgd=36c8d031, *pte=00000000, *ppte=00000000
[  516.660000] Internal error: Oops: 817 [#1] PREEMPT
[  516.660000] Modules linked in:
[  516.660000] CPU: 0    Not tainted  (2.6.25-rc9-mokodev #172)
[  516.660000] PC is at __copy_from_user+0x50/0x31c
[  516.660000] LR is at 0x71007100
[  516.660000] pc : [<c0137774>]    lr : [<71007100>]    psr: 20000013
[  516.660000] sp : c7f25dac  ip : fd00fd00  fp : c7f25dfc
[  516.660000] r10: 00000000  r9 : c7da6aa8  r8 : a800a800
[  516.660000] r7 : 62006200  r6 : 84008400  r5 : 77007700  r4 : dc00dc00
[  516.660000] r3 : 51005100  r2 : 00001fc0  r1 : c886e020  r0 : 00000000
[  516.660000] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM
Segment kernel
[  516.660000] Control: c000717f  Table: 36d88000  DAC: 00000017
[  516.660000] Process cat (pid: 1582, stack limit = 0xc7f24268)
[  516.660000] Stack: (0xc7f25dac to 0xc7f26000)
[  516.660000] 5da0:                            c886ffff 00000800
00000000 c7f7f800 00000000
[  516.660000] 5dc0: 00002000 00000000 00002000 c0218980 c7da6aa8
00000000 c7f25dfc 00000800
[  516.660000] 5de0: 00000000 c7f7f800 c7da6a00 00000800 c7f25e4c
c7f25e00 c0216934 c02188f0
[  516.660000] 5e00: 00000800 c0065f54 00000000 c886e000 00000000
00000000 c7f25e34 00008000
[  516.660000] 5e20: 00000000 ffffffb3 c7f24000 c7da6a00 00000800
c886e000 00000001 c7f7f800
[  516.660000] 5e40: c7f25e6c c7f25e50 c0216b1c c02167d0 c02188e0
c6d381b8 00000002 bf000000
[  516.660000] 5e60: c7f25e9c c7f25e70 c021ca60 c0216acc c7f25eb4
00000800 00000800 00000800
[  516.660000] 5e80: 00000000 c6d381a0 c7f24000 c7da6a00 c7f25eb4
c7f25ea0 c0222384 c021c9dc
[  516.660000] 5ea0: 00000800 c7e41140 c7f25ee4 c7f25eb8 c02212f0
c0222364 c7f25f14 00000000
[  516.660000] 5ec0: 00000800 c8871000 00000001 c7da6a00 00000008
00000001 c7f25f14 c7f25ee8
[  516.660000] 5ee0: c021cb80 c0221248 c7f24000 c6e2a660 00000000
c7f7f800 00000000 c7da6a00
[  516.660000] 5f00: be9b3af0 00001000 c7f25f4c c7f25f18 c021ebd4
c021cac0 00000000 c7f7fa64
[  516.660000] 5f20: c7f25f4c c6e01140 be9b3af0 c7f25f78 00001000
c0029c28 c7f24000 00000000
[  516.660000] 5f40: c7f25f74 c7f25f50 c009caf4 c021ea40 00000000
00000000 c6e01140 00000000
[  516.660000] 5f60: 00000000 00000004 c7f25fa4 c7f25f78 c009d12c
c009ca48 00000000 00000000
[  516.660000] 5f80: c0030c90 00000000 ffffffff 00001000 be9b3af0
4001f3d0 00000000 c7f25fa8
[  516.660000] 5fa0: c0029a80 c009d0f0 00001000 be9b3af0 00000001
be9b3af0 00001000 00089690
[  516.660000] 5fc0: 00001000 be9b3af0 4001f3d0 00000004 00000000
00000001 00000001 00000003
[  516.660000] 5fe0: 00000001 be9b3ac0 0000ecf0 401ad58c 60000010
00000001 00000000 00000000
[  516.660000] Backtrace:
[  516.660000] [<c02188e0>] (snd_pcm_lib_write_transfer+0x0/0xd4) from
[<c0216934>] (snd_pcm_lib_write1+0x174/0x294)
[  516.660000]  r8:00000800 r7:c7da6a00 r6:c7f7f800 r5:00000000 r4:00000800
[  516.660000] [<c02167c0>] (snd_pcm_lib_write1+0x0/0x294) from
[<c0216b1c>] (snd_pcm_lib_write+0x60/0x74)
[  516.660000] [<c0216abc>] (snd_pcm_lib_write+0x0/0x74) from
[<c021ca60>] (snd_pcm_oss_write3+0x94/0xe4)
[  516.660000]  r4:bf000000
[  516.660000] [<c021c9cc>] (snd_pcm_oss_write3+0x0/0xe4) from
[<c0222384>] (io_playback_transfer+0x30/0x84)
[  516.660000] [<c0222354>] (io_playback_transfer+0x0/0x84) from
[<c02212f0>] (snd_pcm_plug_write_transfer+0xb8/0xec)
[  516.660000]  r5:c7e41140 r4:00000800
[  516.660000] [<c0221238>] (snd_pcm_plug_write_transfer+0x0/0xec) from
[<c021cb80>] (snd_pcm_oss_write2+0xd0/0x114)
[  516.660000] [<c021cab0>] (snd_pcm_oss_write2+0x0/0x114) from
[<c021ebd4>] (snd_pcm_oss_write+0x1a4/0x21c)
[  516.660000] [<c021ea30>] (snd_pcm_oss_write+0x0/0x21c) from
[<c009caf4>] (vfs_write+0xbc/0x14c)
[  516.660000] [<c009ca38>] (vfs_write+0x0/0x14c) from [<c009d12c>]
(sys_write+0x4c/0x7c)
[  516.660000]  r7:00000004 r6:00000000 r5:00000000 r4:c6e01140
[  516.660000] [<c009d0e0>] (sys_write+0x0/0x7c) from [<c0029a80>]
(ret_fast_syscall+0x0/0x2c)
[  516.660000]  r6:4001f3d0 r5:be9b3af0 r4:00001000
[  516.660000] Code: e4b18004 e4b1c004 e4b1e004 e2522020 (e8a051f8)
[  516.665000] ---[ end trace 5958044900000008 ]---


The NULL exception is coming from runtime->dma_area being 0 when it
shouldn't be.  WLAN is also broken by DMA-related issue so maybe it is
the same thing.

I have to move on to something else for a while so if anyone else is
moved to follow any of these up you are super welcome.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkgCA/IACgkQOjLpvpq7dMpV/ACdGAcIcTiPUlt2JSqdR4Rb9i0+
QDoAn2l48YiF7UAJC5dJXCHoR9taEkqj
=5c+E
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list