From owner-svn-src-all@FreeBSD.ORG Fri Jul 8 13:58:16 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 979BE106566B; Fri, 8 Jul 2011 13:58:16 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 6773C8FC0C; Fri, 8 Jul 2011 13:58:16 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LO000G02PH3ST00@smtpauth2.wiscmail.wisc.edu>; Fri, 08 Jul 2011 08:58:15 -0500 (CDT) Received: from comporellon.tachypleus.net (adsl-75-50-91-60.dsl.mdsnwi.sbcglobal.net [75.50.91.60]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LO000B94PH1W210@smtpauth2.wiscmail.wisc.edu>; Fri, 08 Jul 2011 08:58:14 -0500 (CDT) Date: Fri, 08 Jul 2011 08:58:13 -0500 From: Nathan Whitehorn In-reply-to: <20110707163655.GA8702@michelle.cdnetworks.com> To: pyunyh@gmail.com Message-id: <4E170CF5.8010109@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=75.50.91.60 X-Spam-PmxInfo: Server=avs-9, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.7.8.134515, SenderIP=75.50.91.60 References: <201106281616.p5SGGhbx056614@svn.freebsd.org> <4E15C3FF.5030703@freebsd.org> <20110707160736.GE88226@alchemy.franken.de> <4E15DE20.2040000@freebsd.org> <20110707163655.GA8702@michelle.cdnetworks.com> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110704 Thunderbird/5.0 X-Mailman-Approved-At: Fri, 08 Jul 2011 14:32:18 +0000 Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Marius Strobl Subject: Re: svn commit: r223648 - head/sys/dev/gem X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 13:58:16 -0000 On 07/07/11 11:36, YongHyeon PYUN wrote: > On Thu, Jul 07, 2011 at 11:26:08AM -0500, Nathan Whitehorn wrote: >> On 07/07/11 11:07, Marius Strobl wrote: >>> On Thu, Jul 07, 2011 at 09:34:39AM -0500, Nathan Whitehorn wrote: >>>> This breaks one of my gem devices (chip=0x0021106b) when the controller >>>> is initialized from FreeBSD (netbooting works fine, and the controller >>>> stays working after that), with "cannot disable RX MAC" or "cannot >>>> disable RX MAC or hash filter" messages. >>> Are you positive that it's exactly this revision which breaks things? >>> Actually there was a report from Justin Hibbits that r222135 causing >>> a GMAC to no longer work with similar symptoms, which still is unsolved >>> AFAICT. If it's really r223648 which is causing problems in your case >>> please try to figure out which part is causing that as none of the >>> changes exactly stands out as disruptive, probably best by reverting >>> gem_reset_rx() and gem_setladrf() one by one. >>> >> You're right. r223648 just added the printf(), r222135 is where it began >> not working. > Yes, I know that. I still have no clue and can't explain how > r222135 can break gem(4). Also note, the "cannot disable RX MAC" > was there before r222135. > One vague guess I have at this moment is that firmware may have put > controller into some deep power save state so the first time > gem_init() is called it may not have fully initialized the > controller. I sent a patch to Justin to check that and waiting for > his reply. > That patch doesn't help my case. -Nathan