Re: [alsa-devel] Alsa-driver compile fail on Ubuntu powerpc
Takashi,
Now I can build and install driver for ca0106 sb Audigy but I got another issue when play an example file.
aplay -vv child.wav
Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono Plug PCM: Rate conversion PCM (48000, sformat=U8) Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 22050 exact rate : 22050 (22050/1) msbits : 8 buffer_size : 3763 period_size : 470 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 470 period_event : 0 start_threshold : 3763 stop_threshold : 3763 silence_threshold: 0 silence_size : 0 boundary : 493223936 Slave: Route conversion PCM (sformat=S32_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 48000 exact rate : 48000 (48000/1) msbits : 8 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Slave: Direct Stream Mixing PCM Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Hardware PCM card 0 'CA0106' device 0 subdevice 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : ENABLE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 1 stop_threshold : 1073741824 silence_threshold: 0 silence_size : 1073741824 boundary : 1073741824 ######### + | 35%Segmentation fault
Kernel dump message
dmesg
Unable to handle kernel paging request for data at address 0x00000000 Faulting instruction address: 0xc0033fd4 Oops: Kernel access of bad area, sig: 11 [#7] Canyonlands Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 REGS: dfbf3d40 TRAP: 0300 Tainted: G D (2.6.26-00015-gc0b03c1-dirty) MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 DEAR: 00000000, ESR: 00000000 TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 00000000 GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 bff7ab68 GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 de14c340 GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 c0b2c180 NIP [c0033fd4] __wake_up_bit+0x10/0x40 LR [c004ac94] unlock_page+0x48/0x5c Call Trace: [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 Instruction dump: 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14 4e800020 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 419e0014 ---[ end trace a0b9d3bfbd44991b ]---
I tried with another example file.wav but the problem is the same. The issue seems from accessing memory. I'm using AMCC 460EX board with distribution Ubuntu-7.04 Feel free to help me.
Thanks,
TaiNguyen.
I tried with another wav
On Mon, Aug 18, 2008 at 9:52 AM, nguyen tritai nguyentritai@gmail.comwrote:
Hi Takashi,
Thank for your help. I checked in the config.log as you told me and see that the issue is from the linux-header . I'm now working on it.
Thanks,
TaiNguyen
On Thu, Aug 14, 2008 at 8:49 PM, Takashi Iwai tiwai@suse.de wrote:
At Thu, 14 Aug 2008 16:25:24 +0700, nguyen tritai wrote:
Hi all,
I'm trying to bring up audio on powerpc AMCC 440EPX board with the
soundcard
Sound Blaster Audigy CA0106. The board is runing Ubuntu 7.04. I configured: ./configure --with-cards=ca0106 --with-sequencer=yes --with-kernel=/usr/src/linux Then I make and get issue:
make[2]: Leaving directory `/root/alsa-driver-1.0.17/usb' make[2]: Entering directory `/root/alsa-driver-1.0.17/misc' make[2]: Leaving directory `/root/alsa-driver-1.0.17/misc' make[1]: Leaving directory `/root/alsa-driver-1.0.17' make -C /usr/src/linux SUBDIRS=/root/alsa-driver-1.0.17 CPP="gcc -E" CC="gcc" modules make[1]: Entering directory `/usr/src/linux' CC [M] /root/alsa-driver-1.0.17/acore/memory_wrapper.o make[1]: Leaving directory `/usr/src/linux' root@sequoia:~/alsa-driver-1.0.17# vim log In file included from
/root/alsa-driver-1.0.17/acore/memory_wrapper.c:25:
/root/alsa-driver-1.0.17/include/adriver.h:278:1: warning: "GFP_DMA32" redefined In file included from include/linux/slab.h:14, from include/linux/percpu.h:5, from include/linux/rcupdate.h:41, from include/linux/pid.h:4, from include/linux/sched.h:76, from /root/alsa-driver-1.0.17/include/asm/elf.h:5, from include/linux/elf.h:7, from include/linux/module.h:14, from /root/alsa-driver-1.0.17/include/adriver.h:26, from
/root/alsa-driver-1.0.17/acore/memory_wrapper.c:25:
include/linux/gfp.h:105:1: warning: this is the location of the previous definition
This means that configure script didn't detect the things correctly. Doesn't the snapshot version work, too? If no, check config.log about the relevant part checking DMA32.
Takashi
At Mon, 18 Aug 2008 18:26:40 +0700, nguyen tritai wrote:
Takashi,
Now I can build and install driver for ca0106 sb Audigy but I got another issue when play an example file.
aplay -vv child.wav
Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono Plug PCM: Rate conversion PCM (48000, sformat=U8) Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 22050 exact rate : 22050 (22050/1) msbits : 8 buffer_size : 3763 period_size : 470 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 470 period_event : 0 start_threshold : 3763 stop_threshold : 3763 silence_threshold: 0 silence_size : 0 boundary : 493223936 Slave: Route conversion PCM (sformat=S32_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 48000 exact rate : 48000 (48000/1) msbits : 8 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Slave: Direct Stream Mixing PCM Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Hardware PCM card 0 'CA0106' device 0 subdevice 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : ENABLE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 1 stop_threshold : 1073741824 silence_threshold: 0 silence_size : 1073741824 boundary : 1073741824 ######### + | 35%Segmentation fault
Kernel dump message
dmesg
Unable to handle kernel paging request for data at address 0x00000000 Faulting instruction address: 0xc0033fd4 Oops: Kernel access of bad area, sig: 11 [#7] Canyonlands Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 REGS: dfbf3d40 TRAP: 0300 Tainted: G D (2.6.26-00015-gc0b03c1-dirty) MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 DEAR: 00000000, ESR: 00000000 TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 00000000 GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 bff7ab68 GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 de14c340 GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 c0b2c180 NIP [c0033fd4] __wake_up_bit+0x10/0x40 LR [c004ac94] unlock_page+0x48/0x5c Call Trace: [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 Instruction dump: 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14 4e800020 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 419e0014 ---[ end trace a0b9d3bfbd44991b ]---
I tried with another example file.wav but the problem is the same. The issue seems from accessing memory. I'm using AMCC 460EX board with distribution Ubuntu-7.04
It's a known problem with non-coherent PPC architecture. Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot).
Takashi
Takashi,
The issue is still present with the latest alsa-driver. Do you think that it's problem with 64 bit resource with pcm _mmap. Here is dmesg :
TASK = cf8b70c0[1579] 'aplay' THREAD: cfab4000 GPR00: f0f0f0f4 cfab5e20 cf8b70c0 c0ae7040 00000000 4814b000 cfab2900 00000000 GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c 10020000 10020000 GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50 cfa41d40 00000000 GPR24: 00000000 4814b000 00000000 cfa12948 00000000 4814b000 cfab2900 cfab5e38 NIP [d10d4814] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] LR [c0059fe8] __do_fault+0x64/0x428 Call Trace: [cfab5e20] [c004b748] unlock_page+0x48/0x5c (unreliable) [cfab5e30] [c0059fe8] __do_fault+0x64/0x428 [cfab5e80] [c000fd88] do_page_fault+0x2e8/0x540 [cfab5f40] [c000d2ec] handle_page_fault+0xc/0x80 Instruction dump: 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048 80030000 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 ---[ end trace 11885f716998bc3c ]---
Please show me where the issue is from and can I do something to fix it ?
Thanks TaiNguyen
On Mon, Aug 18, 2008 at 6:58 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 18 Aug 2008 18:26:40 +0700, nguyen tritai wrote:
Takashi,
Now I can build and install driver for ca0106 sb Audigy but I got another issue when play an example file.
aplay -vv child.wav
Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono Plug PCM: Rate conversion PCM (48000, sformat=U8) Its setup is: stream : PLAYBACK access : RW_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 22050 exact rate : 22050 (22050/1) msbits : 8 buffer_size : 3763 period_size : 470 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 470 period_event : 0 start_threshold : 3763 stop_threshold : 3763 silence_threshold: 0 silence_size : 0 boundary : 493223936 Slave: Route conversion PCM (sformat=S32_LE) Transformation table: 0 <- 0 1 <- 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : U8 subformat : STD channels : 1 rate : 48000 exact rate : 48000 (48000/1) msbits : 8 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Slave: Direct Stream Mixing PCM Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : NONE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 8192 stop_threshold : 8192 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Hardware PCM card 0 'CA0106' device 0 subdevice 0 Its setup is: stream : PLAYBACK access : MMAP_INTERLEAVED format : S32_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 32 buffer_size : 8192 period_size : 1024 period_time : 21333 tstamp_mode : ENABLE period_step : 1 avail_min : 1024 period_event : 0 start_threshold : 1 stop_threshold : 1073741824 silence_threshold: 0 silence_size : 1073741824 boundary : 1073741824 ######### + | 35%Segmentation
fault
Kernel dump message
dmesg
Unable to handle kernel paging request for data at address 0x00000000 Faulting instruction address: 0xc0033fd4 Oops: Kernel access of bad area, sig: 11 [#7] Canyonlands Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 REGS: dfbf3d40 TRAP: 0300 Tainted: G D
(2.6.26-00015-gc0b03c1-dirty)
MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 DEAR: 00000000, ESR: 00000000 TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149
00000000
GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14
bff7ab68
GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000
de14c340
GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000
c0b2c180
NIP [c0033fd4] __wake_up_bit+0x10/0x40 LR [c004ac94] unlock_page+0x48/0x5c Call Trace: [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 Instruction dump: 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14 4e800020 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 419e0014 ---[ end trace a0b9d3bfbd44991b ]---
I tried with another example file.wav but the problem is the same. The issue seems from accessing memory. I'm using AMCC 460EX board with distribution Ubuntu-7.04
It's a known problem with non-coherent PPC architecture. Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot).
Takashi
At Mon, 25 Aug 2008 17:04:52 +0700, nguyen tritai wrote:
Takashi,
The issue is still present with the latest alsa-driver.
Which one did you take? It must be sound-unstable tree.
Anyway, you should better to use sound-unstable-2.6 git tree together with the latest Linus tree.
Takashi
Do you think that it's problem with 64 bit resource with pcm _mmap. Here is dmesg :
TASK = cf8b70c0[1579] 'aplay' THREAD: cfab4000 GPR00: f0f0f0f4 cfab5e20 cf8b70c0 c0ae7040 00000000 4814b000 cfab2900 00000000 GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c 10020000 10020000 GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50 cfa41d40 00000000 GPR24: 00000000 4814b000 00000000 cfa12948 00000000 4814b000 cfab2900 cfab5e38 NIP [d10d4814] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] LR [c0059fe8] __do_fault+0x64/0x428 Call Trace: [cfab5e20] [c004b748] unlock_page+0x48/0x5c (unreliable) [cfab5e30] [c0059fe8] __do_fault+0x64/0x428 [cfab5e80] [c000fd88] do_page_fault+0x2e8/0x540 [cfab5f40] [c000d2ec] handle_page_fault+0xc/0x80 Instruction dump: 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048 80030000 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 ---[ end trace 11885f716998bc3c ]---
Please show me where the issue is from and can I do something to fix it ?
Thanks TaiNguyen
On Mon, Aug 18, 2008 at 6:58 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 18 Aug 2008 18:26:40 +0700, nguyen tritai wrote: > > Takashi, > > Now I can build and install driver for ca0106 sb Audigy but I got another > issue when play an example file. > >> aplay -vv child.wav > Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono > Plug PCM: Rate conversion PCM (48000, sformat=U8) > Its setup is: > stream : PLAYBACK > access : RW_INTERLEAVED > format : U8 > subformat : STD > channels : 1 > rate : 22050 > exact rate : 22050 (22050/1) > msbits : 8 > buffer_size : 3763 > period_size : 470 > period_time : 21333 > tstamp_mode : NONE > period_step : 1 > avail_min : 470 > period_event : 0 > start_threshold : 3763 > stop_threshold : 3763 > silence_threshold: 0 > silence_size : 0 > boundary : 493223936 > Slave: Route conversion PCM (sformat=S32_LE) > Transformation table: > 0 <- 0 > 1 <- 0 > Its setup is: > stream : PLAYBACK > access : MMAP_INTERLEAVED > format : U8 > subformat : STD > channels : 1 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 8 > buffer_size : 8192 > period_size : 1024 > period_time : 21333 > tstamp_mode : NONE > period_step : 1 > avail_min : 1024 > period_event : 0 > start_threshold : 8192 > stop_threshold : 8192 > silence_threshold: 0 > silence_size : 0 > boundary : 1073741824 > Slave: Direct Stream Mixing PCM > Its setup is: > stream : PLAYBACK > access : MMAP_INTERLEAVED > format : S32_LE > subformat : STD > channels : 2 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 32 > buffer_size : 8192 > period_size : 1024 > period_time : 21333 > tstamp_mode : NONE > period_step : 1 > avail_min : 1024 > period_event : 0 > start_threshold : 8192 > stop_threshold : 8192 > silence_threshold: 0 > silence_size : 0 > boundary : 1073741824 > Hardware PCM card 0 'CA0106' device 0 subdevice 0 > Its setup is: > stream : PLAYBACK > access : MMAP_INTERLEAVED > format : S32_LE > subformat : STD > channels : 2 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 32 > buffer_size : 8192 > period_size : 1024 > period_time : 21333 > tstamp_mode : ENABLE > period_step : 1 > avail_min : 1024 > period_event : 0 > start_threshold : 1 > stop_threshold : 1073741824 > silence_threshold: 0 > silence_size : 1073741824 > boundary : 1073741824 > ######### + | 35%Segmentation fault > > Kernel dump message > >> dmesg > Unable to handle kernel paging request for data at address 0x00000000 > Faulting instruction address: 0xc0033fd4 > Oops: Kernel access of bad area, sig: 11 [#7] > Canyonlands > Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss > snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss > snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus > NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 > REGS: dfbf3d40 TRAP: 0300 Tainted: G D (2.6.26-00015-gc0b03c1-dirty) > MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 > DEAR: 00000000, ESR: 00000000 > TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 > GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 00000000 > GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 bff7ab68 > GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 de14c340 > GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 c0b2c180 > NIP [c0033fd4] __wake_up_bit+0x10/0x40 > LR [c004ac94] unlock_page+0x48/0x5c > Call Trace: > [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c > [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 > [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 > [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 > Instruction dump: > 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14 4e800020 > 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 419e0014 > ---[ end trace a0b9d3bfbd44991b ]--- > > I tried with another example file.wav but the problem is the same. > The issue seems from accessing memory. > I'm using AMCC 460EX board with distribution Ubuntu-7.04 It's a known problem with non-coherent PPC architecture. Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot). Takashi
Takashi,
I'm using the alsa-driver from git with the latest kernel.org 2.6.26 as you suggested me. The issue is the same with alsa-driver stable v1.0.18rc1.
TaiNguyen
On Mon, Aug 25, 2008 at 6:44 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 25 Aug 2008 17:04:52 +0700, nguyen tritai wrote:
Takashi,
The issue is still present with the latest alsa-driver.
Which one did you take? It must be sound-unstable tree.
Anyway, you should better to use sound-unstable-2.6 git tree together with the latest Linus tree.
Takashi
Do you think that it's problem with 64 bit resource with pcm _mmap. Here is dmesg :
TASK = cf8b70c0[1579] 'aplay' THREAD: cfab4000 GPR00: f0f0f0f4 cfab5e20 cf8b70c0 c0ae7040 00000000 4814b000 cfab2900
00000000
GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c 10020000
10020000
GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50 cfa41d40
00000000
GPR24: 00000000 4814b000 00000000 cfa12948 00000000 4814b000 cfab2900
cfab5e38
NIP [d10d4814] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] LR [c0059fe8] __do_fault+0x64/0x428 Call Trace: [cfab5e20] [c004b748] unlock_page+0x48/0x5c (unreliable) [cfab5e30] [c0059fe8] __do_fault+0x64/0x428 [cfab5e80] [c000fd88] do_page_fault+0x2e8/0x540 [cfab5f40] [c000d2ec] handle_page_fault+0xc/0x80 Instruction dump: 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048 80030000 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 ---[ end trace 11885f716998bc3c ]---
Please show me where the issue is from and can I do something to fix it ?
Thanks TaiNguyen
On Mon, Aug 18, 2008 at 6:58 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 18 Aug 2008 18:26:40 +0700, nguyen tritai wrote: > > Takashi, > > Now I can build and install driver for ca0106 sb Audigy but I got another > issue when play an example file. > >> aplay -vv child.wav > Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz,
Mono
> Plug PCM: Rate conversion PCM (48000, sformat=U8) > Its setup is: > stream : PLAYBACK > access : RW_INTERLEAVED > format : U8 > subformat : STD > channels : 1 > rate : 22050 > exact rate : 22050 (22050/1) > msbits : 8 > buffer_size : 3763 > period_size : 470 > period_time : 21333 > tstamp_mode : NONE > period_step : 1 > avail_min : 470 > period_event : 0 > start_threshold : 3763 > stop_threshold : 3763 > silence_threshold: 0 > silence_size : 0 > boundary : 493223936 > Slave: Route conversion PCM (sformat=S32_LE) > Transformation table: > 0 <- 0 > 1 <- 0 > Its setup is: > stream : PLAYBACK > access : MMAP_INTERLEAVED > format : U8 > subformat : STD > channels : 1 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 8 > buffer_size : 8192 > period_size : 1024 > period_time : 21333 > tstamp_mode : NONE > period_step : 1 > avail_min : 1024 > period_event : 0 > start_threshold : 8192 > stop_threshold : 8192 > silence_threshold: 0 > silence_size : 0 > boundary : 1073741824 > Slave: Direct Stream Mixing PCM > Its setup is: > stream : PLAYBACK > access : MMAP_INTERLEAVED > format : S32_LE > subformat : STD > channels : 2 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 32 > buffer_size : 8192 > period_size : 1024 > period_time : 21333 > tstamp_mode : NONE > period_step : 1 > avail_min : 1024 > period_event : 0 > start_threshold : 8192 > stop_threshold : 8192 > silence_threshold: 0 > silence_size : 0 > boundary : 1073741824 > Hardware PCM card 0 'CA0106' device 0 subdevice 0 > Its setup is: > stream : PLAYBACK > access : MMAP_INTERLEAVED > format : S32_LE > subformat : STD > channels : 2 > rate : 48000 > exact rate : 48000 (48000/1) > msbits : 32 > buffer_size : 8192 > period_size : 1024 > period_time : 21333 > tstamp_mode : ENABLE > period_step : 1 > avail_min : 1024 > period_event : 0 > start_threshold : 1 > stop_threshold : 1073741824 > silence_threshold: 0 > silence_size : 1073741824 > boundary : 1073741824 > ######### + |
35%Segmentation
fault > > Kernel dump message > >> dmesg > Unable to handle kernel paging request for data at address
0x00000000
> Faulting instruction address: 0xc0033fd4 > Oops: Kernel access of bad area, sig: 11 [#7] > Canyonlands > Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss > snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec
snd_pcm_oss
> snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus > NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 > REGS: dfbf3d40 TRAP: 0300 Tainted: G D (2.6.26-00015-gc0b03c1-dirty) > MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 > DEAR: 00000000, ESR: 00000000 > TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 > GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000
3f10c149
00000000 > GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478
1000bd14
bff7ab68 > GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000
00000000
de14c340 > GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000
00000000
c0b2c180 > NIP [c0033fd4] __wake_up_bit+0x10/0x40 > LR [c004ac94] unlock_page+0x48/0x5c > Call Trace: > [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c > [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 > [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 > [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 > Instruction dump: > 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14
4e800020
> 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 419e0014 > ---[ end trace a0b9d3bfbd44991b ]--- > > I tried with another example file.wav but the problem is the same. > The issue seems from accessing memory. > I'm using AMCC 460EX board with distribution Ubuntu-7.04 It's a known problem with non-coherent PPC architecture. Try my sound-unstable-2.6 git tree (or alsa-driver-unstable
snapshot).
Takashi
At Tue, 26 Aug 2008 11:49:44 +0700, nguyen tritai wrote:
Takashi,
I'm using the alsa-driver from git with the latest kernel.org 2.6.26 as you suggested me.
There are two different versions: stable and unstable trees. The fix for non-coherent platforms is currently only in the unstable version, and this can't be built externally via alsa-driver build stub (it could, but works only for x86).
You need to build the kernel by yourself to include some new functions, e.g. clone the latest Linus git tree (2.6.27-rc4*), then pull sound-unstable-2.6.git on that.
thanks,
Takashi
The issue is the same with alsa-driver stable v1.0.18rc1. TaiNguyen
On Mon, Aug 25, 2008 at 6:44 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 25 Aug 2008 17:04:52 +0700, nguyen tritai wrote: > > Takashi, > > The issue is still present with the latest alsa-driver. Which one did you take? It must be sound-unstable tree. Anyway, you should better to use sound-unstable-2.6 git tree together with the latest Linus tree. Takashi > Do you think that it's problem with 64 bit resource with pcm _mmap. > Here is dmesg : > > TASK = cf8b70c0[1579] 'aplay' THREAD: cfab4000 > GPR00: f0f0f0f4 cfab5e20 cf8b70c0 c0ae7040 00000000 4814b000 cfab2900 00000000 > GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c 10020000 10020000 > GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50 cfa41d40 00000000 > GPR24: 00000000 4814b000 00000000 cfa12948 00000000 4814b000 cfab2900 cfab5e38 > NIP [d10d4814] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] > LR [c0059fe8] __do_fault+0x64/0x428 > Call Trace: > [cfab5e20] [c004b748] unlock_page+0x48/0x5c (unreliable) > [cfab5e30] [c0059fe8] __do_fault+0x64/0x428 > [cfab5e80] [c000fd88] do_page_fault+0x2e8/0x540 > [cfab5f40] [c000d2ec] handle_page_fault+0xc/0x80 > Instruction dump: > 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048 80030000 > 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 > ---[ end trace 11885f716998bc3c ]--- > > Please show me where the issue is from and can I do something to fix it ? > > Thanks > TaiNguyen > > On Mon, Aug 18, 2008 at 6:58 PM, Takashi Iwai <tiwai@suse.de> wrote: > > At Mon, 18 Aug 2008 18:26:40 +0700, > nguyen tritai wrote: > > > > Takashi, > > > > Now I can build and install driver for ca0106 sb Audigy but I got > another > > issue when play an example file. > > >> aplay -vv child.wav > > Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono > > Plug PCM: Rate conversion PCM (48000, sformat=U8) > > Its setup is: > > stream : PLAYBACK > > access : RW_INTERLEAVED > > format : U8 > > subformat : STD > > channels : 1 > > rate : 22050 > > exact rate : 22050 (22050/1) > > msbits : 8 > > buffer_size : 3763 > > period_size : 470 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 470 > > period_event : 0 > > start_threshold : 3763 > > stop_threshold : 3763 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 493223936 > > Slave: Route conversion PCM (sformat=S32_LE) > > Transformation table: > > 0 <- 0 > > 1 <- 0 > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : U8 > > subformat : STD > > channels : 1 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 8 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 8192 > > stop_threshold : 8192 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 1073741824 > > Slave: Direct Stream Mixing PCM > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : S32_LE > > subformat : STD > > channels : 2 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 32 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 8192 > > stop_threshold : 8192 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 1073741824 > > Hardware PCM card 0 'CA0106' device 0 subdevice 0 > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : S32_LE > > subformat : STD > > channels : 2 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 32 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : ENABLE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 1 > > stop_threshold : 1073741824 > > silence_threshold: 0 > > silence_size : 1073741824 > > boundary : 1073741824 > > ######### + | 35%Segmentation > fault > > > > Kernel dump message > > >> dmesg > > Unable to handle kernel paging request for data at address 0x00000000 > > Faulting instruction address: 0xc0033fd4 > > Oops: Kernel access of bad area, sig: 11 [#7] > > Canyonlands > > Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi snd_seq_oss > > snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss > > snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus > > NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 > > REGS: dfbf3d40 TRAP: 0300 Tainted: G D > (2.6.26-00015-gc0b03c1-dirty) > > MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 > > DEAR: 00000000, ESR: 00000000 > > TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 > > GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 > 00000000 > > GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 > bff7ab68 > > GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 > de14c340 > > GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 > c0b2c180 > > NIP [c0033fd4] __wake_up_bit+0x10/0x40 > > LR [c004ac94] unlock_page+0x48/0x5c > > Call Trace: > > [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c > > [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 > > [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 > > [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 > > Instruction dump: > > 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838 7c634a14 4e800020 > > 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c 7f801800 > 419e0014 > > ---[ end trace a0b9d3bfbd44991b ]--- > > > > I tried with another example file.wav but the problem is the same. > > The issue seems from accessing memory. > > I'm using AMCC 460EX board with distribution Ubuntu-7.04 > > It's a known problem with non-coherent PPC architecture. > Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot). > > Takashi > >
Takashi,
I'm not very familiar with git. Please feel free to help with "git pull". I have already done "git clone" the latest kernel source 2.6.27-rc4 but I still can't merge sound-unstable-2.6.git with the kernel.
Thanks, TaiNguyen
On Tue, Aug 26, 2008 at 1:55 PM, Takashi Iwai tiwai@suse.de wrote:
At Tue, 26 Aug 2008 11:49:44 +0700, nguyen tritai wrote:
Takashi,
I'm using the alsa-driver from git with the latest kernel.org 2.6.26 as
you
suggested me.
There are two different versions: stable and unstable trees. The fix for non-coherent platforms is currently only in the unstable version, and this can't be built externally via alsa-driver build stub (it could, but works only for x86).
You need to build the kernel by yourself to include some new functions, e.g. clone the latest Linus git tree (2.6.27-rc4*), then pull sound-unstable-2.6.git on that.
thanks,
Takashi
The issue is the same with alsa-driver stable v1.0.18rc1. TaiNguyen
On Mon, Aug 25, 2008 at 6:44 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 25 Aug 2008 17:04:52 +0700, nguyen tritai wrote: > > Takashi, > > The issue is still present with the latest alsa-driver. Which one did you take? It must be sound-unstable tree. Anyway, you should better to use sound-unstable-2.6 git tree together with the latest Linus tree. Takashi > Do you think that it's problem with 64 bit resource with pcm
_mmap.
> Here is dmesg : > > TASK = cf8b70c0[1579] 'aplay' THREAD: cfab4000 > GPR00: f0f0f0f4 cfab5e20 cf8b70c0 c0ae7040 00000000 4814b000
cfab2900
00000000 > GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c
10020000
10020000 > GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50
cfa41d40
00000000 > GPR24: 00000000 4814b000 00000000 cfa12948 00000000 4814b000
cfab2900
cfab5e38 > NIP [d10d4814] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] > LR [c0059fe8] __do_fault+0x64/0x428 > Call Trace: > [cfab5e20] [c004b748] unlock_page+0x48/0x5c (unreliable) > [cfab5e30] [c0059fe8] __do_fault+0x64/0x428 > [cfab5e80] [c000fd88] do_page_fault+0x2e8/0x540 > [cfab5f40] [c000d2ec] handle_page_fault+0xc/0x80 > Instruction dump: > 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048
80030000
> 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 > ---[ end trace 11885f716998bc3c ]--- > > Please show me where the issue is from and can I do something to
fix it
? > > Thanks > TaiNguyen > > On Mon, Aug 18, 2008 at 6:58 PM, Takashi Iwai <tiwai@suse.de>
wrote:
> > At Mon, 18 Aug 2008 18:26:40 +0700, > nguyen tritai wrote: > > > > Takashi, > > > > Now I can build and install driver for ca0106 sb Audigy but I
got
> another > > issue when play an example file. > > >> aplay -vv child.wav > > Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050
Hz,
Mono > > Plug PCM: Rate conversion PCM (48000, sformat=U8) > > Its setup is: > > stream : PLAYBACK > > access : RW_INTERLEAVED > > format : U8 > > subformat : STD > > channels : 1 > > rate : 22050 > > exact rate : 22050 (22050/1) > > msbits : 8 > > buffer_size : 3763 > > period_size : 470 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 470 > > period_event : 0 > > start_threshold : 3763 > > stop_threshold : 3763 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 493223936 > > Slave: Route conversion PCM (sformat=S32_LE) > > Transformation table: > > 0 <- 0 > > 1 <- 0 > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : U8 > > subformat : STD > > channels : 1 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 8 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 8192 > > stop_threshold : 8192 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 1073741824 > > Slave: Direct Stream Mixing PCM > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : S32_LE > > subformat : STD > > channels : 2 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 32 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 8192 > > stop_threshold : 8192 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 1073741824 > > Hardware PCM card 0 'CA0106' device 0 subdevice 0 > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : S32_LE > > subformat : STD > > channels : 2 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 32 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : ENABLE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 1 > > stop_threshold : 1073741824 > > silence_threshold: 0 > > silence_size : 1073741824 > > boundary : 1073741824 > > ######### + | 35%Segmentation > fault > > > > Kernel dump message > > >> dmesg > > Unable to handle kernel paging request for data at address 0x00000000 > > Faulting instruction address: 0xc0033fd4 > > Oops: Kernel access of bad area, sig: 11 [#7] > > Canyonlands > > Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi
snd_seq_oss
> > snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss > > snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus > > NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 > > REGS: dfbf3d40 TRAP: 0300 Tainted: G D > (2.6.26-00015-gc0b03c1-dirty) > > MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 > > DEAR: 00000000, ESR: 00000000 > > TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 > > GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 > 00000000 > > GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 > bff7ab68 > > GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 > de14c340 > > GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 > c0b2c180 > > NIP [c0033fd4] __wake_up_bit+0x10/0x40 > > LR [c004ac94] unlock_page+0x48/0x5c > > Call Trace: > > [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c > > [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 > > [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 > > [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 > > Instruction dump: > > 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838
7c634a14
4e800020 > > 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c
7f801800
> 419e0014 > > ---[ end trace a0b9d3bfbd44991b ]--- > > > > I tried with another example file.wav but the problem is the
same.
> > The issue seems from accessing memory. > > I'm using AMCC 460EX board with distribution Ubuntu-7.04 > > It's a known problem with non-coherent PPC architecture. > Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot). > > Takashi > >
I did compile your alsa-driver-unstable using cross-compile powerpc-linnux- in a x86 Linux. Then, I did insmod the modules and aplay -vvv sample.wav.
The issue is the same with the old drivers. Following is dmesg :
snd-ca0106: Model 100a Rev 00000000 Serial 100a1102 Unable to handle kernel paging request for data at address 0xf0f0f0f4 Faulting instruction address: 0xd10ca7f4 Oops: Kernel access of bad area, sig: 11 [#1] Sequoia Modules linked in: snd_ca0106 snd_ac97_codec ac97_bus snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd snd_page_alloc NIP: d10ca7f4 LR: c0059fe8 CTR: d10ca77c REGS: cfaa3d70 TRAP: 0300 Not tainted (2.6.26) MSR: 00029000 <EE,ME> CR: 40008442 XER: 0000005f DEAR: f0f0f0f4, ESR: 00000000 TASK = cf908410[1521] 'aplay' THREAD: cfaa2000 GPR00: f0f0f0f4 cfaa3e20 cf908410 c0ae7040 00000000 4814b000 cfb0a900 00000000 GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c 10020000 10020000 GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50 cfa43a00 00000000 GPR24: 00000000 4814b000 00000000 cf9ff790 00000000 4814b000 cfb0a900 cfaa3e38 NIP [d10ca7f4] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] LR [c0059fe8] __do_fault+0x64/0x428 Call Trace: [cfaa3e20] [c004b748] unlock_page+0x48/0x5c (unreliable) [cfaa3e30] [c0059fe8] __do_fault+0x64/0x428 [cfaa3e80] [c000fd88] do_page_fault+0x2e8/0x540 [cfaa3f40] [c000d2ec] handle_page_fault+0xc/0x80 Instruction dump: 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048 80030000 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 ---[ end trace db39fe7fb7fcb01f ]---
Thanks, TaiNguyen
On Tue, Aug 26, 2008 at 4:15 PM, nguyen tritai nguyentritai@gmail.comwrote:
Takashi,
I'm not very familiar with git. Please feel free to help with "git pull". I have already done "git clone" the latest kernel source 2.6.27-rc4 but I still can't merge sound-unstable-2.6.git with the kernel.
Thanks, TaiNguyen
On Tue, Aug 26, 2008 at 1:55 PM, Takashi Iwai tiwai@suse.de wrote:
At Tue, 26 Aug 2008 11:49:44 +0700, nguyen tritai wrote:
Takashi,
I'm using the alsa-driver from git with the latest kernel.org 2.6.26
as you
suggested me.
There are two different versions: stable and unstable trees. The fix for non-coherent platforms is currently only in the unstable version, and this can't be built externally via alsa-driver build stub (it could, but works only for x86).
You need to build the kernel by yourself to include some new functions, e.g. clone the latest Linus git tree (2.6.27-rc4*), then pull sound-unstable-2.6.git on that.
thanks,
Takashi
The issue is the same with alsa-driver stable v1.0.18rc1. TaiNguyen
On Mon, Aug 25, 2008 at 6:44 PM, Takashi Iwai tiwai@suse.de wrote:
At Mon, 25 Aug 2008 17:04:52 +0700, nguyen tritai wrote: > > Takashi, > > The issue is still present with the latest alsa-driver. Which one did you take? It must be sound-unstable tree. Anyway, you should better to use sound-unstable-2.6 git tree
together
with the latest Linus tree. Takashi > Do you think that it's problem with 64 bit resource with pcm
_mmap.
> Here is dmesg : > > TASK = cf8b70c0[1579] 'aplay' THREAD: cfab4000 > GPR00: f0f0f0f4 cfab5e20 cf8b70c0 c0ae7040 00000000 4814b000
cfab2900
00000000 > GPR08: 00000000 00004000 00000000 f0f0f0f0 20008448 1002557c
10020000
10020000 > GPR16: 10010000 10024a58 00000008 10042050 100406d8 0ff80d50
cfa41d40
00000000 > GPR24: 00000000 4814b000 00000000 cfa12948 00000000 4814b000
cfab2900
cfab5e38 > NIP [d10d4814] snd_pcm_mmap_data_fault+0x78/0xec [snd_pcm] > LR [c0059fe8] __do_fault+0x64/0x428 > Call Trace: > [cfab5e20] [c004b748] unlock_page+0x48/0x5c (unreliable) > [cfab5e30] [c0059fe8] __do_fault+0x64/0x428 > [cfab5e80] [c000fd88] do_page_fault+0x2e8/0x540 > [cfab5f40] [c000d2ec] handle_page_fault+0xc/0x80 > Instruction dump: > 80090028 2f800000 419e0074 7c0903a6 4e800421 2c030000 41820048
80030000
> 7c6b1b78 70094000 40820074 380b0004 <7d200028> 31290001 7d20012d 40a2fff4 > ---[ end trace 11885f716998bc3c ]--- > > Please show me where the issue is from and can I do something to
fix it
? > > Thanks > TaiNguyen > > On Mon, Aug 18, 2008 at 6:58 PM, Takashi Iwai <tiwai@suse.de>
wrote:
> > At Mon, 18 Aug 2008 18:26:40 +0700, > nguyen tritai wrote: > > > > Takashi, > > > > Now I can build and install driver for ca0106 sb Audigy but
I got
> another > > issue when play an example file. > > >> aplay -vv child.wav > > Playing WAVE '/root/child.wav' : Unsigned 8 bit, Rate 22050
Hz,
Mono > > Plug PCM: Rate conversion PCM (48000, sformat=U8) > > Its setup is: > > stream : PLAYBACK > > access : RW_INTERLEAVED > > format : U8 > > subformat : STD > > channels : 1 > > rate : 22050 > > exact rate : 22050 (22050/1) > > msbits : 8 > > buffer_size : 3763 > > period_size : 470 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 470 > > period_event : 0 > > start_threshold : 3763 > > stop_threshold : 3763 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 493223936 > > Slave: Route conversion PCM (sformat=S32_LE) > > Transformation table: > > 0 <- 0 > > 1 <- 0 > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : U8 > > subformat : STD > > channels : 1 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 8 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 8192 > > stop_threshold : 8192 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 1073741824 > > Slave: Direct Stream Mixing PCM > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : S32_LE > > subformat : STD > > channels : 2 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 32 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : NONE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 8192 > > stop_threshold : 8192 > > silence_threshold: 0 > > silence_size : 0 > > boundary : 1073741824 > > Hardware PCM card 0 'CA0106' device 0 subdevice 0 > > Its setup is: > > stream : PLAYBACK > > access : MMAP_INTERLEAVED > > format : S32_LE > > subformat : STD > > channels : 2 > > rate : 48000 > > exact rate : 48000 (48000/1) > > msbits : 32 > > buffer_size : 8192 > > period_size : 1024 > > period_time : 21333 > > tstamp_mode : ENABLE > > period_step : 1 > > avail_min : 1024 > > period_event : 0 > > start_threshold : 1 > > stop_threshold : 1073741824 > > silence_threshold: 0 > > silence_size : 1073741824 > > boundary : 1073741824 > > ######### + | 35%Segmentation > fault > > > > Kernel dump message > > >> dmesg > > Unable to handle kernel paging request for data at address 0x00000000 > > Faulting instruction address: 0xc0033fd4 > > Oops: Kernel access of bad area, sig: 11 [#7] > > Canyonlands > > Modules linked in: snd_seq_midi snd_ca0106 snd_rawmidi
snd_seq_oss
> > snd_seq_midi_event snd_seq snd_seq_device snd_ac97_codec snd_pcm_oss > > snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd ac97_bus > > NIP: c0033fd4 LR: c004ac94 CTR: e901a6c8 > > REGS: dfbf3d40 TRAP: 0300 Tainted: G D > (2.6.26-00015-gc0b03c1-dirty) > > MSR: 00029000 <EE,ME> CR: 48022444 XER: 20000000 > > DEAR: 00000000, ESR: 00000000 > > TASK = dfa57000[15245] 'aplay' THREAD: dfbf2000 > > GPR00: c004ac94 dfbf3df0 dfa57000 00000000 c0b2c180 00000000 3f10c149 > 00000000 > > GPR08: 00000000 00000000 9e370001 c030b10c 00000149 10025478 1000bd14 > bff7ab68 > > GPR16: c0320000 c030ae74 c0320000 00000000 00000000 00000000 00000000 > de14c340 > > GPR24: 4814b000 00000000 dfbf2000 de00c2c0 c0b2c180 00000000 00000000 > c0b2c180 > > NIP [c0033fd4] __wake_up_bit+0x10/0x40 > > LR [c004ac94] unlock_page+0x48/0x5c > > Call Trace: > > [dfbf3e10] [c004ac94] unlock_page+0x48/0x5c > > [dfbf3e20] [c005a2d8] __do_fault+0x254/0x618 > > [dfbf3e80] [c000faf0] do_page_fault+0x2d8/0x518 > > [dfbf3f40] [c000d134] handle_page_fault+0xc/0x80 > > Instruction dump: > > 7d6b4a14 800b0280 812b0278 20000020 7c630430 54631838
7c634a14
4e800020 > > 7c0802a6 9421ffe0 90810008 90010024 <80030000> 90a1000c
7f801800
> 419e0014 > > ---[ end trace a0b9d3bfbd44991b ]--- > > > > I tried with another example file.wav but the problem is the
same.
> > The issue seems from accessing memory. > > I'm using AMCC 460EX board with distribution Ubuntu-7.04 > > It's a known problem with non-coherent PPC architecture. > Try my sound-unstable-2.6 git tree (or alsa-driver-unstable snapshot). > > Takashi > >
participants (2)
-
nguyen tritai
-
Takashi Iwai