From: Roy Pledge <roy.pledge@nxp.com>
To: <gregkh@linuxfoundation.org>
Cc: <devel@driverdev.osuosl.org>, <linux-kernel@vger.kernel.org>,
<agraf@suse.de>, <arnd@arndb.de>, <leoyang.li@nxp.com>,
<ioana.ciornei@nxp.com>, <catalin.horghidan@nxp.com>,
<laurentiu.tudor@nxp.com>, <ruxandra.radulescu@nxp.com>,
<roy.pledge@nxp.com>, <stuyoder@gmail.com>
Subject: [v6 0/8] staging: fsl-mc: add dpio driver
Date: Wed, 8 Mar 2017 16:54:42 -0500 [thread overview]
Message-ID: <1489010090-18025-1-git-send-email-roy.pledge@nxp.com> (raw)
This patch series adds the driver for the DPIO object which is a step to addressing the final item in the staging TODO list-- adding a functional driver on top of the bus driver. The DPIO driver is a dependency for other functional drivers such as Ethernet.
An overview of the DPIO object and driver components are in patch 1.
Patches 2-6 are internal components of the DPIO driver-- bit twiddling of hardware registers, DPAA2 data structures, and the queuing APIs exposed to other drivers.
Patch 7 adds the fsl-mc driver for the DPIO object. It provides the probe/remove functions, demonstrating a working example of how fsl-mc drivers initialize, interact with the management complex hardware, map their mappable MMIO regions, initialize interrupts, register an ISR, etc. All other DPAA2 drivers will follow a similar initialization pattern.
version 6 changes
-fixed error in size of SG_SHORT_LEN_MASK
-removed improper padding in DPIO command responses
-fixed some minor checkpatch warnings
version 5 changes
-fixed typo in patch 5 that caused compile issue
version 4 changes
-removed the patch moving the bus driver out of staging, updated
all paths referenced in dpio (e.g. includes) to be drivers/staging
-defined macros for constants where needed
-copyright updates
-cleanup: fixed whitespace, alignment issues, typos, removed unneeded
comments
-fixed bug in SDQCR #define
-adding missing free in an error path
version 3 changes
-zero memory allocated for a dpio store
-replace hardcoded dequeue token with a #define and look for
that token when checking for a new result
version 2 changes (mostly feedback from Ioana Radulescu)
-removed unused structs and defines in dpio command definitions
-added setter/getter for the FD ctrl field
-corrected comment for SG format_offset field description
-added support for short length field in FD
-fix bug in buffer release command, by setting bpid field
-handle error (NULL) return value from qbman_swp_mc_complete()
-fix bug in sending management commands where the verb was
properly initialized
-use service_select_by_cpu() for re-arming DPIO interrupts
-replace use of NR_CPUS with num_possible_cpus()
-handle error case where number of DPIOs exceeds number of possible
CPUs
-error message cleanup
-updated MAINTAINERS file with proper location for both fsl-mc bus
driver and dpio driver
Ioana Radulescu (1):
bus: fsl-mc: dpio: add APIs for DPIO objects
Roy Pledge (6):
bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs
bus: fsl-mc: dpio: add global dpaa2 definitions
bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2
bus: fsl-mc: dpio: add the DPAA2 DPIO service interface
bus: fsl-mc: dpio: add the DPAA2 DPIO object driver
bus: fsl-mc: dpio: add maintainer for DPIO
Stuart Yoder (1):
bus: fsl-mc: dpio: add DPIO driver overview document
MAINTAINERS | 6 +
drivers/staging/fsl-mc/bus/Kconfig | 10 +
drivers/staging/fsl-mc/bus/Makefile | 3 +
drivers/staging/fsl-mc/bus/dpio/Makefile | 9 +
drivers/staging/fsl-mc/bus/dpio/dpio-cmd.h | 75 ++
drivers/staging/fsl-mc/bus/dpio/dpio-driver.c | 296 +++++++
drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt | 135 +++
drivers/staging/fsl-mc/bus/dpio/dpio-service.c | 618 ++++++++++++++
drivers/staging/fsl-mc/bus/dpio/dpio.c | 224 +++++
drivers/staging/fsl-mc/bus/dpio/dpio.h | 109 +++
drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 1033 +++++++++++++++++++++++
drivers/staging/fsl-mc/bus/dpio/qbman-portal.h | 469 ++++++++++
drivers/staging/fsl-mc/include/dpaa2-fd.h | 448 ++++++++++
drivers/staging/fsl-mc/include/dpaa2-global.h | 202 +++++
drivers/staging/fsl-mc/include/dpaa2-io.h | 139 +++
15 files changed, 3776 insertions(+)
create mode 100644 drivers/staging/fsl-mc/bus/dpio/Makefile
create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-cmd.h
create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-driver.c
create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-driver.txt
create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio-service.c
create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio.c
create mode 100644 drivers/staging/fsl-mc/bus/dpio/dpio.h
create mode 100644 drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
create mode 100644 drivers/staging/fsl-mc/bus/dpio/qbman-portal.h
create mode 100644 drivers/staging/fsl-mc/include/dpaa2-fd.h
create mode 100644 drivers/staging/fsl-mc/include/dpaa2-global.h
create mode 100644 drivers/staging/fsl-mc/include/dpaa2-io.h
--
1.7.9.5
next reply other threads:[~2017-03-08 21:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 21:54 Roy Pledge [this message]
2017-03-08 21:54 ` [v6 1/8] bus: fsl-mc: dpio: add DPIO driver overview document Roy Pledge
2017-03-12 13:30 ` Greg KH
2017-03-08 21:54 ` [v6 2/8] bus: fsl-mc: dpio: add APIs for DPIO objects Roy Pledge
2017-03-08 21:54 ` [v6 3/8] bus: fsl-mc: dpio: add frame descriptor and scatter/gather APIs Roy Pledge
2017-03-08 21:54 ` [v6 4/8] bus: fsl-mc: dpio: add global dpaa2 definitions Roy Pledge
2017-03-08 21:54 ` [v6 5/8] bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2 Roy Pledge
2017-03-08 21:54 ` [v6 6/8] bus: fsl-mc: dpio: add the DPAA2 DPIO service interface Roy Pledge
2017-03-08 21:54 ` [v6 7/8] bus: fsl-mc: dpio: add the DPAA2 DPIO object driver Roy Pledge
2017-03-08 21:54 ` [v6 8/8] bus: fsl-mc: dpio: add maintainer for DPIO Roy Pledge
[not found] ` <CAEac7tZv+qLpqwcpCTERiHkUtYVXHd_BoErD_a82KYU=7i04Mw@mail.gmail.com>
2017-03-13 7:34 ` [v6 0/8] staging: fsl-mc: add dpio driver Stuart Yoder
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=1489010090-18025-1-git-send-email-roy.pledge@nxp.com \
--to=roy.pledge@nxp.com \
--cc=agraf@suse.de \
--cc=arnd@arndb.de \
--cc=catalin.horghidan@nxp.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=ioana.ciornei@nxp.com \
--cc=laurentiu.tudor@nxp.com \
--cc=leoyang.li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ruxandra.radulescu@nxp.com \
--cc=stuyoder@gmail.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
Powered by JetHome