]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: ccp - Make some CCP DMA channels private
authorGary R Hook <gary.hook@amd.com>
Thu, 23 Mar 2017 17:53:30 +0000 (12:53 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Mar 2017 13:51:34 +0000 (21:51 +0800)
commitefc989fce8703914bac091dcc4b8ff7a72ccf987
tree6b76c798b51f90253eaf8ef1620d74f353b85edd
parentde5540d088fe97ad583cc7d396586437b32149a5
crypto: ccp - Make some CCP DMA channels private

The CCP registers its queues as channels capable of handling
general DMA operations. The NTB driver will use DMA if
directed, but as public channels can be reserved for use in
asynchronous operations some channels should be held back
as private. Since the public/private determination is
handled at a device level, reserve the "other" (secondary)
CCP channels as private.

Add a module parameter that allows for override, to be
applied to all channels on all devices.

CC: <stable@vger.kernel.org> # 4.10.x-
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-dmaengine.c