* RE: linux-next ftmac100 driver
[not found] <BANLkTin24N2D_b_RpPCQdjYn2f=C7NY2JA@mail.gmail.com>
@ 2011-04-25 3:26 ` Ratbert Po-Yu Chuang(莊博宇)
2011-04-26 16:08 ` Adam Jaremko
0 siblings, 1 reply; 2+ messages in thread
From: Ratbert Po-Yu Chuang(莊博宇) @ 2011-04-25 3:26 UTC (permalink / raw)
To: Adam Jaremko; +Cc: ratbert.chuang, netdev
Hi Adam,
CC to the netdev mainling list.
From: Adam Jaremko [mailto:adam.jaremko@gmail.com]
> Hello,
>
> I want to first thank you for the upstream contributions as they greatly helped me in my porting effort.
>
> I have been testing your ftmac100 driver on a Moxa UC-7112 and have been struggling with a kernel BUG "scheduling while atomic".
>
> I narrowed down the bug to the napi polling routine ftmac100_poll(...) when a physical change occurs, ie. RJ-45 cable removed.
> @ http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=blob;f=drivers/net/ftmac100.c;h=a31661948c420e0d467c7e8b7bb4ecae4c078de0;hb=HEAD#l932
>
> the call to mii_check_link(...) calls ftmac100_mdio_read(...) which may incur a call to usleep_range(...) causing the bug.
> @ http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=blob;f=drivers/net/ftmac100.c;h=a31661948c420e0d467c7e8b7bb4ecae4c078de0;hb=HEAD#l757
> I haven't got a fix but I wanted to inform as you may have more insight.
You can try to use udelay() to replace usleep_range(). I will also check this problem when I am free later.
If you solved this problem before me, please send a message (and keep the CC list).
It will be even better if you could submit a patch. :-)
Thanks,
Po-Yu Chuang
********************* Confidentiality Notice ************************
This electronic message and any attachments may contain
confidential and legally privileged information or
information which is otherwise protected from disclosure.
If you are not the intended recipient,please do not disclose
the contents, either in whole or in part, to anyone,and
immediately delete the message and any attachments from
your computer system and destroy all hard copies.
Thank you for your cooperation.
***********************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread