From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sunset.davemloft.net (74-93-104-97-Washington.hfc.comcastbusiness.net [74.93.104.97]) by ozlabs.org (Postfix) with ESMTP id 6FCB7B7238 for ; Sat, 13 Nov 2010 07:24:37 +1100 (EST) Date: Fri, 12 Nov 2010 12:25:01 -0800 (PST) Message-Id: <20101112.122501.260105076.davem@davemloft.net> To: cbouatmailru@gmail.com Subject: Re: [PATCH 2/2] ucc_geth: Fix deadlock From: David Miller In-Reply-To: <20101112140947.GB28223@oksana.dev.rtsoft.ru> References: <1289570109-8160-1-git-send-email-Joakim.Tjernlund@transmode.se> <1289570109-8160-2-git-send-email-Joakim.Tjernlund@transmode.se> <20101112140947.GB28223@oksana.dev.rtsoft.ru> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Anton Vorontsov Date: Fri, 12 Nov 2010 17:09:47 +0300 > On Fri, Nov 12, 2010 at 02:55:09PM +0100, Joakim Tjernlund wrote: >> This script: >> while [ 1==1 ] ; do ifconfig eth0 up; usleep 1950000 ;ifconfig eth0 down; dmesg -c ;done >> causes in just a second or two: >> INFO: task ifconfig:572 blocked for more than 120 seconds. > [...] >> The reason appears to be ucc_geth_stop meets adjust_link as the >> PHY reports PHY changes. I belive adjust_link hangs somewhere, >> holding the PHY lock, because ucc_geth_stop disabled the >> controller HW. >> Fix is to stop the PHY before disabling the controller. >> >> Signed-off-by: Joakim Tjernlund > > It's unclear where exactly adjust_link() hangs, but the patch > looks as the right thing overall. > > Thanks! > > Reviewed-by: Anton Vorontsov Applied.