* mlx4 query in sriov mode
@ 2014-08-28 17:28 Bob Biloxi
2014-08-29 4:21 ` Wei Yang
2014-09-03 6:15 ` Bob Biloxi
0 siblings, 2 replies; 4+ messages in thread
From: Bob Biloxi @ 2014-08-28 17:28 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Hi All,
I really appreciate this wonderful community which has immensely
helped me broaden my knowledge and understanding.
I was going through the mlx4 sriov code, trying to understand the
communication between the VF driver and the PF driver.
I was having a few queries..hoping to get a better understanding.
As I understand, the commands are communicated between VF and PF
through a mechanism called communication channel. VF writes to
specific address in its BAR space, PF gets an event and then proceeds
ahead to read the command from its BAR space and then complete the
execution of it..
Now, my query is, lets say the VF driver is not yet present and only
the PF driver is there...
In this case, can we simulate a VF command write and get notified
through an event?
For eg. we write to some offset in the PF BAR space itself upon
completion of which, an event is generated because of the write? kind
of like loopback mechanism.
I searched through the code but couldn't find anywhere.
Can anyone please help me understand if this is possible? And if there
is any location in the code where i can find this?
Thanks a lot in advance!!
Best Regards,
Bob
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mlx4 query in sriov mode
2014-08-28 17:28 mlx4 query in sriov mode Bob Biloxi
@ 2014-08-29 4:21 ` Wei Yang
2014-08-29 9:07 ` Bob Biloxi
2014-09-03 6:15 ` Bob Biloxi
1 sibling, 1 reply; 4+ messages in thread
From: Wei Yang @ 2014-08-29 4:21 UTC (permalink / raw)
To: Bob Biloxi; +Cc: linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org
On Thu, Aug 28, 2014 at 10:58:50PM +0530, Bob Biloxi wrote:
>Hi All,
>
>
>I really appreciate this wonderful community which has immensely
>helped me broaden my knowledge and understanding.
>
>
>I was going through the mlx4 sriov code, trying to understand the
>communication between the VF driver and the PF driver.
>
>I was having a few queries..hoping to get a better understanding.
>
>
>As I understand, the commands are communicated between VF and PF
>through a mechanism called communication channel. VF writes to
>specific address in its BAR space, PF gets an event and then proceeds
>ahead to read the command from its BAR space and then complete the
>execution of it..
>
>
>Now, my query is, lets say the VF driver is not yet present and only
>the PF driver is there...
>
>In this case, can we simulate a VF command write and get notified
>through an event?
>
Hi,
I am not that familiar with mlx4 driver. As you mentioned in previous, VF
communicate with PF by writing some word in BAR and PF gets it. If this is
true, I believe it would works.
>For eg. we write to some offset in the PF BAR space itself upon
>completion of which, an event is generated because of the write? kind
>of like loopback mechanism.
>
>
>I searched through the code but couldn't find anywhere.
>
>Can anyone please help me understand if this is possible? And if there
>is any location in the code where i can find this?
Where you fund the communication between PF and VF is by writing its BAR?
>
>Thanks a lot in advance!!
>
>
>Best Regards,
>Bob
>--
>To unsubscribe from this list: send the line "unsubscribe linux-pci" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Richard Yang
Help you, Help me
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mlx4 query in sriov mode
2014-08-29 4:21 ` Wei Yang
@ 2014-08-29 9:07 ` Bob Biloxi
0 siblings, 0 replies; 4+ messages in thread
From: Bob Biloxi @ 2014-08-29 9:07 UTC (permalink / raw)
To: Wei Yang; +Cc: linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org
Hi,
> Where you fund the communication between PF and VF is by writing its BAR?
http://lxr.free-electrons.com/source/drivers/net/ethernet/mellanox/mlx4/cmd.c#L1964
Best Regards,
Bob
On Fri, Aug 29, 2014 at 9:51 AM, Wei Yang <weiyang@linux.vnet.ibm.com> wrote:
> On Thu, Aug 28, 2014 at 10:58:50PM +0530, Bob Biloxi wrote:
>>Hi All,
>>
>>
>>I really appreciate this wonderful community which has immensely
>>helped me broaden my knowledge and understanding.
>>
>>
>>I was going through the mlx4 sriov code, trying to understand the
>>communication between the VF driver and the PF driver.
>>
>>I was having a few queries..hoping to get a better understanding.
>>
>>
>>As I understand, the commands are communicated between VF and PF
>>through a mechanism called communication channel. VF writes to
>>specific address in its BAR space, PF gets an event and then proceeds
>>ahead to read the command from its BAR space and then complete the
>>execution of it..
>>
>>
>>Now, my query is, lets say the VF driver is not yet present and only
>>the PF driver is there...
>>
>>In this case, can we simulate a VF command write and get notified
>>through an event?
>>
>
> Hi,
>
> I am not that familiar with mlx4 driver. As you mentioned in previous, VF
> communicate with PF by writing some word in BAR and PF gets it. If this is
> true, I believe it would works.
>
>>For eg. we write to some offset in the PF BAR space itself upon
>>completion of which, an event is generated because of the write? kind
>>of like loopback mechanism.
>>
>>
>>I searched through the code but couldn't find anywhere.
>>
>>Can anyone please help me understand if this is possible? And if there
>>is any location in the code where i can find this?
>
> Where you fund the communication between PF and VF is by writing its BAR?
>
>>
>>Thanks a lot in advance!!
>>
>>
>>Best Regards,
>>Bob
>>--
>>To unsubscribe from this list: send the line "unsubscribe linux-pci" in
>>the body of a message to majordomo@vger.kernel.org
>>More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> --
> Richard Yang
> Help you, Help me
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mlx4 query in sriov mode
2014-08-28 17:28 mlx4 query in sriov mode Bob Biloxi
2014-08-29 4:21 ` Wei Yang
@ 2014-09-03 6:15 ` Bob Biloxi
1 sibling, 0 replies; 4+ messages in thread
From: Bob Biloxi @ 2014-09-03 6:15 UTC (permalink / raw)
To: linux-rdma@vger.kernel.org, linux-pci@vger.kernel.org
Hi,
Can anyone from Mellanox please help me understand this better? really
hoping for any pointers that will be helpful...
Specifically:
> Now, my query is, lets say the VF driver is not yet present and only
> the PF driver is there...
>
> In this case, can we simulate a VF command write and get notified
> through an event?
>
> For eg. we write to some offset in the PF BAR space itself upon
> completion of which, an event is generated because of the write? kind
> of like loopback mechanism.
>
Thanks so much,
Bob
On Thu, Aug 28, 2014 at 10:58 PM, Bob Biloxi <iambobbiloxi@gmail.com> wrote:
> Hi All,
>
>
> I really appreciate this wonderful community which has immensely
> helped me broaden my knowledge and understanding.
>
>
> I was going through the mlx4 sriov code, trying to understand the
> communication between the VF driver and the PF driver.
>
> I was having a few queries..hoping to get a better understanding.
>
>
> As I understand, the commands are communicated between VF and PF
> through a mechanism called communication channel. VF writes to
> specific address in its BAR space, PF gets an event and then proceeds
> ahead to read the command from its BAR space and then complete the
> execution of it..
>
>
> Now, my query is, lets say the VF driver is not yet present and only
> the PF driver is there...
>
> In this case, can we simulate a VF command write and get notified
> through an event?
>
> For eg. we write to some offset in the PF BAR space itself upon
> completion of which, an event is generated because of the write? kind
> of like loopback mechanism.
>
>
> I searched through the code but couldn't find anywhere.
>
> Can anyone please help me understand if this is possible? And if there
> is any location in the code where i can find this?
>
> Thanks a lot in advance!!
>
>
> Best Regards,
> Bob
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-03 6:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 17:28 mlx4 query in sriov mode Bob Biloxi
2014-08-29 4:21 ` Wei Yang
2014-08-29 9:07 ` Bob Biloxi
2014-09-03 6:15 ` Bob Biloxi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox