]> git.baikalelectronics.ru Git - kernel.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)
commit612300c02714c9859d47096f0e3295908cac6b08
tree6b76c798b51f90253eaf8ef1620d74f353b85edd
parent2a9788713d4221fae403dc07beeb15f4e4b1488c
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