DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/1] usertools/devbind: add ml device class
@ 2023-03-13 17:23 Srikanth Yalavarthi
  2023-03-13 17:30 ` Jerin Jacob
  2023-03-14  6:31 ` Jerin Jacob
  0 siblings, 2 replies; 5+ messages in thread
From: Srikanth Yalavarthi @ 2023-03-13 17:23 UTC (permalink / raw)
  Cc: dev, syalavarthi, sshankarnara, jerinj

Added new ML device class and support for cnxk ML device.

Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
---
 usertools/dpdk-devbind.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
index 4d9c1be666..a278f5e7f3 100755
--- a/usertools/dpdk-devbind.py
+++ b/usertools/dpdk-devbind.py
@@ -75,6 +75,9 @@
 virtio_blk = {'Class': '01', 'Vendor': "1af4", 'Device': '1001,1042',
                     'SVendor': None, 'SDevice': None}
 
+cnxk_ml = {'Class': '08', 'Vendor': '177d', 'Device': 'a092',
+            'SVendor': None, 'SDevice': None}
+
 network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]
 baseband_devices = [acceleration_class]
 crypto_devices = [encryption_class, intel_processor_class]
@@ -84,6 +87,7 @@
 mempool_devices = [cavium_fpa, cnxk_npa]
 compress_devices = [cavium_zip]
 regex_devices = [cn9k_ree]
+ml_devices = [cnxk_ml]
 misc_devices = [cnxk_bphy, cnxk_bphy_cgx, cnxk_inl_dev,
                 intel_ntb_skx, intel_ntb_icx,
                 virtio_blk]
@@ -618,6 +622,9 @@ def show_status():
     if status_dev in ["regex", "all"]:
         show_device_status(regex_devices, "Regex")
 
