linux/drivers/crypto/qat/qat_common
Alexander Sverdlin 1b82feb6c5 crypto: qat - Silence smp_processor_id() warning
It seems that smp_processor_id() is only used for a best-effort
load-balancing, refer to qat_crypto_get_instance_node(). It's not feasible
to disable preemption for the duration of the crypto requests. Therefore,
just silence the warning. This commit is similar to e7a9b05ca4
("crypto: cavium - Fix smp_processor_id() warnings").

Silences the following splat:
BUG: using smp_processor_id() in preemptible [00000000] code: cryptomgr_test/2904
caller is qat_alg_ablkcipher_setkey+0x300/0x4a0 [intel_qat]
CPU: 1 PID: 2904 Comm: cryptomgr_test Tainted: P           O    4.14.69 #1
...
Call Trace:
 dump_stack+0x5f/0x86
 check_preemption_disabled+0xd3/0xe0
 qat_alg_ablkcipher_setkey+0x300/0x4a0 [intel_qat]
 skcipher_setkey_ablkcipher+0x2b/0x40
 __test_skcipher+0x1f3/0xb20
 ? cpumask_next_and+0x26/0x40
 ? find_busiest_group+0x10e/0x9d0
 ? preempt_count_add+0x49/0xa0
 ? try_module_get+0x61/0xf0
 ? crypto_mod_get+0x15/0x30
 ? __kmalloc+0x1df/0x1f0
 ? __crypto_alloc_tfm+0x116/0x180
 ? crypto_skcipher_init_tfm+0xa6/0x180
 ? crypto_create_tfm+0x4b/0xf0
 test_skcipher+0x21/0xa0
 alg_test_skcipher+0x3f/0xa0
 alg_test.part.6+0x126/0x2a0
 ? finish_task_switch+0x21b/0x260
 ? __schedule+0x1e9/0x800
 ? __wake_up_common+0x8d/0x140
 cryptomgr_test+0x40/0x50
 kthread+0xff/0x130
 ? cryptomgr_notify+0x540/0x540
 ? kthread_create_on_node+0x70/0x70
 ret_from_fork+0x24/0x50

Fixes: ed8ccaef52 ("crypto: qat - Add support for SRIOV")
Cc: stable@vger.kernel.org
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-08-02 14:44:00 +10:00
..
adf_accel_devices.h crypto: qat - fix bar discovery for c62x 2016-12-30 19:52:27 +08:00
adf_accel_engine.c crypto: qat - add support for new devices to FW loader 2015-12-09 20:03:49 +08:00
adf_admin.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
adf_aer.c PCI/AER: Remove pci_cleanup_aer_uncorrect_error_status() calls 2018-10-02 16:04:40 -05:00
adf_cfg_common.h crypto: qat - increase number of supported devices 2016-12-30 19:52:36 +08:00
adf_cfg_strings.h crypto: qat - Remove redundant nrbg rings 2016-04-05 20:35:52 +08:00
adf_cfg_user.h crypto: qat - Pack cfg ctl structs 2016-01-25 22:39:02 +08:00
adf_cfg.c crypto: qat - no need to check return value of debugfs_create functions 2019-02-01 14:42:03 +08:00
adf_cfg.h
adf_common_drv.h crypto: qat - Silence smp_processor_id() warning 2019-08-02 14:44:00 +10:00
adf_ctl_drv.c crypto: qat - change the adf_ctl_stop_devices to void 2016-05-13 17:30:18 +08:00
adf_dev_mgr.c crypto: qat - remove unused and redundant pointer vf_info 2017-11-03 21:53:31 +08:00
adf_hw_arbiter.c crypto: qat - remove redundant arbiter configuration 2016-03-11 21:22:18 +08:00
adf_init.c crypto: qat - increase number of supported devices 2016-12-30 19:52:36 +08:00
adf_isr.c treewide: kzalloc_node() -> kcalloc_node() 2018-06-12 16:19:22 -07:00
adf_pf2vf_msg.c crypto: qat - move isr files to qat common so that they can be reused 2015-12-09 20:03:51 +08:00
adf_pf2vf_msg.h crypto: qat - enable legacy VFs 2015-08-25 21:13:19 +08:00
adf_sriov.c crypto: qat - fix comments describing adf_disable_sriov() 2016-12-30 19:52:23 +08:00
adf_transport_access_macros.h crypto: qat - enable VF irq after guest exits ungracefully 2015-12-14 21:03:36 +08:00
adf_transport_debug.c crypto: qat - no need to check return value of debugfs_create functions 2019-02-01 14:42:03 +08:00
adf_transport_internal.h crypto: qat - move isr files to qat common so that they can be reused 2015-12-09 20:03:51 +08:00
adf_transport.c crypto: qat - Remove unused goto label 2019-02-08 15:30:09 +08:00
adf_transport.h
adf_vf2pf_msg.c crypto: qat - check if PF is running 2016-04-18 18:49:51 +08:00
adf_vf_isr.c crypto: qat - replace hardcoded BIT(0) in vf_isr 2016-12-30 19:52:24 +08:00
icp_qat_fw_init_admin.h crypto: qat - Intel(R) QAT FW interface 2014-06-20 21:26:16 +08:00
icp_qat_fw_la.h crypto: qat - checkpatch blank lines 2014-08-01 22:36:01 +08:00
icp_qat_fw_loader_handle.h crypto: qat - add support for new devices to FW loader 2015-12-09 20:03:49 +08:00
icp_qat_fw_pke.h crypto: qat - Add support for RSA algorithm 2015-07-17 21:20:18 +08:00
icp_qat_fw.h crypto: qat - Add support for RSA algorithm 2015-07-17 21:20:18 +08:00
icp_qat_hal.h crypto: qat - add support for new devices to FW loader 2015-12-09 20:03:49 +08:00
icp_qat_hw.h crypto: qat - fix checkpatch CHECK_SPACING issues 2015-04-01 22:22:46 +08:00
icp_qat_uclo.h crypto: qat - Change the definition of icp_qat_uof_regtype 2016-03-11 21:19:19 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qat_algs.c crypto: qat - use struct_size() helper 2019-06-13 14:31:41 +08:00
qat_asym_algs.c crypto: rsa - unimplement sign/verify for raw RSA backends 2019-04-18 22:15:02 +08:00
qat_crypto.c crypto: qat - use list_for_each_entry* 2015-12-22 20:43:41 +08:00
qat_crypto.h crypto: qat - update iv after encryption or decryption operations 2019-05-23 14:01:02 +08:00
qat_hal.c crypto: qat - reduce stack size with KASAN 2017-12-22 19:52:39 +11:00
qat_uclo.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00