From: Richard Genoud <richard.genoud@gmail.com>
To: Bo Shen <voice.shen@atmel.com>
Cc: Mark Brown <broonie@kernel.org>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>,
linux-sound@vger.kernel.org, alsa-devel@alsa-project.org,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
Date: Fri, 29 Nov 2013 15:59:02 +0100 [thread overview]
Message-ID: <5298ABB6.3030303@gmail.com> (raw)
In-Reply-To: <52969A50.3030601@atmel.com>
Hi,
On 28/11/2013 02:20, Bo Shen wrote:
> Hi Richard,
>
> On 11/27/2013 06:09 PM, Richard Genoud wrote:
>
> [Snip]
>
>> dma dma0chan4: prep_dma_cyclic: TO DEVICE buf@0x27950000 - 8 (65536/8192)
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: tx_submit: started 2
>> dma dma0chan4: channel 4 : imr = 0xff00ff, chsr = 0xff0000
>> dma dma0chan4: channel: s0x27b3eb20 d0xf0010024
>> ctrl0x91000590:0x20200010 cfg0x100022dd l0x27981d10
>> dma dma0chan4: channel 4 : imr = 0xff00ff, chsr = 0xff0010
>> dma dma0chan4: channel: s0x27950010 d0xf0010024
>> ctrl0x11000008:0x20200010 cfg0x100022dd l0x27a58344
>> dma dma0chan4: issue_pending
>> [ blocks here forever (or at least a looooong time) ]
>
> How can I reproduce this issue? Please help provide detail information
> about your operation.
>
> On my side, I just do:
> --->8---
> while true;
> do
> insmod snd-soc-atmel-pcm-dma.ko && insmod snd-soc-atmel_ssc_dai.ko
> && insmod snd-soc-wm8731.ko && insmod snd-soc-sam9x5-wm8731.ko;
> amixer cset numid=14,iface=MIXER,name='Output Mixer HiFi Playback
> Switch' on;
> aplay sample.wav;
> rmmod snd-soc-sam9x5-wm8731.ko && rmmod snd-soc-wm8731.ko && rmmod
> snd-soc-atmel_ssc_dai.ko && rmmod snd-soc-atmel-pcm-dma.ko;
> done
> ---8<---
>
> It works well on my side on at91sam9g35ek board, based on v3.13-rc1
Ok, it's working with your script.
I was doing:
modprobe snd-soc-wm8731
modprobe snd-soc-sam9x5-wm8731
amixer cset numid=14,iface=MIXER,name='Output Mixer HiFi Playback Switch' on
aplay sample.wav # works ok
rmmod snd-soc-sam9x5-wm8731
insmod /lib/modules/3.13.0-rc1/kernel/sound/soc/atmel/snd-soc-sam9x5-wm8731.ko
amixer cset numid=14,iface=MIXER,name='Output Mixer HiFi Playback Switch' on
aplay sample.wav # error
aplay: pcm_write:1737: write error: Input/output error
=> I wasn't unloading snd-soc-wm8731
Thanks for your time !
Richard.
WARNING: multiple messages have this Message-ID (diff)
From: Richard Genoud <richard.genoud@gmail.com>
To: Bo Shen <voice.shen@atmel.com>
Cc: Mark Brown <broonie@kernel.org>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>,
linux-sound@vger.kernel.org, alsa-devel@alsa-project.org,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
Date: Fri, 29 Nov 2013 14:59:02 +0000 [thread overview]
Message-ID: <5298ABB6.3030303@gmail.com> (raw)
In-Reply-To: <52969A50.3030601@atmel.com>
Hi,
On 28/11/2013 02:20, Bo Shen wrote:
> Hi Richard,
>
> On 11/27/2013 06:09 PM, Richard Genoud wrote:
>
> [Snip]
>
>> dma dma0chan4: prep_dma_cyclic: TO DEVICE buf@0x27950000 - 8 (65536/8192)
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: tx_submit: started 2
>> dma dma0chan4: channel 4 : imr = 0xff00ff, chsr = 0xff0000
>> dma dma0chan4: channel: s0x27b3eb20 d0xf0010024
>> ctrl0x91000590:0x20200010 cfg0x100022dd l0x27981d10
>> dma dma0chan4: channel 4 : imr = 0xff00ff, chsr = 0xff0010
>> dma dma0chan4: channel: s0x27950010 d0xf0010024
>> ctrl0x11000008:0x20200010 cfg0x100022dd l0x27a58344
>> dma dma0chan4: issue_pending
>> [ blocks here forever (or at least a looooong time) ]
>
> How can I reproduce this issue? Please help provide detail information
> about your operation.
>
> On my side, I just do:
> --->8---
> while true;
> do
> insmod snd-soc-atmel-pcm-dma.ko && insmod snd-soc-atmel_ssc_dai.ko
> && insmod snd-soc-wm8731.ko && insmod snd-soc-sam9x5-wm8731.ko;
> amixer cset numid\x14,iface=MIXER,name='Output Mixer HiFi Playback
> Switch' on;
> aplay sample.wav;
> rmmod snd-soc-sam9x5-wm8731.ko && rmmod snd-soc-wm8731.ko && rmmod
> snd-soc-atmel_ssc_dai.ko && rmmod snd-soc-atmel-pcm-dma.ko;
> done
> ---8<---
>
> It works well on my side on at91sam9g35ek board, based on v3.13-rc1
Ok, it's working with your script.
I was doing:
modprobe snd-soc-wm8731
modprobe snd-soc-sam9x5-wm8731
amixer cset numid\x14,iface=MIXER,name='Output Mixer HiFi Playback Switch' on
aplay sample.wav # works ok
rmmod snd-soc-sam9x5-wm8731
insmod /lib/modules/3.13.0-rc1/kernel/sound/soc/atmel/snd-soc-sam9x5-wm8731.ko
amixer cset numid\x14,iface=MIXER,name='Output Mixer HiFi Playback Switch' on
aplay sample.wav # error
aplay: pcm_write:1737: write error: Input/output error
=> I wasn't unloading snd-soc-wm8731
Thanks for your time !
Richard.
WARNING: multiple messages have this Message-ID (diff)
From: richard.genoud@gmail.com (Richard Genoud)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module
Date: Fri, 29 Nov 2013 15:59:02 +0100 [thread overview]
Message-ID: <5298ABB6.3030303@gmail.com> (raw)
In-Reply-To: <52969A50.3030601@atmel.com>
Hi,
On 28/11/2013 02:20, Bo Shen wrote:
> Hi Richard,
>
> On 11/27/2013 06:09 PM, Richard Genoud wrote:
>
> [Snip]
>
>> dma dma0chan4: prep_dma_cyclic: TO DEVICE buf at 0x27950000 - 8 (65536/8192)
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: scanned 1 descriptors on freelist
>> dma dma0chan4: tx_submit: started 2
>> dma dma0chan4: channel 4 : imr = 0xff00ff, chsr = 0xff0000
>> dma dma0chan4: channel: s0x27b3eb20 d0xf0010024
>> ctrl0x91000590:0x20200010 cfg0x100022dd l0x27981d10
>> dma dma0chan4: channel 4 : imr = 0xff00ff, chsr = 0xff0010
>> dma dma0chan4: channel: s0x27950010 d0xf0010024
>> ctrl0x11000008:0x20200010 cfg0x100022dd l0x27a58344
>> dma dma0chan4: issue_pending
>> [ blocks here forever (or at least a looooong time) ]
>
> How can I reproduce this issue? Please help provide detail information
> about your operation.
>
> On my side, I just do:
> --->8---
> while true;
> do
> insmod snd-soc-atmel-pcm-dma.ko && insmod snd-soc-atmel_ssc_dai.ko
> && insmod snd-soc-wm8731.ko && insmod snd-soc-sam9x5-wm8731.ko;
> amixer cset numid=14,iface=MIXER,name='Output Mixer HiFi Playback
> Switch' on;
> aplay sample.wav;
> rmmod snd-soc-sam9x5-wm8731.ko && rmmod snd-soc-wm8731.ko && rmmod
> snd-soc-atmel_ssc_dai.ko && rmmod snd-soc-atmel-pcm-dma.ko;
> done
> ---8<---
>
> It works well on my side on at91sam9g35ek board, based on v3.13-rc1
Ok, it's working with your script.
I was doing:
modprobe snd-soc-wm8731
modprobe snd-soc-sam9x5-wm8731
amixer cset numid=14,iface=MIXER,name='Output Mixer HiFi Playback Switch' on
aplay sample.wav # works ok
rmmod snd-soc-sam9x5-wm8731
insmod /lib/modules/3.13.0-rc1/kernel/sound/soc/atmel/snd-soc-sam9x5-wm8731.ko
amixer cset numid=14,iface=MIXER,name='Output Mixer HiFi Playback Switch' on
aplay sample.wav # error
aplay: pcm_write:1737: write error: Input/output error
=> I wasn't unloading snd-soc-wm8731
Thanks for your time !
Richard.
next prev parent reply other threads:[~2013-11-29 14:59 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 4:17 [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module Bo Shen
2013-11-26 4:17 ` Bo Shen
2013-11-26 4:17 ` Bo Shen
2013-11-26 4:17 ` [PATCH 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata Bo Shen
2013-11-26 4:17 ` Bo Shen
2013-11-26 4:17 ` Bo Shen
2013-11-26 11:42 ` Richard Genoud
2013-11-26 11:42 ` Richard Genoud
2013-11-26 11:42 ` Richard Genoud
2013-11-26 11:32 ` [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module Richard Genoud
2013-11-26 11:32 ` Richard Genoud
2013-11-26 11:32 ` Richard Genoud
2013-11-27 1:13 ` Bo Shen
2013-11-27 1:13 ` Bo Shen
2013-11-27 1:13 ` Bo Shen
2013-11-27 10:09 ` Richard Genoud
2013-11-27 10:09 ` Richard Genoud
2013-11-27 10:09 ` Richard Genoud
2013-11-28 1:20 ` Bo Shen
2013-11-28 1:20 ` Bo Shen
2013-11-28 1:20 ` Bo Shen
2013-11-29 14:59 ` Richard Genoud [this message]
2013-11-29 14:59 ` Richard Genoud
2013-11-29 14:59 ` Richard Genoud
2013-11-26 13:22 ` Mark Brown
2013-11-26 13:22 ` Mark Brown
2013-11-27 1:16 ` Bo Shen
2013-11-27 1:16 ` Bo Shen
2013-11-27 1:16 ` Bo Shen
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=5298ABB6.3030303@gmail.com \
--to=richard.genoud@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.com \
--cc=voice.shen@atmel.com \
/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.