AnsweredAssumed Answered

LX2160A: DPDMUX questions

Question asked by Paul Hoffmann on Mar 18, 2020

I'm working with a LX2160A RDB trying to use a DPDMUX. I'm using LSDK 19.09.

I've tried 2 things which can't get to work with a DPDMUX:

1. Connecting 2 DPDMUXes together (an uplink of 1 DPDMUX to one of the non-uplink interfaces on a different DPDMUX). I've seen several diagrams, so I believe this should be possible.

2. Using a DPDMUX with 14 interfaces. I see weird behavior past 9 or 10 interfaces, when I try to add a DPNI to the DPMUX.

 

I've shown an example session below, illustrating both these issues:

 

COMMAND> ls-addmux --num-ifs=2 dpmac.3
[ 4297.112643] iommu: Adding device dpmcp.38 to group 0
[ 4297.517968] iommu: Adding device dpdmux.2 to group 0
[ 4297.523487] dpaa2_evb dpdmux.2: Linked as a consumer to dpmcp.8
[ 4297.599852] dpaa2_evb dpdmux.2: probed evb device with 2 ports
Created EVB: evb0 (object: dpdmux.2, uplink: dpmac.3)
Do not forget to connect devices to downlink(s).

 

COMMAND> ls-addmux --num-ifs=2 dpmac.4
[ 4364.484897] iommu: Adding device dpmcp.39 to group 0
[ 4364.906712] iommu: Adding device dpdmux.3 to group 0
[ 4364.912233] dpaa2_evb dpdmux.3: Linked as a consumer to dpmcp.7
[ 4364.996543] dpaa2_evb dpdmux.3: probed evb device with 2 ports
Created EVB: evb1 (object: dpdmux.3, uplink: dpmac.4)
Do not forget to connect devices to downlink(s).

 

COMMAND> restool dprc disconnect dprc.1 --endpoint=dpmac.4

COMMAND> restool dprc connect dprc.1 --endpoint1=dpdmux.2.0 --endpoint2=dpdmux.3.1
MC error: Configuration error (status 0x6)

# Question: Why doesn't this work? How can I connect 1 dpmux to another?

 

COMMAND> ls-addni dpdmux.2.1
# works fine

 

COMMAND> ls-addmux --num-ifs=14 dpmac.4
[ 4739.510197] iommu: Adding device dpmcp.41 to group 0
[ 4740.079935] iommu: Adding device dpdmux.4 to group 0
[ 4740.085494] dpaa2_evb dpdmux.4: Linked as a consumer to dpmcp.5
[ 4740.397492] dpaa2_evb dpdmux.4: probed evb device with 14 ports
Created EVB: evb2 (object: dpdmux.4, uplink: dpmac.4)
Do not forget to connect devices to downlink(s).

 

COMMAND> ls-addni dpdmux.4.1
dpdmux.4.1 is already linked to none
none
none
none
none
none

# Question: Something seems wrong here given the output. Is it possible to have a dpdmux with 14 connections?

Outcomes