devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/fsl: Add FMan best effort port compatible
@ 2015-05-18  8:41 Igal.Liberman
       [not found] ` <1431938519-11343-1-git-send-email-igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Igal.Liberman @ 2015-05-18  8:41 UTC (permalink / raw)
  To: devicetree, linuxppc-dev; +Cc: scottwood, Igal Liberman, madalin.bucur

From: Igal Liberman <igal.liberman@freescale.com>

This patch adds a compatible which represents FMan V3 best effort ports.
FMan best effort port is configured as 10G ports, however, it uses 1G
hardware.

Signed-off-by: Igal Liberman <igal.liberman@freescale.com>
---
 .../devicetree/bindings/powerpc/fsl/fman.txt       |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
index edda55f..c2e3ec3 100644
--- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
+++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
@@ -166,6 +166,11 @@ PROPERTIES
 			- "fsl,fman-v3-port-oh" for FManV3 OH ports
 			- "fsl,fman-v3-port-rx" for FManV3 RX ports
 			- "fsl,fman-v3-port-tx" for FManV3 TX ports
+		Optional compatible which can be used in addition to the
+		compatibles above is:
+			- "fsl,fman-v3-best-effort-port"
+		This compatible represents 10G best effort ports:
+			Port configured as 10G, using 1G hardware.
 
 - cell-index
 		Usage: required
-- 
1.7.9.5

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

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

* Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible
       [not found] ` <1431938519-11343-1-git-send-email-igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2015-05-18 21:09   ` Scott Wood
       [not found]     ` <1431983358.27761.11.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Wood @ 2015-05-18 21:09 UTC (permalink / raw)
  To: igal.liberman-KZfg59tc24xl57MIdRCFDg
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ,
	madalin.bucur-KZfg59tc24xl57MIdRCFDg

On Mon, 2015-05-18 at 11:41 +0300, Igal.Liberman wrote:
> From: Igal Liberman <igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> 
> This patch adds a compatible which represents FMan V3 best effort ports.
> FMan best effort port is configured as 10G ports, however, it uses 1G
> hardware.
> 
> Signed-off-by: Igal Liberman <igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
> ---
>  .../devicetree/bindings/powerpc/fsl/fman.txt       |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> index edda55f..c2e3ec3 100644
> --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> @@ -166,6 +166,11 @@ PROPERTIES
>  			- "fsl,fman-v3-port-oh" for FManV3 OH ports
>  			- "fsl,fman-v3-port-rx" for FManV3 RX ports
>  			- "fsl,fman-v3-port-tx" for FManV3 TX ports
> +		Optional compatible which can be used in addition to the
> +		compatibles above is:
> +			- "fsl,fman-v3-best-effort-port"
> +		This compatible represents 10G best effort ports:
> +			Port configured as 10G, using 1G hardware.

What does this mean?  If it's using 1G hardware then it's a 1G port,
right?  How can you configure a 1G port to be 10G?

Why is this compatible in addition to others (note that this implies
such ports are 100% backwards compatible with hardware that lacks the
new compatible)?  You'd have the same compatible on rx and tx nodes (I'm
assuming this isn't applicable to oh)?

What are the implications of this that warrant adding a compatible?

-Scott


--
To unsubscribe from this list: send the line "unsubscribe devicetree" 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] 5+ messages in thread

