linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] bus: mhi: keep dma buffers through suspend/hibernation cycles
@ 2025-06-30  7:43 Muhammad Usama Anjum
  2025-06-30  7:43 ` [PATCH 1/3] bus: mhi: host: keep bhi buffer through suspend cycle Muhammad Usama Anjum
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Muhammad Usama Anjum @ 2025-06-30  7:43 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Jeff Johnson, Jeff Hugo, Youssef Samir,
	Matthew Leung, Muhammad Usama Anjum, Yan Zhen, Alexander Wilhelm,
	Alex Elder, Kunwu Chan, Greg Kroah-Hartman, Siddartha Mohanadoss,
	Sujeev Dias, Julia Lawall, John Crispin, Muna Sinada,
	Venkateswara Naralasetty, Maharaja Kennadyrajan, mhi,
	linux-arm-msm, linux-kernel, linux-wireless, ath11k
  Cc: kernel

When there is memory pressure during resume and no DMA memory is
available, the ath11k driver fails to resume. The driver currently
frees its DMA memory during suspend or hibernate, and attempts to
re-allocate it during resume. However, if the DMA memory has been
consumed by other software in the meantime, these allocations can
fail, leading to critical failures in the WiFi driver. It has been
reported [1].

Although I have recently fixed several instances [2] [3] to ensure
DMA memory is not freed once allocated, we continue to receive
reports of new failures.

In this series, 3 more such cases are being fixed. There are still
some cases which I'm trying to fix. They can be discussed separately.

[1] https://lore.kernel.org/all/ead32f5b-730a-4b81-b38f-93d822f990c6@collabora.com
[2] https://lore.kernel.org/all/20250428080242.466901-1-usama.anjum@collabora.com
[3] https://lore.kernel.org/all/20250516184952.878726-1-usama.anjum@collabora.com

Muhammad Usama Anjum (3):
  bus: mhi: host: keep bhi buffer through suspend cycle
  bus: mhi: don't deinitialize and re-initialize again
  bus: mhi: keep device context through suspend cycles

 drivers/bus/mhi/host/boot.c            | 19 ++++++++++---------
 drivers/bus/mhi/host/init.c            | 16 +++++++++++-----
 drivers/bus/mhi/host/internal.h        |  2 ++
 drivers/net/wireless/ath/ath11k/core.c |  5 -----
 include/linux/mhi.h                    |  1 +
 5 files changed, 24 insertions(+), 19 deletions(-)

-- 
2.39.5


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

end of thread, other threads:[~2025-07-11 10:23 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30  7:43 [PATCH 0/3] bus: mhi: keep dma buffers through suspend/hibernation cycles Muhammad Usama Anjum
2025-06-30  7:43 ` [PATCH 1/3] bus: mhi: host: keep bhi buffer through suspend cycle Muhammad Usama Anjum
2025-07-01 10:25   ` Greg Kroah-Hartman
2025-07-02 15:24     ` Muhammad Usama Anjum
2025-07-08  9:47   ` Krishna Chaitanya Chundru
2025-07-10 14:14     ` Muhammad Usama Anjum
2025-06-30  7:43 ` [PATCH 2/3] bus: mhi: don't deinitialize and re-initialize again Muhammad Usama Anjum
2025-07-01 10:25   ` Greg Kroah-Hartman
2025-07-02 15:25     ` Muhammad Usama Anjum
2025-07-01 14:49   ` Jeff Johnson
2025-07-02 15:28     ` Muhammad Usama Anjum
2025-07-02 17:25       ` Jeff Johnson
2025-07-02  3:50   ` Baochen Qiang
2025-07-02 16:12     ` Muhammad Usama Anjum
2025-07-03  1:59       ` Baochen Qiang
2025-07-07  8:19         ` Muhammad Usama Anjum
2025-07-07  9:00           ` Baochen Qiang
2025-07-07 13:11             ` Muhammad Usama Anjum
2025-07-08  1:43               ` Baochen Qiang
2025-07-08  9:12                 ` Muhammad Usama Anjum
2025-07-08 10:38                   ` Baochen Qiang
2025-06-30  7:43 ` [PATCH 3/3] bus: mhi: keep device context through suspend cycles Muhammad Usama Anjum
2025-07-01 10:26   ` Greg Kroah-Hartman
2025-07-08 10:15   ` Krishna Chaitanya Chundru
2025-07-10 15:07     ` Muhammad Usama Anjum
2025-07-10 17:17       ` Krishna Chaitanya Chundru
2025-07-11 10:22         ` Muhammad Usama Anjum

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).