From: Krzysztof Kozlowski <k.kozlowski@samsung.com>
To: Robert Baldyga <r.baldyga@samsung.com>, gregkh@linuxfoundation.org
Cc: akpm@linux-foundation.org, jslaby@suse.cz,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
m.szyprowski@samsung.com, kmpark@infradead.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2 0/2] serial: samsung: fix DMA for small FIFO sizes
Date: Mon, 03 Aug 2015 09:37:18 +0900 [thread overview]
Message-ID: <55BEB7BE.9030606@samsung.com> (raw)
In-Reply-To: <1438333108-25822-1-git-send-email-r.baldyga@samsung.com>
On 31.07.2015 17:58, Robert Baldyga wrote:
> Hello,
>
> This patch set fixes bug causing serial hang in DMA mode for FIFO sizes
> smaller than cache alignment. The first patch fixes DMA mode entering
> condition to avoid starting with buffer smaller than cache line size.
> Second patch fixes the serial hang bug, which was caused by unproper
> buffer aligning algorithm which assumed that there is always enough
> free space in FIFO for excessive bytes of buffer that is being alligned.
>
> Best regards,
> Robert Baldyga
>
> Changelog:
>
> v2:
> - Add CC to stable
> - Add Reported-by: Krzysztof Kozlowski
> - Change title of the first patch to more relevant
>
> v1: http://permalink.gmane.org/gmane.linux.kernel/2008281
>
> Marek Szyprowski (1):
> serial: samsung: fix DMA mode enter condition for small FIFO sizes
>
> Robert Baldyga (1):
> serial: samsung: fix DMA for FIFO smaller than cache line size
>
> drivers/tty/serial/samsung.c | 47 +++++++++++++++++++++++++++++---------------
> drivers/tty/serial/samsung.h | 1 +
> 2 files changed, 32 insertions(+), 16 deletions(-)
>
Tested on Trats2 (Exynos4412 with pl330, serial output on ttySAC2).
Patchset fixes the reported issue (hang after applying "ARM: dts:
exynos4: add DMA support for serial ports" [0]).
However with [0] dmatest cannot execute tests on dma0 channels. Just
silently passes but does not execute memcpy on any of dma0 channels.
I wonder why... the serial ports use only some of dma0 channels, not all
of them.
Any ideas?
[0] http://www.spinics.net/lists/linux-samsung-soc/msg45700.html
Best regards,
Krzysztof
prev parent reply other threads:[~2015-08-03 0:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 8:58 [PATCH v2 0/2] serial: samsung: fix DMA for small FIFO sizes Robert Baldyga
2015-07-31 8:58 ` [PATCH v2 1/2] serial: samsung: fix DMA mode enter condition " Robert Baldyga
2015-07-31 8:58 ` [PATCH v2 2/2] serial: samsung: fix DMA for FIFO smaller than cache line size Robert Baldyga
2015-08-03 0:37 ` Krzysztof Kozlowski [this message]
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=55BEB7BE.9030606@samsung.com \
--to=k.kozlowski@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=kmpark@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=r.baldyga@samsung.com \
--cc=stable@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).