arm64: dts: imx8mp-evk: configure multiple queues on eqos
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>
Thu, 16 Dec 2021 09:24:48 +0000 (17:24 +0800)
committerShawn Guo <shawnguo@kernel.org>
Thu, 16 Dec 2021 10:14:25 +0000 (18:14 +0800)
commit0bc3e333a0c82ee8691bcfdf441644ce02bd8be0
tree5c6c11b71f311181490a8d4d3f747ad520df19d2
parente426d63e752bdbe7d5ba2d872319dde9ab844a07
arm64: dts: imx8mp-evk: configure multiple queues on eqos

Eqos ethernet support five queues on hardware, enable these queues and
configure the priority of each queue. Uses Strict Priority as scheduling
algorithms to ensure that the TSN function works.

The priority of each queue is a bitmask value that maps VLAN tag
priority to the queue. Since the hardware only supports five queues,
this patch maps priority 0-4 to queues one by one, and priority 5-7 to
queue 4.

The total fifo size of 5 queues is 8192 bytes, if enable 5 queues with
store-and-forward mode, it's not enough for large packets, which would
trigger fifo overflow frequently. This patch set DMA to thresh mode to
enable all 5 queues.

Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Reviewed-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-evk.dts