All of lore.kernel.org
 help / color / mirror / Atom feed
* How to get src and dst for pru_rpmsg_send?
@ 2020-02-05 10:24 Andrew P. Lentvorski
  2020-02-05 23:21 ` Mathieu Poirier
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew P. Lentvorski @ 2020-02-05 10:24 UTC (permalink / raw)
  To: linux-remoteproc

I seem to be missing something obvious: Where do I get the values for
src and dst in the pru_rpmsg_send() function?

The TI examples do a pru_rpmsg_receive() first and then echo back to the
same src and dst.  That seems ... odd.  What's the point of having a
variable src and dst if they are effectively hardwired to a single
communication channel?

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get src and dst for pru_rpmsg_send?
  2020-02-05 10:24 How to get src and dst for pru_rpmsg_send? Andrew P. Lentvorski
@ 2020-02-05 23:21 ` Mathieu Poirier
  2020-02-06  1:16   ` Andrew P. Lentvorski
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Poirier @ 2020-02-05 23:21 UTC (permalink / raw)
  To: Andrew P. Lentvorski; +Cc: linux-remoteproc

Hi Andrew,

On Wed, Feb 05, 2020 at 02:24:07AM -0800, Andrew P. Lentvorski wrote:
> I seem to be missing something obvious: Where do I get the values for
> src and dst in the pru_rpmsg_send() function?
> 
> The TI examples do a pru_rpmsg_receive() first and then echo back to the
> same src and dst.  That seems ... odd.  What's the point of having a
> variable src and dst if they are effectively hardwired to a single
> communication channel?

Since pru_rpmsg_send/receive() don't exist in the mainline kernel you will have
to be more specific... What TI examples are you referring to?  Where can we find
them? 

There are other rpmsg_sendxyz() functions that allow you to send messages to
different addresses[1].  Given the amount of information, I'm afraid there isn't
much else I can add at this time.

Thanks,
Mathieu  

[1]. https://elixir.bootlin.com/linux/latest/source/include/linux/rpmsg.h#L125


> 
> Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get src and dst for pru_rpmsg_send?
  2020-02-05 23:21 ` Mathieu Poirier
@ 2020-02-06  1:16   ` Andrew P. Lentvorski
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew P. Lentvorski @ 2020-02-06  1:16 UTC (permalink / raw)
  To: Mathieu Poirier; +Cc: linux-remoteproc

Hi, Mathieu,

On 2/5/20 3:21 PM, Mathieu Poirier wrote:
> Hi Andrew,
> 
> On Wed, Feb 05, 2020 at 02:24:07AM -0800, Andrew P. Lentvorski wrote:
>> I seem to be missing something obvious: Where do I get the values for
>> src and dst in the pru_rpmsg_send() function?
>>
>> The TI examples do a pru_rpmsg_receive() first and then echo back to the
>> same src and dst.  That seems ... odd.  What's the point of having a
>> variable src and dst if they are effectively hardwired to a single
>> communication channel?
> 
> Since pru_rpmsg_send/receive() don't exist in the mainline kernel you will have
> to be more specific... What TI examples are you referring to?  Where can we find
> them? 

TI keeps the examples here:
https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/

This is a good example of the rpmsg system being used with the echo I
talked about:
https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tree/examples/am335x/PRU_RPMsg_Echo_Interrupt1

That example works on the Beaglebone Black (an am3359 based Linux board).

> There are other rpmsg_sendxyz() functions that allow you to send messages to
> different addresses[1].  Given the amount of information, I'm afraid there isn't
> much else I can add at this time.
> 
> Thanks,
> Mathieu  
> 
> [1]. https://elixir.bootlin.com/linux/latest/source/include/linux/rpmsg.h#L125

Thanks for the pointers.

It looks like I need to drag the src/dst out of the rpmsg_device or
rpmsg_channel_info on the Linux side and then pass it to the PRU side by
some method.  An initial message is as good as any and better than most.

I completely flaked that this wouldn't be in mainline.  Even a simple
thought about the name "*pru*_rpmsg_send" should have set off alarm
bells.  Sorry about that.

Thanks for the help,
-a

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-06  1:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-05 10:24 How to get src and dst for pru_rpmsg_send? Andrew P. Lentvorski
2020-02-05 23:21 ` Mathieu Poirier
2020-02-06  1:16   ` Andrew P. Lentvorski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.