From: catalin.marinas@arm.com (Catalin Marinas) Date: Fri, 11 Sep 2009 14:00:34 +0100 Subject: smsc911x.c driver and SMP (was Re: Kernel related (?) user space crash at ARM11 MPCore) In-Reply-To: <4AAA48CA.9040405@billgatliff.com> References: <4A7AEEB6.5060903@googlemail.com> <1249981883.27150.14.camel@pc1117.cambridge.arm.com> <4A818CBC.8040000@googlemail.com> <1250006770.30628.1.camel@pc1117.cambridge.arm.com> <4A819C54.3080606@googlemail.com> <1250009043.30628.9.camel@pc1117.cambridge.arm.com> <87ab25vazg.fsf@brigitte.kvy.fi> <1250080338.20332.32.camel@pc1117.cambridge.arm.com> <87k518yc8a.fsf@brigitte.kvy.fi> <1252660898.3354.16.camel@pc1117.cambridge.arm.com> <4AAA48CA.9040405@billgatliff.com> Message-ID: <1252674034.29620.30.camel@pc1117.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Fri, 2009-09-11 at 07:55 -0500, Bill Gatliff wrote: > Catalin Marinas wrote: > > (sorry for the repost Antti, the message was sent to the old list and > > didn't like the "was:" stuff in the subject and the reply headers) > > > > On Thu, 2009-08-13 at 00:05 +0300, Antti P Miettinen wrote: > > > >> BTW - the smsc911x does not work for me in the > >> recent kernels. I had to change back to smc911x. Otherwise my boot > >> from NFS root hangs pretty early. I think it used to be the other way > >> around in some kernel version. > >> > > > > I added the commit below to my tree and the new driver now seems to work > > fine with ARM11MPCore systems: > > > > http://www.linux-arm.org/git?p=linux-2.6.git;a=commitdiff;h=246a6cc1f1fa52e96a08f327337c5616eb634825 > > > > I'm waiting for the SMSC guys to look into this issue. It may just be > > that some of the read-after-write or read-after-read timing constraints > > are violated when more than one CPU tries to access the Ethernet chip. > > Why take the lock in smsc911x_tx_writefifo? It looks like you take the > same lock again in smsc911x_reg_write. Ah, ok, I haven't tried the 16-bit mode, only the 32-bit one and was working fine, no deadlocks. But I can't say whether that's the right fix, it's better for SMSC to look into it. -- Catalin