Re: The failure summary report of GEN2 for linux stable v4.8

2016-10-28 Thread Xuan Truong Nguyen

Hi Shimoda-san

Thanks for your patch.

We will apply your patch and retest this issue on v4.9-rc2 then report 
you again.



Thanks and best regards
JINSO/Truong


On 2016年10月28日 17:14, Yoshihiro Shimoda wrote:

Hi Geert-san, Xuan-san,


From: linux-renesas-soc-ow...@vger.kernel.org 
[mailto:linux-renesas-soc-ow...@vger.kernel.org] On Behalf Of Geert
Uytterhoeven
Sent: Monday, October 24, 2016 6:21 PM

On Mon, Oct 24, 2016 at 11:13 AM, Xuan Truong Nguyen
<nx-tru...@jinso.co.jp> wrote:

This is with shmobile_defconfig?

yes. we also attach the configs file we used
(lager-scif-pio-v4.9-rc2.config)


Does it work better if you enable CONFIG_SERIAL_SH_SCI_DMA?

yes, it's better a little bit. the kernel does not hangs up, but the warning
message is output.
please refer lager-scif-dma.log.

we tested on v4.9-rc2. the issue is the same.

if you need any information, please let us know.
WARNING: CPU: 0 PID: 2249 at drivers/dma/sh/rcar-dmac.c:1257 
rcar_dmac_tx_status+0x128/0x4
No descriptor for cookie!
[] (rcar_dmac_tx_status) from [] (rx_timer_fn+0x48/0x148)
[] (rx_timer_fn) from [] (call_timer_fn+0x2c/0xa0)

That looks like a race condition between timeout handling and actual completion
of the DMA?

I found an issue in sh-sci.c and made a patch to resolve it.
But, I'm not sure this is correct way.
If this is correct way, we also have to fix dev_dbg() in some functions.

Best regards,
Yoshihiro Shimoda

Since I send this email using Outlook, the patch format may be not good.
---
From: Yoshihiro Shimoda <yoshihiro.shimoda...@renesas.com>
Date: Fri, 28 Oct 2016 16:52:36 +0900
Subject: [PATCH] serial: sh-sci: remove dev_warn() to avoid double spin lock
  held

If we use serial console and CONFIG_SERIAL_SH_SCI_DMA=y, since
sci_dma_rx_push() is called with port->lock held and dev_warn() will
call serial_console_write() finally, this is possible to call
spin_lock{_irqsave}() twice.
To avoid this, this patch remove dev_warn() in sci_dma_rx_push().

Reported-by: Xuan Truong Nguyen <nx-tru...@jinso.co.jp>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda...@renesas.com>
---
  drivers/tty/serial/sh-sci.c | 5 +
  1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 4b26252..380b5d7 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -1142,11 +1142,8 @@ static int sci_dma_rx_push(struct sci_port *s, void 
*buf, size_t count)
int copied;
  
  	copied = tty_insert_flip_string(tport, buf, count);

-   if (copied < count) {
-   dev_warn(port->dev, "Rx overrun: dropping %zu bytes\n",
-count - copied);
+   if (copied < count)
port->icount.buf_overrun++;
-   }
  
  	port->icount.rx += copied;
  




Re: The failure summary report of GEN3(RCAR H3) for linux stable v4.8

2016-10-18 Thread Xuan Truong Nguyen

Hi Morimoto


About 2 thermal issue, as you already know, fix patches are
applied. These should be solved in next version.
I will understand that you are talking about t thermal issue on Gen2.  
(is that right ?)
Sorry about this, we are just report the issue still happened in v4.8. 
we also marked that

the fix patch were already posted to ML in the detail info.


About sound unbind issue, ALSA SoC framework will be cleanuped
and upgraded soon. I talked this issue with ALSA SoC Maintainer
in this LinuxCon Europe timing, and we agreed about fixup idea.
Maybe it will be solved on +2 or +3 version.

thanks for your information.

best regards
truong