From 0f22667ec08925dc137b88de3e6c523926afbcc8 Mon Sep 17 00:00:00 2001 From: Yong Ding Date: Tue, 2 Mar 2021 14:17:59 +0800 Subject: [PATCH] soc: qcom: hab: avoid printk storm in the pipe read retry The prink() could consume enough CPU when the retry eventually takes a lot of times before it could succeed. Change-Id: I4f49d0650ee3ae06700d2ce592acd0532bbf38cd Signed-off-by: Yong Ding --- drivers/soc/qcom/hab/hab_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/hab/hab_pipe.c b/drivers/soc/qcom/hab/hab_pipe.c index 614bc6e26046..4ce2bd9ceb1c 100644 --- a/drivers/soc/qcom/hab/hab_pipe.c +++ b/drivers/soc/qcom/hab/hab_pipe.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ #include "hab.h" #include "hab_pipe.h" @@ -148,7 +148,7 @@ uint32_t hab_pipe_read(struct hab_pipe_endpoint *ep, retry: if (unlikely(head->signature != 0xBEE1BEE1)) { - pr_err("hab head corruption detected at %pK buf %pK %08X %08X %08X %08X rd %d wr %d index %X saved %X retry %d\n", + pr_debug("hab head corruption detected at %pK buf %pK %08X %08X %08X %08X rd %d wr %d index %X saved %X retry %d\n", head, &sh_buf->data[0], head->id_type_size, head->session_id, head->signature, head->sequence,