ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.
BSD 2-Clause "Simplified" License
545 stars 165 forks source link

Buffer for BRAM #37

Closed noelpedro closed 4 years ago

noelpedro commented 4 years ago

Hi Ichiro,

If I want to use udmabuf for vivado’s BRAM IP core.

Do I need to set the bram cntrl node as a uio node in device tree or do I follow the memory region example below?

Thanks man

ikwzm commented 4 years ago

Thank you for the issue.

However, I have never used BRAM IP core.

I'm sorry I can't be of any help.

noelpedro commented 4 years ago

hmmm I was thinking somewhere along the lined of this : (https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842412/Accessing+BRAM+In+Linux) "section 3: Acessing BRAM using /dev/mem

In that example that look a lot like the "memory-region" on your README thanks.

ikwzm commented 4 years ago

By the way, the person who gave me this PR(https://github.com/ikwzm/udmabuf/pull/8) said that I would use internal SRAM.