* RE: [PATCH] powerpc/fsl: Add FMan best effort port compatible
       [not found]     ` <1431983358.27761.11.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2015-05-19  9:27       ` Liberman Igal
       [not found]         ` <DM2PR03MB383ED154B2D6379219C60E8E6C30-ufbTtyGzTTRJonC5hhDUuuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Liberman Igal @ 2015-05-19  9:27 UTC (permalink / raw)
  To: Scott Wood
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Madalin-Cristian Bucur

Hi Scott,
I understand your point, let me please explain more about the hardware configuration and suggest another solution.
I'm referring only to external ports (TX/RX), not OP.
In FMan V3 we have maximum of 8 Port, it depends on the FMan revision (in B4, T2, T4 we have 8 ports, in T1024 and T1040 we have 4).
The following configuration are valid:
	- All 8 ports can work as 1G ports. 
	- Ports 7, 8 (if available) can work as 10G (with full hardware resources).
	- Port 1, 2 (1 in T1024; 1, 2 in T2080) can be configured as 10G (with limited hardware resources).

Currently we use only "fsl,fm-v3-port-rx/tx".

We can go 2 ways:
1. Having 2 compatibles:
	"fsl,fman-v3-port-rx/tx"
	"fsl,fman-v3-best-effort-port-rx/tx"

	The driver can determine the port type of "fsl,fman-v3-port-rx/tx" by reading the HW port id.
	"fsl,fman-v3-best-effort-port-rx/tx" will let the driver know about the best effort port and it will be used instead of "fsl,fman-v3-port-rx/tx".

In your opinion, should we add "fsl,fman-v3-10g-port-rx/tx" for 10G (with full hardware resources)?
In such chase, "fsl,fman-v3-port-rx/tx" will denote 1G explicitly.

In FMan V2, dual ports/MACs are not available, so no need change the compatibles.

Igal

> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Tuesday, May 19, 2015 12:09 AM
> To: Liberman Igal-B31950
> Cc: devicetree@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Bucur
> Madalin-Cristian-B32716
> Subject: Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible
> 
> On Mon, 2015-05-18 at 11:41 +0300, Igal.Liberman wrote:
> > From: Igal Liberman <igal.liberman@freescale.com>
> >
> > This patch adds a compatible which represents FMan V3 best effort ports.
> > FMan best effort port is configured as 10G ports, however, it uses 1G
> > hardware.
> >
> > Signed-off-by: Igal Liberman <igal.liberman@freescale.com>
> > ---
> >  .../devicetree/bindings/powerpc/fsl/fman.txt       |    5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> > b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> > index edda55f..c2e3ec3 100644
> > --- a/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> > +++ b/Documentation/devicetree/bindings/powerpc/fsl/fman.txt
> > @@ -166,6 +166,11 @@ PROPERTIES
> >  			- "fsl,fman-v3-port-oh" for FManV3 OH ports
> >  			- "fsl,fman-v3-port-rx" for FManV3 RX ports
> >  			- "fsl,fman-v3-port-tx" for FManV3 TX ports
> > +		Optional compatible which can be used in addition to the
> > +		compatibles above is:
> > +			- "fsl,fman-v3-best-effort-port"
> > +		This compatible represents 10G best effort ports:
> > +			Port configured as 10G, using 1G hardware.
> 
> What does this mean?  If it's using 1G hardware then it's a 1G port, right?
> How can you configure a 1G port to be 10G?
> 
> Why is this compatible in addition to others (note that this implies such ports
> are 100% backwards compatible with hardware that lacks the new
> compatible)?  You'd have the same compatible on rx and tx nodes (I'm
> assuming this isn't applicable to oh)?
> 
> What are the implications of this that warrant adding a compatible?
> 
> -Scott
> 


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

* Re: [PATCH] powerpc/fsl: Add FMan best effort port compatible
       [not found]         ` <DM2PR03MB383ED154B2D6379219C60E8E6C30-ufbTtyGzTTRJonC5hhDUuuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
@ 2015-05-21  3:04           ` Scott Wood
       [not found]             ` <1432177461.27761.196.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Scott Wood @ 2015-05-21  3:04 UTC (permalink / raw)
  To: Liberman Igal-B31950
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	Bucur Madalin-Cristian-B32716

