Message ID | 20230104021445.47484-1-quic_bqiang@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4923740wrt; Tue, 3 Jan 2023 18:19:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXt8PYRAIP44LBOv6vUd9UZfGO1613JvWzUZNMLLzRgvHs+cUiCWxhNUCXXiixrM5MYCFo57 X-Received: by 2002:a17:90b:2292:b0:226:33fb:9bb5 with SMTP id kx18-20020a17090b229200b0022633fb9bb5mr19088348pjb.35.1672798749772; Tue, 03 Jan 2023 18:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672798749; cv=none; d=google.com; s=arc-20160816; b=i/NzhlKgTLmQB6/Eikwy8py2bcVi1tpOJzVlEUf1Ky8vhkix2BrRiFshMW/JOuMUBI W4JI8svgDlxUITCR1X8iW1CG8kj4Wue4KIyt0NSP7tfQ2ww/4hcPm/hViWGsXZHUkWys upRIZ8TJ3ewsmP5o8y9xuX+UAF3APbD1uo5FjqIo+3hIkrpZ+ZfC03mxKInjn7RbDwpy NmN344w5+IOwUpbt15iRgMWbJ6teVbFptqaRS7lwI1Aw4ob8PkoAg3ziOqZp927WsEFy 2ip8jGInHijxbDJOdYOleFS3oHNSQsDD9CHoIrOuHav06F1k5bRaJ/Sot9BKR0Hn9AKi fyYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hN6RbBK57yOPqsfkmxKFRunZ8afjbgtvj7w+YhUmxHw=; b=GM6oimgpsrVJv905PU/IYSCZYx7fGJn8Z1g6spuwzoHoBhEKaRElJzPwqvYquyvcKA uLpK2C/FxcwLOyBNOyo5y/vSXRXE/qRkvdr9v2YushgKPbP+FUgq+twnBlY3j36wpcFa Z1R3HPw11AiZ0miL3R68/cArRCixTBWrxSz5aIdV4WsC2N5ldtuwFZyLvn7uqXF2VPfa u2v212ijlQmYGhMATdzL9/N443+DHDJZNxsYGSIxUjxygogaSqQSqg5Z8AMeIqBUY68x g55CJ/JTdrgM8SGBR6ImkdcofpjsFyodfDw3NjBIyVOTaHQ+R8B1YIYorV0OLHJuckxA quCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=M2l4ps31; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa14-20020a17090b1bce00b002194ca43255si35306704pjb.50.2023.01.03.18.18.56; Tue, 03 Jan 2023 18:19:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=M2l4ps31; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233905AbjADCPv (ORCPT <rfc822;tmhikaru@gmail.com> + 99 others); Tue, 3 Jan 2023 21:15:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229773AbjADCPt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 3 Jan 2023 21:15:49 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4826BB7; Tue, 3 Jan 2023 18:15:48 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3040sKrK020285; Wed, 4 Jan 2023 02:15:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=hN6RbBK57yOPqsfkmxKFRunZ8afjbgtvj7w+YhUmxHw=; b=M2l4ps31cE4vvl332as1VQ+EgGpmgnPUpDuZqcRu/YDps6dXHDiB2dXPlNcpFAj3sJ0D gOuoPA6V3POe9q+WQSe6CGNU+Qmpoud9ATd15zv+UT+eRoFIZNBILYaGq6twMbv3rqJj axNTMm/MOzwDsLSimL98Rux/xM16Mf6zNqJvtHVnG5p7/MCD09CTGzEenBcz0CGql2vd eyf3zWdSNbLOF7cuUponwhMVAC3yyKECmLD0IW6Yruu8V4LSJK1zDNQeMEkSm4vhZNwp aQM19ANZdcxHypMH85lQdfbQ32VYExOdfoxeQXm1BvztszzCDfm6tx0/RY5AH0m4U2zE 3A== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3mvsvegmj5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Jan 2023 02:15:10 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3042FA7r025282 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 4 Jan 2023 02:15:10 GMT Received: from bqiang-Celadon-RN.qca.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Tue, 3 Jan 2023 18:15:08 -0800 From: Baochen Qiang <quic_bqiang@quicinc.com> To: <manivannan.sadhasivam@linaro.org> CC: <hemantk@codeaurora.org>, <linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <ath11k@lists.infradead.org> Subject: [PATCH] bus: mhi: host: Change the log levels for SYS_ERR event Date: Wed, 4 Jan 2023 10:14:45 +0800 Message-ID: <20230104021445.47484-1-quic_bqiang@quicinc.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: aKRbxkZPlTaC0FJLiLoYp7mQ8QbDcfxj X-Proofpoint-ORIG-GUID: aKRbxkZPlTaC0FJLiLoYp7mQ8QbDcfxj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-03_08,2023-01-03_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 suspectscore=0 clxscore=1011 mlxscore=0 priorityscore=1501 spamscore=0 mlxlogscore=916 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301040017 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754056622075578690?= X-GMAIL-MSGID: =?utf-8?q?1754056622075578690?= |
Series |
bus: mhi: host: Change the log levels for SYS_ERR event
|
|
Commit Message
Baochen Qiang
Jan. 4, 2023, 2:14 a.m. UTC
Currently no log printed when SYS_ERR happens, this makes
debug quite hard, so change log level to make it noisy.
Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
---
drivers/bus/mhi/host/boot.c | 2 +-
drivers/bus/mhi/host/main.c | 6 +++---
drivers/bus/mhi/host/pm.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
Comments
Why was this not sent to the MHI mailing list? On Tue, Jan 3, 2023 at 7:19 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: > > Currently no log printed when SYS_ERR happens, this makes > debug quite hard, so change log level to make it noisy. You are going to need to explain this more. There are two drivers in the upstream kernel that are MHI clients - pci_generic and ath11k. I'm assuming that you care about ath11k because you included that mail list. In ath11k_mhi_op_status_cb() I see a warning message printed when the syserr callback is triggered. I see something similar in pci_generic. Looks like a log is printed when SYS_ERR happens in all possible scenarios, so I don't understand the point of this change. Particularly given that dev_dbg messages can be trivially enabled. -Jeff
On 1/4/2023 10:41 AM, Jeffrey Hugo wrote: > Why was this not sent to the MHI mailing list? I don't know the MHI mailing list address, could tell me that? > > On Tue, Jan 3, 2023 at 7:19 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: >> Currently no log printed when SYS_ERR happens, this makes >> debug quite hard, so change log level to make it noisy. > You are going to need to explain this more. > There are two drivers in the upstream kernel that are MHI clients - > pci_generic and ath11k. > I'm assuming that you care about ath11k because you included that mail list. Yes, I am talking about ath11k. > In ath11k_mhi_op_status_cb() I see a warning message printed when the > syserr callback is triggered. > I see something similar in pci_generic. > > Looks like a log is printed when SYS_ERR happens in all possible > scenarios, so I don't understand the point of this change. > Particularly given that dev_dbg messages can be trivially enabled. > > -Jeff Well, this is not true in some cases. For example, we have met cases where WLAN HW/firmware is not working well, and only send a SYS_ERR event to MHI driver, however this event is not sent to ath11k host becuase of mhi_pm_sys_err_handler(), so we got no log at all.
On Tue, Jan 3, 2023 at 7:57 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: > > > On 1/4/2023 10:41 AM, Jeffrey Hugo wrote: > > Why was this not sent to the MHI mailing list? > I don't know the MHI mailing list address, could tell me that? The relevant entry from MAINTAINERS - MHI BUS M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> L: mhi@lists.linux.dev L: linux-arm-msm@vger.kernel.org S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git F: Documentation/ABI/stable/sysfs-bus-mhi F: Documentation/mhi/ F: drivers/bus/mhi/ F: include/linux/mhi.h > > > > On Tue, Jan 3, 2023 at 7:19 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: > >> Currently no log printed when SYS_ERR happens, this makes > >> debug quite hard, so change log level to make it noisy. > > You are going to need to explain this more. > > There are two drivers in the upstream kernel that are MHI clients - > > pci_generic and ath11k. > > I'm assuming that you care about ath11k because you included that mail list. > Yes, I am talking about ath11k. > > In ath11k_mhi_op_status_cb() I see a warning message printed when the > > syserr callback is triggered. > > I see something similar in pci_generic. > > > > Looks like a log is printed when SYS_ERR happens in all possible > > scenarios, so I don't understand the point of this change. > > Particularly given that dev_dbg messages can be trivially enabled. > > > > -Jeff > > Well, this is not true in some cases. For example, we have met cases where > > WLAN HW/firmware is not working well, and only send a SYS_ERR event to MHI > > driver, however this event is not sent to ath11k host becuase of > mhi_pm_sys_err_handler(), > > so we got no log at all. > With the 6.1 kernel? mhi_pm_sys_err_handler() queues the st_worker. mhi_pm_st_worker() , which is the st_worker function, calls mhi_pm_sys_error_transition() in the DEV_ST_TRANSITION_SYS_ERR case (we are processing a SYS_ERR). Pretty much the first thing mhi_pm_sys_err_transition() does is this - /* We must notify MHI control driver so it can clean up first */ mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_SYS_ERROR); Which calls the ath11k driver ath11k_mhi_op_status_cb() I mentioned earlier. -Jeff
On 1/4/2023 11:11 AM, Jeffrey Hugo wrote: > On Tue, Jan 3, 2023 at 7:57 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: >> >> On 1/4/2023 10:41 AM, Jeffrey Hugo wrote: >>> Why was this not sent to the MHI mailing list? >> I don't know the MHI mailing list address, could tell me that? > The relevant entry from MAINTAINERS - > > MHI BUS > M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > L: mhi@lists.linux.dev > L: linux-arm-msm@vger.kernel.org > S: Maintained > T: git git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git > F: Documentation/ABI/stable/sysfs-bus-mhi > F: Documentation/mhi/ > F: drivers/bus/mhi/ > F: include/linux/mhi.h > >>> On Tue, Jan 3, 2023 at 7:19 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: >>>> Currently no log printed when SYS_ERR happens, this makes >>>> debug quite hard, so change log level to make it noisy. >>> You are going to need to explain this more. >>> There are two drivers in the upstream kernel that are MHI clients - >>> pci_generic and ath11k. >>> I'm assuming that you care about ath11k because you included that mail list. >> Yes, I am talking about ath11k. >>> In ath11k_mhi_op_status_cb() I see a warning message printed when the >>> syserr callback is triggered. >>> I see something similar in pci_generic. >>> >>> Looks like a log is printed when SYS_ERR happens in all possible >>> scenarios, so I don't understand the point of this change. >>> Particularly given that dev_dbg messages can be trivially enabled. >>> >>> -Jeff >> Well, this is not true in some cases. For example, we have met cases where >> >> WLAN HW/firmware is not working well, and only send a SYS_ERR event to MHI >> >> driver, however this event is not sent to ath11k host becuase of >> mhi_pm_sys_err_handler(), >> >> so we got no log at all. >> > With the 6.1 kernel? > > mhi_pm_sys_err_handler() queues the st_worker. > > mhi_pm_st_worker() , which is the st_worker function, calls > mhi_pm_sys_error_transition() in the DEV_ST_TRANSITION_SYS_ERR case > (we are processing a SYS_ERR). > > Pretty much the first thing mhi_pm_sys_err_transition() does is this - > > /* We must notify MHI control driver so it can clean up first */ > mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_SYS_ERROR); > > Which calls the ath11k driver ath11k_mhi_op_status_cb() I mentioned earlier. > > -Jeff No, mhi_pm_sys_err_handler() will NOT queue the st_worker because ath11k host supports RDDM, so the SYS_ERR event will be skipped. See below log: kernel: [ 165.393720] mhi mhi0: local ee: MISSION MODE state: M0 device ee: RAMDUMP DOWNLOAD MODE state: M0 kernel: [ 165.401820] mhi mhi0: State change event to state: SYS ERROR kernel: [ 165.401824] mhi mhi0: System error detected kernel: [ 165.401827] mhi mhi0: Controller supports RDDM, skip SYS_ERROR
So your firmware is glitching, but it isn't kicking you to the RDDM EE? RDDM EE triggers an entirely different code path than the syserr process. If that assumption is correct, then I'm not entirely sure why that check exists since the current code would do the syserr processing only if it's not a RDDM event. There are other reasons the FW might trigger syserr, which would not be a fatal error or rddm, and that should trigger both the controller's processing as well as the MHI core. If I were to guess, I would say that Hemanth and Bhaumik had that in there because they were concerned about the RDDM processing triggering multiple times. I don't see how RDDM processing can trigger without the RDDM EE, which seems to make that concern moot. Sadly, I can no longer ask them to confirm. Have you experimented with removing that check? That seems like a valid fix for your system. What you propose is bypassing the dynamic debug mechanism, which doesn't seem justified in this case from what I've seen so far. -Jeff On Tue, Jan 3, 2023 at 8:17 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: > > > On 1/4/2023 11:11 AM, Jeffrey Hugo wrote: > > On Tue, Jan 3, 2023 at 7:57 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: > >> > >> On 1/4/2023 10:41 AM, Jeffrey Hugo wrote: > >>> Why was this not sent to the MHI mailing list? > >> I don't know the MHI mailing list address, could tell me that? > > The relevant entry from MAINTAINERS - > > > > MHI BUS > > M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> > > L: mhi@lists.linux.dev > > L: linux-arm-msm@vger.kernel.org > > S: Maintained > > T: git git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git > > F: Documentation/ABI/stable/sysfs-bus-mhi > > F: Documentation/mhi/ > > F: drivers/bus/mhi/ > > F: include/linux/mhi.h > > > >>> On Tue, Jan 3, 2023 at 7:19 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: > >>>> Currently no log printed when SYS_ERR happens, this makes > >>>> debug quite hard, so change log level to make it noisy. > >>> You are going to need to explain this more. > >>> There are two drivers in the upstream kernel that are MHI clients - > >>> pci_generic and ath11k. > >>> I'm assuming that you care about ath11k because you included that mail list. > >> Yes, I am talking about ath11k. > >>> In ath11k_mhi_op_status_cb() I see a warning message printed when the > >>> syserr callback is triggered. > >>> I see something similar in pci_generic. > >>> > >>> Looks like a log is printed when SYS_ERR happens in all possible > >>> scenarios, so I don't understand the point of this change. > >>> Particularly given that dev_dbg messages can be trivially enabled. > >>> > >>> -Jeff > >> Well, this is not true in some cases. For example, we have met cases where > >> > >> WLAN HW/firmware is not working well, and only send a SYS_ERR event to MHI > >> > >> driver, however this event is not sent to ath11k host becuase of > >> mhi_pm_sys_err_handler(), > >> > >> so we got no log at all. > >> > > With the 6.1 kernel? > > > > mhi_pm_sys_err_handler() queues the st_worker. > > > > mhi_pm_st_worker() , which is the st_worker function, calls > > mhi_pm_sys_error_transition() in the DEV_ST_TRANSITION_SYS_ERR case > > (we are processing a SYS_ERR). > > > > Pretty much the first thing mhi_pm_sys_err_transition() does is this - > > > > /* We must notify MHI control driver so it can clean up first */ > > mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_SYS_ERROR); > > > > Which calls the ath11k driver ath11k_mhi_op_status_cb() I mentioned earlier. > > > > -Jeff > > > No, mhi_pm_sys_err_handler() will NOT queue the st_worker because ath11k > host supports RDDM, so the SYS_ERR event will be skipped. See below log: > > kernel: [ 165.393720] mhi mhi0: local ee: MISSION MODE state: M0 device > ee: RAMDUMP DOWNLOAD MODE state: M0 > kernel: [ 165.401820] mhi mhi0: State change event to state: SYS ERROR > kernel: [ 165.401824] mhi mhi0: System error detected > kernel: [ 165.401827] mhi mhi0: Controller supports RDDM, skip SYS_ERROR >
Jeffrey Hugo <jeffrey.l.hugo@gmail.com> writes: > Why was this not sent to the MHI mailing list? > > On Tue, Jan 3, 2023 at 7:19 PM Baochen Qiang <quic_bqiang@quicinc.com> wrote: >> >> Currently no log printed when SYS_ERR happens, this makes >> debug quite hard, so change log level to make it noisy. > > You are going to need to explain this more. > There are two drivers in the upstream kernel that are MHI clients - > pci_generic and ath11k. > I'm assuming that you care about ath11k because you included that mail list. > In ath11k_mhi_op_status_cb() I see a warning message printed when the > syserr callback is triggered. > I see something similar in pci_generic. > > Looks like a log is printed when SYS_ERR happens in all possible > scenarios, so I don't understand the point of this change. > Particularly given that dev_dbg messages can be trivially enabled. Also the error messages are not very informative, especially if there are three identical messages it's hard to track down which code path is triggering them. If these are changed to error messages, I would prefer to improve them as well.
diff --git a/drivers/bus/mhi/host/boot.c b/drivers/bus/mhi/host/boot.c index 1c69feee1703..d8bceabcee63 100644 --- a/drivers/bus/mhi/host/boot.c +++ b/drivers/bus/mhi/host/boot.c @@ -102,7 +102,7 @@ static int __mhi_download_rddm_in_panic(struct mhi_controller *mhi_cntrl) goto error_exit_rddm; if (ee != MHI_EE_RDDM) { - dev_dbg(dev, "Trigger device into RDDM mode using SYS ERR\n"); + dev_info(dev, "Trigger device into RDDM mode using SYS ERR\n"); mhi_set_mhi_state(mhi_cntrl, MHI_STATE_SYS_ERR); dev_dbg(dev, "Waiting for device to enter RDDM\n"); diff --git a/drivers/bus/mhi/host/main.c b/drivers/bus/mhi/host/main.c index df0fbfee7b78..54c948ed7f47 100644 --- a/drivers/bus/mhi/host/main.c +++ b/drivers/bus/mhi/host/main.c @@ -497,7 +497,7 @@ irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv) TO_MHI_EXEC_STR(ee), mhi_state_str(state)); if (state == MHI_STATE_SYS_ERR) { - dev_dbg(dev, "System error detected\n"); + dev_err(dev, "System error detected\n"); pm_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_SYS_ERR_DETECT); } @@ -871,7 +871,7 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl, { enum mhi_pm_state pm_state; - dev_dbg(dev, "System error detected\n"); + dev_err(dev, "System error detected\n"); write_lock_irq(&mhi_cntrl->pm_lock); pm_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_SYS_ERR_DETECT); @@ -1085,7 +1085,7 @@ void mhi_ctrl_ev_task(unsigned long data) write_lock_irq(&mhi_cntrl->pm_lock); state = mhi_get_mhi_state(mhi_cntrl); if (state == MHI_STATE_SYS_ERR) { - dev_dbg(dev, "System error detected\n"); + dev_err(dev, "System error detected\n"); pm_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_SYS_ERR_DETECT); } diff --git a/drivers/bus/mhi/host/pm.c b/drivers/bus/mhi/host/pm.c index 083459028a4b..570fdd4db442 100644 --- a/drivers/bus/mhi/host/pm.c +++ b/drivers/bus/mhi/host/pm.c @@ -1223,7 +1223,7 @@ int mhi_force_rddm_mode(struct mhi_controller *mhi_cntrl) if (mhi_cntrl->ee == MHI_EE_RDDM) return 0; - dev_dbg(dev, "Triggering SYS_ERR to force RDDM state\n"); + dev_info(dev, "Triggering SYS_ERR to force RDDM state\n"); mhi_set_mhi_state(mhi_cntrl, MHI_STATE_SYS_ERR); /* Wait for RDDM event */