diff mbox series

[v1] uio: dfl: add HSSI feature id

Message ID 20220308064315.1452217-1-tianfei.zhang@intel.com (mailing list archive)
State New
Headers show
Series [v1] uio: dfl: add HSSI feature id | expand

Commit Message

Zhang, Tianfei March 8, 2022, 6:43 a.m. UTC
From: Matthew Gerlach <matthew.gerlach@linux.intel.com>

Add the feature id of the OFS High Speed Serial Interface
subsystem to table of ids supported by the uio_dfl driver.

Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
---
 drivers/uio/uio_dfl.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Russ Weight March 10, 2022, 7:33 p.m. UTC | #1
On 3/7/22 22:43, Tianfei Zhang wrote:
> From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
>
> Add the feature id of the OFS High Speed Serial Interface
> subsystem to table of ids supported by the uio_dfl driver.
>
> Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>

Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> ---
>  drivers/uio/uio_dfl.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c
> index 89c0fc7b0cbc..660e1d0bf6b9 100644
> --- a/drivers/uio/uio_dfl.c
> +++ b/drivers/uio/uio_dfl.c
> @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
>  }
>  
>  #define FME_FEATURE_ID_ETH_GROUP	0x10
> +#define FME_FEATURE_ID_OFS_HSSI		0x15
>  
>  static const struct dfl_device_id uio_dfl_ids[] = {
>  	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
> +	{ FME_ID, FME_FEATURE_ID_OFS_HSSI },
>  	{ }
>  };
>  MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
Wu, Hao March 11, 2022, 2:46 a.m. UTC | #2
> On 3/7/22 22:43, Tianfei Zhang wrote:
> > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> >
> > Add the feature id of the OFS High Speed Serial Interface
> > subsystem to table of ids supported by the uio_dfl driver.
> >
> > Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> 
> Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > ---
> >  drivers/uio/uio_dfl.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c
> > index 89c0fc7b0cbc..660e1d0bf6b9 100644
> > --- a/drivers/uio/uio_dfl.c
> > +++ b/drivers/uio/uio_dfl.c
> > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
> >  }
> >
> >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > +#define FME_FEATURE_ID_OFS_HSSI		0x15

Where is the "OFS" coming from? is it for all OFS device or a specific card?
Anyway, could we have a matched name per public table?
https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature-ids.rst

Hao

> >
> >  static const struct dfl_device_id uio_dfl_ids[] = {
> >  	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
> > +	{ FME_ID, FME_FEATURE_ID_OFS_HSSI },
> >  	{ }
> >  };
> >  MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
Zhang, Tianfei March 11, 2022, 6:14 a.m. UTC | #3
> -----Original Message-----
> From: Wu, Hao <hao.wu@intel.com>
> Sent: Friday, March 11, 2022 10:47 AM
> To: Weight, Russell H <russell.h.weight@intel.com>; Zhang, Tianfei
> <tianfei.zhang@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> fpga@vger.kernel.org; gregkh@linuxfoundation.org
> Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> <matthew.gerlach@linux.intel.com>
> Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> 
> > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > >
> > > Add the feature id of the OFS High Speed Serial Interface subsystem
> > > to table of ids supported by the uio_dfl driver.
> > >
> > > Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> >
> > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > ---
> > >  drivers/uio/uio_dfl.c | 2 ++
> > >  1 file changed, 2 insertions(+)
> > >
> > > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c index
> > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > --- a/drivers/uio/uio_dfl.c
> > > +++ b/drivers/uio/uio_dfl.c
> > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
> > > }
> > >
> > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> 
> Where is the "OFS" coming from? is it for all OFS device or a specific card?
> Anyway, could we have a matched name per public table?
> https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature-ids.rst

Yes, I think a matched name of public table will be better. How about the " FME_FEATURE_ID_HSSI"?

