Thread (3 messages) 3 messages, 2 authors, 2016-08-19

vmsplice returned "bad address"

From: Teoh Choon Zone <hidden>
Date: 2016-08-19 01:28:22

On Fri, Aug 19, 2016 at 1:32 AM, [off-list ref] wrote:
Step 1: Figure out whether your driver is returning a physical or logical
address for the CMA, and which of the two /dev/mem requires.

Step 2: Take a look at the address returned and make sure it at least
looks valid (is someplace the E820 map says is RAM, isn't a PCI BAR or
something like that, etc etc)

Those are the two biggest sources of error I can think of...
First of all, just want to make my problem clear, the "bad address" is
returned when I call vmsplice(), not mmap().

1. I have verified the address is a physical one
2. It indeed is within the RAM range

What bugs me is that write() works just fine but vmsplice() complains about
the address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160819/1d7958c6/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help