From owner-freebsd-wireless@FreeBSD.ORG Mon May 12 00:22:02 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 563FAE3F; Mon, 12 May 2014 00:22:02 +0000 (UTC) Received: from mail-yk0-x22f.google.com (mail-yk0-x22f.google.com [IPv6:2607:f8b0:4002:c07::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 09A4F23C0; Mon, 12 May 2014 00:22:01 +0000 (UTC) Received: by mail-yk0-f175.google.com with SMTP id 131so5329246ykp.34 for ; Sun, 11 May 2014 17:22:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=4tjK+iaHRAt7P76tqww2GBQJGWYiVL6/lmhlc81Gw0o=; b=El0EgpkhkmDMJJvKnOXNc1rA39M94spQeRxEZgBO6h9d90kFMZU6QpSiWyA1FeJEpO OU8t1mxar/xOiX/UXcq4M3zDC0MNQvrZ/d0W3IOB6DUPBpkkxu/MhAOeIu0W7jWjabFo 5vcbbTxd3rEHdXX9LT/7X8HyEtKN4xZpkYUM2FJ3/9EhgblVaFTILTW4MQ7IhQS4jPAn cYFpUK1X5DpL3bXEyWyXbMLVfrTpk036kTlOxIPOypn2s87wWOWDIDRqVaI5KUHMymzf DQgEdpx3fImhjvR0rOmNO46BC+8jVc+KSakQAshSRi/rCisyWMKGOPwCM/grIv57pUDc UgSg== X-Received: by 10.236.124.237 with SMTP id x73mr35763230yhh.137.1399854121242; Sun, 11 May 2014 17:22:01 -0700 (PDT) Received: from zhabar.att.net (107-222-186-3.lightspeed.sntcca.sbcglobal.net. [107.222.186.3]) by mx.google.com with ESMTPSA id 63sm17198037yhi.13.2014.05.11.17.22.00 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 11 May 2014 17:22:01 -0700 (PDT) Date: Sun, 11 May 2014 17:21:57 -0700 From: Justin Hibbits To: Adrian Chadd Subject: Re: Machine check on suspend Message-ID: <20140511172157.175a3ab2@zhabar.att.net> In-Reply-To: References: <20140511165739.45671291@zhabar.att.net> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; powerpc64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2014 00:22:02 -0000 On Sun, 11 May 2014 17:05:02 -0700 Adrian Chadd wrote: > It's getting an interrupt what, after the slot is powered down? That's what it looks like. > > Why's cbb_func_intr passing up an interrupt? :p Your guess is as good as mine. I don't disable interrupts yet, but I do lock Giant (means little these days, of course). cbb_func_intr() is supposed to handle the device going away between interrupt firing and the function being called. - Justin > > > -a > > > On 11 May 2014 16:57, Justin Hibbits wrote: > > Obviously this is a different case than most. I'm working on > > suspend/resume for PowerPC (PowerBooks, to be precise), and part of > > that involves testing the cardbus. > > > > When suspending, it suspends children first (obviously), followed by > > parents, etc. In this case, I have a ar5416 card in a cardbus slot. > > The ath0 suspends, followed by cbb0, then a machine check: > > > > Suspending ath0, child of cardbus0 > > Suspending cardbus0, child of cbb0 > > pci1:1:0:0: Resource still owned, oops. (type=3, rid=16, > > addr=88000000) pci1:1:0:0: Resource still owned, oops. (type=1, > > rid=0, addr=3a) > > > > fatal kernel trap: > > > > exception = 0x200 (machine check) > > srr0 = 0x5d5530 > > srr1 = 0x149030 > > lr = 0xd20896f8 > > curthread = 0x4c6e620 > > pid = 12, comm = irq58: cbb0 ath0 > > > > [ thread pid 12 tid 100108 ] > > Stopped at 0x5d5530: sync > > db> bt > > Tracing pid 12 tid 100108 td 0x4c6e620 > > 0xe4770a20: at +0x226530(326cbc) > > 0xe4770a50: at ar5416IsInterruptPending+0x3c(d20ca368) > > 0xe4770a70: at ath_intr+0xf0(d2064ef4) > > 0xe4770ab0: at cbb_func_intr+0x40(d1fd71b4) > > 0xe4770ad0: at +0x2074d4(307c60) > > 0xe4770b00: at +0x209034(3097c0) > > 0xe4770b50: at +0x203e78(304604) > > 0xe4770b80: at +0x4e4b70(5e52fc) > > > > I'm using the projects/pmac_pmu branch, for anyone who may want to > > test (synced with head a couple weeks ago). > > > > Does anything need to be done before actually suspending the devices > > (kill wpa_supplicant, or anything else)? > > > > - Justin > > _______________________________________________ > > freebsd-wireless@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to > > "freebsd-wireless-unsubscribe@freebsd.org"