X-Received: by 2002:a17:90a:c682:b0:1bc:11c4:46f9 with SMTP id n2-20020a17090ac68200b001bc11c446f9mr2412315pjt.69.1645507257869; Mon, 21 Feb 2022 21:20:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507257; cv=none; d=google.com; s=arc-20160816; b=SUO4jssQBgw7CZmBnm3euczWMYqv2uP/JqN/0eS5bFxCRijuIHKs4WZWQG3MRFRQBX TIG8gIeyNETBnzc70NTeO0C2xPiY/Izj5FPG96JaX5wfogvdLzEXkEWE2oIVbRTyUk/6 UOnxeXPOmiXGmnIgR/8X25YHmeT8HIlWIIlFWLMZrVbcITTKfYKwdm5KPWIz7msFfqP+ yrD3/vaJUcCkVHgMa/yIs1ab0nwQn+RUwsxJ2yRm/lPYn6SGg7zXnqEJ3fGBrtmBBopl JckCLk9hlImNvTcFdSZwhgp4omi4Z+G5bVccEt0wcBdPXF9dxGOOocbrfNBqNiNGdVz7 +vAg== 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=lw/zGQo/AY368JLgsuA5nwZ1NTJmWoDFrTlUKygg1pY=; b=eTemLs6oJ/iuUqooht80i7U7nlyMDLsXsJxCUdbESNUxvUZKuPDaZXJP1qa8FaLjM0 gHiGscp674fW1R67zek9sUANEJm2FLs26RcxgsmbJ74PcE5I2iRmyuj6VsjzAAZeFeGw ba0yAEUzs7YT7FOp9o+vMZDc2ZrY/O9tvUOGANSVTI/fKetcjtAZIxFo/DdrYBj1YXzP Ians9FewTHngvZvKJINk19ebqJSu7huFEMj74KJA9iJvd1N5VV+oBI9ZK7+mnj9+ULJJ ttONIkqDEEf29S5MLKTHYkYiTPIwFOVR6c5/RzvC5baAmUNm2A9joUcpLUvMote9BkQ4 Dwfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RUX2mWv8; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a16si32971067plm.370.2022.02.21.21.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:20:57 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RUX2mWv8; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 359E0F4077; Mon, 21 Feb 2022 20:52:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348136AbiBUKy1 (ORCPT + 72 others); Mon, 21 Feb 2022 05:54:27 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345915AbiBUKxo (ORCPT ); Mon, 21 Feb 2022 05:53:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 494EE17A85 for ; Mon, 21 Feb 2022 02:20:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C955F60FB0 for ; Mon, 21 Feb 2022 10:20:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ED84C340E9; Mon, 21 Feb 2022 10:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645438810; bh=4rsJ7jLtpQHMwNrc7zQbjunaNVW6HQCyatLb/exJnaQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=RUX2mWv8T9lKpD9u/pUC6DtbuG/prIt1zLk68uhympOWb3QnmRHnm0vipI0Zg8/YX TiDRNmjL9k+kvHhv4Rd0IZRN/YuE3IT2mTWdV1Ldzb/XUEXs/2sQ4Md0TLrJOZ1cAS nbz6RVoOIlZxmU5WvBdPzaHV2DRbNsnhjMWc90u2LfGvl2D6Lb32ehV+T1ZBXFvz+5 SC2/6NUG/8F+nnRpQQ1rUjRJmUJRLeNvHsQzUsqqtkl5LB7ewX3LS4UqivMDk5grQl f9ZRx0VM0Gdl8BLcU+JyDkQJSz5AkxpnpIBHgtnOY59DJXD8QNhj3/HNDxdZ+F1/JX WIV+8/9uPoFQw== From: Kalle Valo To: Wen Gong Cc: , Subject: Re: [PATCH v6 0/6] ath11k: add feature for device recovery References: <20220209060012.32478-1-quic_wgong@quicinc.com> Date: Mon, 21 Feb 2022 12:20:05 +0200 In-Reply-To: <20220209060012.32478-1-quic_wgong@quicinc.com> (Wen Gong's message of "Wed, 9 Feb 2022 01:00:06 -0500") Message-ID: <87v8x8wmga.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wen Gong writes: > Currently recovery is work success for QCA6390/WCN6855 without the RDDM dump feature, > because patch "ath11k: configure RDDM size to mhi for recovery by firmware" > added in v5. The firmware restart works now but I get warnings, see log below. I applied patches 1-3, but patches 4-6 need more work. I'm using: ath11k_pci 0000:06:00.0: MSI vectors: 32 ath11k_pci 0000:06:00.0: qca6390 hw2.0 ath11k_pci 0000:06:00.0: chip_id 0x0 chip_family 0xb board_id 0xff soc_id 0xffffffff ath11k_pci 0000:06:00.0: fw_version 0x10121492 fw_build_timestamp 2021-11-04 11:23 fw_build_id Here's the log: [ 1965.642121] ath11k_pci 0000:06:00.0: simulating firmware assert crash [ 1968.471364] ieee80211 phy0: Hardware restart was requested [ 1968.511305] ------------[ cut here ]------------ [ 1968.511368] WARNING: CPU: 3 PID: 1546 at drivers/bus/mhi/core/pm.c:505 mhi_pm_disable_transition+0xb37/0xda0 [mhi] [ 1968.511443] Modules linked in: ath11k_pci ath11k mac80211 libarc4 cfg80211 qmi_helpers qrtr_mhi mhi qrtr nvme nvme_core [ 1968.511563] CPU: 3 PID: 1546 Comm: kworker/u17:0 Kdump: loaded Tainted: G W 5.17.0-rc3-wt-ath+ #579 [ 1968.511629] Hardware name: Intel(R) Client Systems NUC8i7HVK/NUC8i7HVB, BIOS HNKBLi70.86A.0067.2021.0528.1339 05/28/2021 [ 1968.511704] Workqueue: mhi_hiprio_wq mhi_pm_st_worker [mhi] [ 1968.511787] RIP: 0010:mhi_pm_disable_transition+0xb37/0xda0 [mhi] [ 1968.511870] Code: a9 fe ff ff 4c 89 ff 44 89 04 24 e8 03 46 f6 e5 44 8b 04 24 41 83 f8 01 0f 84 21 fe ff ff e9 4c fd ff ff 0f 0b e9 af f8 ff ff <0f> 0b e9 5c f8 ff ff 48 89 df e8 da 9e ee e3 e9 12 fd ff ff 4c 89 [ 1968.511923] RSP: 0018:ffffc900024efbf0 EFLAGS: 00010286 [ 1968.511969] RAX: 00000000ffffffff RBX: ffff88811d241250 RCX: ffffffffc0176922 [ 1968.512014] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888118a90a24 [ 1968.512059] RBP: ffff888118a90800 R08: 0000000000000000 R09: ffff888118a90a27 [ 1968.512102] R10: ffffed1023152144 R11: 0000000000000001 R12: ffff888118a908ac [ 1968.512229] R13: ffff888118a90928 R14: dffffc0000000000 R15: ffff888118a90a24 [ 1968.512310] FS: 0000000000000000(0000) GS:ffff888234200000(0000) knlGS:0000000000000000 [ 1968.512405] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1968.512493] CR2: 00007f5538f443a8 CR3: 000000016dc28001 CR4: 00000000003706e0 [ 1968.512587] Call Trace: [ 1968.512672] [ 1968.512751] ? _raw_spin_unlock_irq+0x1f/0x40 [ 1968.512859] mhi_pm_st_worker+0x3ac/0x790 [mhi] [ 1968.512959] ? mhi_pm_mission_mode_transition.isra.0+0x7d0/0x7d0 [mhi] [ 1968.513063] process_one_work+0x86a/0x1400 [ 1968.513184] ? pwq_dec_nr_in_flight+0x230/0x230 [ 1968.513312] ? move_linked_works+0x125/0x290 [ 1968.513416] worker_thread+0x6db/0xf60 [ 1968.513536] ? process_one_work+0x1400/0x1400 [ 1968.513627] kthread+0x241/0x2d0 [ 1968.513733] ? kthread_complete_and_exit+0x20/0x20 [ 1968.513821] ret_from_fork+0x22/0x30 [ 1968.513924] [ 1968.514000] irq event stamp: 38683 [ 1968.514079] hardirqs last enabled at (38691): [] __up_console_sem+0x62/0x70 [ 1968.514185] hardirqs last disabled at (38700): [] __up_console_sem+0x47/0x70 [ 1968.514266] softirqs last enabled at (37928): [] mhi_reset_chan+0x76c/0xaa0 [mhi] [ 1968.514356] softirqs last disabled at (37924): [] mhi_reset_chan+0x131/0xaa0 [mhi] [ 1968.514448] ---[ end trace 0000000000000000 ]--- [ 1968.844604] mhi mhi0: Requested to power ON [ 1968.845578] mhi mhi0: Power on setup success [ 1969.152617] mhi mhi0: Wait for device to enter SBL or Mission mode [ 1969.268367] ath11k_pci 0000:06:00.0: chip_id 0x0 chip_family 0xb board_id 0xff soc_id 0xffffffff [ 1969.268441] ath11k_pci 0000:06:00.0: fw_version 0x10121492 fw_build_timestamp 2021-11-04 11:23 fw_build_id [ 1969.293648] ath11k_pci 0000:06:00.0: Last interrupt received for each CE: [ 1969.293712] ath11k_pci 0000:06:00.0: CE_id 0 pipe_num 0 126895ms before [ 1969.293803] ath11k_pci 0000:06:00.0: CE_id 1 pipe_num 1 19337ms before [ 1969.293851] ath11k_pci 0000:06:00.0: CE_id 2 pipe_num 2 3648ms before [ 1969.293913] ath11k_pci 0000:06:00.0: CE_id 3 pipe_num 3 3649ms before [ 1969.293974] ath11k_pci 0000:06:00.0: CE_id 5 pipe_num 5 126895ms before [ 1969.294034] ath11k_pci 0000:06:00.0: CE_id 7 pipe_num 7 1668238ms before [ 1969.294095] ath11k_pci 0000:06:00.0: CE_id 8 pipe_num 8 1668238ms before [ 1969.294279] ath11k_pci 0000:06:00.0: #012[ 1969.294279] Last interrupt received for each group: [ 1969.294343] ath11k_pci 0000:06:00.0: group_id 0 6782ms before [ 1969.294408] ath11k_pci 0000:06:00.0: group_id 1 1668239ms before [ 1969.294473] ath11k_pci 0000:06:00.0: group_id 2 1668239ms before [ 1969.294535] ath11k_pci 0000:06:00.0: group_id 3 1668239ms before [ 1969.295035] ath11k_pci 0000:06:00.0: group_id 4 1668239ms before [ 1969.295103] ath11k_pci 0000:06:00.0: group_id 5 1668239ms before [ 1969.295390] ath11k_pci 0000:06:00.0: group_id 6 1668240ms before [ 1969.295442] ath11k_pci 0000:06:00.0: group_id 7 1668240ms before [ 1969.295518] ath11k_pci 0000:06:00.0: group_id 8 6783ms before [ 1969.295579] ath11k_pci 0000:06:00.0: group_id 9 1668240ms before [ 1969.295640] ath11k_pci 0000:06:00.0: group_id 10 1668240ms before [ 1969.295715] ath11k_pci 0000:06:00.0: dst srng id 0 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 1668240ms [ 1969.295783] ath11k_pci 0000:06:00.0: dst srng id 1 tp 208, cur hp 208, cached hp 208 last hp 208 napi processed before 6783ms [ 1969.295845] ath11k_pci 0000:06:00.0: dst srng id 2 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 1668240ms [ 1969.295908] ath11k_pci 0000:06:00.0: dst srng id 3 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 1668240ms [ 1969.295971] ath11k_pci 0000:06:00.0: dst srng id 4 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 6782ms [ 1969.296038] ath11k_pci 0000:06:00.0: src srng id 5 hp 0, reap_hp 248, cur tp 0, cached tp 0 last tp 0 napi processed before 1668240ms [ 1969.296103] ath11k_pci 0000:06:00.0: src srng id 8 hp 350, reap_hp 350, cur tp 180, cached tp 180 last tp 180 napi processed before 814ms [ 1969.296239] ath11k_pci 0000:06:00.0: dst srng id 9 tp 468, cur hp 468, cached hp 468 last hp 468 napi processed before 6783ms [ 1969.296290] ath11k_pci 0000:06:00.0: src srng id 16 hp 120, reap_hp 120, cur tp 120, cached tp 112 last tp 112 napi processed before 6801ms [ 1969.296356] ath11k_pci 0000:06:00.0: src srng id 24 hp 0, reap_hp 248, cur tp 0, cached tp 0 last tp 0 napi processed before 1668241ms [ 1969.296419] ath11k_pci 0000:06:00.0: dst srng id 25 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 1668241ms [ 1969.296483] ath11k_pci 0000:06:00.0: src srng id 32 hp 12, reap_hp 8, cur tp 12, cached tp 12 last tp 8 napi processed before 126898ms [ 1969.296544] ath11k_pci 0000:06:00.0: src srng id 35 hp 28, reap_hp 24, cur tp 28, cached tp 28 last tp 24 napi processed before 3654ms [ 1969.296605] ath11k_pci 0000:06:00.0: src srng id 36 hp 48, reap_hp 44, cur tp 48, cached tp 48 last tp 44 napi processed before 126484ms [ 1969.296667] ath11k_pci 0000:06:00.0: src srng id 39 hp 0, reap_hp 124, cur tp 0, cached tp 0 last tp 0 napi processed before 1668241ms [ 1969.296728] ath11k_pci 0000:06:00.0: src srng id 57 hp 0, reap_hp 0, cur tp 4, cached tp 4 last tp 4 napi processed before 19339ms [ 1969.296791] ath11k_pci 0000:06:00.0: src srng id 58 hp 792, reap_hp 792, cur tp 796, cached tp 796 last tp 796 napi processed before 3650ms [ 1969.296853] ath11k_pci 0000:06:00.0: src srng id 61 hp 1020, reap_hp 1020, cur tp 0, cached tp 0 last tp 0 napi processed before 126898ms [ 1969.296916] ath11k_pci 0000:06:00.0: dst srng id 81 tp 8, cur hp 8, cached hp 8 last hp 8 napi processed before 19340ms [ 1969.296977] ath11k_pci 0000:06:00.0: dst srng id 82 tp 1592, cur hp 1592, cached hp 1592 last hp 1592 napi processed before 3650ms [ 1969.297058] ath11k_pci 0000:06:00.0: dst srng id 85 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 126898ms [ 1969.297125] ath11k_pci 0000:06:00.0: src srng id 104 hp 65532, reap_hp 65532, cur tp 0, cached tp 0 last tp 0 napi processed before 126999ms [ 1969.297256] ath11k_pci 0000:06:00.0: src srng id 105 hp 0, reap_hp 504, cur tp 0, cached tp 0 last tp 0 napi processed before 1668242ms [ 1969.297321] ath11k_pci 0000:06:00.0: dst srng id 106 tp 176, cur hp 176, cached hp 176 last hp 176 napi processed before 6784ms [ 1969.297388] ath11k_pci 0000:06:00.0: dst srng id 109 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 6784ms [ 1969.297824] ath11k_pci 0000:06:00.0: src srng id 128 hp 24, reap_hp 24, cur tp 4182, cached tp 4182 last tp 4182 napi processed before 6784ms [ 1969.297888] ath11k_pci 0000:06:00.0: src srng id 129 hp 0, reap_hp 2046, cur tp 0, cached tp 0 last tp 0 napi processed before 1668242ms [ 1969.297951] ath11k_pci 0000:06:00.0: src srng id 132 hp 20, reap_hp 20, cur tp 22, cached tp 22 last tp 22 napi processed before 4ms [ 1969.298014] ath11k_pci 0000:06:00.0: dst srng id 133 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 6784ms [ 1969.298079] ath11k_pci 0000:06:00.0: src srng id 144 hp 0, reap_hp 2046, cur tp 0, cached tp 0 last tp 0 napi processed before 1668242ms [ 1969.298191] ath11k_pci 0000:06:00.0: src srng id 147 hp 110, reap_hp 110, cur tp 112, cached tp 112 last tp 112 napi processed before 5ms [ 1969.298255] ath11k_pci 0000:06:00.0: dst srng id 148 tp 0, cur hp 0, cached hp 0 last hp 0 napi processed before 1668243ms [ 1970.945274] ath11k_pci 0000:06:00.0: Already processed, so ignoring dma ring caps [ 1973.850557] ath11k_pci 0000:06:00.0: pdev 0 successfully recovered -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches