All of lore.kernel.org
 help / color / mirror / Atom feed
From: jiri.prchal@aksignal.cz (Jiří Prchal)
To: linux-arm-kernel@lists.infradead.org
Subject: [BUG] at91: serial: is it using DMA?
Date: Wed, 27 May 2015 08:27:26 +0200	[thread overview]
Message-ID: <556563CE.3090506@aksignal.cz> (raw)
In-Reply-To: <555C8B79.4030900@aksignal.cz>

Hi,
just to write what's new.
It doesn't work in 3.18.0-linux4sam too.
It looks like select or poll function has some problem with it, it goes through after 25ms timeout for a while without 
anything received and then it receives about 2000 chars. Physically it receives about 30 chars every 25ms.
3.18.13 is the latest kernel where it works correctly.

On 20.5.2015 15:26, Ji?? Prchal wrote:
> Hi all,
> I discovered problem with serial driver in kernel 4.0.4 on at91sam9g25 at 400MHz.
> When I want receive frames on UART at 115200kb/s I get many errors caused by loss of some bytes.
> These errors were there if no DMA was used in previous version.
> Dmesg says DMA us used:
> [    0.000000] Linux version 4.0.4_cpm9g25 (prchal at prchal) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #5
> PREEMPT Wed May 20 12:19:37 CEST 2015
> ...
> [   16.090090] atmel_usart f801c000.serial: using dma0chan4 for rx DMA transfers
> [   16.105105] atmel_usart f801c000.serial: using dma0chan5 for tx DMA transfers
>
> In 3.18.13 it works properly and dmesg says the same:
> [    0.000000] Linux version 3.18.13_cpm9g25 (prchal at prchal) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-12ubuntu1) ) #3
> PREEMPT Wed May 20 14:29:26 CEST 2015
> ...
> [   14.936936] atmel_usart f801c000.serial: using dma0chan4 for rx DMA transfers
> [   14.954954] atmel_usart f801c000.serial: using dma0chan5 for tx DMA transfers
>
> I made diff of drivers/tty/serial/atmel_serial.c and I see many changes in function atmel_rx_from_dma witch I don't
> understand. Could it bee there?
> All other DMAs work fine.
>
> Jiri

  reply	other threads:[~2015-05-27  6:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 13:26 [BUG] at91: serial: is it using DMA? Jiří Prchal
2015-05-27  6:27 ` Jiří Prchal [this message]
     [not found]   ` <556D611A.5090004@aksignal.cz>
2015-06-04 11:33     ` [BUG] at91: serial: something wrong with using DMA Jiří Prchal
2015-06-12 17:01       ` Cyrille Pitchen

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=556563CE.3090506@aksignal.cz \
    --to=jiri.prchal@aksignal.cz \
    --cc=linux-arm-kernel@lists.infradead.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.