Creating DPRCs on the LS2085ARDB?

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating DPRCs on the LS2085ARDB?

386 Views
mkiradzhiyski
Contributor II

Hello guys,

I'm using the dpl-eth-aiop-nadk.0x2A_0x41.dts DPL file with the LS2085ARDB board and I have dprc1, dprc.3 and dprc.4 entries created after system boot under /sys/bus/fsl-mc/devices/.

Then, after boot, I'm trying to use the dynamic_dpl.sh script from your SDK to create a new container. The script creates dprc.2 with no errors, BUT no entry has been created under /sys/bus/fsl-mc/devices/ which is inconvenient for me, because I'm unable to bind this new DPRC to the vfio-fsl-mc driver:

root@ls2085ardb:~# echo dprc.2 > /sys/bus/fsl-mc/drivers/vfio-fsl-mc/bind

-bash: echo: write error: No such device

Can you please assist me with this issue?

Thanks!

Best regards,

Miroslav

Labels (1)
0 Kudos
1 Reply

74 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Miroslav,

I just verified this issue with EAR5.0 pre-built image, u-boot, MC firmware 8.0.2 and dpl file dpl-eth-aiop-nadk.0x2A_0x41.dtb, but didn't reproduce your problem, please refer to my following log.

s2085ardb login: root

root@ls2085ardb:~# ls /sys/bus/fsl-mc/devices/ | grep dprc

dprc.1

dprc.3

dprc.4

root@ls2085ardb:~# cd /usr/nadk/nadk-static/bin/

root@ls2085ardb:/usr/nadk/nadk-static/bin# ./dynamic_dpl.sh dpmac.3 dpmac.4

Available DPRCs

dprc.1

  dprc.4

  dprc.3

dprc.2 Created

dpmcp.4 Created

####### Parsing argument number 1 (dpmac.3) #######

dpni.0 created with MAC addr = 00:00:00:00:00:01

Disconnecting the dpmac.3

dpmac.3 Linked with dpni.0

dpni.0 assigned to  dprc.2

    dpmac.3 <--------connected------> dpni.0

####### Parsing argument number 2 (dpmac.4) #######

dpni.2 created with MAC addr = 00:00:00:00:00:02

Disconnecting the dpmac.4

dpmac.4 Linked with dpni.2

dpni.2 assigned to  dprc.2

    dpmac.4 <--------connected------> dpni.2

******* End of parsing ARGS *******

dpbp.0 Created

dpbp.5 Created

dpbp.10 Created

dpbp.11 Created

dpcon.0 Created

dpseci.0 Created

dpio.0 Created

dpio.13 Created

dpio.14 Created

dpio.21 Created

dpio.22 Created

dpio.23 Created

dpio.24 Created

dpio.25 Created

dpio.26 Created

dpio.27 Created

dpci.2 Created

dpci.3 Created

dpci.4 Created

dpci.5 Created

dpci.6 Created

dpci.7 Created

dpci.8 Created

dpci.9 Created

dpci.20 Created

dpci.21 Created

dpci.2 Linked with dpci.3

dpci.4 Linked with dpci.5

dpci.6 Linked with dpci.7

dpci.8 Linked with dpci.9

dpci.20 Linked with dpci.21

dpbp.0 assigned to  dprc.2

dpbp.5 assigned to  dprc.2

dpbp.10 assigned to  dprc.2

dpbp.11 assigned to  dprc.2

dpcon.0 assigned to  dprc.2

dpseci.0 assigned to  dprc.2

dpio.0 assigned to dprc.2

dpio.13 assigned to dprc.2

dpio.14 assigned to dprc.2

dpio.21 assigned to dprc.2

dpio.22 assigned to dprc.2

dpio.23 assigned to dprc.2

dpio.24 assigned to dprc.2

dpio.25 assigned to dprc.2

dpio.26 assigned to dprc.2

dpio.27 assigned to dprc.2

