6 Replies Latest reply on Dec 10, 2018 6:09 AM by VinayakS_26

    multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release

    ApNa_2097886

      Hi All,

       

      We are using 43455 chip on imx7 and we are seeing the below errors. We are running brcmfmac Mothra release.

      Has anyone else encountered this issue? is there a patch available for this from Cypress?

       

      11/07/18 17:27:37.774423 kernel: brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -84

      11/07/18 17:27:37.774515 kernel: brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK

      11/07/18 17:27:37.876376 kernel: brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84

      11/07/18 17:27:37.880584 kernel: brcmfmac: brcmf_sdio_rxglom: glom read of 512 bytes failed: -5

      11/07/18 17:27:37.880662 kernel: brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame

      11/07/18 17:27:38.085415 kernel: brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84

      11/07/18 17:27:38.085530 kernel: brcmfmac: brcmf_sdio_rxglom: glom read of 512 bytes failed: -5

      11/07/18 17:27:38.085577 kernel: brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame

      11/07/18 17:27:38.423848 kernel: brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout

      11/07/18 17:27:38.423959 kernel: brcmfmac: brcmf_sdio_bus_rxctl: rxcnt_timeout=1, rxlen=0

      11/07/18 17:27:38.453599 kernel: brcmfmac: brcmf_fill_bss_param: Failed to get bss info (-110)

       

      Thanks and regards,

      Aparna

        • 1. Re: multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release
          VinayakS_26

          Hi ApNa_2097886

           

          Could you provide the steps/sequence of commands that you have send to bringup the driver. Have you followed the steps give in the following README.

          1 of 1 people found this helpful
          • 2. Re: multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release
            ApNa_2097886

            Hi VinayakS_26

             

            Sorry I did not clarify. The issue is not seen when we load the driver. The driver loading is successful and there are no issues there.

            We are following the exact steps in the the Readme.

            The sdio issues are seen after the radio has been running for a while, doing suspend/resumes and passing traffic.

             

            Thanks and regards,

            Aparna

            1 of 1 people found this helpful
            • 3. Re: multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release
              VinayakS_26

              ApNa_2097886

              Sorry for the wait.

              Please provide the steps while going into suspend/resume so that i could reproduce the issue.

              I am trying with the following setup commands:

              >>iperf3 -s &

              >> i=0;while [ 1 ];do echo +2 > /sys/class/rtc/rtc0/wakealarm;echo mem > /sys/power/state ;sleep 10;i=`expr $i + 1`;echo "========suspend $i times======="; done

               

              Regards,

              Vinayak

              1 of 1 people found this helpful
              • 4. Re: multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release
                ApNa_2097886

                Hi vnak,

                 

                Thanks for getting back to me. We are using wpa_supplicant and wowl is enabled. "wl wowl 1"

                so the functions brcmf_cfg80211_suspend and brcmf_cfg80211_resume are getting called during suspend and resume. I am connected to an AP (wpa2-psk) and i use the following command for suspend:

                 

                while true; do rtcwake -d /dev/rtc0 -m mem -s 7; sleep 2; done

                 

                thanks and regards,

                Aparna

                • 5. Re: multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release
                  ApNa_2097886

                  Hi vnak,

                   

                  I enabled the radio driver debug for SDIO and I have attached the same here. Does this tell us anything?

                  Any ideas on how to debug this issue at our end?

                   

                  11/15/18 20:14:41.033909 kernel: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............

                  11/15/18 20:14:41.033930 kernel: brcmfmac: brcmf_sdio_readframes processed 1 frames

                  11/15/18 20:14:41.033950 kernel: brcmfmac: brcmf_sdio_bus_sleep Enter: request WAKE currently WAKE

                  11/15/18 20:14:41.034002 kernel: brcmfmac: brcmf_sdio_clkctl Enter

                  11/15/18 20:14:41.034024 kernel: brcmfmac: brcmf_sdio_bus_sleep new state WAKE

                  11/15/18 20:14:41.034044 kernel: brcmfmac: brcmf_sdio_bus_sleep Exit: err=0

                  11/15/18 20:14:41.034064 kernel: brcmfmac: brcmf_sdiod_regrl addr:0x18004020

                  11/15/18 20:14:41.034083 kernel: brcmfmac: brcmf_sdiod_request_data rw=0, func=1, addr=0x0c020, nbytes=4

                  11/15/18 20:14:41.034473 kernel: brcmfmac: brcmf_sdiod_regrl data:0x00c00040

                  11/15/18 20:14:41.034500 kernel: brcmfmac: brcmf_sdiod_regwl addr:0x18004020, data:0x00000040

                  11/15/18 20:14:41.034522 kernel: brcmfmac: brcmf_sdiod_request_data rw=1, func=1, addr=0x0c020, nbytes=4

                  11/15/18 20:14:41.034542 kernel: brcmfmac: brcmf_sdiod_recv_pkt addr = 0x18000000, size = 64

                  11/15/18 20:14:41.034562 kernel: brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -84

                  11/15/18 20:14:41.034581 kernel: brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK

                  11/15/18 20:14:41.034601 kernel: brcmfmac: brcmf_sdiod_abort Enter

                  11/15/18 20:14:41.034620 kernel: brcmfmac: brcmf_sdiod_request_data rw=1, func=0, addr=0x00006, nbytes=1

                  11/15/18 20:14:41.046282 kernel: brcmfmac: brcmf_sdiod_abort Exit

                  11/15/18 20:14:41.046347 kernel: brcmfmac: brcmf_sdiod_regwb addr:0x0001000d, data:0x01

                  11/15/18 20:14:41.046371 kernel: brcmfmac: brcmf_sdiod_request_data rw=1, func=1, addr=0x1000d, nbytes=1

                  11/15/18 20:14:41.046393 kernel: brcmfmac: brcmf_sdiod_regrb addr:0x0001001c

                  11/15/18 20:14:41.046413 kernel: brcmfmac: brcmf_sdiod_request_data rw=0, func=1, addr=0x1001c, nbytes=1

                  11/15/18 20:14:41.046433 kernel: brcmfmac: brcmf_sdiod_regrb data:0x00

                  11/15/18 20:14:41.046453 kernel: brcmfmac: brcmf_sdiod_regrb addr:0x0001001b

                  11/15/18 20:14:41.046473 kernel: brcmfmac: brcmf_sdiod_request_data rw=0, func=1, addr=0x1001b, nbytes=1

                  11/15/18 20:14:41.046492 kernel: brcmfmac: brcmf_sdiod_regrb data:0x00

                  11/15/18 20:14:41.046513 kernel: brcmfmac: brcmf_sdio_rxfail flush took 0 iterations

                  11/15/18 20:14:41.046532 kernel: brcmfmac: brcmf_sdiod_regwl addr:0x18004040, data:0x00000001

                   

                  thanks and regards,

                  Aparna

                  • 6. Re: multiple instances of brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84 on Mothra release
                    VinayakS_26

                    ApNa_2097886

                     

                    Please check with my drivers and see if the error is happening for you.

                    Driver compiled for armv7.

                    Check

                    >>readelf -h

                     

                    Regards,

                    Vinayak

                    1 of 1 people found this helpful