From: Roy Pledge <roy.pledge@nxp.com>
To: <robin.murphy@arm.com>, <oss@buserror.net>,
<linuxppc-dev@lists.ozlabs.org>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>
Cc: <madalin.bucur@nxp.com>, Roy Pledge <roy.pledge@nxp.com>
Subject: [RFC PATCH 0/5] soc/fsl/qbman: Rework private memory allocations
Date: Wed, 29 Mar 2017 17:13:52 -0400 [thread overview]
Message-ID: <1490822037-6752-1-git-send-email-roy.pledge@nxp.com> (raw)
The QBMan device requires three separate memory areas that are only
accessed by the device. These areas are reserved using the OF reserved
memory mechanism and associated to the device in the device trees
memory-region attribute. However in order to be allocatable using
the dma_alloc() APIs the reservations compatiable string must
include "shared-dma-pool" and specify "no-map".
This set of changes updates the QBMan driver, PPC device trees and
bindings to use the above mechasism. This work was encouraged as part
of preparing this driver to work on ARM processors.
Roy Pledge (5):
soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations
soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations
dts: arch/powerpc: Update Freescale DTS for QBMan memory allocations
dt-bindings: soc/fsl: Update reserved memory binding for QBMan
powerpc: Add HAVE_GENERIC_DMA_COHERENT options to Kconfig
Documentation/devicetree/bindings/soc/fsl/bman.txt | 10 +-
Documentation/devicetree/bindings/soc/fsl/qman.txt | 16 +--
arch/powerpc/Kconfig | 1 +
arch/powerpc/boot/dts/fsl/b4qds.dtsi | 6 ++
arch/powerpc/boot/dts/fsl/b4si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/cyrus_p5020.dts | 6 ++
arch/powerpc/boot/dts/fsl/kmcent2.dts | 6 ++
arch/powerpc/boot/dts/fsl/kmcoge4.dts | 6 ++
arch/powerpc/boot/dts/fsl/oca4080.dts | 6 ++
arch/powerpc/boot/dts/fsl/p1023rdb.dts | 6 ++
arch/powerpc/boot/dts/fsl/p1023si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/p2041rdb.dts | 6 ++
arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/p3041ds.dts | 6 ++
arch/powerpc/boot/dts/fsl/p3041si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/p4080ds.dts | 6 ++
arch/powerpc/boot/dts/fsl/p4080si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/p5020ds.dts | 6 ++
arch/powerpc/boot/dts/fsl/p5020si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/p5040ds.dts | 6 ++
arch/powerpc/boot/dts/fsl/p5040si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/t1023rdb.dts | 6 ++
arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/t1024qds.dts | 6 ++
arch/powerpc/boot/dts/fsl/t1024rdb.dts | 6 ++
arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/t104xd4rdb.dtsi | 6 ++
arch/powerpc/boot/dts/fsl/t104xqds.dtsi | 6 ++
arch/powerpc/boot/dts/fsl/t104xrdb.dtsi | 6 ++
arch/powerpc/boot/dts/fsl/t2081si-post.dtsi | 15 ---
arch/powerpc/boot/dts/fsl/t208xqds.dtsi | 6 ++
arch/powerpc/boot/dts/fsl/t208xrdb.dtsi | 6 ++
arch/powerpc/boot/dts/fsl/t4240qds.dts | 6 ++
arch/powerpc/boot/dts/fsl/t4240rdb.dts | 6 ++
arch/powerpc/boot/dts/fsl/t4240si-post.dtsi | 15 ---
drivers/soc/fsl/qbman/bman_ccsr.c | 27 ++++-
drivers/soc/fsl/qbman/bman_priv.h | 3 +
drivers/soc/fsl/qbman/qman_ccsr.c | 119 ++++++++++++---------
drivers/soc/fsl/qbman/qman_priv.h | 4 +-
drivers/soc/fsl/qbman/qman_test.h | 2 -
40 files changed, 238 insertions(+), 235 deletions(-)
--
2.9.3
next reply other threads:[~2017-03-29 21:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 21:13 Roy Pledge [this message]
2017-03-29 21:13 ` [RFC PATCH 1/5] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations Roy Pledge
2017-03-29 21:13 ` [RFC PATCH 2/5] soc/fsl/qbman: Use shared-dma-pool for QMan " Roy Pledge
2017-03-30 14:09 ` Robin Murphy
2017-03-31 3:27 ` Michael Ellerman
2017-03-31 17:55 ` Robin Murphy
2017-04-01 7:25 ` Scott Wood
2017-04-03 14:52 ` Robin Murphy
2017-04-04 0:24 ` Scott Wood
2017-03-29 21:13 ` [RFC PATCH 3/5] dts: arch/powerpc: Update Freescale DTS for QBMan " Roy Pledge
2017-03-29 21:13 ` [RFC PATCH 4/5] dt-bindings: soc/fsl: Update reserved memory binding for QBMan Roy Pledge
2017-04-03 15:42 ` Rob Herring
2017-04-03 19:49 ` Roy Pledge
2017-04-04 0:32 ` Scott Wood
2017-03-29 21:13 ` [RFC PATCH 5/5] powerpc: Add HAVE_GENERIC_DMA_COHERENT options to Kconfig Roy Pledge
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=1490822037-6752-1-git-send-email-roy.pledge@nxp.com \
--to=roy.pledge@nxp.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=madalin.bucur@nxp.com \
--cc=oss@buserror.net \
--cc=robin.murphy@arm.com \
/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).