dpmcp.4 assigned to dprc.2

dpci.2 assigned to dprc.2

dpci.3 assigned to dprc.2

dpci.4 assigned to dprc.2

dpci.5 assigned to dprc.2

dpci.6 assigned to dprc.2

dpci.7 assigned to dprc.2

dpci.8 assigned to dprc.2

dpci.9 assigned to dprc.2

dpci.20 assigned to dprc.2

dpci.21 assigned to dprc.2

#1)    Allow uns[  95.103549] vfio-fsl-mc dprc.2: Binding with vfio-fsl_mc driver

afe interrupts

#1.2)    Bind dprc.2 to VFIO driver

[  95.138746] vfio-fsl-mc dpio.27: Binding with vfio-fsl_mc driver

[  95.148940] vfio-fsl-mc dpio.26: Binding with vfio-fsl_mc driver

[  95.158718] vfio-fsl-mc dpio.25: Binding with vfio-fsl_mc driver

[  95.168521] vfio-fsl-mc dpio.24: Binding with vfio-fsl_mc driver

[  95.178300] vfio-fsl-mc dpio.23: Binding with vfio-fsl_mc driver

[  95.188076] vfio-fsl-mc dpio.22: Binding with vfio-fsl_mc driver

[  95.197789] vfio-fsl-mc dpio.21: Binding with vfio-fsl_mc driver

[  95.207590] vfio-fsl-mc dpio.14: Binding with vfio-fsl_mc driver

[  95.217311] vfio-fsl-mc dpio.13: Binding with vfio-fsl_mc driver

[  95.227098] vfio-fsl-mc dpio.0: Binding with vfio-fsl_mc driver

[  95.234756] vfio-fsl-mc dpni.2: Binding with vfio-fsl_mc driver

[  95.244640] vfio-fsl-mc dpni.0: Binding with vfio-fsl_mc driver

[  95.254431] vfio-fsl-mc dpbp.11: Binding with vfio-fsl_mc driver

[  95.260797] vfio-fsl-mc dpbp.10: Binding with vfio-fsl_mc driver

[  95.267063] vfio-fsl-mc dpbp.5: Binding with vfio-fsl_mc driver

[  95.273356] vfio-fsl-mc dpbp.0: Binding with vfio-fsl_mc driver

[  95.279551] vfio-fsl-mc dpci.21: Binding with vfio-fsl_mc driver

[  95.285818] vfio-fsl-mc dpci.20: Binding with vfio-fsl_mc driver

[  95.292239] vfio-fsl-mc dpci.9: Binding with vfio-fsl_mc driver

[  95.298437] vfio-fsl-mc dpci.8: Binding with vfio-fsl_mc driver

[  95.304619] vfio-fsl-mc dpci.7: Binding with vfio-fsl_mc driver

[  95.310945] vfio-fsl-mc dpci.6: Binding with vfio-fsl_mc driver

[  95.317134] vfio-fsl-mc dpci.5: Binding with vfio-fsl_mc driver

[  95.323420] vfio-fsl-mc dpci.4: Binding with vfio-fsl_mc driver

[  95.329628] vfio-fsl-mc dpci.3: Binding with vfio-fsl_mc driver

[  95.335814] vfio-fsl-mc dpci.2: Binding with vfio-fsl_mc driver

[  95.342131] vfio-fsl-mc dpseci.0: Binding with vfio-fsl_mc driver

[  95.348512] vfio-fsl-mc dpcon.0: Binding with vfio-fsl_mc driver

[  95.355610] vfio-fsl-mc dpmcp.4: Binding with vfio-fsl_mc driver

9  vfio

USE dprc.2 FOR YOUR APPLICATIONS

root@ls2085ardb:/usr/nadk/nadk-static/bin# ls /sys/bus/fsl-mc/devices/ | grep dp

dprc.1

dprc.2

dprc.3

dprc.4

If your problem remains, please capture your console log to me(including u-boot).


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos