All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joachim Foerster <mls.JOFT@gmx.de>
To: Qin Lin <linkinge@gmail.com>
Cc: linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: ML403 AC97 ALSA Driver problem
Date: Mon, 03 Sep 2007 22:42:35 +0200	[thread overview]
Message-ID: <1188852155.5738.21.camel@localhost> (raw)
In-Reply-To: <12399427.post@talk.nabble.com>

Hi Qin Lin,

On Wed, 2007-08-29 at 19:19 -0700, Qin Lin wrote:
> when i use the ac97driver posted by Joachim Förster  recently,there is a
> kernel stack overflow while testing .

> [   82.689668] Kernel stack overflow in process c02a6490, r1=c02f7f30
> [   82.763235] Oops: kernel access of bad area, sig: 11 [#1]
> [   82.827330] NIP: C001327C LR: C001666C CTR: 00000000
> [   82.886699] REGS: c01931f0 TRAP: 0300   Not tainted  (2.6.20)
> [   82.955428] MSR: 00021030 <ME,IR,DR>  CR: 28000028  XER: 00000000
> [   83.028333] DAR: 00000005, DSISR: 00000000
> [   83.077290] TASK = c02a6490[134] 'xsysace' THREAD: c02f8000
> [   83.141855] GPR00: 00000001 C01932A0 C02A6490 00000000 C01B3770 00000012
> 00000300 00000010
> [   83.241838] GPR08: FFFFFFFA 00000020 00000000 00000005 00000000 FFFF87B8
> 03FD0700 00000000
> [   83.341823] GPR16: 00000001 00800000 03FCF588 00000000 FFFFFFFF 007FFF00
> 03FC9FFC 00000002
> [   83.441806] GPR24: 03E667C0 C01B0000 C010600C C01B3770 00000012 00000000
> 00000000 C0193470
> [   83.543874] NIP [C001327C] xmon_write+0x38/0xbc
> [   83.598032] LR [C001666C] xmon_vfprintf+0x34/0x48
> [   83.654272] Call Trace:
> [   83.683435] Instruction dump:
> [   83.718848] bf61000c 90010024 3d20c01b 8009f1bc 7c9b2378 2f800000
> 7cbc2b78 40be0008
> [   83.811540] 4bfffe2d 3ba00000 3bc00000 48000054 <880b0000> 7c0a4839
> 4182fff8 7ffbf0ae

Do you get this overflow everytime you try aplay? Or, do you get it
sometimes, only?

What confuses me is, that in your kernel messages the "TASK = ...
'xsysace'" is mentioned. Perhaps there is some relation with the sysace
driver? Or do I miss something, here?
Did you try play a .wav file from a RAM disk or NFS-mounted location? I
have to note, that I am not using sysace and I haven't tried it jet -
especially together with my AC97 driver.

As a first step, no matter what, you could compile your kernel with
CONFIG_SND_DEBUG and additionally replace the line

#define PDEBUG_FACILITIES (UNKNOWN | INIT_FAILURE | WORK_FAILURE)

in ml403-ac97cr.c with

#define PDEBUG_FACILITIES (UNKNOWN | INIT_FAILURE | WORK_FAILURE |
WORK_INFO | INIT_INFO)

This will give you a, well, huge amount of debugging messages
(KERN_DEBUG). There we should see, how far my driver is getting (to some
extent).

 Joachim

  reply	other threads:[~2007-09-03 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30  2:19 ML403 AC97 ALSA Driver problem Qin Lin
2007-09-03 20:42 ` Joachim Foerster [this message]
2007-09-04  1:58   ` Qin Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1188852155.5738.21.camel@localhost \
    --to=mls.joft@gmx.de \
    --cc=linkinge@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.