Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1892274lqp; Tue, 16 Apr 2024 00:19:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI0qUs9i96QDpwPewM6EzWljNMLjxuI1YOd5Mlp0e+Ghrcn5DgBrd6+1jCNlogOUovWnL/2G+0WczfnQanM0vWoBS/3D/kQnJPXjBKLw== X-Google-Smtp-Source: AGHT+IHEK1z7jM9ixM+eTpl0YpotIVv5DVypwKOn1MI/RglwhPVg6RacNBDn7nJXg5TXs6M+SS04 X-Received: by 2002:a05:6a00:4a8a:b0:6ed:2f2:a8e with SMTP id dr10-20020a056a004a8a00b006ed02f20a8emr7772748pfb.30.1713251963816; Tue, 16 Apr 2024 00:19:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713251963; cv=pass; d=google.com; s=arc-20160816; b=FL7W1oOZaArAxE6KzXRGBllABO2bDLlxRlE9y8mJUzlILCr6pgC1lrwHy9WCXgArtl yf+WwUmx3NAfJ0QVbF72xu/hIGHN2BUnyJFrjt6NhcE6Ecu3itLzLL3zwhSDVs2bDokM PuHM7pHGbD9BVuE2p5vqdq++2REzGl9irCC4scwpzRze97TOZ2/6al/cpSzdfzOrdCsr maswMc4sS5+4e6wINbpX5KGzr2tRCcAGSga6hXSWW7bbklLzzq7UUfi5x+pSUv8CGMFn MLCr/zE8JcCdHutnZc97Qxe6THSHV6bx833fbe5IT66n0hOEV4u6uPYQBM/53qNGd5Zu ojOA== 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=atefIRgk9edzGhcPKmWYrTVkXKwiU3xnRxT/Ij0Ct50=; fh=5D0EP0p2h03DXbybruXOVQEUEebEjXs3/Qa+l/sxI/A=; b=ig7S9tiEJH6Ui4RoUlOt5U4YoA1PzQqOxQlj+7oY396HsYXndcmoa+qnk5msRjviJb +X+Nrtf0jdlVor411O7NuuO1KwA/PSRgPAZIIepLUSnyNemOEnYjYc3iIHp/QzBJyZUz JW+GQ601ob6/+gAcuIeUrsQF3vYJGxKRDA83XA7VYbNZAT3xAIdvy+ozWqyaw7I/+xhG m6R68AeWJUdEmiFZd8K3omYPhOzagdoYffGM6RGCYOPRDdSvqP6ghAL/3sZ5f9x5AEYS oNbgijoj+VVzVPhDs8OXsLM9fNO4ORKTqYajEjaNnxxg1AFjqZu13BV1UzuaeI7XotR2 9QvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UwQANtT0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6371-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6371-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fr7-20020a056a00810700b006eaba823300si9350091pfb.307.2024.04.16.00.19.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6371-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=@kernel.org header.s=k20201202 header.b=UwQANtT0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6371-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6371-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8667728394F for ; Tue, 16 Apr 2024 07:19:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5F013B78B; Tue, 16 Apr 2024 07:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UwQANtT0" 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 C0C7939863 for ; Tue, 16 Apr 2024 07:17:14 +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=1713251834; cv=none; b=SppRXaeTZhDICIGV4MNkTJJaNu19ZajZag2YDLhJm0wMgL/sRo7YGOdjn/2RN4BDF/g9daWx6hZ/0CaKwd9NgBOl7T3ggiesbK8nUOk5niJ8RXpUbbiOoHM7SvhQMiCct3T+L8TD5eEZ3JTZn5+j8rtQZJexOoXnP+gBdieUGac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713251834; c=relaxed/simple; bh=pgF5tfPygm4FX7vHgvq0eWcS9uo06XOqLTA2zpWv4Q0=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=IA0s+cZZIJPwyScGgx8LkZuy8MEto/exeLVzskr4xr9rHak/+ebmoU6VQU5u1OKzEmT0bciNw7IYL5LrGAYpcwb5JPeIYaD4CHHstO3FFIMr622ib9GV8fkSYdmsOweRMvheAItuwJmd7oiU03947Y1iXyGu12hHZkdG7AoEEmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UwQANtT0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C5ECC113CE; Tue, 16 Apr 2024 07:17:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713251834; bh=pgF5tfPygm4FX7vHgvq0eWcS9uo06XOqLTA2zpWv4Q0=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=UwQANtT0V+DX5EMQnuTIkw1Zu69yuO8MASqyjS2TKn/V86BKsiwHQP4MdfeV359+y oGfZMcuvLED8JDBjxfvSykYA9OjgTkqo/MKsSxEQ4MqYfLf4e7EtSThzbfs47UPakF 6+1fhtOktxyQfwTt5FaJxmUcQ2vzYifKTyBLpzTnks2NgwVQUUyAC2XSFoz2tRM73q /Q51isVkfJp8fC73dzAuc8Zpv/5IIZWUEodkpjaeTBhUPhsfIemGXa9gkHH4Fhiomv rgexl1W7ubyZMRo+A7J5Ye36oS+h8GeWkcmtOLqCwMasDIr0kW5m5H31jiIoPU69rQ l8ju4flwzco+w== 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 v3] wifi: ath12k: fix mac id extraction when MSDU spillover in rx error path From: Kalle Valo In-Reply-To: <20240404141538.1277258-1-quic_nithp@quicinc.com> References: <20240404141538.1277258-1-quic_nithp@quicinc.com> To: Nithyanantham Paramasivam Cc: , , Karthikeyan Periyasamy , Nithyanantham Paramasivam User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171325183100.4097708.11184145689430531302.kvalo@kernel.org> Date: Tue, 16 Apr 2024 07:17:12 +0000 (UTC) Nithyanantham Paramasivam wrote: > 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 Paramasivam > Acked-by: Jeff Johnson > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. f351772c544b wifi: ath12k: fix mac id extraction when MSDU spillover in rx error path -- https://patchwork.kernel.org/project/linux-wireless/patch/20240404141538.1277258-1-quic_nithp@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches