<br><br><div class="gmail_quote">2012/2/16 Ohad Ben-Cohen <span dir="ltr"><<a href="mailto:ohad@wizery.com">ohad@wizery.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Feb 16, 2012 at 2:22 PM, Michal Simek <<a href="mailto:monstr@monstr.eu">monstr@monstr.eu</a>> wrote:<br>
> ok on that addresses above is mapped vring_desc structure. I expect that<br>
> addr is address to any memory location when data are places. Next is filled<br>
> by init because of ring buffer. What flags should be used? And what is data<br>
> structure?<br>
<br>
</div>I'm sorry, but can you please rephrase this question too ? I'm just not<br>
sure I understand you correctly.<br>
<br>
In general, you don't need to fiddle with the vring_desc structure -<br>
that's internal to virtio, and things should just work.<br>
<br>
Or are you asking about the rtos side ?<br></blockquote><div><br></div></div>yes, I mean that rtos side. <br><br>Communication from Linux should be pretty easy because I can use sendto functions but <br>IRC in init part Linux kick rtos which send which services are <a href="http://available.in">available.in</a> any format which is unknown to me.<br>
<br>rtos should compose that data message and Linux will encode it and is able to register that and use that.<br><br>My question is how that rtos should communicate. What data to send and where and which structure to you.<br>
For example: Use first vring buffer and write address where message is placed and it is in ths structure (u32 flag, u32 address, u32 len, u32data[MAX].<br><br>Two vrings buffers are setup as ring buffers and they are empty and from my code reading rtos has to fill them.<br>
<br><br>Maybe I can say it in different way. In your ELCE example on panda board (I will get it pretty shortly to be able to test it) ou get these messages<br><br>virtion_rpmsg_bus virtion0: rpmsg host is online - I get the same message<br>
omap-rproc omap-rproc.1: received echo 0 - it is I think written in omap remote proc driver<br><br>and then you get<br><br>virtion_rpmsg_bus virtio0: creating channel rpmsg-client-sample2...<br>virtion_rpmsg_bus virtio0: creating channel rpmsg-client-sample3...<br>
...<br><br>Based on that when you have that channel name you can probe that driver with match id table which has to use the same name to be able to communication with this channel (name is rpmsg-client-sample).<br><br>I am not able to get that list of published services from rtos that's why linux can't create that channels<br>
and I would lke to know what to do on rtos side and how to send that messages and which format I should<br>use.<br>Definitely rtos when this message is composed will kick Linux that there is pending message. <br><br>Please also correct me if I read the code wrongly. that mailbox in omap driver is used just to say which buffer contains that message. Is it correct? <br>
I can create 15 sw signals to tell rtos which buffer contains message.<br><br>Will be help if I clear my code and send it to you for review? Maybe you will see where the problem is.<br><br>Thanks,<br>Michal<br><br><br><br>
<br><br><br><br><br><div style id="avg_ls_inline_popup"></div>