libbsd: "swi6: Giant task queue" suspend if removing SD Card

RUI Zhengxin ruizx at 126.com
Thu Jan 7 03:43:11 UTC 2021


Hi all,
We find "swi6: Giant task queue" suspend if removing SD Card.
libbsd5.1 is running at beagle bone hardware, the sdhci driver is attached success. 
sdhci_ti0: <TI MMCHS (SDHCI 2.0)> mem 0x4809c000-0x4809c3ff irq 78,4 on simplebus0
mmc0: <MMC/SD bus> on sdhci_ti0
The console show the message when removing sd card
emerg: mmcsd_detach: FIXME


the task state is show by task command


SHLL [/] # task
ID       NAME                 SHED PRI STATE  MODES    EVENTS WAITINFO
------------------------------------------------------------------------------
0a010002 BSWP                 UPD  250 EV     P:T:nA   NONE   
0a010003 BRDA                 UPD   15 EV     P:T:nA   NONE   
0a010004 MDIA                 UPD  200 EV     P:T:nA   NONE   
0a010005 TIME                 UPD    8 MTX    P:T:nA   NONE   Giant
0a010006 IRQS                 UPD    6 SYSEV  P:T:nA   NONE   
0a010007 _BSD swi6: task queu UPD   10 EV     P:T:nA   NONE   
0a010008 _BSD swi5: fast task UPD   10 EV     P:T:nA   NONE   
0a010009 _BSD config_0        UPD   10 WK     P:T:nA   NONE   -
0a01000a _BSD thread taskq    UPD   10 WK     P:T:nA   NONE   -
0a01000b _BSD swi6: Giant tas UPD    8 SUSP   P:T:nA   NONE   


In this case, if we excute the ifconfig command, the shell is hang.
SHLL [/] # 
SHLL [/] # ifconfig


We log the board by telnet, the task state is:
TLNT [/] # task
ID       NAME                 SHED PRI STATE  MODES    EVENTS WAITINFO
------------------------------------------------------------------------------
0a010002 BSWP                 UPD  250 EV     P:T:nA   NONE   
0a010003 BRDA                 UPD   15 EV     P:T:nA   NONE   
0a010004 MDIA                 UPD  200 EV     P:T:nA   NONE   
0a010005 TIME                 UPD    8 MTX    P:T:nA   NONE   Giant
0a010006 IRQS                 UPD    6 SYSEV  P:T:nA   NONE   
0a010007 _BSD swi6: task queu UPD   10 EV     P:T:nA   NONE   
0a010008 _BSD swi5: fast task UPD   10 EV     P:T:nA   NONE   
0a010009 _BSD config_0        UPD   10 WK     P:T:nA   NONE   -
0a01000a _BSD thread taskq    UPD   10 WK     P:T:nA   NONE   -
0a01000b _BSD swi6: Giant tas UPD    3 SUSP   P:T:nA   NONE   
0a01000c _BSD kqueue_ctx task UPD   10 WK     P:T:nA   NONE   -
0a01000d _BSD swi1: netisr 0  UPD   10 EV     P:T:nA   NONE   
0a01000e SCRx                 UPD   10 MSG    P:T:nA   NONE   22010001
0a01000f SCRx                 UPD   10 MSG    P:T:nA   NONE   22010002
0a010010 _BSD softirq_0       UPD   10 WK     P:T:nA   NONE   -
0a010011 SHLL                 UPD    3 MTX    P:T:nA   NONE   Giant


SHLL is hang for mutex is owned by swi6: task queu





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210107/0785b5a9/attachment-0001.html>


More information about the users mailing list