Forum Discussion

HarshaM's avatar
HarshaM
Icon for New Contributor rankNew Contributor
5 years ago

Network driver not Initializing while Migrating Linux OS from 2.6.30 to 5.4.54 on NIOS2-3c120

We are migrating Linux OS from 2.6.30 to 5.4.54 on NIOS2-3c120, When Network driver is enabled via menuconfig, the following error occurs while initializing SGDMA.

# ifconfig eth0 10.201.1.20
[ 6.570000] priv->rx_dma_desc = e8021000, priv->rxdescmem = 1000
[ 6.600000] priv->tx_dma_desc = e8020000, priv->txdescmem = 1000
[ 6.600000] ------------[ cut here ]------------
[ 6.600000] WARNING: CPU: 0 PID: 88 at kernel/dma/debug.c:1269 debug_dma_map_single+0xfc/0x1f8
[ 6.640000] DMA-API: altera_tse 8004000.ethernet: device driver maps memory from invalid area [addr=e8021000] [len=4096]
[ 6.640000] Modules linked in:
[ 6.640000] CPU: 0 PID: 88 Comm: ifconfig Not tainted 5.4.54 #81
[ 6.680000] Stack from d5479d08:

Device tree file and terminal log attached. What could be the cause for the error.

Appreciate your help.

Thanks.