]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:56:38 +0000 (10:56 -0700)
commit9167946a4c7b3ab15bbdb19e10b025edd6d1941d
treea44a8aaed437390abd7065d7f1b97b6b5ac7cba3
parent8fe4810d18d687116a0b5f5d8a359a398bb8973c
crypto: ccp - Make some CCP DMA channels private

Orabug: 26644685

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>
(cherry picked from commit efc989fce8703914bac091dcc4b8ff7a72ccf987)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-dev-v5.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-dmaengine.c