From: 김찬 <ckim@etri.re.kr>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: How can I make dma_alloc to use the device's reserved memory?
Date: Thu, 02 Nov 2023 09:51:15 +0900 (KST) [thread overview]
Message-ID: <rtol1a5zxwt0.rtol1a5z7z8l.g1@dooray.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 440 bytes --]
Hi kernel experts,
If some memory was reserved for a dma-able device using device tree's 'reserved-memory' property, if I do dma_alloc_coherent for the device, does it allocate memory in that reserved memory? I don't think so because dma_alloc_coherent works regardless of wether there is reserved memory for the device or not. Then how can I make the kernel reserve the dma memory from that reserved memory?
Thank you.
Chan Kim
[-- Attachment #1.2: Type: text/html, Size: 1098 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
reply other threads:[~2023-11-02 0:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=rtol1a5zxwt0.rtol1a5z7z8l.g1@dooray.com \
--to=ckim@etri.re.kr \
--cc=kernelnewbies@kernelnewbies.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).