DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules
@ 2021-10-14 12:52 Anatoly Burakov
  2021-10-14 15:12 ` Bruce Richardson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anatoly Burakov @ 2021-10-14 12:52 UTC (permalink / raw)
  To: dev

Currently, the documentation only contains instructions for enabling
SRIOV support for VFIO compiled as a module, but doesn't have any
instructions on how to do the same for cases where VFIO is built-in.
Add these instructions.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
 doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/guides/linux_gsg/linux_drivers.rst b/doc/guides/linux_gsg/linux_drivers.rst
index c6b6881ea2..2dd711bb37 100644
--- a/doc/guides/linux_gsg/linux_drivers.rst
+++ b/doc/guides/linux_gsg/linux_drivers.rst
@@ -65,6 +65,12 @@ The token will be used for all PF and VF ports within the application.
 
       sudo modprobe vfio-pci enable_sriov=1
 
+   Alternatively, pass the ``enable_sriov`` parameter through the ``sysfs`` if the module is already loaded or is built-in:
+
+   .. code-block:: console
+
+      echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov
+
 #. Bind the PCI devices to ``vfio-pci`` driver
 
    .. code-block:: console
-- 
2.25.1


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

* Re: [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules
  2021-10-14 12:52 [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules Anatoly Burakov
@ 2021-10-14 15:12 ` Bruce Richardson
  2021-10-14 19:47 ` Iremonger, Bernard
  2021-10-27 15:37 ` [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO " Anatoly Burakov
  2 siblings, 0 replies; 6+ messages in thread
From: Bruce Richardson @ 2021-10-14 15:12 UTC (permalink / raw)
  To: Anatoly Burakov; +Cc: dev

On Thu, Oct 14, 2021 at 12:52:38PM +0000, Anatoly Burakov wrote:
> Currently, the documentation only contains instructions for enabling
> SRIOV support for VFIO compiled as a module, but doesn't have any
> instructions on how to do the same for cases where VFIO is built-in.
> Add these instructions.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>

Acked-by: Bruce Richardson <bruce.richardson@intel.com>


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

* Re: [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules
  2021-10-14 12:52 [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules Anatoly Burakov
  2021-10-14 15:12 ` Bruce Richardson
@ 2021-10-14 19:47 ` Iremonger, Bernard
  2021-10-27 15:35   ` Burakov, Anatoly
  2021-10-27 15:37 ` [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO " Anatoly Burakov
  2 siblings, 1 reply; 6+ messages in thread
From: Iremonger, Bernard @ 2021-10-14 19:47 UTC (permalink / raw)
  To: Burakov, Anatoly, dev


Hi Anatoly,

> -----Original Message-----
> From: dev <dev-bounces@dpdk.org> On Behalf Of Anatoly Burakov
> Sent: Thursday, October 14, 2021 1:53 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules
> 
> Currently, the documentation only contains instructions for enabling SRIOV
> support for VFIO compiled as a module, but doesn't have any instructions on
> how to do the same for cases where VFIO is built-in.
> Add these instructions.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
>  doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/doc/guides/linux_gsg/linux_drivers.rst
> b/doc/guides/linux_gsg/linux_drivers.rst
> index c6b6881ea2..2dd711bb37 100644
> --- a/doc/guides/linux_gsg/linux_drivers.rst
> +++ b/doc/guides/linux_gsg/linux_drivers.rst
> @@ -65,6 +65,12 @@ The token will be used for all PF and VF ports within
> the application.
> 
>        sudo modprobe vfio-pci enable_sriov=1
> 
> +   Alternatively, pass the ``enable_sriov`` parameter through the ``sysfs`` if
> the module is already loaded or is built-in:

Probably better to wrap above line as quite  long.

> +
> +   .. code-block:: console
> +
> +      echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov
> +
>  #. Bind the PCI devices to ``vfio-pci`` driver
> 
>     .. code-block:: console
> --
> 2.25.1

~/dpdk_21_11/devtools# ./check-git-log.sh 
Wrong headline case:
                        "doc: clarify vfio doc for built-in modules": vfio --> VFIO

Invalid patch(es) found - checked 1 patch

Otherwise 
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>


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

* Re: [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules
  2021-10-14 19:47 ` Iremonger, Bernard
@ 2021-10-27 15:35   ` Burakov, Anatoly
  0 siblings, 0 replies; 6+ messages in thread
From: Burakov, Anatoly @ 2021-10-27 15:35 UTC (permalink / raw)
  To: Iremonger, Bernard, dev

On 14-Oct-21 8:47 PM, Iremonger, Bernard wrote:
> 
> Hi Anatoly,
> 
>> -----Original Message-----
>> From: dev <dev-bounces@dpdk.org> On Behalf Of Anatoly Burakov
>> Sent: Thursday, October 14, 2021 1:53 PM
>> To: dev@dpdk.org
>> Subject: [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules
>>
>> Currently, the documentation only contains instructions for enabling SRIOV
>> support for VFIO compiled as a module, but doesn't have any instructions on
>> how to do the same for cases where VFIO is built-in.
>> Add these instructions.
>>
>> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
>> ---
>>   doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/doc/guides/linux_gsg/linux_drivers.rst
>> b/doc/guides/linux_gsg/linux_drivers.rst
>> index c6b6881ea2..2dd711bb37 100644
>> --- a/doc/guides/linux_gsg/linux_drivers.rst
>> +++ b/doc/guides/linux_gsg/linux_drivers.rst
>> @@ -65,6 +65,12 @@ The token will be used for all PF and VF ports within
>> the application.
>>
>>         sudo modprobe vfio-pci enable_sriov=1
>>
>> +   Alternatively, pass the ``enable_sriov`` parameter through the ``sysfs`` if
>> the module is already loaded or is built-in:
> 
> Probably better to wrap above line as quite  long.
> 

I believe the general consensus on docs is that we should leave the 
lines to be long.

>> +
>> +   .. code-block:: console
>> +
>> +      echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov
>> +
>>   #. Bind the PCI devices to ``vfio-pci`` driver
>>
>>      .. code-block:: console
>> --
>> 2.25.1
> 
> ~/dpdk_21_11/devtools# ./check-git-log.sh
> Wrong headline case:
>                          "doc: clarify vfio doc for built-in modules": vfio --> VFIO
> 
> Invalid patch(es) found - checked 1 patch
> 

Thanks, will fix in v2!

> Otherwise
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
> 


-- 
Thanks,
Anatoly

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

* [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO doc for built-in modules
  2021-10-14 12:52 [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules Anatoly Burakov
  2021-10-14 15:12 ` Bruce Richardson
  2021-10-14 19:47 ` Iremonger, Bernard
@ 2021-10-27 15:37 ` Anatoly Burakov
  2021-10-28  8:14   ` David Marchand
  2 siblings, 1 reply; 6+ messages in thread
From: Anatoly Burakov @ 2021-10-27 15:37 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson, Bernard Iremonger

Currently, the documentation only contains instructions for enabling
SRIOV support for VFIO compiled as a module, but doesn't have any
instructions on how to do the same for cases where VFIO is built-in.
Add these instructions.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 doc/guides/linux_gsg/linux_drivers.rst | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/guides/linux_gsg/linux_drivers.rst b/doc/guides/linux_gsg/linux_drivers.rst
index c6b6881ea2..2dd711bb37 100644
--- a/doc/guides/linux_gsg/linux_drivers.rst
+++ b/doc/guides/linux_gsg/linux_drivers.rst
@@ -65,6 +65,12 @@ The token will be used for all PF and VF ports within the application.
 
       sudo modprobe vfio-pci enable_sriov=1
 
+   Alternatively, pass the ``enable_sriov`` parameter through the ``sysfs`` if the module is already loaded or is built-in:
+
+   .. code-block:: console
+
+      echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov
+
 #. Bind the PCI devices to ``vfio-pci`` driver
 
    .. code-block:: console
-- 
2.25.1


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

* Re: [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO doc for built-in modules
  2021-10-27 15:37 ` [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO " Anatoly Burakov
@ 2021-10-28  8:14   ` David Marchand
  0 siblings, 0 replies; 6+ messages in thread
From: David Marchand @ 2021-10-28  8:14 UTC (permalink / raw)
  To: Anatoly Burakov; +Cc: dev, Bruce Richardson, Bernard Iremonger

On Wed, Oct 27, 2021 at 5:39 PM Anatoly Burakov
<anatoly.burakov@intel.com> wrote:
>
> Currently, the documentation only contains instructions for enabling
> SRIOV support for VFIO compiled as a module, but doesn't have any
> instructions on how to do the same for cases where VFIO is built-in.
> Add these instructions.
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

Applied, thanks.


-- 
David Marchand


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

end of thread, other threads:[~2021-10-28  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-14 12:52 [dpdk-dev] [PATCH v1 1/1] doc: clarify vfio doc for built-in modules Anatoly Burakov
2021-10-14 15:12 ` Bruce Richardson
2021-10-14 19:47 ` Iremonger, Bernard
2021-10-27 15:35   ` Burakov, Anatoly
2021-10-27 15:37 ` [dpdk-dev] [PATCH v2 1/1] doc: clarify VFIO " Anatoly Burakov
2021-10-28  8:14   ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).