LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-28-2019, 02:19 AM   #1
ranshalit
LQ Newbie
 
Registered: Apr 2011
Posts: 10

Rep: Reputation: 0
RAM access from PCIe device


Hello,

I have a simple kernel module which allocates continuous physical memory (using dma_alloc_coherent) and provide it to PCIe connected FPGA device for DMA access, 64-bit addressing PCIe.
But on when FPGA tries to access the cpu RAM (using FPGA's dma), it can't access and fails. This is in our lenovo computer.

So, I suspected centos8 and kernel 4.18, but using same OS, kernel, same kernel module, and FPGA works perfectly if I just move them into older computer !

So now, I started suspecting the lenovo machine, but installing windows on same machine, we get that FPGA can do DMA without any issues.

Is there any idea what can cause such strange behavior ?

Thanks

Last edited by ranshalit; 11-28-2019 at 02:41 AM.
 
Old 12-02-2019, 10:12 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,875
Blog Entries: 1

Rep: Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077Reputation: 2077
You might need cmdline option iomem=relaxed or kernel reconfiguration:
https://www.phoronix.com/scan.php?pa...Strict-Dev-Mem
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can PCIe device driver support to read a particlualr buffer in the PCIe device with mutiple buffers? cwang_sh Linux - Hardware 3 07-02-2018 09:17 AM
LXer: Skylake-U Mini-ITX features mini-PCIe and PCIe x4 LXer Syndicated Linux News 0 08-24-2017 01:25 AM
LXer: Compact, rugged box-PC expands via PCIe and Mini-PCIe LXer Syndicated Linux News 0 02-09-2014 02:10 PM
PCIe re-enumation in linux driver question (pcie hotplug doesn't work) blavo Programming 5 08-02-2012 02:12 PM
[SOLVED] Best PCIe 2.0 graphics card for for PCIe 1.1, Pentium Dual Core system. ags1 Linux - Hardware 12 04-27-2012 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration