From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by ozlabs.org (Postfix) with ESMTP id 582DFDE050 for ; Tue, 10 Mar 2009 02:00:53 +1100 (EST) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LggyI-00034r-3V for linuxppc-dev@ozlabs.org; Mon, 09 Mar 2009 08:00:50 -0700 Message-ID: <22413434.post@talk.nabble.com> Date: Mon, 9 Mar 2009 08:00:50 -0700 (PDT) From: Felix Radensky To: linuxppc-dev@ozlabs.org Subject: Re: Machine check in 4xx ethernet driver In-Reply-To: <20090309111436.GA2256@yoda.jdub.homelinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii References: <22408005.post@talk.nabble.com> <20090309103820.GA17943@zod.rchland.ibm.com> <22410889.post@talk.nabble.com> <20090309111436.GA2256@yoda.jdub.homelinux.org> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Josh Boyer-4 wrote: > > On Mon, Mar 09, 2009 at 03:53:25AM -0700, Felix Radensky wrote: >> >> >> >>Josh Boyer-4 wrote: >>> >>> On Mon, Mar 09, 2009 at 12:47:02AM -0700, Felix Radensky wrote: >>>> >>>>Hi, >>>> >>>>I'm getting machine check exception when trying to dump >>>>emac registers on 405EX Kilauea board. The kernel is 2.6.29-rc7 >>>>The problem seems not new, I can reproduce it on 2.6.25 Denx kernel >>> >>> I've not looked at what that code path does, but the EMAC regs are >>> in DCR space, not MMIO. Using memcpy_fromio there seems odd. >>> >>> >> >>At least on 405EX MAL registers are in DCR space, but EMAC and RGMII >>ones are in MMIO space. > > Ah, quite right. No coffee yet this morning. > > You'll need to look at the code path ethtool is forcing. Perhaps it's > doing > something stupid. > > Bad quoting in previous message, sorry. The problem goes away if I replace memcpy_fromio() by memcpy()., but register values seem wrong. Why would memcpy() work when memcpy_fromio() doesn't ? -- View this message in context: http://www.nabble.com/Machine-check-in-4xx-ethernet-driver-tp22408005p22413434.html Sent from the linuxppc-dev mailing list archive at Nabble.com.