]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: nx - fix nx-842 pSeries driver minimum buffer size
authorDan Streetman <ddstreet@ieee.org>
Tue, 2 Jun 2015 19:22:10 +0000 (15:22 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jun 2015 07:04:59 +0000 (15:04 +0800)
commit98a7c5b21a4c5fe8a3a387f4c2882251beeac86f
tree624e35114cfb2dce9443d7afa58ccf7df2136bf1
parentf9939d999a3e6785dc030df36e7fd0e3bbef37db
crypto: nx - fix nx-842 pSeries driver minimum buffer size

Reduce the nx-842 pSeries driver minimum buffer size from 128 to 8.
Also replace the single use of IO_BUFFER_ALIGN macro with the standard
and correct DDE_BUFFER_ALIGN.

The hw sometimes rejects buffers that contain padding past the end of the
8-byte aligned section where it sees the "end" marker.  With the minimum
buffer size set too high, some highly compressed buffers were being padded
and the hw was incorrectly rejecting them; this sets the minimum correctly
so there will be no incorrect padding.

Signed-off-by: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-842-pseries.c