Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2446039lqt; Mon, 22 Apr 2024 10:52:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW73gA3PJbTppqq1Jy7ICH2YsSlA3Qc7xA9f0VvUSflfn4hmkpzwmgoUjBQNU6QtYSDfTaN5eBFMGNKe3rFh0PWFcI/hBSvmO/Db9MewQ== X-Google-Smtp-Source: AGHT+IE3RqHKU7ixsmESUJaB3jJMbG4MNtbYYCxTZnAnTO8AUsCLp26VLBf76jaV1Js0Z6xc4viN X-Received: by 2002:a9d:5e82:0:b0:6eb:7e41:2c0c with SMTP id f2-20020a9d5e82000000b006eb7e412c0cmr11021944otl.37.1713808335222; Mon, 22 Apr 2024 10:52:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713808335; cv=pass; d=google.com; s=arc-20160816; b=zAuovLbqY0fDRC0tLVcChvUrteczc03bQGrpOiBt1NcGey5G+N5x0feHGNJKaLEZo9 rWfn48iWmvgGtIKuwuCYSfed9gdkYjiz4u5ths/b7uDlpVRV+/dDdi2e7I/qwW7GMEuR P3jD85J7ywlpk++bTZdIbbDuB2hynjT4xm+qndrxofQylK6DS6EiLJ2wntHT947APG7n Ez0m9uTmwzS0pAKTkKAjH+QCwEocFjJP4QKPWL+RIvJwly42iyedcMCg/UHwLexy773y TyCNU1N9kqJCfTMKmOGLDBCneusJ0XQLfvMLnBTmnohlmQeT6mwMhBj7098Nlu4fO9N/ 3B5A== 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=dMatxaznbfHN2DlNPykUz3hj551MmZqe8h6PfKf1pdA=; fh=b2YQfG9PfQSUw5xMVFyESXjrM9bXk1jv/UlzGGNeVIg=; b=08zY98CAZlIKylDLtPk/k+e0Uptf7vT5OwOC9neo5wfg7m3HSpnQVfVhEHQDo5mvNB gUE8Axt3+CdhQZC1Ir1jFVz0zalwSK/uYLquFcF6A3PBkD8duUNALVz/Pdsid7PG7b9S nzaxXSdfOm5rSNC+xkvRmvSMivP9kvM9mESoQQMkYxpYSnf+RSWvHVDpSEsB6ir72sFi tB8ouJzFX9WVrAuXHZ53Knks9Asyzc0W/1ZQHiFe4Vk0wHnT5h1QXWkVbyyrdHKaM22I F/kWWQAbn8e3Ly1LSqxTirR16lhOrJMtXq6WcqidAOzsEOqvu3CqCaiKv/0D0tdMgHp+ VOYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=d755hgkB; 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-6686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6686-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d8-20020a05620a136800b0078d660e8c23si10435954qkl.479.2024.04.22.10.52.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 10:52:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=d755hgkB; 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-6686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6686-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 10B9D1C20D90 for ; Mon, 22 Apr 2024 17:52:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66395154424; Mon, 22 Apr 2024 17:52:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="d755hgkB" 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 05633153BED for ; Mon, 22 Apr 2024 17:52:07 +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=1713808329; cv=none; b=mAmRoIyWW8FVQRKWZ6Kf9IUmg0esgxHTrk+tq4R9vVEp00bDttaBjk5dW0gHaBgBu19Xd+Wc8gkR0HWMB4D9+w4MVfB1jfBIhJ9vcEL+1Yvc7b4PPECYS3yO4NRDP364ywj+FBu1J/plHamhxg196TOLcK+x93SaKBSrn93N4aI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713808329; c=relaxed/simple; bh=xapr2vGBSMxRcpoGK+wpkvYd++zB/CO2uaUU4dSLH+g=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=mAYkUZNyigVfL8OE1ZPs6/O4YKOp4Gd++uHBW0CHu5z5DXtOKTWCQjigTnBSdwi8gJii1dmu7KLZeZ1ej/IZGjTzKqCzaEXRQShin00a8OdK916ztOvpRSBymlgJVsc62mEItof7Oq4/q+OAqsLmEBUea+lfW2T58ZnqQavtCTE= 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=d755hgkB; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43MFQB3f020549; Mon, 22 Apr 2024 17:52:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=dMatxaznbfHN2DlNPykUz3hj551MmZqe8h6PfKf1pdA=; b=d7 55hgkBw+EtVhhqBbbwrZq+bJrIZM21b+xxFR3BwHofWn8dXVP6exzJ+taAH2nYrs MQO+q8LpxZ3Anxp/udIE30D0AFy2vPkIJw0URPnAMnsFU7CwG1V2jM+10OMvhUMQ vP6oHlzqoQ+UPlQ1wVr+8M/+c5I7xbU87Xswbsyx1HAQkyNd65ftlvuiknP4abot MlevtrAQkamEqKXHKtHWXOt0/t9KZ8CbCutlWReiREvI4bFmO6JXmHh3RASlJ7FQ xg00ZHb+jBzTAQpR0ucYoKexeFJ1Xs8M3ZeIQvLZG4IlQNKfMVvCFmdh58L+se3x VxK4MT4Tr9r9/Ffnd9EA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xnne298qy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Apr 2024 17:52:04 +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 43MHq32R029226 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 Apr 2024 17:52:03 GMT Received: from [10.227.110.203] (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; Mon, 22 Apr 2024 10:52:03 -0700 Message-ID: <76020858-ca74-4f56-ae34-6a2d02dcda4e@quicinc.com> Date: Mon, 22 Apr 2024 10:52:03 -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 06/10] wifi: ath12k: flush all packets before suspend Content-Language: en-US To: Baochen Qiang , CC: References: <20240412060620.27519-1-quic_bqiang@quicinc.com> <20240412060620.27519-7-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240412060620.27519-7-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: Z-qEprKeH5Ie814DwqBw-8w7cx64VZuh X-Proofpoint-ORIG-GUID: Z-qEprKeH5Ie814DwqBw-8w7cx64VZuh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-22_09,2024-04-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 mlxlogscore=809 mlxscore=0 malwarescore=0 clxscore=1015 adultscore=0 bulkscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404220075 On 4/11/2024 11:06 PM, Baochen Qiang wrote: > In order to send out all packets before going to suspend, current code > adds a 500ms delay as a workaround. It is a rough estimate and may not > work. > > Fix this by checking packet counters, if counters become zero, then all > packets are sent out or dropped. > > Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson