From: Hillf Danton <hdanton@sina.com>
To: Muhammad Usama Anjum <usama.anjum@collabora.com>
Cc: Robin Murphy <robin.murphy@arm.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: Excessive page cache occupies DMA32 memory
Date: Wed, 10 Sep 2025 20:44:49 +0800 [thread overview]
Message-ID: <20250910124452.6747-1-hdanton@sina.com> (raw)
In-Reply-To: <9dc9e324-4a39-43d0-8716-be325fae2247@collabora.com>
On Wed, 10 Sep 2025 16:23:37 +0500 Muhammad Usama Anjum wrote:
> >>>> For example, in the mhi driver, the failure is triggered when the
> >>>> MHI's st_worker gets scheduled-in at resume.
> >>>>
> >>>> mhi_pm_st_worker()
> >>>> -> mhi_fw_load_handler()
> >>>> -> mhi_load_image_bhi()
> >>>> -> mhi_alloc_bhi_buffer()
> >>>> -> dma_alloc_coherent(GFP_KERNEL) returns -ENOMEM
> >>>
> >>> And what is the exact size you are asking for here?
> >
> > 512 KB
> >
Any order above PAGE_ALLOC_COSTLY_ORDER is not guaranteed in 90+% cases.
Nor is it DMA32 specific.
> Another update:
> This issue reproduces on v6.11.11. To summarize, we're unable to reproduce
> this bug in the v6.15.9. We wanted to do bisection and find out which kernel
> change has caused/fixed it, but it's too difficult considering the complex
> reproducer setup (Tekken 8 Demo game + page cache stress). We don't want to
> spend more time on something that is very hard to reproduce and is already
> fixed in later versions.
>
> My debugging has shown in v6.15.9 that the allocation succeeds under the same
> constraints of power management. My hunch is that somehow the dma memory
Can you try again without the JW work [1] applied?
> doesn't get occupied to the extent that dma allocations start to fail at
> resume in v6.15.9.
>
> ---
> Thanks,
> Usama
>
[1] Subject: [PATCH 0/5] mm: reliable huge page allocator
https://lore.kernel.org/all/20250313210647.1314586-1-hannes@cmpxchg.org/
prev parent reply other threads:[~2025-09-10 12:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 15:03 Muhammad Usama Anjum
2025-07-21 17:13 ` Matthew Wilcox
2025-07-22 5:32 ` Greg KH
2025-07-22 6:05 ` Muhammad Usama Anjum
2025-07-22 7:24 ` Greg KH
2025-07-22 10:03 ` Robin Murphy
2025-07-23 6:50 ` Baochen Qiang
2025-08-21 13:39 ` Muhammad Usama Anjum
2025-09-10 11:23 ` Muhammad Usama Anjum
2025-09-10 12:44 ` Hillf Danton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250910124452.6747-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=robin.murphy@arm.com \
--cc=usama.anjum@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox