Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp818968lqa; Sun, 28 Apr 2024 05:55:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNt39aGYfRkBkI2zAxg+7VL2BNmtGbHarke4k+fPAKic1bIaOVogJgGjL8vH86UYOvVakpGgy3Q5KOWXEuJzpSRpYQ00m5P223NOVVvg== X-Google-Smtp-Source: AGHT+IHSPUT3JLySDtb1Omohvf6fKXaK1RuRT2QG2+vZuJMHe6lXHrO1ujQ+0cx6kH8rN2YON7dO X-Received: by 2002:a17:906:3892:b0:a58:e4dc:ad99 with SMTP id q18-20020a170906389200b00a58e4dcad99mr2401868ejd.2.1714308936393; Sun, 28 Apr 2024 05:55:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714308936; cv=pass; d=google.com; s=arc-20160816; b=qr3Td0nEelA1Up9Jqeo/CuumiN/6voQ9gqzTVZjVnTnaH7jm19DhPaVMPRJLFuXBme z26A6C+7jh7lZi+RjuQxK6gtSkCqGyXW3blmuaGTmn7RmOl/1H8ptybcgso7Gf9UPM2b uF+g6GUWCjcnkLGMEDb94/5UJFSfUXOJzZrMqpAMJUxDB6UpyIw/Dm4jKyfAwY88/t+z YoINBbiM950mnFAsKfsuAZjsdramTlWs19/eUXH5bgNLUAq3kBtKV8A90DfnV9n2yiD5 Y6DkvISMTqSPq9A11kr1flZ/aQcEHieatI+VH2hsE/8BxOyxYhiZIVzjol2bdiTFhd21 JK9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=hHUahLrMyWRrlTG2ckWoaVOAX6iPHfvsJqGLHw78ruk=; fh=bkNgBtL8iyuH+Zw6GkwCiWdPcjfQxfZiBwPN10SfuTQ=; b=TVZCTRfRiHRGIEmftQvfaWh+ALwD7czQbUoFmQLv3RINgNPCD6KD+DGxXiQa1rs1AR 9stNdLIDtxk7GreEeHNt1qDiLo5Hy195hqbrL+FpfefwyTnYGQ7y00nRIUTmHlr2nSZA gHt0YJQcKWwAY9gG+zQVAeDeIddhs2+q0IXqLM6HM76esqPwcOzBx7fxqTPYE3AhC4lx 9/tsbaZZY7puJweGPnRElQa6jqwlvZdNo0/6+QVOG699QGjHpAxHN4z/ekjaDDd5Zw5i 5faYc3vdo7bwqdazqTDUVgiFGfi+KEM1OhPqO5T7kB3sdIw2OnCEnZeBvXtJ5jPfGWaJ h4JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=Ydbdm4mh; arc=pass (i=1 spf=pass spfdomain=126.com dkim=pass dkdomain=126.com dmarc=pass fromdomain=126.com); spf=pass (google.com: domain of linux-wireless+bounces-6949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id nb16-20020a1709071c9000b00a55ab1657dfsi10695465ejc.318.2024.04.28.05.55.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 05:55:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=Ydbdm4mh; arc=pass (i=1 spf=pass spfdomain=126.com dkim=pass dkdomain=126.com dmarc=pass fromdomain=126.com); spf=pass (google.com: domain of linux-wireless+bounces-6949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.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 22CA71F21435 for ; Sun, 28 Apr 2024 12:55:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 243BE653; Sun, 28 Apr 2024 12:55:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b="Ydbdm4mh" X-Original-To: linux-wireless@vger.kernel.org Received: from m16.mail.126.com (m16.mail.126.com [117.135.210.8]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10BAB6BB50 for ; Sun, 28 Apr 2024 12:55:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714308921; cv=none; b=L+u9yqrOmjo6m6Mt4J8BjO5XGexyp1yK8OmnMRE/EwXUdzJx3M1i4e1Xes5YcNVXyyesNB+BDee6YH2+P/n1UoYgsHKcpGrkS/7hTVRFaVl6xdCepasoDXUK3uBnHoRUHPIsDkn2IY2Z6eVfBm0srUibqhF1Se7J19fGzGeFyLU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714308921; c=relaxed/simple; bh=JzbEui4yS1AogghGq+oCWwA4nSawR+dLZfkvtOzoCmY=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=jYM0l5xnH1OIf2D816DjTwTblSyJJlD9Uy3s+Quvh4mZskFdnIQ97N30TdKmDlXF2GyF9vIfSSTIApkSvBZyBtMUbHfdqWL3Ye4tzp0nvyKuy6cCEVO2zrk+nWfCDZA8T+OiM+POQ4fLzumR9WeNFoX4t7xyTcQCkw3u1AVCbnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com; spf=pass smtp.mailfrom=126.com; dkim=pass (1024-bit key) header.d=126.com header.i=@126.com header.b=Ydbdm4mh; arc=none smtp.client-ip=117.135.210.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=126.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=126.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Content-Type:Mime-Version:Subject:From:Date: Message-Id; bh=hHUahLrMyWRrlTG2ckWoaVOAX6iPHfvsJqGLHw78ruk=; b=Y dbdm4mhxPP84Ltf3AW5IV9kw+s2KKMr70Q8bRmXhXZjGxRrtCFkyz33E67NvMyNv NWNU0dLrEExYuwu8PSgpxJQYx1VFqBIJfUv7NLv0IRxIrn0OlSgTpHqal3Vi5FNI XhdSZfOSMwVnt/WvoNf6wOQU4thYjcQFUWICZXmdLg= Received: from smtpclient.apple (unknown [120.231.220.21]) by gzga-smtp-mta-g0-0 (Coremail) with SMTP id _____wDn75wWRy5mPdcnBg--.57798S3; Sun, 28 Apr 2024 20:54:48 +0800 (CST) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: [PATCHv3] wifi: ath11k: skip status ring entry processing From: Meiyong Yu In-Reply-To: Date: Sun, 28 Apr 2024 20:54:42 +0800 Cc: Tamizh Chelvam Raja , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, Venkateswara Naralasetty , kernel test robot Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240427091248.2013946-1-quic_tamizhr@quicinc.com> To: Jeff Johnson X-Mailer: Apple Mail (2.3693.20.0.1.32) X-CM-TRANSID:_____wDn75wWRy5mPdcnBg--.57798S3 X-Coremail-Antispam: 1Uf129KBjvJXoWxGw13Gr1rWw13tr15Xr43KFg_yoW5Xr17pa yFgan0kF95J34xJw4fXF4xZF15JanYq3y2kr4xA34fWr4jva4fKFnFgrWUJF98CFW5Ga42 vr42qw1qkayqv3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UjzuAUUUUU= X-CM-SenderInfo: 5phl501qjo53a6rslhhfrp/1tbiOxvOhmVLaYi6igAAsX > On Apr 28, 2024, at 6:46 AM, Jeff Johnson = wrote: >=20 > On 4/27/2024 2:12 AM, Tamizh Chelvam Raja wrote: >> From: Venkateswara Naralasetty >>=20 >> If STATUS_BUFFER_DONE is not set for a monitor status ring entry, >> we don't process the status ring until STATUS_BUFFER_DONE set >> for that status ring entry. >>=20 >> During LMAC reset it may happen that hardware will not write >> STATUS_BUFFER_DONE tlv in status buffer, in that case we end up >> waiting for STATUS_BUFFER_DONE leading to backpressure on monitor >> status ring. >>=20 Can you known the LMAC reset event, if you can known, you can set all = the ring entry status to done after reset is done, and the logic of code will be more = clear. >> To fix the issue, when HP(Head Pointer) + 1 entry is peeked and if = DMA >> is not done and if HP + 2 entry's DMA done is set, >> replenish HP + 1 entry and start processing in next interrupt. >> If HP + 2 entry's DMA done is not set, poll onto HP + 1 entry DMA >> done to be set. >>=20 >> Also, during monitor attach HP points to the end of the ring and >> TP(Tail Pointer) points to the start of the ring. >> Using ath11k_hal_srng_src_peek() may result in processing invalid = buffer >> for the very first interrupt. Since, HW starts writing buffer from = TP. >>=20 >> To avoid this issue call ath11k_hal_srng_src_next_peek() instead of >> calling ath11k_hal_srng_src_peek(). >>=20 >> Tested-on: IPQ5018 hw1.0 AHB = WLAN.HK.2.6.0.1-00861-QCAHKSWPL_SILICONZ-1 >>=20 >> Reported-by: kernel test robot >> Closes: = https://lore.kernel.org/oe-kbuild-all/202303281719.CvnPkOiK-lkp@intel.com/= >=20 > I believe these are misleading. LKP didn't find the problem you are = fixing, it > found a problem in the implementation of the patch. > So I would move these below the "---" so the LKP knows the issue it = found is > fixed, but the git history isn't itself isn't misleading >=20 >> Signed-off-by: Venkateswara Naralasetty >> Co-developed-by: Tamizh Chelvam Raja >> Signed-off-by: Tamizh Chelvam Raja >> --- >> v3: >> * Rebased on top of ToT >> v2: >> * Fixed compilation warning Reported-by: kernel test robot = >>=20 >> drivers/net/wireless/ath/ath11k/dp_rx.c | 88 = ++++++++++++++++++++++--- >> drivers/net/wireless/ath/ath11k/hal.c | 14 ++++ >> drivers/net/wireless/ath/ath11k/hal.h | 2 + >=20 > My Qualcomm Innovation Center copyright checker reports: > drivers/net/wireless/ath/ath11k/dp_rx.c copyright missing 2024 > drivers/net/wireless/ath/ath11k/hal.c copyright missing 2024 >=20