Allocate 32MB with dma_alloc_coherent in ARM64Enabling IOMMU in the kernel for graphics card...
What are examples of EU policies that are beneficial for one EU country, disadvantagious for another?
Why did the Soviet Union not "grant" Inner Mongolia to Mongolia after World War Two?
Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?
Is a PWM required for regenerative braking on a DC Motor?
How can this Stack Exchange site have an animated favicon?
Can I enter the UK without my husband if we said we'd travel together in our visa application?
Whaling ship logistics
Are fuzzy sets appreciated by OR community?
Convex hull in a discrete space
Difference between "rip up" and "rip down"
How to stop the death waves in my city?
What exactly did this mechanic sabotage on the American Airlines 737, and how dangerous was it?
What is the white pattern on trim wheel for?
Which lens has the same capability of lens mounted in Nikon P1000?
What should I consider when deciding whether to delay an exam?
Top off gas with old oil, is that bad?
Why is STARTTLS still used?
Another student has been assigned the same MSc thesis as mine (and already defended)
How to justify getting additional team member when the current team is doing well?
Character Transformation
Why was it decided in 1956 to abolish the spelling чорт (devil) in favor of чёрт?
Beyond Futuristic Technology for an Alien Warship?
Why is 6. Nge2 better, and 7. d5 a necessary push in this game?
Received a package but didn't order it
Allocate 32MB with dma_alloc_coherent in ARM64
Enabling IOMMU in the kernel for graphics card pass-throughStatic IP on BBB won't change with network/interfaces fileCan I see the number of PCI slots with a command?Linux Userspace PCI driver options? (uio_pci_generic)mmap and slow DMA transfersProblems with Wi-Fi on DebianHow do I associate an NVME drive name with a PCIe address?How to create Uboot Initramfs Image for arm64PCIe cards interfere with each others function
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am trying to pass image buffers from an ARM64 device to Xilinx FPGA device using PCIe DMA. I want to allocate 32MB coherent DMA buffer with dma_alloc_coherent
. But not able to get it in one try. Now I get it as a multiple of 4MB. Is there a way to get 32MB in one shot using dma_alloc_coherent?
I want to get it in one shot since the memory has to be mapped to user space using dma_mmap_coherent
, where I can only pass start of vma
. Directly using remap_pfn_range
may not be a viable option since the IOMMU is enabled.
arm pci mmap
add a comment
|
I am trying to pass image buffers from an ARM64 device to Xilinx FPGA device using PCIe DMA. I want to allocate 32MB coherent DMA buffer with dma_alloc_coherent
. But not able to get it in one try. Now I get it as a multiple of 4MB. Is there a way to get 32MB in one shot using dma_alloc_coherent?
I want to get it in one shot since the memory has to be mapped to user space using dma_mmap_coherent
, where I can only pass start of vma
. Directly using remap_pfn_range
may not be a viable option since the IOMMU is enabled.
arm pci mmap
add a comment
|
I am trying to pass image buffers from an ARM64 device to Xilinx FPGA device using PCIe DMA. I want to allocate 32MB coherent DMA buffer with dma_alloc_coherent
. But not able to get it in one try. Now I get it as a multiple of 4MB. Is there a way to get 32MB in one shot using dma_alloc_coherent?
I want to get it in one shot since the memory has to be mapped to user space using dma_mmap_coherent
, where I can only pass start of vma
. Directly using remap_pfn_range
may not be a viable option since the IOMMU is enabled.
arm pci mmap
I am trying to pass image buffers from an ARM64 device to Xilinx FPGA device using PCIe DMA. I want to allocate 32MB coherent DMA buffer with dma_alloc_coherent
. But not able to get it in one try. Now I get it as a multiple of 4MB. Is there a way to get 32MB in one shot using dma_alloc_coherent?
I want to get it in one shot since the memory has to be mapped to user space using dma_mmap_coherent
, where I can only pass start of vma
. Directly using remap_pfn_range
may not be a viable option since the IOMMU is enabled.
arm pci mmap
arm pci mmap
asked 4 mins ago
Gilson VargheseGilson Varghese
607 bronze badges
607 bronze badges
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543159%2fallocate-32mb-with-dma-alloc-coherent-in-arm64%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f543159%2fallocate-32mb-with-dma-alloc-coherent-in-arm64%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown