nguyen tritai | 18 Aug 13:26

Re: 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:
(Continue reading)

Takashi Iwai | 18 Aug 13:58
Favicon

Re: Alsa-driver compile fail on Ubuntu powerpc

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
(Continue reading)

nguyen tritai | 25 Aug 12:04

Re: Alsa-driver compile fail on Ubuntu powerpc

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
(Continue reading)

Takashi Iwai | 25 Aug 13:44
Favicon

Re: Alsa-driver compile fail on Ubuntu powerpc

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:
(Continue reading)

nguyen tritai | 26 Aug 06:49

Re: Alsa-driver compile fail on Ubuntu powerpc

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 <at> 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
(Continue reading)

Takashi Iwai | 26 Aug 08:55
Favicon

Re: Alsa-driver compile fail on Ubuntu powerpc

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 <at> suse.de> wrote:
> 
>     At Mon, 25 Aug 2008 17:04:52 +0700,
>     nguyen tritai wrote:
>     >
>     > Takashi,
(Continue reading)

nguyen tritai | 26 Aug 11:15

Re: Alsa-driver compile fail on Ubuntu powerpc

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 <at> 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.
>
>
(Continue reading)

nguyen tritai | 26 Aug 11:25

Re: Alsa-driver compile fail on Ubuntu powerpc

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
(Continue reading)


Gmane