From: Rameshwar Sahu <rsahu-qTEPVZfXA3Y@public.gmane.org>
To: Vinod Koul <vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Cc: dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
patches-qTEPVZfXA3Y@public.gmane.org,
Rameshwar Prasad Sahu <rsahu-qTEPVZfXA3Y@public.gmane.org>
Subject: Re: [PATCH] dmaengine: xgene-dma: Fix the resource map to handle overlapping
Date: Fri, 10 Jul 2015 14:06:48 +0530 [thread overview]
Message-ID: <CAFd313y1YKrrrMrCLTJGNd7PWqoopLQ5aXEcxygVq1WTPJR=-g@mail.gmail.com> (raw)
In-Reply-To: <1436263465-7677-1-git-send-email-rsahu-qTEPVZfXA3Y@public.gmane.org>
Hi Vinod,
On Tue, Jul 7, 2015 at 3:34 PM, Rameshwar Prasad Sahu <rsahu-qTEPVZfXA3Y@public.gmane.org> wrote:
> There is an overlap in dma ring cmd csr region due to sharing of ethernet
> ring cmd csr region. This patch fix the resource overlapping by mapping
> the entire dma ring cmd csr region.
>
> Signed-off-by: Rameshwar Prasad Sahu <rsahu-qTEPVZfXA3Y@public.gmane.org>
> ---
> Documentation/devicetree/bindings/dma/apm-xgene-dma.txt | 2 +-
> arch/arm64/boot/dts/apm/apm-storm.dtsi | 2 +-
> drivers/dma/xgene-dma.c | 3 +++
> 3 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/apm-xgene-dma.txt b/Documentation/devicetree/bindings/dma/apm-xgene-dma.txt
> index d305876..c53e0b0 100644
> --- a/Documentation/devicetree/bindings/dma/apm-xgene-dma.txt
> +++ b/Documentation/devicetree/bindings/dma/apm-xgene-dma.txt
> @@ -35,7 +35,7 @@ Example:
> device_type = "dma";
> reg = <0x0 0x1f270000 0x0 0x10000>,
> <0x0 0x1f200000 0x0 0x10000>,
> - <0x0 0x1b008000 0x0 0x2000>,
> + <0x0 0x1b000000 0x0 0x400000>,
> <0x0 0x1054a000 0x0 0x100>;
> interrupts = <0x0 0x82 0x4>,
> <0x0 0xb8 0x4>,
> diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi
> index 0689c3f..58093ed 100644
> --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi
> +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi
> @@ -823,7 +823,7 @@
> device_type = "dma";
> reg = <0x0 0x1f270000 0x0 0x10000>,
> <0x0 0x1f200000 0x0 0x10000>,
> - <0x0 0x1b008000 0x0 0x2000>,
> + <0x0 0x1b000000 0x0 0x400000>,
> <0x0 0x1054a000 0x0 0x100>;
> interrupts = <0x0 0x82 0x4>,
> <0x0 0xb8 0x4>,
> diff --git a/drivers/dma/xgene-dma.c b/drivers/dma/xgene-dma.c
> index 620fd55ec..dff22ab 100644
> --- a/drivers/dma/xgene-dma.c
> +++ b/drivers/dma/xgene-dma.c
> @@ -111,6 +111,7 @@
> #define XGENE_DMA_MEM_RAM_SHUTDOWN 0xD070
> #define XGENE_DMA_BLK_MEM_RDY 0xD074
> #define XGENE_DMA_BLK_MEM_RDY_VAL 0xFFFFFFFF
> +#define XGENE_DMA_RING_CMD_SM_OFFSET 0x8000
>
> /* X-Gene SoC EFUSE csr register and bit defination */
> #define XGENE_SOC_JTAG1_SHADOW 0x18
> @@ -1887,6 +1888,8 @@ static int xgene_dma_get_resources(struct platform_device *pdev,
> return -ENOMEM;
> }
>
> + pdma->csr_ring_cmd += XGENE_DMA_RING_CMD_SM_OFFSET;
> +
> /* Get efuse csr region */
> res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
> if (!res) {
> --
> 1.8.2.1
>
Any comments on above patch ?
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-07-10 8:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 10:04 [PATCH] dmaengine: xgene-dma: Fix the resource map to handle overlapping Rameshwar Prasad Sahu
[not found] ` <1436263465-7677-1-git-send-email-rsahu-qTEPVZfXA3Y@public.gmane.org>
2015-07-10 8:36 ` Rameshwar Sahu [this message]
2015-07-16 13:02 ` 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='CAFd313y1YKrrrMrCLTJGNd7PWqoopLQ5aXEcxygVq1WTPJR=-g@mail.gmail.com' \
--to=rsahu-qtepvzfxa3y@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=dmaengine-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=jcm-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=patches-qTEPVZfXA3Y@public.gmane.org \
--cc=vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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).