> 
> Hao
> 
> > >
> > >  static const struct dfl_device_id uio_dfl_ids[] = {
> > >  	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
> > > +	{ FME_ID, FME_FEATURE_ID_OFS_HSSI },
> > >  	{ }
> > >  };
> > >  MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
Wu, Hao March 14, 2022, 3:08 a.m. UTC | #4
> > -----Original Message-----
> > From: Wu, Hao <hao.wu@intel.com>
> > Sent: Friday, March 11, 2022 10:47 AM
> > To: Weight, Russell H <russell.h.weight@intel.com>; Zhang, Tianfei
> > <tianfei.zhang@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> > fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > <matthew.gerlach@linux.intel.com>
> > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> >
> > > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > >
> > > > Add the feature id of the OFS High Speed Serial Interface subsystem
> > > > to table of ids supported by the uio_dfl driver.
> > > >
> > > > Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > >
> > > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > > ---
> > > >  drivers/uio/uio_dfl.c | 2 ++
> > > >  1 file changed, 2 insertions(+)
> > > >
> > > > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c index
> > > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > > --- a/drivers/uio/uio_dfl.c
> > > > +++ b/drivers/uio/uio_dfl.c
> > > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev)
> > > > }
> > > >
> > > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> >
> > Where is the "OFS" coming from? is it for all OFS device or a specific card?
> > Anyway, could we have a matched name per public table?
> > https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature-ids.rst
> 
> Yes, I think a matched name of public table will be better. How about the "
> FME_FEATURE_ID_HSSI"?

No. We already have the same name for id 0x6 defined in drivers/fpga/dfl.h
#define FME_FEATURE_ID_HSSI		0x6

Need a new matched name.

Hao

> 
> >
> > Hao
> >
> > > >
> > > >  static const struct dfl_device_id uio_dfl_ids[] = {
> > > >  	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
> > > > +	{ FME_ID, FME_FEATURE_ID_OFS_HSSI },
> > > >  	{ }
> > > >  };
> > > >  MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);
Zhang, Tianfei March 14, 2022, 9:45 a.m. UTC | #5
> -----Original Message-----
> From: Wu, Hao <hao.wu@intel.com>
> Sent: Monday, March 14, 2022 11:09 AM
> To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> fpga@vger.kernel.org; gregkh@linuxfoundation.org
> Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> <matthew.gerlach@linux.intel.com>
> Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> 
> > > -----Original Message-----
> > > From: Wu, Hao <hao.wu@intel.com>
> > > Sent: Friday, March 11, 2022 10:47 AM
> > > To: Weight, Russell H <russell.h.weight@intel.com>; Zhang, Tianfei
> > > <tianfei.zhang@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> > > fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > <matthew.gerlach@linux.intel.com>
> > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > >
> > > > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > >
> > > > > Add the feature id of the OFS High Speed Serial Interface
> > > > > subsystem to table of ids supported by the uio_dfl driver.
> > > > >
> > > > > Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > > >
> > > > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > > > ---
> > > > >  drivers/uio/uio_dfl.c | 2 ++
> > > > >  1 file changed, 2 insertions(+)
> > > > >
> > > > > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c index
> > > > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > > > --- a/drivers/uio/uio_dfl.c
> > > > > +++ b/drivers/uio/uio_dfl.c
> > > > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device
> > > > > *ddev) }
> > > > >
> > > > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> > >
> > > Where is the "OFS" coming from? is it for all OFS device or a specific card?
> > > Anyway, could we have a matched name per public table?
> > > https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature
> > > -ids.rst
> >
> > Yes, I think a matched name of public table will be better. How about the "
> > FME_FEATURE_ID_HSSI"?
> 
> No. We already have the same name for id 0x6 defined in drivers/fpga/dfl.h
> #define FME_FEATURE_ID_HSSI		0x6

