Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1577129lqz; Mon, 1 Apr 2024 10:14:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDvufRa9ebd/jMHcVyP0PGCV0CkjyLXpGpZi7HZIAsKjJ6lhAB/jjNpbg4xJ7RFkCOWaAMZ+jS0eSVXZdjEI+gfOUQqT2DgOgJXNF/xw== X-Google-Smtp-Source: AGHT+IFtnJ/Hn/QqF6BWB42wXdaC3brl813GAAz58AvKIAsihe9LDetPb+5+pmALrTcCQp7Z7fEV X-Received: by 2002:a17:902:f552:b0:1e0:9aab:7500 with SMTP id h18-20020a170902f55200b001e09aab7500mr11011660plf.44.1711991677676; Mon, 01 Apr 2024 10:14:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711991677; cv=pass; d=google.com; s=arc-20160816; b=wOVPZEbtjn2cJHCNdybvCeIk6Unki/BIzDeeskLaDbuphIRPZGbgCuL8LqqwaXCQBs WI8pLfnrmrnVQi88qs/wJWml5ZZM8/VDJyjnjkNQjBrZfsTc7Ymzg9efjXJ1NAgg6Jtd fAO0xhU5uyT49IcZjwTPi8KnOqhzBSksmhdftysxxpMC67Hc5CMcKvD27NHWTDHpnNyY ikB4UxfjjWQ6F0jfBBJ5m6p6STKUK4Z1erhlFt7MtwEmzGOw8EyNUMjRxirbU+pp4CBK YFOmJU+GNH0OKlmFV0Vx4CWY4zMw0Uxe8eV6bbOJiV3h8b21EcVZSlEjtgvF7sejI/4M 6zPA== 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=JzMJKu3kDtrKznyitm04aDX08Vo3adc5zsrc8ZGbZHE=; fh=mEe9c4Fjr2kra59ELRPZMgckLa+dcdYACX/RNKGXHGo=; b=MlJ0CjBUo0LyN/+PLCloUNsOSkcwQhO7EBeKidwUiQCTLpCIx1Xbi0FWysjQMuSNNH d9MlJxi80cBXLZPUHuKvWaTLKgBZLJWj+WzIqPPgRrQbnrQM8R023xOg9KQrz6GZz1yt NJmElIJ2PL0L9/mZQ3eQChhVXBTWVbaHa8TVipr45GmGu/UV2qDLL8sr0UdZc7g7JFt4 QkjgOLE1t8x1nx5tKZxpl1PG3S4tvJ6RRgBE7uUf3FSrbsN5dqc4pIAdb7H+vNXQUECC Yykf4zl/8ZhJ5CcTI+bYwKyxjT8dr5JgcGab4rpSBr0wbeVc1QpR019vvejVgQu6qHqo DUMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oIR2037B; 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-5720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kd8-20020a17090313c800b001e237862766si6694553plb.585.2024.04.01.10.14.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 10:14:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=oIR2037B; 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-5720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5720-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 00663283105 for ; Mon, 1 Apr 2024 17:14:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A034487BC; Mon, 1 Apr 2024 17:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="oIR2037B" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 84E4D40876 for ; Mon, 1 Apr 2024 17:14:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711991674; cv=none; b=ZqdDR9heFM5Jto9shwBV3su4F6kv+TDtmPuHsKMNR8GFVjp8FCILv6SieiMa8xsXgo2Sw2f+lAtojHTeUm2aZYrvEu3kVhaY/3wKBvPg5oLrwBuc8WjJHBrvhGdoYjwtNG7VrybYl62jkHXCAcc2q8/EX/KwpldJk/NuFzU/aSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711991674; c=relaxed/simple; bh=Sy+HBaXLANu8ncc4LMnWbbi7Xpayf500FSYPA/QNY5M=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=hKAT6+bO4udI17Nffb0UfeIXwNchnlHwTREVc0qvvvCZUD0/+8oUGBz/QrbnQ+ygPv6xoWIEdaPdUmzfqpDsTLPnQ4kSSPa0jzRhbNSvlpDpV/ZM1S7PPGedQjpbig6we+7KGCQOhuxk8CI0AwINccEFTORA8O7f/UVvBQ68giQ= 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=oIR2037B; arc=none smtp.client-ip=205.220.168.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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 431DjZnT032055; Mon, 1 Apr 2024 17:14:21 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=JzMJKu3kDtrKznyitm04aDX08Vo3adc5zsrc8ZGbZHE=; b=oI R2037BQpUQqJ/9ApTkqXo6yLjxa8Ey9RyRY1afLCAOR+kH1QVeV9qahdwto1qVUw LDijGqmw/nOn1qn+GAlMP0zg7YRuyd95yQLALSgWj3nOVqebO3AGe2kQu24Sp4X/ +Q29wXycDdt3I+XA3SY/MSsc1YbWz55tbIU46tWE6l42fxDD8QymiP5Dgtt3ov96 mSNbJ+mf33nNENTYD7RVkRpSV9bEjcuvfUA7WWes6WE31emE94Q0MaaSUAr3M7cj vF8wt6w5mjsuK1qqKvqMOrVh0kLL7gBdHS7UAS304EwoO41K9bj+Xev9JKKOB50v 5Vp1sBaT5XcLcd5uZV1A== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x7r0hhbf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Apr 2024 17:14:21 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 431HDull021238 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 Apr 2024 17:13:56 GMT Received: from [10.110.126.136] (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.1118.40; Mon, 1 Apr 2024 10:13:56 -0700 Message-ID: Date: Mon, 1 Apr 2024 10:13:55 -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 v2] wifi: ath12k: fix mac id extraction when MSDU spillover in rx error path Content-Language: en-US To: Nithyanantham P , CC: , Karthikeyan Periyasamy References: <20240329092432.873710-1-quic_nithp@quicinc.com> From: Jeff Johnson In-Reply-To: <20240329092432.873710-1-quic_nithp@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: OPlDKUg_NmFOlYHK0MZC7QtkUEaznKMF X-Proofpoint-ORIG-GUID: OPlDKUg_NmFOlYHK0MZC7QtkUEaznKMF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-01_12,2024-04-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 spamscore=0 mlxscore=0 mlxlogscore=274 bulkscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2404010122 On 3/29/2024 2:24 AM, Nithyanantham P wrote: > From: Karthikeyan Periyasamy > > Currently, in the rx error data path, mac id is extracted from the > last 64bits of MSDU end description tag for each entry received in > the WBM error ring. Then, each entry will be updated into the MSDU > list for further processing. The extracted mac id is valid when a > single MSDU is not fragmented and received in the WBM error ring. > > In scenarios where the size of a single MSDU received exceeds the > descriptor buffer size, resulting in fragmented or spillover MSDU > entries into the WBM error ring. In this case, the extracted mac id > from each spillover entry is invalid except the last spillover entry > of the MSDU. This invalid mac id leads to packet rejection. > > To address this issue, check if the MSDU continuation flag is set, > then extract the valid mac id from the last spillover entry. > Propagate the valid mac id to all the spillover entries of the single > MSDU in the temporary MSDU list(scatter_msdu_list). Then, update this > into the MSDU list (msdu_list) for further processing. > > Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Karthikeyan Periyasamy > Signed-off-by: Nithyanantham P Acked-by: Jeff Johnson