Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1803800rwp; Thu, 13 Jul 2023 17:25:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMLLKvdcV66p0MZFpzRtS82aq/K7qU2CwlhfOkIBKlIBB+1zw5b++dPpTC+DHSU0YC8cIU X-Received: by 2002:a17:906:3f56:b0:992:1233:9c45 with SMTP id f22-20020a1709063f5600b0099212339c45mr2235364ejj.69.1689294352048; Thu, 13 Jul 2023 17:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689294352; cv=none; d=google.com; s=arc-20160816; b=KT4vVnyavtjedo0l8XbXK8a7umhXGB0Jc/QVL6yypWa0QYaerwONTyfbexiZ5RzQdi LATDSosHvK7iL71nomOtlbGNe9ybOYjH0zexFuHNubfUwU4BCtdNT7eX2MPln0/FYGUX 9OSrGKqZlGwnezodv3a1PCPB++FWbn0zuXoJbQLRSyDN3lS6UpRolFIxbHuc+1A8sehF OJbAr3Bir7aWQDB0MDzVurZQKrQsc4OAWK7HQO77RtEoZPy4iR9k8tEmFNWYvsmA5Mp7 7Fmw025DgsgfMUFB2Vg1R5V3Gnsrdi3cg/rpyRddn2Eq42/J/Pvo0mELqRlfoKgJkrHA 0Ekw== 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=5vqUOvUXa8K5Wx+m88RxVlwrv8R/El1ZGP9GFTtwjCI=; fh=MFY8j1y6rEmNqCPHX0fz2SAmsLNVaMnWv3auClkuOFE=; b=qwb9+NBxtLmu8kaJTBNOzoL3GLEaYXj5sLWoBKfR6a6UJCzwXgReogB46JPiE46/WE K6uPhTeRYrNRw/m8D16E0t6PvmfIw3mdzGjWaYLjZzz7kKNGaFlgY6cowWi2hgSsJTvf gsYDmRxMEtDaNVUV7UDFwqf0nij+h45tK3u91YIsyW/65CQ7Od5ZhhjzpJFJo53zYXgL 4WCFSfWtozMpugM8FuWSQfEj/9pZ0A5txAWeF6v1glTV9ff5vgtFfPD8cB9YvrdLeNdW VzvWZnuev0/iRDZsLi6Rn2Nx2yRrfxAtPWjiIeJTu9mxm3ighMZVwLo14TSeDPabKNFe E5dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W5MkhmHG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a1709064b0e00b0098dd6a1e775si6815044eju.811.2023.07.13.17.25.33; Thu, 13 Jul 2023 17:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@chromium.org header.s=google header.b=W5MkhmHG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232059AbjGNALg (ORCPT + 59 others); Thu, 13 Jul 2023 20:11:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbjGNALg (ORCPT ); Thu, 13 Jul 2023 20:11:36 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6018526AF for ; Thu, 13 Jul 2023 17:11:34 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b895a06484so8196235ad.1 for ; Thu, 13 Jul 2023 17:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689293494; x=1691885494; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5vqUOvUXa8K5Wx+m88RxVlwrv8R/El1ZGP9GFTtwjCI=; b=W5MkhmHGhYTWevAnklGe1SJrBEc4X86lBc5Bt+8KOBXcZkq7R6Cx+JcbVv9i/q48n4 WD/oisoaO0vnhgPjsp2DFBOfj+qrTSqSkBCX1am4CqVzeIk/eEM1+60lInYo8I55uQDO TBVZ8TEgF1B+ulcfQTP8Eiqf3zonk3AAXhyuo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689293494; x=1691885494; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5vqUOvUXa8K5Wx+m88RxVlwrv8R/El1ZGP9GFTtwjCI=; b=V+H2l1nLQWTbOMsuGMfF3BViELlZGGu6U6trznnnnWtwrdDxMPnzCmq/o2XyvjKrU0 7A16OviD0O962hg8qZLwvG8N+9QjgycHgOhED74olIzGTccM1l/DDtwyD2DKjQjSZ1+N EHzzOOdTi4Eadrw5R5lc8eh40zOpzFS/sg193IxB9Ag39qoW2Ylrx5UMP41K+m+sBpMM A265K2VVEVpMPBLljNGn3Q6fiiK04PWR7VRIADHbW5rn3wfEMpHRt7Ag6ZJFUWmcTjdR Gjfu/KM1uHc33MzujdRknBXDW9rW1ETLEpbMGr2dHctYVdUcnzYFFbewbYU99xVo+1cs 7qzw== X-Gm-Message-State: ABy/qLYt928CAFta0/wt2cVuy4s1hiJl2LEZppBaKpRFrWiQZA/gPOdV glfJZf38QMXqlmiROupm31HjOg== X-Received: by 2002:a17:902:c40f:b0:1ac:63ac:10a7 with SMTP id k15-20020a170902c40f00b001ac63ac10a7mr2825431plk.68.1689293493801; Thu, 13 Jul 2023 17:11:33 -0700 (PDT) Received: from arowa.mtv.corp.google.com ([2620:15c:9d:4:752b:86eb:10d6:65b4]) by smtp.gmail.com with ESMTPSA id 20-20020a170902ee5400b001b81a97860asm6444207plo.27.2023.07.13.17.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 17:11:33 -0700 (PDT) From: Arowa Suliman To: ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Arowa Suliman Subject: [v4] wifi: ath11k: Add crash logging Date: Thu, 13 Jul 2023 17:10:54 -0700 Message-ID: <20230714001126.463127-1-arowa@chromium.org> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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: X-Mailing-List: linux-wireless@vger.kernel.org Currently, the ath11k driver does not print a crash signature when a crash happens. Checked by triggering a simulated crash using the command [1] and checking dmesg for logs. [1] echo assert > /sys/kernel/debug/ath11k/../simulate_fw_crash Change the crash logging from debug to informational and add a warning when firmware crash MHI_CB_EE_RDDM happens. Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 Signed-off-by: Arowa Suliman --- v4: Shift line 329 one space to the right to fix code alignment. --- drivers/net/wireless/ath/ath11k/mhi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mhi.c b/drivers/net/wireless/ath/ath11k/mhi.c index 3ac689f1def4..025fa58b1503 100644 --- a/drivers/net/wireless/ath/ath11k/mhi.c +++ b/drivers/net/wireless/ath/ath11k/mhi.c @@ -325,14 +325,15 @@ static void ath11k_mhi_op_status_cb(struct mhi_controller *mhi_cntrl, { struct ath11k_base *ab = dev_get_drvdata(mhi_cntrl->cntrl_dev); - ath11k_dbg(ab, ATH11K_DBG_BOOT, "notify status reason %s\n", - ath11k_mhi_op_callback_to_str(cb)); + ath11k_info(ab, "notify status reason %s\n", + ath11k_mhi_op_callback_to_str(cb)); switch (cb) { case MHI_CB_SYS_ERROR: ath11k_warn(ab, "firmware crashed: MHI_CB_SYS_ERROR\n"); break; case MHI_CB_EE_RDDM: + ath11k_warn(ab, "firmware crashed: MHI_CB_EE_RDDM\n"); if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags))) queue_work(ab->workqueue_aux, &ab->reset_work); break; -- 2.41.0.255.g8b1d071c50-goog