linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] ath10k:set tx credit to one and delay the unmaping
@ 2022-01-21  6:44 Youghandhar Chintala
  2022-01-21  6:44 ` [RFC 1/2] ath10k: Set tx credit to one for wcn3990 snoc based devices Youghandhar Chintala
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Youghandhar Chintala @ 2022-01-21  6:44 UTC (permalink / raw)
  To: ath10k
  Cc: linux-wireless, linux-kernel, quic_pillair, dianders, kuabhs,
	briannorris, Youghandhar Chintala

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=n, Size: 1139 bytes --]

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-03 14:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-21  6:44 [RFC 0/2] ath10k:set tx credit to one and delay the unmaping Youghandhar Chintala
2022-01-21  6:44 ` [RFC 1/2] ath10k: Set tx credit to one for wcn3990 snoc based devices Youghandhar Chintala
2022-02-03 14:44   ` Doug Anderson
2022-01-21  6:44 ` [RFC 2/2] ath10k: Delay the unmapping of the buffer Youghandhar Chintala
2022-01-21 22:42 ` [RFC 0/2] ath10k:set tx credit to one and delay the unmaping Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).