Is it possible change the "FME_FEATURE_ID_HSSI" to " FME_FEATURE_ID_LEGACY_HSSI", and the new one is " FME_FEATURE_ID_HSSI"?
Wu, Hao March 15, 2022, 9:32 a.m. UTC | #6
> > -----Original Message-----
> > From: Wu, Hao <hao.wu@intel.com>
> > Sent: Monday, March 14, 2022 11:09 AM
> > To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> > <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> > fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > <matthew.gerlach@linux.intel.com>
> > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> >
> > > > -----Original Message-----
> > > > From: Wu, Hao <hao.wu@intel.com>
> > > > Sent: Friday, March 11, 2022 10:47 AM
> > > > To: Weight, Russell H <russell.h.weight@intel.com>; Zhang, Tianfei
> > > > <tianfei.zhang@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> > > > fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > > <matthew.gerlach@linux.intel.com>
> > > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > > >
> > > > > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > > > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > > >
> > > > > > Add the feature id of the OFS High Speed Serial Interface
> > > > > > subsystem to table of ids supported by the uio_dfl driver.
> > > > > >
> > > > > > Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > > > >
> > > > > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > > > > ---
> > > > > >  drivers/uio/uio_dfl.c | 2 ++
> > > > > >  1 file changed, 2 insertions(+)
> > > > > >
> > > > > > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c index
> > > > > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > > > > --- a/drivers/uio/uio_dfl.c
> > > > > > +++ b/drivers/uio/uio_dfl.c
> > > > > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device
> > > > > > *ddev) }
> > > > > >
> > > > > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > > > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> > > >
> > > > Where is the "OFS" coming from? is it for all OFS device or a specific card?
> > > > Anyway, could we have a matched name per public table?
> > > > https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature
> > > > -ids.rst
> > >
> > > Yes, I think a matched name of public table will be better. How about the "
> > > FME_FEATURE_ID_HSSI"?
> >
> > No. We already have the same name for id 0x6 defined in drivers/fpga/dfl.h
> > #define FME_FEATURE_ID_HSSI		0x6
> 
> Is it possible change the "FME_FEATURE_ID_HSSI" to "
> FME_FEATURE_ID_LEGACY_HSSI", and the new one is "
> FME_FEATURE_ID_HSSI"?

I am not sure who owns the ID allocation table, and why
0x6 is changed to "Legacy" HSSI but I feel it's better to
have a specific prefix for this HSSI instead, I hope we don't
have to change this 0x15 HSSI to another legacy one when
someone adds a new HSSI. This is for FPGA, everybody
could implement his own HSSI, generic name should 
be avoid when possible, and a better rule when managing
the feature IDs.

