Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp724189lqb; Wed, 29 May 2024 08:46:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+i8CCkYOIf3CzmlPkWdzoyAblfVf6+7BT9VeAF3Am19gSGssa41CX3PLHPdPg3hBkPa/7AbvmfiD/2eOGfeKm0qwADf9Tbx4V7MovSg== X-Google-Smtp-Source: AGHT+IE8iqrtKSf/3IVAI6chBBBCN9NjJ5oH4WVJIg21IJZtWjXXuMgmyeAGUnltrPoZYKHgiZtI X-Received: by 2002:a17:906:5801:b0:a59:aa68:99a0 with SMTP id a640c23a62f3a-a62642e92a0mr925189466b.18.1716997584184; Wed, 29 May 2024 08:46:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716997584; cv=pass; d=google.com; s=arc-20160816; b=JnyTg1zFe4/RLrj3v7qVtg2na/zOxQzKQYMYsE8Ssa6zmr7061uVgZiuRWxx0YBice 0pmmVhJvTMCbZSX7WvJxdrGKEiaVntzrgmXK0MZw1BQA3MXf3LilIYj3sVntXGkd2cEj SOlil+KT0/iMrGcJYnQGSRsydb9wDSfOuvn4WI2pYebYeDKIxJPli3CZ+G4qkRg9q+rZ VI3781L25GpWwDyGOsxtHGV/4gi5q6UbFV9IZlY8h8YZt7+j4PzxggNiThtIVnkQQJZ8 wIzk480AKydGGbA8UNTmf333SYaZ97imFkxTY+dTl6WsqzsEOBCALTzy0D6jAub9VSdr TL9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=dpUHLt7pwsL8k1WQ8PfR9Rhsdeh7FelLetbONZjvaqY=; fh=b2YQfG9PfQSUw5xMVFyESXjrM9bXk1jv/UlzGGNeVIg=; b=HzcQQ/K/85yEOChAEpvoxeteiYih+BZOQHdZByKmsw4HW7xuzFC9B8F2dheCMYcfqc n90Kcsm7D7S2/y2XFoKIYu2QSTm3M4tnbbGANQWRT/mh78x4QqaPItuO385Q/i0yXs6+ +DrzXRcEwTRC+y3qokRAcs74RSaakE3XAbTy1VFb5sLgLwW32wPX1VnKYarkRfGR2a7n QvwUvZEGNUcrHx2NP3y7X/W+GUJGqHkBOKtJmnLtTc6XOtxUvnFWRNUAlm8yJskD0Gnq vBxZ2CZHKPvtX5mTy6tIvCOYKf+DOv/WR71z2T9elwzExgNXNfvR/T0fUK2qD1r/F+uN mpaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TCdBEY0D; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc6c204si657954566b.692.2024.05.29.08.46.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 08:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TCdBEY0D; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8269-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E4CFB1F289FE for ; Wed, 29 May 2024 15:46:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C666415B115; Wed, 29 May 2024 15:46:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="TCdBEY0D" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 5B9B615ADAA for ; Wed, 29 May 2024 15:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716997579; cv=none; b=lHW6wMPpmniZZTAwbd9Mx4xW6gOUUTPOm61Oj9MFAatqwdhulWIld0UeOedhxipZR7qDgs/S6xcnN3vTbqIe4XCFzKZmk/4L1/8mBzXeGIFnuJ1LD7SlX23ynsX2sICFk7yEsb9U8br+NGgmBtjeXOnjNseCvr7hJZK8h93GHr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716997579; c=relaxed/simple; bh=lgKTBI9QCefX3pW7+wH7ip+UFU1Xw2zeagCwI/7/QTQ=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=T8tDxO9c3HKf8fzgWLgBIS4PDBHAyNPY0/mZdu3qa/aWVrXvAF4wJ9irfbqj9wBd6skU8ZaZPJAw2H4lv6/rtOjOtdAsJsvWFn2Q74uOqSYmCQPHgis1rv947od8uELJRHbasVxjMnMmWBcyd25ovpEuNpWRPF+xcekVUB3dhAI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=TCdBEY0D; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44TA0lUn019268; Wed, 29 May 2024 15:46:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= dpUHLt7pwsL8k1WQ8PfR9Rhsdeh7FelLetbONZjvaqY=; b=TCdBEY0DQrNpPyO2 imiVOupktCYoaYKtkmGhgCcdK+eOA1YNiOwzx6tZU9YxICJ6gdWmtquEmx4bqGeC 00NXWy6TFk+8UsjhLW/BbN6kgF+IKtfC+J060tfZBJRqq5uFoewP2KJVBB0FodBF 8YRh4jNmiBtuZ6fWnVBzRk3Wulaj0MVIRaxdwNSWT7qntfVDjdQrMrq08b7215BY CqCcZkEv1xUQ9Vsjlbq0cmqBkMDGwouRCzR4qu3FtzHOg3j1cxmFh2OVWptOE85A EIWEL90vRSgNmEVAsSUuIB/4dCEINBmIa75jxFiIJaGHa/T3F45BhKNAuj1oRw6M Pcv4+w== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba0g9ge2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 May 2024 15:46:13 +0000 (GMT) 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 44TFk3cg000361 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 May 2024 15:46:03 GMT Received: from [10.110.122.222] (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.1544.9; Wed, 29 May 2024 08:46:02 -0700 Message-ID: <161cc065-f51c-4c44-aec4-487a4494ecc1@quicinc.com> Date: Wed, 29 May 2024 08:46:01 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath12k: do not process consecutive RDDM event Content-Language: en-US To: Baochen Qiang , CC: References: <20240529015357.9846-1-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240529015357.9846-1-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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: 4zpIVohw5hLlNKVO0ME5J5_nibypd_ir X-Proofpoint-ORIG-GUID: 4zpIVohw5hLlNKVO0ME5J5_nibypd_ir X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-29_12,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 mlxlogscore=715 malwarescore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405290109 On 5/28/2024 6:53 PM, 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. > > [ 103.289864] mhi mhi0: System error detected > [ 103.289871] ath12k_pci 0000:03:00.0: mhi notify status reason MHI_CB_EE_RDDM > [ 103.293144] mhi mhi0: System error detected > [ 103.293150] ath12k_pci 0000:03:00.0: mhi notify status reason 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 event is > also the same, we treat it as duplicate and ignore it, because normally > we should at least receive a MHI_CB_EE_MISSION_MODE event between them. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 > > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson