Firefly Open Source Community

Title: wifi and M.2 Sata adapter issuies [Print This Page]

Author: abutkov    Time: 12/15/2018 12:48
Title: wifi and M.2 Sata adapter issuies
Last edited by abutkov In 12/15/2018 15:51 Editor

Hi, everyone, couple of questions here

1. In dmesg output I observe lots of this:
  1. [  102.088596] Error getting the SSID
  2. [  102.596428] _tdata_psh_info_pool_deq 200: Out of tdata_disc_grp
  3. [  102.596438] dhd_tcpdata_info_get 1092: No more free tdata_psh_info!!
Copy the code

Formally wireless works stable both 2.4 and 5GHz, but I'm sure it should not constantly give this output.
The only mod I added to 4.4.154 kernel was NFSD support.

2. Any high load to HDD connected over Firefly's SATA adapter result in system hang with adaper's blue led on permanently.
Moreover, hdparm -tT /dev/sda1 returns extremely slow timing:
  1. /dev/sda1:
  2. Timing cached reads:   2588 MB in  2.00 seconds = 1293.83 MB/sec
  3. Timing buffered disk reads: 330 MB in  3.00 seconds = 109.87 MB/sec
Copy the code

Please share you considerations
Author: penguin    Time: 12/18/2018 17:52
Is there an overtemperature of the SATA adapter?
Are there any steps to reproduce your problem?

Author: abutkov    Time: 12/18/2018 23:48
Last edited by abutkov In 12/19/2018 09:03 Editor

Suppose no overtemperature occurs - I put a small fin heatsink on ASM1061 chip and maximim that IR thermometer read is 37C. Firefly hangs when Transmission downloading a big file even with speed limitations, and when I read same file over NFS everything is ok. I have no extra hdd to reproduce the problem.

And what about wifi?
firefly@firefly:~$ cat /var/log/syslog
  1. ...
  2. Dec 18 20:43:14 firefly kernel: [  876.079038] Error getting the SSID
  3. Dec 18 20:43:17 firefly kernel: [  879.078745] Error getting the SSID
  4. Dec 18 20:43:20 firefly kernel: [  882.078423] Error getting the SSID
Copy the code
No kernel errors when I boot in Armbian



Author: abutkov    Time: 12/23/2018 13:47
OK I've found who was requesting SSID every 3 second - conky, now turned off and this problem elimnated
but still I get messages:
  1. [41058.513959] _tdata_psh_info_pool_deq 200: Out of tdata_disc_grp
  2. [41058.513978] dhd_tcpdata_info_get 1092: No more free tdata_psh_info!!
  3. [41058.541146] _tdata_psh_info_pool_deq 200: Out of tdata_disc_grp
  4. [41058.541165] dhd_tcpdata_info_get 1092: No more free tdata_psh_info!!
Copy the code

google doesn't  see anything reasonable

Author: penguin    Time: 12/24/2018 17:44
The error message is in the WiFi driver of
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_ip.c:

        tdata_psh_info = _tdata_psh_info_pool_deq(tcpack_sup_mod);
#ifdef DHDTCPACK_SUP_DBG
        DHD_TRACE(("%s %d: PSH INFO ENQ %d\n",
                __FUNCTION__, __LINE__, tcpack_sup_mod->psh_info_enq_num));
#endif /* DHDTCPACK_SUP_DBG */

        if (tdata_psh_info == NULL) {
                DHD_ERROR(("%s %d: No more free tdata_psh_info!!\n", __FUNCTION__, __LINE__));                                                        
                ret = BCME_ERROR;
                dhd_os_tcpackunlock(dhdp, flags);
                goto exit;
        }


and

static tdata_psh_info_t*
_tdata_psh_info_pool_deq(tcpack_sup_module_t *tcpack_sup_mod)
{
        tdata_psh_info_t *tdata_psh_info = NULL;

        if (tcpack_sup_mod == NULL) {
                DHD_ERROR(("%s %d: ERROR %p\n", __FUNCTION__, __LINE__,
                        tcpack_sup_mod));
                return NULL;
        }

        tdata_psh_info = tcpack_sup_mod->tdata_psh_info_free;
        if (tdata_psh_info == NULL)
                DHD_ERROR(("%s %d: Out of tdata_disc_grp\n", __FUNCTION__, __LINE__));
        else {
                tcpack_sup_mod->tdata_psh_info_free = tdata_psh_info->next;
                tdata_psh_info->next = NULL;
#ifdef DHDTCPACK_SUP_DBG
                tcpack_sup_mod->psh_info_enq_num--;
#endif /* DHDTCPACK_SUP_DBG */
        }

        return tdata_psh_info;
}


Currently have no idea of what caused the problem.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1