>
Zhang, Tianfei March 15, 2022, 10:18 a.m. UTC | #7
> -----Original Message-----
> From: Wu, Hao <hao.wu@intel.com>
> Sent: Tuesday, March 15, 2022 5:32 PM
> To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> fpga@vger.kernel.org; gregkh@linuxfoundation.org
> Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> <matthew.gerlach@linux.intel.com>
> Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> 
> > > -----Original Message-----
> > > From: Wu, Hao <hao.wu@intel.com>
> > > Sent: Monday, March 14, 2022 11:09 AM
> > > To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> > > <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org;
> > > linux- fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > <matthew.gerlach@linux.intel.com>
> > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > >
> > > > > -----Original Message-----
> > > > > From: Wu, Hao <hao.wu@intel.com>
> > > > > Sent: Friday, March 11, 2022 10:47 AM
> > > > > To: Weight, Russell H <russell.h.weight@intel.com>; Zhang,
> > > > > Tianfei <tianfei.zhang@intel.com>; trix@redhat.com;
> > > > > mdf@kernel.org; linux- fpga@vger.kernel.org;
> > > > > gregkh@linuxfoundation.org
> > > > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > > > <matthew.gerlach@linux.intel.com>
> > > > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > > > >
> > > > > > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > > > > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > > > >
> > > > > > > Add the feature id of the OFS High Speed Serial Interface
> > > > > > > subsystem to table of ids supported by the uio_dfl driver.
> > > > > > >
> > > > > > > Signed-off-by: Matthew Gerlach
> > > > > > > <matthew.gerlach@linux.intel.com>
> > > > > > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > > > > >
> > > > > > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > > > > > ---
> > > > > > >  drivers/uio/uio_dfl.c | 2 ++
> > > > > > >  1 file changed, 2 insertions(+)
> > > > > > >
> > > > > > > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c
> > > > > > > index
> > > > > > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > > > > > --- a/drivers/uio/uio_dfl.c
> > > > > > > +++ b/drivers/uio/uio_dfl.c
> > > > > > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct
> > > > > > > dfl_device
> > > > > > > *ddev) }
> > > > > > >
> > > > > > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > > > > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> > > > >
> > > > > Where is the "OFS" coming from? is it for all OFS device or a specific
> card?
> > > > > Anyway, could we have a matched name per public table?
> > > > > https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-fea
> > > > > ture
> > > > > -ids.rst
> > > >
> > > > Yes, I think a matched name of public table will be better. How about the "
> > > > FME_FEATURE_ID_HSSI"?
> > >
> > > No. We already have the same name for id 0x6 defined in drivers/fpga/dfl.h
> > > #define FME_FEATURE_ID_HSSI		0x6
> >
> > Is it possible change the "FME_FEATURE_ID_HSSI" to "
> > FME_FEATURE_ID_LEGACY_HSSI", and the new one is "
> > FME_FEATURE_ID_HSSI"?
> 
> I am not sure who owns the ID allocation table, and why
> 0x6 is changed to "Legacy" HSSI but I feel it's better to have a specific prefix for
> this HSSI instead, I hope we don't have to change this 0x15 HSSI to another
> legacy one when someone adds a new HSSI. This is for FPGA, everybody could
> implement his own HSSI, generic name should be avoid when possible, and a
> better rule when managing the feature IDs.

Yes, I think this HSSI was designed for OFS, using "OFS" as prefix is better.

> 
> >
Wu, Hao March 17, 2022, 12:41 a.m. UTC | #8
> > -----Original Message-----
> > From: Wu, Hao <hao.wu@intel.com>
> > Sent: Tuesday, March 15, 2022 5:32 PM
> > To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> > <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> > fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > <matthew.gerlach@linux.intel.com>
> > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> >
> > > > -----Original Message-----
> > > > From: Wu, Hao <hao.wu@intel.com>
> > > > Sent: Monday, March 14, 2022 11:09 AM
> > > > To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> > > > <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org;
> > > > linux- fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > > <matthew.gerlach@linux.intel.com>
> > > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > > >
> > > > > > -----Original Message-----
> > > > > > From: Wu, Hao <hao.wu@intel.com>
> > > > > > Sent: Friday, March 11, 2022 10:47 AM
> > > > > > To: Weight, Russell H <russell.h.weight@intel.com>; Zhang,
> > > > > > Tianfei <tianfei.zhang@intel.com>; trix@redhat.com;
> > > > > > mdf@kernel.org; linux- fpga@vger.kernel.org;
> > > > > > gregkh@linuxfoundation.org
> > > > > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > > > > <matthew.gerlach@linux.intel.com>
> > > > > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > > > > >
> > > > > > > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > > > > > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > > > > >
> > > > > > > > Add the feature id of the OFS High Speed Serial Interface
> > > > > > > > subsystem to table of ids supported by the uio_dfl driver.
> > > > > > > >
> > > > > > > > Signed-off-by: Matthew Gerlach
> > > > > > > > <matthew.gerlach@linux.intel.com>
> > > > > > > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > > > > > >
> > > > > > > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > > > > > > ---
> > > > > > > >  drivers/uio/uio_dfl.c | 2 ++
> > > > > > > >  1 file changed, 2 insertions(+)
> > > > > > > >
> > > > > > > > diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c
> > > > > > > > index
> > > > > > > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > > > > > > --- a/drivers/uio/uio_dfl.c
> > > > > > > > +++ b/drivers/uio/uio_dfl.c
> > > > > > > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct
> > > > > > > > dfl_device
> > > > > > > > *ddev) }
> > > > > > > >
> > > > > > > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > > > > > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> > > > > >
> > > > > > Where is the "OFS" coming from? is it for all OFS device or a specific
> > card?
> > > > > > Anyway, could we have a matched name per public table?
> > > > > > https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-fea
> > > > > > ture
> > > > > > -ids.rst
> > > > >
> > > > > Yes, I think a matched name of public table will be better. How about the
> "
> > > > > FME_FEATURE_ID_HSSI"?
> > > >
> > > > No. We already have the same name for id 0x6 defined in
> drivers/fpga/dfl.h
> > > > #define FME_FEATURE_ID_HSSI		0x6
> > >
> > > Is it possible change the "FME_FEATURE_ID_HSSI" to "
> > > FME_FEATURE_ID_LEGACY_HSSI", and the new one is "
> > > FME_FEATURE_ID_HSSI"?
> >
> > I am not sure who owns the ID allocation table, and why
> > 0x6 is changed to "Legacy" HSSI but I feel it's better to have a specific prefix
> for
> > this HSSI instead, I hope we don't have to change this 0x15 HSSI to another
> > legacy one when someone adds a new HSSI. This is for FPGA, everybody could
> > implement his own HSSI, generic name should be avoid when possible, and a
> > better rule when managing the feature IDs.
> 
> Yes, I think this HSSI was designed for OFS, using "OFS" as prefix is better.

