From: ayaka <ayaka@soulik.info>
To: kernelnewbies@kernelnewbies.org
Subject: CMA: why DMA_ATTR_FORCE_CONTIGUOUS is not used in v4l2 or DRM cma helper
Date: Fri, 11 Jun 2021 16:11:58 +0800 [thread overview]
Message-ID: <BDC4B95A-1991-46DB-88EE-671DE669E5EF@soulik.info> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 623 bytes --]
Hello All
I am looking for the CMA allocator in current kernel, when I check the videobuf2-dma-contig.c and drm_gem_cma_helper.c, they just call dma_alloc_wc()/dma_alloc_attrs() without any flag that request a contiguous pages.
I could hardly find a driver use the flag DMA_ATTR_FORCE_CONTIGUOUS, what I need to do if I want to allocate a CMA and DMA capable buffer for a driver(not all the buffers, because it may have a iommu in a different direction) ?
And anything I could that limit a driver that only allocate the pages for the DMA in a address base(for example only the low 4G memory) ?
Sincerely
ayaka
[-- Attachment #1.2: Type: text/html, Size: 1342 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:[~2021-06-11 8:12 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=BDC4B95A-1991-46DB-88EE-671DE669E5EF@soulik.info \
--to=ayaka@soulik.info \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.