Giovanni Cabiddu
f9c697c4bf
crypto: qat - split transport CSR access logic
...
Abstract access to transport CSRs and move generation specific code into
adf_gen2_hw_data.c in preparation for the introduction of the qat_4xxx
driver.
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com >
Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-10-30 17:34:47 +11:00
Ahsan Atta
70b9bd3929
crypto: qat - num_rings_per_bank is device dependent
...
This change is to allow support for QAT devices that may not have 16
rings per bank.
The rings structure in bank is allocated dynamically based on the number
of banks supported by a device.
Note that in the error path in adf_init_bank(), ring->inflights is set
to NULL after the free to silence a false positive double free reported
by clang scan-build.
Signed-off-by: Ahsan Atta <ahsan.atta@intel.com >
Co-developed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-10-30 17:34:46 +11:00
Liu Shixin
406d454bc8
crypto: qat - convert to use DEFINE_SEQ_ATTRIBUTE macro
...
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code.
Signed-off-by: Liu Shixin <liushixin2@huawei.com >
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-09-25 17:48:13 +10:00
Giovanni Cabiddu
1532e31f50
crypto: qat - convert to SPDX License Identifiers
...
Replace License Headers with SPDX License Identifiers.
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2020-06-18 17:19:44 +10:00
Greg Kroah-Hartman
f0fcf9ade4
crypto: qat - no need to check return value of debugfs_create functions
...
When calling debugfs functions, there is no need to ever check the
return value. The function can work or not, but the code logic should
never do something different based on this.
Cc: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Cc: Herbert Xu <herbert@gondor.apana.org.au >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Conor McLoughlin <conor.mcloughlin@intel.com >
Cc: Waiman Long <longman@redhat.com >
Cc: qat-linux@intel.com
Cc: linux-crypto@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2019-02-01 14:42:03 +08:00
Andy Shevchenko
d0cce06221
drivers/crypto/qat: use seq_hex_dump() to dump buffers
...
Instead of custom approach let's use recently introduced seq_hex_dump()
helper.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Acked-by: Tadeusz Struk <tadeusz.struk@intel.com >
Cc: Alexander Viro <viro@zeniv.linux.org.uk >
Cc: Joe Perches <joe@perches.com >
Cc: Helge Deller <deller@gmx.de >
Cc: Ingo Tuchscherer <ingo.tuchscherer@de.ibm.com >
Cc: Catalin Marinas <catalin.marinas@arm.com >
Cc: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2015-09-10 13:29:01 -07:00
Tadeusz Struk
8b5cf097c3
crypto: qat - print ring name in debug output
...
Ring name was allocated but never refenenced.
It was supposed to be printed out in debug output.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2015-04-07 21:34:21 +08:00
Tadeusz Struk
d65071ecde
crypto: qat - Fixed new checkpatch warnings
...
After updates to checkpatch new warnings pops up this patch fixes them.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com >
Acked-by: Tadeusz Struk <tadeusz.struk@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2014-06-26 14:49:43 +08:00
Tadeusz Struk
a672a9dc87
crypto: qat - Intel(R) QAT transport code
...
This patch adds a code that implements communication channel between the
driver and the firmware.
Acked-by: John Griffin <john.griffin@intel.com >
Reviewed-by: Bruce W. Allan <bruce.w.allan@intel.com >
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2014-06-20 21:26:15 +08:00