From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: Gaurav Batra <gbatra@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/iommu: bypass DMA APIs for coherent allocations for pre-mapped memory
Date: Wed, 14 Jan 2026 08:34:13 +0530 [thread overview]
Message-ID: <176835971841.41689.14371822782572777165.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20251107161105.85999-1-gbatra@linux.ibm.com>
On Fri, 07 Nov 2025 10:11:05 -0600, Gaurav Batra wrote:
> Leverage ARCH_HAS_DMA_MAP_DIRECT config option for coherent allocations as
> well. This will bypass DMA ops for memory allocations that have been
> pre-mapped.
>
> Always set device bus_dma_limit when memory is pre-mapped. In some
> architectures, like PowerPC, pmemory can be converted to regular memory via
> daxctl command. This will gate the coherent allocations to pre-mapped RAM
> only, by dma_coherent_ok().
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/iommu: bypass DMA APIs for coherent allocations for pre-mapped memory
https://git.kernel.org/powerpc/c/1471c517cf7dae1a6342fb821d8ed501af956dd0
cheers
next prev parent reply other threads:[~2026-01-14 3:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-07 16:11 [PATCH] powerpc/iommu: bypass DMA APIs for coherent allocations for pre-mapped memory Gaurav Batra
2026-01-14 3:04 ` Madhavan Srinivasan [this message]
2026-01-30 5:46 ` Donet Tom
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=176835971841.41689.14371822782572777165.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=gbatra@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/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