Skip to content

Commit 0ceb587

Browse files
gcabidduherbertx
authored andcommitted
crypto: qat - drop log level of msg in get_instance_node()
The functions qat_crypto_get_instance_node() and qat_compression_get_instance_node() allow to get a QAT instance (ring pair) on a device close to the node specified as input parameter. When this is not possible, and a QAT device is available in the system, these function return an instance on a remote node and they print a message reporting that it is not possible to find a device on the specified node. This is interpreted by people as an error rather than an info. The print "Could not find a device on node" indicates that a kernel application is running on a core in a socket that does not have a QAT device directly attached to it and performance might suffer. Due to the nature of the message, this can be considered as a debug message, therefore drop the severity to debug and report it only once to avoid flooding. Suggested-by: Vladis Dronov <[email protected]> Signed-off-by: Giovanni Cabiddu <[email protected]> Reviewed-by: Fiona Trahe <[email protected]> Reviewed-by: Vladis Dronov <[email protected]> Tested-by: Vladis Dronov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f6044cc commit 0ceb587

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/crypto/qat/qat_common/qat_compression.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct qat_compression_instance *qat_compression_get_instance_node(int node)
7272
}
7373

7474
if (!accel_dev) {
75-
pr_info("QAT: Could not find a device on node %d\n", node);
75+
pr_debug_ratelimited("QAT: Could not find a device on node %d\n", node);
7676
/* Get any started device */
7777
list_for_each(itr, adf_devmgr_get_head()) {
7878
struct adf_accel_dev *tmp_dev;

drivers/crypto/qat/qat_common/qat_crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct qat_crypto_instance *qat_crypto_get_instance_node(int node)
7070
}
7171

7272
if (!accel_dev) {
73-
pr_info("QAT: Could not find a device on node %d\n", node);
73+
pr_debug_ratelimited("QAT: Could not find a device on node %d\n", node);
7474
/* Get any started device */
7575
list_for_each_entry(tmp_dev, adf_devmgr_get_head(), list) {
7676
if (adf_dev_started(tmp_dev) &&

0 commit comments

Comments
 (0)