From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] dmaengine: at_xdmac: align descriptors on 64 bits
Date: Fri, 13 May 2016 14:27:14 +0200 [thread overview]
Message-ID: <5735C822.7000503@atmel.com> (raw)
In-Reply-To: <1463064854-6719-1-git-send-email-ludovic.desroches@atmel.com>
Le 12/05/2016 16:54, Ludovic Desroches a ?crit :
> Having descriptors aligned on 64 bits allows update CNDA and CUBC in an
> atomic way.
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel
> eXtended DMA Controller driver")
> Cc: stable at vger.kernel.org #v4.1 and later
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> drivers/dma/at_xdmac.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
> index 8e304b1..ba9b0b7 100644
> --- a/drivers/dma/at_xdmac.c
> +++ b/drivers/dma/at_xdmac.c
> @@ -242,7 +242,7 @@ struct at_xdmac_lld {
> u32 mbr_dus; /* Destination Microblock Stride Register */
> };
>
> -
> +/* 64-bit alignment needed to update CNDA and CUBC registers in an atomic way. */
> struct at_xdmac_desc {
> struct at_xdmac_lld lld;
> enum dma_transfer_direction direction;
> @@ -253,7 +253,7 @@ struct at_xdmac_desc {
> unsigned int xfer_size;
> struct list_head descs_list;
> struct list_head xfer_node;
> -};
> +} __aligned(sizeof(u64));
>
> static inline void __iomem *at_xdmac_chan_reg_base(struct at_xdmac *atxdmac, unsigned int chan_nb)
> {
>
--
Nicolas Ferre
WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Ludovic Desroches <ludovic.desroches@atmel.com>, <vinod.koul@intel.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
<dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/3] dmaengine: at_xdmac: align descriptors on 64 bits
Date: Fri, 13 May 2016 14:27:14 +0200 [thread overview]
Message-ID: <5735C822.7000503@atmel.com> (raw)
In-Reply-To: <1463064854-6719-1-git-send-email-ludovic.desroches@atmel.com>
Le 12/05/2016 16:54, Ludovic Desroches a écrit :
> Having descriptors aligned on 64 bits allows update CNDA and CUBC in an
> atomic way.
>
> Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel
> eXtended DMA Controller driver")
> Cc: stable@vger.kernel.org #v4.1 and later
Reviewed-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> drivers/dma/at_xdmac.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
> index 8e304b1..ba9b0b7 100644
> --- a/drivers/dma/at_xdmac.c
> +++ b/drivers/dma/at_xdmac.c
> @@ -242,7 +242,7 @@ struct at_xdmac_lld {
> u32 mbr_dus; /* Destination Microblock Stride Register */
> };
>
> -
> +/* 64-bit alignment needed to update CNDA and CUBC registers in an atomic way. */
> struct at_xdmac_desc {
> struct at_xdmac_lld lld;
> enum dma_transfer_direction direction;
> @@ -253,7 +253,7 @@ struct at_xdmac_desc {
> unsigned int xfer_size;
> struct list_head descs_list;
> struct list_head xfer_node;
> -};
> +} __aligned(sizeof(u64));
>
> static inline void __iomem *at_xdmac_chan_reg_base(struct at_xdmac *atxdmac, unsigned int chan_nb)
> {
>
--
Nicolas Ferre
next prev parent reply other threads:[~2016-05-13 12:27 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-12 14:54 [PATCH 1/3] dmaengine: at_xdmac: align descriptors on 64 bits Ludovic Desroches
2016-05-12 14:54 ` Ludovic Desroches
2016-05-12 14:54 ` [PATCH 2/3] dmaengine: at_xdmac: fix residue corruption Ludovic Desroches
2016-05-12 14:54 ` Ludovic Desroches
2016-05-13 12:27 ` Nicolas Ferre
2016-05-13 12:27 ` Nicolas Ferre
2016-05-12 14:54 ` [PATCH 3/3] dmaengine: at_xdmac: double FIFO flush needed to compute residue Ludovic Desroches
2016-05-12 14:54 ` Ludovic Desroches
2016-05-13 12:28 ` Nicolas Ferre
2016-05-13 12:28 ` Nicolas Ferre
2016-05-13 12:27 ` Nicolas Ferre [this message]
2016-05-13 12:27 ` [PATCH 1/3] dmaengine: at_xdmac: align descriptors on 64 bits Nicolas Ferre
2016-05-30 5:18 ` Vinod Koul
2016-05-30 5:18 ` Vinod Koul
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=5735C822.7000503@atmel.com \
--to=nicolas.ferre@atmel.com \
--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.