Skip to contentSkip to conversation

uio: dfl: add HSSI subsystem feature id

PATCH Superseded Tianfei Zhang 4 participants 6 messages Apr 29, 2022 – May 5, 2022

Subsystems (3)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 uio: dfl: add HSSI subsystem feature id

From: Matthew Gerlach <[email protected]>

Add the Device Feature List (DFL) feature id for the High Speed Serial Interface (HSSI) Subsystem to the table of ids supported by the uio_dfl driver.

The HSSI Subsystem is a configurable set of IP blocks to be used as part of a Ethernet or PCS/FEC/PMA pipeline. Like the Ethernet group used by the N3000 card, the HSSI Subsystem does not fully implement a network device from a Linux netdev perspective and is controlled and monitored from user space software via the uio interface.

---
v3: change the name of this feature id to HSSI_SUBSYS and rewrite
the git message.
v2: add HSSI introduction and the git repo of Feature ID table.

---
 drivers/uio/uio_dfl.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/uio/uio_dfl.c +2 -0
index 89c0fc7b0cbc..8f39cc8bb034 100644
@@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
 }
 
 #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_HSSI_SUBSYS	0x15
 
 static const struct dfl_device_id uio_dfl_ids[] = {
 	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_HSSI_SUBSYS },
 	{ }
 };
 MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
Signature · 1 line
2.26.2
reviewer Reviewed-by on v3 1/1
#1 lore raw
Quoted 6 lines · Tianfei Zhang

From: Matthew Gerlach <[email protected]>

Add the Device Feature List (DFL) feature id for the High Speed Serial Interface (HSSI) Subsystem to the table of ids supported by the uio_dfl driver.

Quoted 6 lines

The HSSI Subsystem is a configurable set of IP blocks to be used as part of a Ethernet or PCS/FEC/PMA pipeline. Like the Ethernet group used by the N3000 card, the HSSI Subsystem does not fully implement a network device from a Linux netdev perspective and is controlled and monitored from user space software via the uio interface.

Generally you should include the url for the dfl definitions.

Can you add it here to the commit log ?

Otherwise fine.

Quoted 27 lines

---
v3: change the name of this feature id to HSSI_SUBSYS and rewrite
the git message.
v2: add HSSI introduction and the git repo of Feature ID table.

---
  drivers/uio/uio_dfl.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/uio/uio_dfl.c +2 -0
index 89c0fc7b0cbc..8f39cc8bb034 100644
@@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
  }
 
  #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_HSSI_SUBSYS	0x15
 
  static const struct dfl_device_id uio_dfl_ids[] = {
  	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_HSSI_SUBSYS },
  	{ }
  };
  MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
maintainer Acked-by
#2 lore raw
Quoted 15 lines · Tom Rix
Quoted 6 lines · Tianfei Zhang

From: Matthew Gerlach <[email protected]>

Add the Device Feature List (DFL) feature id for the High Speed Serial Interface (HSSI) Subsystem to the table of ids supported by the uio_dfl driver.

Quoted 6 lines

The HSSI Subsystem is a configurable set of IP blocks to be used as part of a Ethernet or PCS/FEC/PMA pipeline. Like the Ethernet group used by the N3000 card, the HSSI Subsystem does not fully implement a network device from a Linux netdev perspective and is controlled and monitored from user space software via the uio interface.

Quoted 3 lines

Generally you should include the url for the dfl definitions.

Can you add it here to the commit log ?

Do you refer to this url, https://github.com/OPAE/dfl-feature-id ?

Hao has some comments about this at

https://lore.kernel.org/all/DM6PR11MB38190E6EEF6DE3EB900290C585F39@DM6PR11MB3819.namprd11.prod.outlook.com/

Quoted 8 lines

Otherwise fine.

Quoted 3 lines

This patch is now good to me.

Quoted 22 lines
Quoted 22 lines

---
v3: change the name of this feature id to HSSI_SUBSYS and rewrite
the git message.
v2: add HSSI introduction and the git repo of Feature ID table.

---
  drivers/uio/uio_dfl.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/uio/uio_dfl.c +2 -0
index 89c0fc7b0cbc..8f39cc8bb034 100644
@@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
  }
  #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_HSSI_SUBSYS	0x15
  static const struct dfl_device_id uio_dfl_ids[] = {
  	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_HSSI_SUBSYS },
  	{ }
  };
  MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
reviewer
#3 lore raw
Quoted 14 lines · Xu Yilun
Quoted 13 lines · Tom Rix
Quoted 12 lines · Tianfei Zhang

From: Matthew Gerlach <[email protected]>

Add the Device Feature List (DFL) feature id for the High Speed Serial Interface (HSSI) Subsystem to the table of ids supported by the uio_dfl driver.

The HSSI Subsystem is a configurable set of IP blocks to be used as part of a Ethernet or PCS/FEC/PMA pipeline. Like the Ethernet group used by the N3000 card, the HSSI Subsystem does not fully implement a network device from a Linux netdev perspective and is controlled and monitored from user space software via the uio interface.

Quoted 4 lines
Quoted 3 lines

Generally you should include the url for the dfl definitions.

Can you add it here to the commit log ?

Do you refer to this url, https://github.com/OPAE/dfl-feature-id ?

Yes, exactly.

To someone not working the day-to-day working dfl they will have no clue where the fids come from.

When a new one is added to the kernel, it should have a listing in dfl-feature-id repo.

If it doesn't, there will be a future conflict.

Tom

Quoted 37 lines

Hao has some comments about this at

   https://lore.kernel.org/all/DM6PR11MB38190E6EEF6DE3EB900290C585F39@DM6PR11MB3819.namprd11.prod.outlook.com/