+    if status_dev in ["ml", "all"]:
+        show_device_status(ml_devices, "ML")
+
 
 def pci_glob(arg):
     '''Returns a list containing either:
@@ -672,7 +679,7 @@ def parse_args():
         '--status-dev',
         help="Print the status of given device group.",
         choices=['baseband', 'compress', 'crypto', 'dma', 'event',
-                 'mempool', 'misc', 'net', 'regex'])
+                 'mempool', 'misc', 'net', 'regex', 'ml'])
     bind_group = parser.add_mutually_exclusive_group()
     bind_group.add_argument(
         '-b',
@@ -758,6 +765,7 @@ def do_arg_actions():
             get_device_details(mempool_devices)
             get_device_details(compress_devices)
             get_device_details(regex_devices)
+            get_device_details(ml_devices)
             get_device_details(misc_devices)
         show_status()
 
@@ -781,6 +789,7 @@ def main():
     get_device_details(mempool_devices)
     get_device_details(compress_devices)
     get_device_details(regex_devices)
+    get_device_details(ml_devices)
     get_device_details(misc_devices)
     do_arg_actions()
 
-- 
2.17.1


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

* Re: [PATCH 1/1] usertools/devbind: add ml device class
  2023-03-13 17:23 [PATCH 1/1] usertools/devbind: add ml device class Srikanth Yalavarthi
@ 2023-03-13 17:30 ` Jerin Jacob
  2023-03-13 17:41   ` [EXT] " Srikanth Yalavarthi
  2023-03-14  6:31 ` Jerin Jacob
  1 sibling, 1 reply; 5+ messages in thread
From: Jerin Jacob @ 2023-03-13 17:30 UTC (permalink / raw)
  To: Srikanth Yalavarthi; +Cc: dev, sshankarnara, jerinj

On Mon, Mar 13, 2023 at 10:53 PM Srikanth Yalavarthi
<syalavarthi@marvell.com> wrote:
>
> Added new ML device class and support for cnxk ML device.

Please also add missing documentation connection at
https://doc.dpdk.org/guides/platform/cnxk.html


>
> Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
> ---
>  usertools/dpdk-devbind.py | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
> index 4d9c1be666..a278f5e7f3 100755
> --- a/usertools/dpdk-devbind.py
> +++ b/usertools/dpdk-devbind.py
> @@ -75,6 +75,9 @@
>  virtio_blk = {'Class': '01', 'Vendor': "1af4", 'Device': '1001,1042',
>                      'SVendor': None, 'SDevice': None}
>
> +cnxk_ml = {'Class': '08', 'Vendor': '177d', 'Device': 'a092',
> +            'SVendor': None, 'SDevice': None}
> +
>  network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]
>  baseband_devices = [acceleration_class]
>  crypto_devices = [encryption_class, intel_processor_class]
> @@ -84,6 +87,7 @@
>  mempool_devices = [cavium_fpa, cnxk_npa]
>  compress_devices = [cavium_zip]
>  regex_devices = [cn9k_ree]
> +ml_devices = [cnxk_ml]
>  misc_devices = [cnxk_bphy, cnxk_bphy_cgx, cnxk_inl_dev,
>                  intel_ntb_skx, intel_ntb_icx,
>                  virtio_blk]
> @@ -618,6 +622,9 @@ def show_status():
>      if status_dev in ["regex", "all"]:
>          show_device_status(regex_devices, "Regex")
>
> +    if status_dev in ["ml", "all"]:
> +        show_device_status(ml_devices, "ML")
> +
>
>  def pci_glob(arg):
>      '''Returns a list containing either:
> @@ -672,7 +679,7 @@ def parse_args():
>          '--status-dev',
>          help="Print the status of given device group.",
>          choices=['baseband', 'compress', 'crypto', 'dma', 'event',
> -                 'mempool', 'misc', 'net', 'regex'])
> +                 'mempool', 'misc', 'net', 'regex', 'ml'])
>      bind_group = parser.add_mutually_exclusive_group()
>      bind_group.add_argument(
>          '-b',
> @@ -758,6 +765,7 @@ def do_arg_actions():
>              get_device_details(mempool_devices)
>              get_device_details(compress_devices)
>              get_device_details(regex_devices)
> +            get_device_details(ml_devices)
>              get_device_details(misc_devices)
>          show_status()
>
> @@ -781,6 +789,7 @@ def main():
>      get_device_details(mempool_devices)
>      get_device_details(compress_devices)
>      get_device_details(regex_devices)
> +    get_device_details(ml_devices)
>      get_device_details(misc_devices)
>      do_arg_actions()
>
> --
> 2.17.1
>

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

* RE: [EXT] Re: [PATCH 1/1] usertools/devbind: add ml device class
  2023-03-13 17:30 ` Jerin Jacob
@ 2023-03-13 17:41   ` Srikanth Yalavarthi
  0 siblings, 0 replies; 5+ messages in thread
From: Srikanth Yalavarthi @ 2023-03-13 17:41 UTC (permalink / raw)
  To: Jerin Jacob
  Cc: dev, Shivah Shankar Shankar Narayan Rao,
	Jerin Jacob Kollanukkaran, Srikanth Yalavarthi

> -----Original Message-----
> From: Jerin Jacob <jerinjacobk@gmail.com>
> Sent: 13 March 2023 23:01
> To: Srikanth Yalavarthi <syalavarthi@marvell.com>
> Cc: dev@dpdk.org; Shivah Shankar Shankar Narayan Rao
> <sshankarnara@marvell.com>; Jerin Jacob Kollanukkaran
> <jerinj@marvell.com>
> Subject: [EXT] Re: [PATCH 1/1] usertools/devbind: add ml device class
> 
> External Email
> 
> ----------------------------------------------------------------------
> On Mon, Mar 13, 2023 at 10:53 PM Srikanth Yalavarthi
> <syalavarthi@marvell.com> wrote:
> >
> > Added new ML device class and support for cnxk ML device.
> 
> Please also add missing documentation connection at
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__doc.dpdk.org_guides_platform_cnxk.html&d=DwIFaQ&c=nKjWec2b6R0
> mOyPaz7xtfQ&r=SNPqUkGl0n_Ms1iJa_6wD6LBwX8efL_NOyXvAX-
> iCMI&m=RHmLdjVTJF3nGyDDZ1LpvA19NIm5tsmx2Db2lK0eqDio_T8IFbe-
> wpLOxgVAbiBG&s=XHDj-eNTmgq9wb9vzLofBe-M1fcxcDcQ2u6_1_Qjayg&e=
> 

Done, Submitted a separate patch for doc update
http://patches.dpdk.org/project/dpdk/patch/20230313174015.13602-1-syalavarthi@marvell.com/

> 
> >
> > Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
> > ---
> >  usertools/dpdk-devbind.py | 11 ++++++++++-
> >  1 file changed, 10 insertions(+), 1 deletion(-)
> >
> > diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
> > index 4d9c1be666..a278f5e7f3 100755
> > --- a/usertools/dpdk-devbind.py
> > +++ b/usertools/dpdk-devbind.py
> > @@ -75,6 +75,9 @@
> >  virtio_blk = {'Class': '01', 'Vendor': "1af4", 'Device': '1001,1042',
> >                      'SVendor': None, 'SDevice': None}
> >
> > +cnxk_ml = {'Class': '08', 'Vendor': '177d', 'Device': 'a092',
> > +            'SVendor': None, 'SDevice': None}
> > +
> >  network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]
> > baseband_devices = [acceleration_class]  crypto_devices =
> > [encryption_class, intel_processor_class] @@ -84,6 +87,7 @@
> > mempool_devices = [cavium_fpa, cnxk_npa]  compress_devices =
> > [cavium_zip]  regex_devices = [cn9k_ree]
> > +ml_devices = [cnxk_ml]
> >  misc_devices = [cnxk_bphy, cnxk_bphy_cgx, cnxk_inl_dev,
> >                  intel_ntb_skx, intel_ntb_icx,
> >                  virtio_blk]
> > @@ -618,6 +622,9 @@ def show_status():
> >      if status_dev in ["regex", "all"]:
> >          show_device_status(regex_devices, "Regex")
> >
> > +    if status_dev in ["ml", "all"]:
> > +        show_device_status(ml_devices, "ML")
> > +
> >
> >  def pci_glob(arg):
> >      '''Returns a list containing either:
> > @@ -672,7 +679,7 @@ def parse_args():
> >          '--status-dev',
> >          help="Print the status of given device group.",
> >          choices=['baseband', 'compress', 'crypto', 'dma', 'event',
> > -                 'mempool', 'misc', 'net', 'regex'])
> > +                 'mempool', 'misc', 'net', 'regex', 'ml'])
> >      bind_group = parser.add_mutually_exclusive_group()
> >      bind_group.add_argument(
> >          '-b',
> > @@ -758,6 +765,7 @@ def do_arg_actions():
> >              get_device_details(mempool_devices)
> >              get_device_details(compress_devices)
> >              get_device_details(regex_devices)
> > +            get_device_details(ml_devices)
> >              get_device_details(misc_devices)
> >          show_status()
> >
> > @@ -781,6 +789,7 @@ def main():
> >      get_device_details(mempool_devices)
> >      get_device_details(compress_devices)
> >      get_device_details(regex_devices)
> > +    get_device_details(ml_devices)
> >      get_device_details(misc_devices)
> >      do_arg_actions()
> >
> > --
> > 2.17.1
> >

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

* Re: [PATCH 1/1] usertools/devbind: add ml device class
  2023-03-13 17:23 [PATCH 1/1] usertools/devbind: add ml device class Srikanth Yalavarthi
  2023-03-13 17:30 ` Jerin Jacob
@ 2023-03-14  6:31 ` Jerin Jacob
  2023-03-19 16:42   ` Thomas Monjalon
  1 sibling, 1 reply; 5+ messages in thread
From: Jerin Jacob @ 2023-03-14  6:31 UTC (permalink / raw)
  To: Srikanth Yalavarthi; +Cc: dev, sshankarnara, jerinj

On Mon, Mar 13, 2023 at 10:53 PM Srikanth Yalavarthi
<syalavarthi@marvell.com> wrote:
>
> Added new ML device class and support for cnxk ML device.
>
> Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>

Acked-by: Jerin Jacob <jerinj@marvell.com>


> ---
>  usertools/dpdk-devbind.py | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py
> index 4d9c1be666..a278f5e7f3 100755
> --- a/usertools/dpdk-devbind.py
> +++ b/usertools/dpdk-devbind.py
> @@ -75,6 +75,9 @@
>  virtio_blk = {'Class': '01', 'Vendor': "1af4", 'Device': '1001,1042',
>                      'SVendor': None, 'SDevice': None}
>
> +cnxk_ml = {'Class': '08', 'Vendor': '177d', 'Device': 'a092',
> +            'SVendor': None, 'SDevice': None}
> +
>  network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]
>  baseband_devices = [acceleration_class]
>  crypto_devices = [encryption_class, intel_processor_class]
> @@ -84,6 +87,7 @@
>  mempool_devices = [cavium_fpa, cnxk_npa]
>  compress_devices = [cavium_zip]
>  regex_devices = [cn9k_ree]
> +ml_devices = [cnxk_ml]
>  misc_devices = [cnxk_bphy, cnxk_bphy_cgx, cnxk_inl_dev,
>                  intel_ntb_skx, intel_ntb_icx,
>                  virtio_blk]
> @@ -618,6 +622,9 @@ def show_status():
>      if status_dev in ["regex", "all"]:
>          show_device_status(regex_devices, "Regex")
>
> +    if status_dev in ["ml", "all"]:
> +        show_device_status(ml_devices, "ML")
> +
>
>  def pci_glob(arg):
>      '''Returns a list containing either:
> @@ -672,7 +679,7 @@ def parse_args():
>          '--status-dev',
>          help="Print the status of given device group.",
>          choices=['baseband', 'compress', 'crypto', 'dma', 'event',
> -                 'mempool', 'misc', 'net', 'regex'])
> +                 'mempool', 'misc', 'net', 'regex', 'ml'])
>      bind_group = parser.add_mutually_exclusive_group()
>      bind_group.add_argument(
>          '-b',
> @@ -758,6 +765,7 @@ def do_arg_actions():
>              get_device_details(mempool_devices)
>              get_device_details(compress_devices)
>              get_device_details(regex_devices)
> +            get_device_details(ml_devices)
>              get_device_details(misc_devices)
>          show_status()
>
> @@ -781,6 +789,7 @@ def main():
>      get_device_details(mempool_devices)
>      get_device_details(compress_devices)
>      get_device_details(regex_devices)
> +    get_device_details(ml_devices)
>      get_device_details(misc_devices)
>      do_arg_actions()
>
> --
> 2.17.1
>

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

* Re: [PATCH 1/1] usertools/devbind: add ml device class
  2023-03-14  6:31 ` Jerin Jacob
@ 2023-03-19 16:42   ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2023-03-19 16:42 UTC (permalink / raw)
  To: Srikanth Yalavarthi; +Cc: dev, sshankarnara, jerinj, Jerin Jacob

14/03/2023 07:31, Jerin Jacob:
> On Mon, Mar 13, 2023 at 10:53 PM Srikanth Yalavarthi
> <syalavarthi@marvell.com> wrote:
> >
> > Added new ML device class and support for cnxk ML device.
> >
> > Signed-off-by: Srikanth Yalavarthi <syalavarthi@marvell.com>
> 
> Acked-by: Jerin Jacob <jerinj@marvell.com>

Applied, thanks.




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

end of thread, other threads:[~2023-03-19 16:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13 17:23 [PATCH 1/1] usertools/devbind: add ml device class Srikanth Yalavarthi
2023-03-13 17:30 ` Jerin Jacob
2023-03-13 17:41   ` [EXT] " Srikanth Yalavarthi
2023-03-14  6:31 ` Jerin Jacob
2023-03-19 16:42   ` Thomas Monjalon

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).