* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
@ 2011-07-19 4:09 Dong Aisheng
2011-07-19 4:02 ` Shawn Guo
2011-07-25 14:25 ` Vinod Koul
0 siblings, 2 replies; 8+ messages in thread
From: Dong Aisheng @ 2011-07-19 4:09 UTC (permalink / raw)
To: linux-arm-kernel
We met some channels in abnormal state after disable.
Reset it to get a clean state.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
---
drivers/dma/mxs-dma.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index 88aad4f..5a24010 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -535,6 +535,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
switch (cmd) {
case DMA_TERMINATE_ALL:
mxs_dma_disable_chan(mxs_chan);
+ mxs_dma_reset_chan(mxs_chan);
break;
case DMA_PAUSE:
mxs_dma_pause_chan(mxs_chan);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 4:09 [PATCH 1/1] ARM: mxs-dma: reset after disable channel Dong Aisheng
@ 2011-07-19 4:02 ` Shawn Guo
2011-07-19 8:21 ` Wolfram Sang
2011-07-19 13:44 ` Koul, Vinod
2011-07-25 14:25 ` Vinod Koul
1 sibling, 2 replies; 8+ messages in thread
From: Shawn Guo @ 2011-07-19 4:02 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote:
> We met some channels in abnormal state after disable.
> Reset it to get a clean state.
>
> Signed-off-by: Dong Aisheng <b29396@freescale.com>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: Shawn Guo <shawn.guo@linaro.org>
> ---
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Hi Vinod,
Please consider to merge it for v3.1. The mxs audio driver needs the
fix.
Regards,
Shawn
> drivers/dma/mxs-dma.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
> index 88aad4f..5a24010 100644
> --- a/drivers/dma/mxs-dma.c
> +++ b/drivers/dma/mxs-dma.c
> @@ -535,6 +535,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
> switch (cmd) {
> case DMA_TERMINATE_ALL:
> mxs_dma_disable_chan(mxs_chan);
> + mxs_dma_reset_chan(mxs_chan);
> break;
> case DMA_PAUSE:
> mxs_dma_pause_chan(mxs_chan);
> --
> 1.7.0.4
>
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 4:02 ` Shawn Guo
@ 2011-07-19 8:21 ` Wolfram Sang
2011-07-19 8:45 ` Shawn Guo
2011-07-19 13:44 ` Koul, Vinod
1 sibling, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2011-07-19 8:21 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 19, 2011 at 12:02:16PM +0800, Shawn Guo wrote:
> On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote:
> > We met some channels in abnormal state after disable.
> > Reset it to get a clean state.
> >
> > Signed-off-by: Dong Aisheng <b29396@freescale.com>
> > Cc: Vinod Koul <vinod.koul@intel.com>
> > Cc: Shawn Guo <shawn.guo@linaro.org>
> > ---
>
> Acked-by: Shawn Guo <shawn.guo@linaro.org>
Just to make sure: Did you investigate where the "abnormal" state came
from and if that could be fixed?
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110719/f22834db/attachment.sig>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 8:21 ` Wolfram Sang
@ 2011-07-19 8:45 ` Shawn Guo
2011-07-19 9:13 ` Wolfram Sang
2011-07-19 9:20 ` Dong Aisheng-B29396
0 siblings, 2 replies; 8+ messages in thread
From: Shawn Guo @ 2011-07-19 8:45 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 19, 2011 at 10:21:46AM +0200, Wolfram Sang wrote:
> On Tue, Jul 19, 2011 at 12:02:16PM +0800, Shawn Guo wrote:
> > On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote:
> > > We met some channels in abnormal state after disable.
> > > Reset it to get a clean state.
> > >
> > > Signed-off-by: Dong Aisheng <b29396@freescale.com>
> > > Cc: Vinod Koul <vinod.koul@intel.com>
> > > Cc: Shawn Guo <shawn.guo@linaro.org>
> > > ---
> >
> > Acked-by: Shawn Guo <shawn.guo@linaro.org>
>
> Just to make sure: Did you investigate where the "abnormal" state came
> from and if that could be fixed?
>
I suppose this is a question for Aisheng, as he is the one who actually
saw the "abnormal" state. But since mxs_dma_disable_chan() is being
called in mxs_dma_control(DMA_TERMINATE_ALL) for case audio, it's should
be pretty safe reset the channel here.
--
Regards,
Shawn
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 8:45 ` Shawn Guo
@ 2011-07-19 9:13 ` Wolfram Sang
2011-07-19 9:20 ` Dong Aisheng-B29396
1 sibling, 0 replies; 8+ messages in thread
From: Wolfram Sang @ 2011-07-19 9:13 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 19, 2011 at 04:45:37PM +0800, Shawn Guo wrote:
> On Tue, Jul 19, 2011 at 10:21:46AM +0200, Wolfram Sang wrote:
> > On Tue, Jul 19, 2011 at 12:02:16PM +0800, Shawn Guo wrote:
> > > On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote:
> > > > We met some channels in abnormal state after disable.
> > > > Reset it to get a clean state.
> > > >
> > > > Signed-off-by: Dong Aisheng <b29396@freescale.com>
> > > > Cc: Vinod Koul <vinod.koul@intel.com>
> > > > Cc: Shawn Guo <shawn.guo@linaro.org>
> > > > ---
> > >
> > > Acked-by: Shawn Guo <shawn.guo@linaro.org>
> >
> > Just to make sure: Did you investigate where the "abnormal" state came
> > from and if that could be fixed?
> >
> I suppose this is a question for Aisheng, as he is the one who actually
> saw the "abnormal" state.
OK.
> But since mxs_dma_disable_chan() is being
> called in mxs_dma_control(DMA_TERMINATE_ALL) for case audio, it's should
> be pretty safe reset the channel here.
It might be safe but can still hide the real bug ;)
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110719/601fe800/attachment.sig>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 8:45 ` Shawn Guo
2011-07-19 9:13 ` Wolfram Sang
@ 2011-07-19 9:20 ` Dong Aisheng-B29396
1 sibling, 0 replies; 8+ messages in thread
From: Dong Aisheng-B29396 @ 2011-07-19 9:20 UTC (permalink / raw)
To: linux-arm-kernel
> -----Original Message-----
> From: Guo Shawn-R65073
> Sent: Tuesday, July 19, 2011 4:46 PM
> To: Wolfram Sang
> Cc: Dong Aisheng-B29396; vinod.koul at intel.com; shawn.guo at linaro.org;
> linux-arm-kernel at lists.infradead.org
> Subject: Re: [PATCH 1/1] ARM: mxs-dma: reset after disable channel
>
> On Tue, Jul 19, 2011 at 10:21:46AM +0200, Wolfram Sang wrote:
> > On Tue, Jul 19, 2011 at 12:02:16PM +0800, Shawn Guo wrote:
> > > On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote:
> > > > We met some channels in abnormal state after disable.
> > > > Reset it to get a clean state.
> > > >
> > > > Signed-off-by: Dong Aisheng <b29396@freescale.com>
> > > > Cc: Vinod Koul <vinod.koul@intel.com>
> > > > Cc: Shawn Guo <shawn.guo@linaro.org>
> > > > ---
> > >
> > > Acked-by: Shawn Guo <shawn.guo@linaro.org>
> >
> > Just to make sure: Did you investigate where the "abnormal" state came
> > from and if that could be fixed?
> >
> I suppose this is a question for Aisheng, as he is the one who actually
> saw the "abnormal" state. But since mxs_dma_disable_chan() is being
> called in mxs_dma_control(DMA_TERMINATE_ALL) for case audio, it's should
> be pretty safe reset the channel here.
It looked like the dma was not stopped properly, it maybe still running.
So the next time we allocated DMA chan, a dma interrupt would be generated
Before channel was starting.
I may check if we can find the root cause.
Regards
Dong Aisheng
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 4:02 ` Shawn Guo
2011-07-19 8:21 ` Wolfram Sang
@ 2011-07-19 13:44 ` Koul, Vinod
1 sibling, 0 replies; 8+ messages in thread
From: Koul, Vinod @ 2011-07-19 13:44 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jul 19, 2011 at 12: 6:02 AM +0100, Shawn Guo wrote:
> > We met some channels in abnormal state after disable.
> > Reset it to get a clean state.
> >
> > Signed-off-by: Dong Aisheng <b29396@freescale.com>
> > Cc: Vinod Koul <vinod.koul@intel.com>
> > Cc: Shawn Guo <shawn.guo@linaro.org>
> > ---
>
> Acked-by: Shawn Guo <shawn.guo@linaro.org>
>
> Hi Vinod,
>
> Please consider to merge it for v3.1. The mxs audio driver needs the
> fix.
This looks good to me, in my queue now.
I am travelling back home tomorrow, so you should see this get pushed in my
tree latest by weekend
~Vinod
>
> Regards,
> Shawn
>
> > drivers/dma/mxs-dma.c | 1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
> > index 88aad4f..5a24010 100644
> > --- a/drivers/dma/mxs-dma.c
> > +++ b/drivers/dma/mxs-dma.c
> > @@ -535,6 +535,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum
> dma_ctrl_cmd cmd,
> > switch (cmd) {
> > case DMA_TERMINATE_ALL:
> > mxs_dma_disable_chan(mxs_chan);
> > + mxs_dma_reset_chan(mxs_chan);
> > break;
> > case DMA_PAUSE:
> > mxs_dma_pause_chan(mxs_chan);
> > --
> > 1.7.0.4
> >
> >
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel at lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> >
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/1] ARM: mxs-dma: reset after disable channel
2011-07-19 4:09 [PATCH 1/1] ARM: mxs-dma: reset after disable channel Dong Aisheng
2011-07-19 4:02 ` Shawn Guo
@ 2011-07-25 14:25 ` Vinod Koul
1 sibling, 0 replies; 8+ messages in thread
From: Vinod Koul @ 2011-07-25 14:25 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, 2011-07-19 at 12:09 +0800, Dong Aisheng wrote:
> We met some channels in abnormal state after disable.
> Reset it to get a clean state.
>
> Signed-off-by: Dong Aisheng <b29396@freescale.com>
> Cc: Vinod Koul <vinod.koul@intel.com>
> Cc: Shawn Guo <shawn.guo@linaro.org>
> ---
> drivers/dma/mxs-dma.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
> index 88aad4f..5a24010 100644
> --- a/drivers/dma/mxs-dma.c
> +++ b/drivers/dma/mxs-dma.c
> @@ -535,6 +535,7 @@ static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
> switch (cmd) {
> case DMA_TERMINATE_ALL:
> mxs_dma_disable_chan(mxs_chan);
> + mxs_dma_reset_chan(mxs_chan);
> break;
> case DMA_PAUSE:
> mxs_dma_pause_chan(mxs_chan);
Applied, Thanks
--
~Vinod Koul
Intel Corp.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-07-25 14:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 4:09 [PATCH 1/1] ARM: mxs-dma: reset after disable channel Dong Aisheng
2011-07-19 4:02 ` Shawn Guo
2011-07-19 8:21 ` Wolfram Sang
2011-07-19 8:45 ` Shawn Guo
2011-07-19 9:13 ` Wolfram Sang
2011-07-19 9:20 ` Dong Aisheng-B29396
2011-07-19 13:44 ` Koul, Vinod
2011-07-25 14:25 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox