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

Christian Mauderer oss at c-mauderer.de
Thu Jan 7 14:10:10 UTC 2021


Hello RUI Zhengxin,

On 07/01/2021 04:43, RUI Zhengxin wrote:
> 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*

Like the message suggests: Removing SD cards is currently not 
implemented. The part of the subsystem is just removed and replaced by a 
BSD_PANIC("FIXME"). It's a bit back since I last touched that subsystem 
but if I remember correctly, it would be quite a bit of work to add that 
support.

Best regards

Christian

> 
> 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
> 
> 
> 
> 
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
> 


More information about the users mailing list