Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1364305pxb; Fri, 21 Jan 2022 16:35:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhOFtzzjKBYPRpWXAjssLGUEajVf/d0NPG2X0fWTGR4S1NJbE/NfC20Nsn8iEjKpbiB/KJ X-Received: by 2002:a17:90a:d488:: with SMTP id s8mr3050608pju.90.1642811757979; Fri, 21 Jan 2022 16:35:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642811757; cv=none; d=google.com; s=arc-20160816; b=E/6FKs5nJ25WUx4nWTiH5oxMWyfh63WunrFeOr71KqdgJ8oty6aMAj1G4YaLpu9J2z WZzxkYs3op/d8ILd+t43WuFB17XaHprexVUtPSH5n+v97voWiyLz1JtVN202EQDGzFxN Pr0ocnHhFCGtCO32TqGOFWeDSMq3mCYSrUDu9+t8rd95u00yHDUS7tsWWqaGlf8XfJwH upNknEXgARULmy+uBSqlilMJk9IU8Cp2c/zJ2uO7A9aoeTUmHsrx5GntJUKigJMcOv4v 4iYmjcForRI88FqmrOMWZJWC5kjtusTfBgI09CT98kR7FpWNH5CjeCd7hngQJ2EQbESD /CDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6WtxJ6G8QH17m9vpF9tZ9iNboVlbxxw9g9H61lLIeeY=; b=nkDXSOp6vhOB/+gBYrk4unUgAE9x16hM2e4qnmYKOSqaulb9vgLii6vm2b5oCWOaUd +eqa3ZNJoE/Q6bgw9mdPuJANajAV2So5KgaODtJ0bkCqYNV0uHiWab1lxY89T7PXC5GL y22edf36iGRUaUJA612ozWMtMFMwh2kX0geR+IH7V0N1sIC/cIwEfGgTW4+e4/unWfFP 4W8SXXJNQ+0xAuNTcpBBZeDb3D7PEY4ZNnDihu2BeHrSuwNwEOMrgWNeZPpmA2BU1K89 zHUEDqlImP7iH4wgx9SRQxE6Ezi8d85GNbiUHrr6NwtYGpGs+fbqBPnGFz99meFaBOKM 5kiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=fQdnDBuH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z20si7704618pgh.564.2022.01.21.16.35.49; Fri, 21 Jan 2022 16:35:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=fQdnDBuH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378778AbiAUGou (ORCPT + 70 others); Fri, 21 Jan 2022 01:44:50 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:33381 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378772AbiAUGot (ORCPT ); Fri, 21 Jan 2022 01:44:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642747489; x=1674283489; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6WtxJ6G8QH17m9vpF9tZ9iNboVlbxxw9g9H61lLIeeY=; b=fQdnDBuHdl7C0mf0dVcFDeQUDDWY1usMcZ6ZZB+thOrtY1W/3xXRPoa/ dqjeEDkUnEACs/c85adMNuP1x4/DhrrzQVtrvBKH+G78HWgqSDjCrwbvw FgVQSMoajsjaVq6zlHOECf8drKKFJ0fG9rvmEjAoGNDcqyAypyctq1xW3 Q=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 20 Jan 2022 22:44:48 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 20 Jan 2022 22:44:47 -0800 X-QCInternal: smtphost Received: from unknown (HELO youghand-linux.qualcomm.com) ([10.206.66.115]) by ironmsg01-blr.qualcomm.com with ESMTP; 21 Jan 2022 12:14:30 +0530 Received: by youghand-linux.qualcomm.com (Postfix, from userid 2370257) id 6A162225AE; Fri, 21 Jan 2022 12:14:29 +0530 (IST) From: Youghandhar Chintala To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, quic_pillair@quicinc.com, dianders@chromium.org, kuabhs@chromium.org, briannorris@chromium.org, Youghandhar Chintala Subject: [RFC 0/2] ath10k:set tx credit to one and delay the unmaping Date: Fri, 21 Jan 2022 12:14:25 +0530 Message-Id: <20220121064427.32059-1-quic_youghand@quicinc.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Type: text/plain; charset=n Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Currently for WCN3990, the host driver can send two wmi commands at once, now it is limiting to one because if HOST wants to initiate 2 DMA transfers, it is possible when copy complete interrupt for first DMA reaches HOST, CE has already updated SRRI for both DMA transfers and is in the middle of 2nd DMA. HOST uses SRRI to interpret how many DMA’s have been completed and tries to unmap/free both the DMA entries, but CE is still in the middle of 2nd DMA which can cause SMMU issues or corruption. We are seeing a corner case smmu fault issue where copy engine is still accessing the memory though host unmaps it hence as work around we are delaying the unmapping the memory and tx credit to one. Youghandhar Chintala (2): ath10k: Set tx credit to one for wcn3990 snoc based devices ath10k: Delay the unmapping of the buffer drivers/net/wireless/ath/ath10k/core.c | 30 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath10k/htc.c | 18 +++++++++++++--- drivers/net/wireless/ath/ath10k/htc.h | 1 + drivers/net/wireless/ath/ath10k/hw.h | 6 ++++++ 4 files changed, 52 insertions(+), 3 deletions(-) -- 2.29.0