On Tue, 2015-05-19 at 04:27 -0500, Liberman Igal-B31950 wrote:
> Hi Scott,
> I understand your point, let me please explain more about the hardware configuration and suggest another solution.
> I'm referring only to external ports (TX/RX), not OP.
> In FMan V3 we have maximum of 8 Port, it depends on the FMan revision (in B4, T2, T4 we have 8 ports, in T1024 and T1040 we have 4).
> The following configuration are valid:
> 	- All 8 ports can work as 1G ports. 
> 	- Ports 7, 8 (if available) can work as 10G (with full hardware resources).
> 	- Port 1, 2 (1 in T1024; 1, 2 in T2080) can be configured as 10G (with limited hardware resources).
> Currently we use only "fsl,fm-v3-port-rx/tx".
> 
> We can go 2 ways:
> 1. Having 2 compatibles:
> 	"fsl,fman-v3-port-rx/tx"
> 	"fsl,fman-v3-best-effort-port-rx/tx"
> 
> 	The driver can determine the port type of "fsl,fman-v3-port-rx/tx" by reading the HW port id.
> 	"fsl,fman-v3-best-effort-port-rx/tx" will let the driver know about the best effort port and it will be used instead of "fsl,fman-v3-port-rx/tx".
> 
> In your opinion, should we add "fsl,fman-v3-10g-port-rx/tx" for 10G (with full hardware resources)?
> In such chase, "fsl,fman-v3-port-rx/tx" will denote 1G explicitly.
> 
> In FMan V2, dual ports/MACs are not available, so no need change the compatibles.

The compatible string should describe what programming interface is
present.  Other information should be in other properties.  Having the
same compatible for tx and rx definitely seems wrong.

-Scott


--
To unsubscribe from this list: send the line "unsubscribe devicetree" 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] 5+ messages in thread

* RE: [PATCH] powerpc/fsl: Add FMan best effort port compatible
       [not found]             ` <1432177461.27761.196.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2015-05-21  8:16               ` Madalin-Cristian Bucur
  0 siblings, 0 replies; 5+ messages in thread
From: Madalin-Cristian Bucur @ 2015-05-21  8:16 UTC (permalink / raw)
  To: Scott Wood, Liberman Igal
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1409 bytes --]



> -----Original Message-----
> From: Wood Scott-B07421
> 
> The compatible string should describe what programming interface is
> present.  Other information should be in other properties.  Having the
> same compatible for tx and rx definitely seems wrong.
> 
> -Scott
> 

Hi Scott, what we tried to accomplish here is to avoid updating u-boot for this new compatible and have minimal additions to the binding document.

We currently know that:

"fsl,fman-v3-port-rx"  is an Rx port that can work in 1G mode
"fsl,fman-v3-port-tx"  is an Tx port that can work in 1G mode

We proposed adding a new optional compatible "fsl,fman-v3-best-effort-port"  such that:

"fsl,fman-v3-port-rx"  is an Rx port that can work in 1G mode
"fsl,fman-v3-port-tx"  is an Tx port that can work in 1G mode

"fsl,fman-v3-port-rx", "fsl,fman-v3-best-effort-port"  is an Rx port that can work in 1G mode and also in limited resourced 10G mode
"fsl,fman-v3-port-tx", "fsl,fman-v3-best-effort-port"  is an Tx port that can work in 1G mode and also in limited resourced 10G mode

The only code addition required is in the Linux driver, code that checks for the optional, supplemental parameter "fsl,fman-v3-best-effort-port" to change some resource allocations.

Madalin
N‹§²æìr¸›yúèšØb²X¬¶Ç§vØ^–)Þº{.nÇ+‰·zøœzÚÞz)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢j.ïÛ°\½½MŽúgjÌæa×\x02››–' ™©Þ¢¸\f¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾\a«‘êçzZ+ƒùšŽŠÝ¢j"ú!¶i

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

end of thread, other threads:[~2015-05-21  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18  8:41 [PATCH] powerpc/fsl: Add FMan best effort port compatible Igal.Liberman
     [not found] ` <1431938519-11343-1-git-send-email-igal.liberman-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-05-18 21:09   ` Scott Wood
     [not found]     ` <1431983358.27761.11.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-05-19  9:27       ` Liberman Igal
     [not found]         ` <DM2PR03MB383ED154B2D6379219C60E8E6C30-ufbTtyGzTTRJonC5hhDUuuO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2015-05-21  3:04           ` Scott Wood
     [not found]             ` <1432177461.27761.196.camel-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-05-21  8:16               ` Madalin-Cristian Bucur

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