crypto: qat - Enforce valid numa configuration
authorTadeusz Struk <tadeusz.struk@intel.com>
Tue, 14 Oct 2014 01:24:32 +0000 (18:24 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:37:36 +0000 (22:37 +0800)
commit09adc8789c4e895d7548fa9eb5d24ad9a5d91c5d
tree72f0f07c598e7bca051bac2ca71ea7de136c5ade
parent923a6e5e5f171317ac8bb462ac4b814fa7880d3c
crypto: qat - Enforce valid numa configuration

In a system with NUMA configuration we want to enforce that the accelerator is
connected to a node with memory to avoid cross QPI memory transaction.
Otherwise there is no point in using the accelerator as the encryption in
software will be faster.

Cc: stable@vger.kernel.org
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Tested-by: Nikolay Aleksandrov <nikolay@redhat.com>
Reviewed-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_accel_devices.h
drivers/crypto/qat/qat_common/adf_transport.c
drivers/crypto/qat/qat_common/qat_algs.c
drivers/crypto/qat/qat_common/qat_crypto.c
drivers/crypto/qat/qat_dh895xcc/adf_admin.c
drivers/crypto/qat/qat_dh895xcc/adf_drv.c
drivers/crypto/qat/qat_dh895xcc/adf_isr.c