Quoted 6 lines

Otherwise fine.

Quoted 2 lines

This patch is now good to me.

Quoted 22 lines
Quoted 22 lines

---
v3: change the name of this feature id to HSSI_SUBSYS and rewrite
the git message.
v2: add HSSI introduction and the git repo of Feature ID table.

---
   drivers/uio/uio_dfl.c | 2 ++
   1 file changed, 2 insertions(+)
drivers/uio/uio_dfl.c +2 -0
index 89c0fc7b0cbc..8f39cc8bb034 100644
@@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
   }
   #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_HSSI_SUBSYS	0x15
   static const struct dfl_device_id uio_dfl_ids[] = {
   	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_HSSI_SUBSYS },
   	{ }
   };
   MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
maintainer
#4 lore raw
Quoted 23 lines · Tom Rix
Quoted 14 lines · Xu Yilun
Quoted 13 lines · Tom Rix
Quoted 12 lines · Tianfei Zhang

From: Matthew Gerlach <[email protected]>

Add the Device Feature List (DFL) feature id for the High Speed Serial Interface (HSSI) Subsystem to the table of ids supported by the uio_dfl driver.

The HSSI Subsystem is a configurable set of IP blocks to be used as part of a Ethernet or PCS/FEC/PMA pipeline. Like the Ethernet group used by the N3000 card, the HSSI Subsystem does not fully implement a network device from a Linux netdev perspective and is controlled and monitored from user space software via the uio interface.

Quoted 4 lines
Quoted 3 lines

Generally you should include the url for the dfl definitions.

Can you add it here to the commit log ?

Do you refer to this url, https://github.com/OPAE/dfl-feature-id ?

Yes, exactly.

Quoted 7 lines

To someone not working the day-to-day working dfl they will have no clue where the fids come from.

When a new one is added to the kernel, it should have a listing in dfl-feature-id repo.

If it doesn't, there will be a future conflict.

I remember a recent patch records the url in Documentation/fpga/dfl.rst. Anyway I'm OK with or without the url in commit message.

Thanks,
Yilun

Quoted 40 lines

Tom

Quoted 37 lines

Hao has some comments about this at

   https://lore.kernel.org/all/DM6PR11MB38190E6EEF6DE3EB900290C585F39@DM6PR11MB3819.namprd11.prod.outlook.com/
Quoted 6 lines

Otherwise fine.

Quoted 2 lines

This patch is now good to me.

Quoted 22 lines
Quoted 22 lines

---
v3: change the name of this feature id to HSSI_SUBSYS and rewrite
the git message.
v2: add HSSI introduction and the git repo of Feature ID table.

---
   drivers/uio/uio_dfl.c | 2 ++
   1 file changed, 2 insertions(+)
drivers/uio/uio_dfl.c +2 -0
index 89c0fc7b0cbc..8f39cc8bb034 100644
@@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
   }
   #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_HSSI_SUBSYS	0x15
   static const struct dfl_device_id uio_dfl_ids[] = {
   	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_HSSI_SUBSYS },
   	{ }
   };
   MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
#5 lore raw
Quoted 27 lines · Tom Rix
Quoted 26 lines · Xu Yilun
Quoted 14 lines · Tom Rix
Quoted 13 lines · Tianfei Zhang
Quoted 12 lines

From: Matthew Gerlach <[email protected]>

Add the Device Feature List (DFL) feature id for the High Speed Serial Interface (HSSI) Subsystem to the table of ids supported by the uio_dfl driver.

The HSSI Subsystem is a configurable set of IP blocks to be used as part of a Ethernet or PCS/FEC/PMA pipeline. Like the Ethernet group used by the N3000 card, the HSSI Subsystem does not fully implement a network device from a Linux netdev perspective and is controlled and monitored from user space software via the uio interface.

Quoted 4 lines
Quoted 3 lines

Generally you should include the url for the dfl definitions.

Can you add it here to the commit log ?

Do you refer to this url, https://github.com/OPAE/dfl-feature-id ?

Yes, exactly.

To someone not working the day-to-day working dfl they will have no clue where the fids come from.

Quoted 8 lines
Quoted 4 lines

When a new one is added to the kernel, it should have a listing in dfl-feature-id repo.

If it doesn't, there will be a future conflict.

I remember a recent patch records the url in Documentation/fpga/dfl.rst. Anyway I'm OK with or without the url in commit message.

Yes, it's better that people can find that in Documentation instead of some commit message. That's another patch from Tianfei.

Thanks
Hao

Quoted 45 lines

Thanks,
Yilun

Quoted 7 lines

Tom

Quoted 4 lines

Hao has some comments about this at

https://lore.kernel.org/all/DM6PR11MB38190E6EEF6DE3EB900290C585F39@D
M6PR11MB3819.namprd11.prod.outlook.com/

Quoted 33 lines
Quoted 33 lines
Quoted 7 lines

Otherwise fine.

Quoted 2 lines

This patch is now good to me.

Quoted 22 lines
Quoted 22 lines

---
v3: change the name of this feature id to HSSI_SUBSYS and rewrite
the git message.
v2: add HSSI introduction and the git repo of Feature ID table.

---
   drivers/uio/uio_dfl.c | 2 ++
   1 file changed, 2 insertions(+)
drivers/uio/uio_dfl.c +2 -0
index 89c0fc7b0cbc..8f39cc8bb034 100644
@@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
   }
   #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_HSSI_SUBSYS	0x15
   static const struct dfl_device_id uio_dfl_ids[] = {
   	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_HSSI_SUBSYS },
   	{ }
   };
   MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);