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 <yongding@codeaurora.org>
This commit is contained in:
Yong Ding 2021-03-02 14:17:59 +08:00 • committed by Gerrit - the friendly Code Review server
commit 0f22667ec0

View file

@ -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,