A question about the usage of usdapp-macless

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A question about the usage of usdapp-macless

470 Views
freescale-tomzh
Contributor II

Hi,

We are using a customized boards base on B4860, the SDK we're using is SDK1.6.

Now,we have a question about the usage of usdpaa-macless. In order to get the Ethernet frame form CPRI, we use usdpaa-macless to communicate between DSP and linux-user-space! 

We have achieved the communication between DSP and linux-user-space, but it is not stable. Sometimes it come aross bpool count decrease and connections to disconnect.

We use three macless-ethernet at most(sometimes only use one), the device tree we use about macless is shown below:

      

    bp16: buffer-pool@16 {
            compatible = "fsl,b4860-bpool", "fsl,bpool";
            fsl,bpid = <16>;
            fsl,bpool-ethernet-cfg = <0 2048 0 1728 0 0>;
            fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
    };
    bp18: buffer-pool@18 {
            compatible = "fsl,b4860-bpool", "fsl,bpool";
            fsl,bpid = <18>;
            fsl,bpool-ethernet-cfg = <0 2048 0 1728 0 0>;
            fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
    };
    bp19: buffer-pool@19 {
            compatible = "fsl,b4860-bpool", "fsl,bpool";
            fsl,bpid = <19>;
            fsl,bpool-ethernet-cfg = <0 2048 0 1728 0 0>;
            fsl,bpool-thresholds = <0x100 0x300 0x0 0x0>;
    };

      ethernet@16 {
                        compatible = "fsl,b4860-dpa-ethernet-macless", "fsl,dpa-ethernet-macless";
                        fsl,bman-buffer-pools = <&bp16>;
                        fsl,qman-frame-queues-rx = <4000 8>;
                        fsl,qman-frame-queues-tx = <4008 8>;
                        local-mac-address = [00 11 22 33 44 55];
                };
        ethernet@18 {
                        compatible = "fsl,b4860-dpa-ethernet-macless", "fsl,dpa-ethernet-macless";
                        fsl,bman-buffer-pools = <&bp18>;
                        fsl,qman-frame-queues-rx = <4016 8>;
                        fsl,qman-frame-queues-tx = <4024 8>;
                        local-mac-address = [00 11 22 33 44 56];
                };
        ethernet@19 {
                        compatible = "fsl,b4860-dpa-ethernet-macless", "fsl,dpa-ethernet-macless";
                        fsl,bman-buffer-pools = <&bp19>;
                        fsl,qman-frame-queues-rx = <4032 8>;
                        fsl,qman-frame-queues-tx = <4040 8>;
                        local-mac-address = [00 11 22 33 44 57];
                };

Is there anything wrong when we use usdpaa-macless? Thanks!

0 Kudos
Reply
0 Replies