Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3138588rdb; Tue, 29 Aug 2023 06:35:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjScmk0ae7H+7J96joBM0dutM9P+mivXosC6w6bosaRBHtvHajvQ4qv0cMCELHuIEzwPIL X-Received: by 2002:a05:6808:1596:b0:3a8:8d2f:6c36 with SMTP id t22-20020a056808159600b003a88d2f6c36mr17061523oiw.3.1693316153653; Tue, 29 Aug 2023 06:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693316153; cv=none; d=google.com; s=arc-20160816; b=ofSYoyyy/skqabywVIpd20DZTBU5V9mPUH98U++VQFueH0pEArJy9IQXMqSDEWJDB0 sGJAQbeAMggBaGKTzoBCDY6FB9La4KZ0or4+XeDqSupMgcubl8BmflqmOmY+JHgIar1S bjaAyuouAbp4HhVE35QFe2F1rjQQJJDZbISlrWXHDVgmyZQCMsK3Xzi4gvZyodNVyG/8 NaLzKn5PQPCFSpuuEV2tCKUxzfXUWdU3aHEDv3xxYRMejANaCPiULJGwkcpy+0B2hJ8L jgZ5zKZKAJXWIpIPprd2MZ+4ufGL21IZBwwUzwqhZsBkCJVGyzb9vr7GnycMWL/16WTw 520w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=PaNeiUS8zpgO6DTyl8s1UN/oEwPEBDu5bv7ApbGDNO0=; fh=fjvZJpkv8VgQHTcI1eEdlkR2wHeNxPCX4SAO91OCZLM=; b=R0gO8/N3ssU3vRutZiKHpjqQVSYv3EavqL3XqA1pxone+3mFF14Qd2pHX3plbB5qQS DKl47i8fQvCPGWa5jzuFwjoXSsZhAZh7jJlPppYtYFaq8PFB3BXmY10bh8RAHHLnYRk8 wsw1fh3PfIkHxeoelPsSuv/TFsVMzQZ/OqW2nd2ptfa+Os5CYcVJVJNwnLFPPqbWeLDi /nKT5e7JJ6wbMfzaWXRzku5pIGim3zESeKJRdbAqgz+1DScgfEE1mc2AKt+xpIv6i6Xs A7kHAaJ/4a3oYbr2st3EaB0Y9MgefvPyQ1pp2+qcKM0YB7nlLHAKoXTOC8VJwhry/W7B DqyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=agFtrIaz; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a6556c8000000b0053fb354c194si9352282pgs.659.2023.08.29.06.35.49; Tue, 29 Aug 2023 06:35:53 -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=@kernel.org header.s=k20201202 header.b=agFtrIaz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233034AbjH2LyX (ORCPT + 12 others); Tue, 29 Aug 2023 07:54:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232516AbjH2Lxw (ORCPT ); Tue, 29 Aug 2023 07:53:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E13E194 for ; Tue, 29 Aug 2023 04:53:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D10BE65306 for ; Tue, 29 Aug 2023 11:53:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8236EC433C8; Tue, 29 Aug 2023 11:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693310029; bh=awCMTnDtvvGRTd8dGFD1IkkYqZZrzBBX9jyzuOvu4Mw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=agFtrIaz1YjzBj7XhxU4BIT6GF03xbYREjgBbWoY4enl1ZbCUnQ+s9XD7jSb4DCZA XwYSOAIfpoKghEM+R/qcVCILrwUG8skQGKzDVvpog6Gn0JWfQy00JLeqKYqBC3ERVz HYBtVOEYaco6FmaW1/3H0HbKb2ofuFjsoWkYmjeddmFTkFLKpXyuh/EZmk5FWfsV73 6rBwrJe1sZGZp8wTlb5O+0W2qImUqkxTUsfevQZSxzmPQsfURXL7oQoXw7TO3GgtD5 HesYxkhtR5WiY3mN8uQXJx85pjVVTYC4Z4jUkWR4REI2tyqQjvhMxRM4ttHo433QCR HfqJ7iuXa7Xtw== From: Kalle Valo To: Arowa Suliman Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [v4] wifi: ath11k: Add crash logging References: <20230714001126.463127-1-arowa@chromium.org> Date: Tue, 29 Aug 2023 14:53:46 +0300 In-Reply-To: <20230714001126.463127-1-arowa@chromium.org> (Arowa Suliman's message of "Thu, 13 Jul 2023 17:10:54 -0700") Message-ID: <87h6oif4j9.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-wireless@vger.kernel.org Arowa Suliman writes: > 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 I did some cosmetic cleanup to the commit log. > --- 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)); In my view info, warning and error messages need to be at least somewhat understandable to the user. I think this message is not understandable and it should remain as a debug message. So I removed this change. Please check my changes in the pending branch: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=pending&id=f9325b14e830f3e8b5a557352e7c65f321bb7b05 -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches