netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Bugme-new] [Bug 9386] New: sis190 network driver crash
       [not found] <bug-9386-10286@http.bugzilla.kernel.org/>
@ 2007-11-15 19:58 ` Andrew Morton
  2007-11-15 23:00   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2007-11-15 19:58 UTC (permalink / raw)
  To: netdev; +Cc: bugme-daemon, chris, Francois Romieu

On Thu, 15 Nov 2007 07:30:53 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=9386
> 
>            Summary: sis190 network driver crash
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.23.1
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: high
>           Priority: P1
>          Component: Network
>         AssignedTo: jgarzik@pobox.com
>         ReportedBy: chris@linuxepos.com
>                 CC: romieu@fr.zoreil.com
> 
> 
> I have a problem where I can lock up a number of machines by 
> changing the link state on a sis190 Ethernet port. For example, during 
> a data transfer such as FTP if I unplug the Ethernet cable and plug it 
> back in, the Ethernet interface will stop responding and the machine 
> will lock up after a minute or so. This behaviour is repeatable. I have the
> sis190 driver loaded as a module.
> 
> I haven't found a kernel version where this doesn't happen. It happens with
> kernel 2.6.20.15, for example.
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bugme-new] [Bug 9386] New: sis190 network driver crash
  2007-11-15 19:58 ` [Bugme-new] [Bug 9386] New: sis190 network driver crash Andrew Morton
@ 2007-11-15 23:00   ` David Miller
  2007-11-15 23:36     ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2007-11-15 23:00 UTC (permalink / raw)
  To: akpm; +Cc: netdev, bugme-daemon, chris, romieu

From: Andrew Morton <akpm@linux-foundation.org>
Date: Thu, 15 Nov 2007 11:58:41 -0800

> On Thu, 15 Nov 2007 07:30:53 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote:
> 
> > http://bugzilla.kernel.org/show_bug.cgi?id=9386
 ...
> > I have a problem where I can lock up a number of machines by 
> > changing the link state on a sis190 Ethernet port. For example, during 
> > a data transfer such as FTP if I unplug the Ethernet cable and plug it 
> > back in, the Ethernet interface will stop responding and the machine 
> > will lock up after a minute or so. This behaviour is repeatable. I have the
> > sis190 driver loaded as a module.
> > 
> > I haven't found a kernel version where this doesn't happen. It happens with
> > kernel 2.6.20.15, for example.

I wonder if somehow sis190_phy_task() is creating some kind
of deadlock when handling the link down and up events.

It takes the RTNL semaphore in sis190_phy_task() but it doesn't
call anything which can see deadlocking on that.

It does invoke the link-watch layer, indirectly via the
various netif_carrier_{on,off}() calls it makes but those
should be OK since they just schedule workqueue things.

Perhaps what is contributing to the problem is that
sis190_interrupt() still processes the RX and TX queues
even when a link change event is signalled.  Perhaps
the chip doesn't like that.

Francois, I noticed two issues while reviewing the driver for
this bug:

1) The interrupt handler does no SMP locking, the chip might
   not be happy with one thread (in phy_task) programming
   the MDIO whilst another thread does RX/TX ring processing,
   for example.

2) The timeout limit check in __mdio_cmd() is buggy, it should
   be 99 instead of 999.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bugme-new] [Bug 9386] New: sis190 network driver crash
  2007-11-15 23:00   ` David Miller
@ 2007-11-15 23:36     ` Francois Romieu
  0 siblings, 0 replies; 3+ messages in thread
From: Francois Romieu @ 2007-11-15 23:36 UTC (permalink / raw)
  To: David Miller; +Cc: akpm, netdev, bugme-daemon, chris

David Miller <davem@davemloft.net> :
[...]
> I wonder if somehow sis190_phy_task() is creating some kind
> of deadlock when handling the link down and up events.

I should be able to test it during the week end if nobody beats me

The sis190 stands headless in the kitchen. Given the current situation
here, I do not have the oomph to turn the kitchen into a debug lab when
I am back from work.

-- 
Ueimor

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-15 23:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-9386-10286@http.bugzilla.kernel.org/>
2007-11-15 19:58 ` [Bugme-new] [Bug 9386] New: sis190 network driver crash Andrew Morton
2007-11-15 23:00   ` David Miller
2007-11-15 23:36     ` Francois Romieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).