Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp387875lqp; Thu, 21 Mar 2024 04:41:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUy4Bhuz54pFeZ1j6tr1qvFWCmHElthsYyiJ6LuAhzzggB+QxaRIP4Kvb82LefP1pv2FDBI58Kjw02lkxP0IQZjcs6DSP6GyB1I2tSnlw== X-Google-Smtp-Source: AGHT+IHr/xSPZ7CYZwrplmww4EoiyBuI1b+XoLbn4dR2mnvuHseYOd0pkBHGBbhCHbyUbdd2xw4n X-Received: by 2002:a17:902:e750:b0:1dd:8daf:99d7 with SMTP id p16-20020a170902e75000b001dd8daf99d7mr3732976plf.32.1711021272426; Thu, 21 Mar 2024 04:41:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711021272; cv=pass; d=google.com; s=arc-20160816; b=mtzyGStIDSyAHNaWHckVtiyi9+ylt8kTRrg8x2/2h4itwXVmXCgB4QZjBFRgf3ZKSR +zW6pTJccOiqElx1k3VhlSFzcabZPOO8cSgQqOAZkQFC3bF/8sT+i0wYmd6BFGWRghke gwEF8Lt3jsCGXsEGOGVIUDLlyaKxzUiX3HY/1PQt4wWdR51TCCQzr31suxJj7HYNyNbu AwIeBZ6bEmRAQ0uKfojKluwKBzqA1qkza0PrDVKIpTfaa0dg+5vFKtE7jhVgQVY1pZld 7SGxeQ//iEU5RccicHIhXWIvGVp0l41iHJ/iKrjsZoDpUflDXyWRDA/ox+s8rWDTQIZL dfGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=FbbyCSTuQeE8/emTu4JhVLYIjyoX3KJqiTEOITPTII4=; fh=tPHBA95q4A2JsKJMw3mMqQ5Xsp/Qmg3wcY5CiIlDe3k=; b=YVuX38+ICPmFlR6DEPhcjCt6xsVt2hl3sicp11DtMS4nXPfWoS6sVNJCv6v9iWLNU+ yLwPrJNOmm27zf2m2CbwpIXJ5JxriRWOiX8UXJFPS/RX3jsK47UOQzXQPYWA7sugIrqJ dJWlA8QVA9zAIHFX4HaBSJOkdk/5HwXVVDDfG9/dmG8PrtbWa38b0DJ9WMYtnBZm3nZU ujuoPBrALwdDNpy7ZqT4U5ZDNlee4hHfhK/jOWb6kSqesn7tuSy7xQGQnk78V4oxA6Su U7uKM9pyY+YDH9vfI3vG7s8yT+QrQgI5Cjea+Zwup35gxGQQP6kbC04I5IAwL4YffKdv Z5aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C3v9iapx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cp12-20020a170902e78c00b001dd779ed4c4si783792plb.218.2024.03.21.04.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 04:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C3v9iapx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5088-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5088-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BC486B21AE8 for ; Thu, 21 Mar 2024 11:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDE1E58AAB; Thu, 21 Mar 2024 11:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C3v9iapx" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9D463C17 for ; Thu, 21 Mar 2024 11:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711021227; cv=none; b=RzUd+Bz63gEe0NrjfGz7w7CGBBRcQ6uNEyZEmruANjWnIY/zcNXzUhMhql6aV0ShhwIDSsrH0EgvoFT/xzLy/IMm4crjjNv/ktjbE9TJCCD80cOpywKvis0k/c/ovyXFo+YPgSsObX3GJ9TTCBdkQIPOFt3iBLnsh5WTAbzIjl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711021227; c=relaxed/simple; bh=BDrs6bk24h92KdGirrXYHOyB22BWqkXqdzBUtsoeK70=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=l1RPEZzz7sBDe8Rgu4XLVrGDOURlN4RtzPFkdtRN1aQXSaenDBkwXRPD0/FyFRFyG77QEZ0+5YNqcnySjHMCoQafioXyC0P/stoYSgc+PBsgZRB8oEGeiscxSAaLeE0aExT9zfnADupfYaLR/Fx6Rdpmuq0KzlfOQmBlxaDInsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C3v9iapx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98ED2C433C7; Thu, 21 Mar 2024 11:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711021227; bh=BDrs6bk24h92KdGirrXYHOyB22BWqkXqdzBUtsoeK70=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=C3v9iapxnEr8TgEo3fE91CLPlfvPhg/d6Hten8qu64UMm4cQVhqyQ/TXiuIcTG69Q gw8GXO+i+P7ufJB1xphF1xJUtjhxUcKdoPa7i1JbRpJPdODB9+4qhJhC3IaTHMUZ6b t5HHRFBuEf8mExhogi3IjvUaQIxLyVx0MOkji/P8pQXpIyugJqL+FB44LLl3VQ1h42 Mf1pzGLwSqQKqHKKdoKsWoMYBuQxkD9rARO0CPFjH4BT28P1lOIM7qX2znjJRt2rb7 O0EUlFm/bwq3yvuWs974589WIy++XTZLEB9Lr0Wke7gdHyM5bpa1CKza/g3kh7qblw ndz0mwew+FMaQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: ath11k: do not process consecutive RDDM event From: Kalle Valo In-Reply-To: <20240111071406.14053-1-quic_bqiang@quicinc.com> References: <20240111071406.14053-1-quic_bqiang@quicinc.com> To: Baochen Qiang Cc: , , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171102122457.4024062.7715360244094507698.kvalo@kernel.org> Date: Thu, 21 Mar 2024 11:40:26 +0000 (UTC) Baochen Qiang wrote: > Currently we do reset for each RDDM event from MHI, however there are > cases, see below log, that we get two or more consecutive events, and > it is pointless to do reset for the subsequent ones. What's more, it > makes reset process more likely to fail. > > [ 1502.115876] ath11k_pci 0000:04:00.0: boot notify status reason MHI_CB_EE_RDDM > [ 1502.115884] ath11k_pci 0000:04:00.0: firmware crashed: MHI_CB_EE_RDDM > [ 1502.224041] ath11k_pci 0000:04:00.0: boot notify status reason MHI_CB_EE_RDDM > [ 1502.224050] ath11k_pci 0000:04:00.0: firmware crashed: MHI_CB_EE_RDDM > > Add a check to avoid reset again and again. This is done by tracking previous > MHI status: if we receive a new RDDM event while the previous one is > also the same, we treat it as duplicate and ignore it, because normally > we should receive a MHI_CB_EE_MISSION_MODE event between them. > > Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.23 > > Signed-off-by: Baochen Qiang > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 7c352a4d0183 wifi: ath11k: do not process consecutive RDDM event -- https://patchwork.kernel.org/project/linux-wireless/patch/20240111071406.14053-1-quic_bqiang@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches