From: Jose Abreu <Jose.Abreu@synopsys.com>
To: dmaengine@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: DMA, CMA and SWIOTLB
Date: Wed, 29 Jun 2016 10:52:02 +0100 [thread overview]
Message-ID: <57739A42.6040105@synopsys.com> (raw)
Hi all,
I am writing a very simple KMS driver that uses Xilinx VDMA to
transfer data between the host and a FPGA. To handle memory
allocation for DMA I am using the CMA helpers available in the
DRM subsystem. When setting for low video modes (small memory
requirements) everything works fine, but if I try to set a large
video mode (specifically a 4k HDMI mode) I get SWIOTLB errors
saying the buffer is full.
The distinction between CMA and SWIOTLB is not clear to me, but
these are two different allocation engines, right?
One important aspect in my configuration is that the Xilinx VDMA
can only access up to 28 bits of the host memory so I set the DMA
mask to 28 bits and force the CMA region to be allocated bellow
these 28 bits. I also tried increasing the CMA size and the
SWIOTLB size without success.
Any comments on this?
Thanks in advance for your help.
Best regards,
Jose Miguel Abreu
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2016-06-29 9:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-29 9:52 Jose Abreu [this message]
2016-07-01 15:03 ` DMA, CMA and SWIOTLB Liviu Dudau
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=57739A42.6040105@synopsys.com \
--to=jose.abreu@synopsys.com \
--cc=dmaengine@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.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.