Then change the name in 
https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature-ids.rst
as well.

Hao

> 
> >
> > >
Zhang, Tianfei March 30, 2022, 6:59 a.m. UTC | #9
> -----Original Message-----
> From: Wu, Hao <hao.wu@intel.com>
> Sent: Thursday, March 17, 2022 8:42 AM
> To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org; linux-
> fpga@vger.kernel.org; gregkh@linuxfoundation.org
> Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> <matthew.gerlach@linux.intel.com>
> Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> 
> > > -----Original Message-----
> > > From: Wu, Hao <hao.wu@intel.com>
> > > Sent: Tuesday, March 15, 2022 5:32 PM
> > > To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> > > <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org;
> > > linux- fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > <matthew.gerlach@linux.intel.com>
> > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > >
> > > > > -----Original Message-----
> > > > > From: Wu, Hao <hao.wu@intel.com>
> > > > > Sent: Monday, March 14, 2022 11:09 AM
> > > > > To: Zhang, Tianfei <tianfei.zhang@intel.com>; Weight, Russell H
> > > > > <russell.h.weight@intel.com>; trix@redhat.com; mdf@kernel.org;
> > > > > linux- fpga@vger.kernel.org; gregkh@linuxfoundation.org
> > > > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > > > <matthew.gerlach@linux.intel.com>
> > > > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Wu, Hao <hao.wu@intel.com>
> > > > > > > Sent: Friday, March 11, 2022 10:47 AM
> > > > > > > To: Weight, Russell H <russell.h.weight@intel.com>; Zhang,
> > > > > > > Tianfei <tianfei.zhang@intel.com>; trix@redhat.com;
> > > > > > > mdf@kernel.org; linux- fpga@vger.kernel.org;
> > > > > > > gregkh@linuxfoundation.org
> > > > > > > Cc: Xu, Yilun <yilun.xu@intel.com>; Matthew Gerlach
> > > > > > > <matthew.gerlach@linux.intel.com>
> > > > > > > Subject: RE: [PATCH v1] uio: dfl: add HSSI feature id
> > > > > > >
> > > > > > > > On 3/7/22 22:43, Tianfei Zhang wrote:
> > > > > > > > > From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> > > > > > > > >
> > > > > > > > > Add the feature id of the OFS High Speed Serial
> > > > > > > > > Interface subsystem to table of ids supported by the uio_dfl
> driver.
> > > > > > > > >
> > > > > > > > > Signed-off-by: Matthew Gerlach
> > > > > > > > > <matthew.gerlach@linux.intel.com>
> > > > > > > > > Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > > > > > > >
> > > > > > > > Reviewed-by: Russ Weight <russell.h.weight@intel.com>
> > > > > > > > > ---
> > > > > > > > >  drivers/uio/uio_dfl.c | 2 ++
> > > > > > > > >  1 file changed, 2 insertions(+)
> > > > > > > > >
> > > > > > > > > diff --git a/drivers/uio/uio_dfl.c
> > > > > > > > > b/drivers/uio/uio_dfl.c index
> > > > > > > > > 89c0fc7b0cbc..660e1d0bf6b9 100644
> > > > > > > > > --- a/drivers/uio/uio_dfl.c
> > > > > > > > > +++ b/drivers/uio/uio_dfl.c
> > > > > > > > > @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct
> > > > > > > > > dfl_device
> > > > > > > > > *ddev) }
> > > > > > > > >
> > > > > > > > >  #define FME_FEATURE_ID_ETH_GROUP	0x10
> > > > > > > > > +#define FME_FEATURE_ID_OFS_HSSI		0x15
> > > > > > >
> > > > > > > Where is the "OFS" coming from? is it for all OFS device or
> > > > > > > a specific
> > > card?
> > > > > > > Anyway, could we have a matched name per public table?
> > > > > > > https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl
> > > > > > > -fea
> > > > > > > ture
> > > > > > > -ids.rst
> > > > > >
> > > > > > Yes, I think a matched name of public table will be better.
> > > > > > How about the
> > "
> > > > > > FME_FEATURE_ID_HSSI"?
> > > > >
> > > > > No. We already have the same name for id 0x6 defined in
> > drivers/fpga/dfl.h
> > > > > #define FME_FEATURE_ID_HSSI		0x6
> > > >
> > > > Is it possible change the "FME_FEATURE_ID_HSSI" to "
> > > > FME_FEATURE_ID_LEGACY_HSSI", and the new one is "
> > > > FME_FEATURE_ID_HSSI"?
> > >
> > > I am not sure who owns the ID allocation table, and why
> > > 0x6 is changed to "Legacy" HSSI but I feel it's better to have a
> > > specific prefix
> > for
> > > this HSSI instead, I hope we don't have to change this 0x15 HSSI to
> > > another legacy one when someone adds a new HSSI. This is for FPGA,
> > > everybody could implement his own HSSI, generic name should be avoid
> > > when possible, and a better rule when managing the feature IDs.
> >
> > Yes, I think this HSSI was designed for OFS, using "OFS" as prefix is better.
> 
> Then change the name in
> https://github.com/OPAE/linux-dfl-feature-id/blob/master/dfl-feature-ids.rst
> as well.

Thanks Hao's comment, it has changed to " OFS HSSI Subsystem" in this git repo.
diff mbox series

Patch

diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c
index 89c0fc7b0cbc..660e1d0bf6b9 100644
--- a/drivers/uio/uio_dfl.c
+++ b/drivers/uio/uio_dfl.c
@@ -45,9 +45,11 @@  static int uio_dfl_probe(struct dfl_device *ddev)
 }
 
 #define FME_FEATURE_ID_ETH_GROUP	0x10
+#define FME_FEATURE_ID_OFS_HSSI		0x15
 
 static const struct dfl_device_id uio_dfl_ids[] = {
 	{ FME_ID, FME_FEATURE_ID_ETH_GROUP },
+	{ FME_ID, FME_FEATURE_ID_OFS_HSSI },
 	{ }
 };
 MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);