From owner-freebsd-net@FreeBSD.ORG Tue Nov 16 01:36:10 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED812106566B for ; Tue, 16 Nov 2010 01:36:10 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9F7BB8FC0A for ; Tue, 16 Nov 2010 01:36:10 +0000 (UTC) Received: by ywa8 with SMTP id 8so66583ywa.13 for ; Mon, 15 Nov 2010 17:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=QVpirbPyP4RcEHeA+KGKAiFbBPtgSxlyeUqaDilBdxI=; b=VfBqdtRD20VlbCh1Y9qfNMYQQfMhoPtYIPxa8oRr9y0iTpzQJXdevW0SE9yT8XOU2L eStHGRVH/aNRGaRGxJEYwyOncfyuVRiERI3iw3Kda8vis9p189KeW0LxzfVIS1cXdE9d pg6EWUGPtXUbQ+Nk6L04R3Kzyipqd9MAEvKM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=GvxJOH1R3AC/l/svqqpOaSFewY/F9riA9Q31AkPr4ZvF53Uk1DXZcFbewB+UHRtRre BWdfpi1mN8I5Agbv2kncar0tqo4RdAHhJSzJV2wcFZa/weGty87LALbLePONYECXx9aM mpmJtjNuI6yaiPO4b17IHN34XD0qjTScMr44c= Received: by 10.151.9.11 with SMTP id m11mr10770438ybi.71.1289871369857; Mon, 15 Nov 2010 17:36:09 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id t4sm3341423ybe.13.2010.11.15.17.36.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Nov 2010 17:36:08 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 15 Nov 2010 17:36:05 -0800 From: Pyun YongHyeon Date: Mon, 15 Nov 2010 17:36:05 -0800 To: Bruce Cran Message-ID: <20101116013605.GH1257@michelle.cdnetworks.com> References: <201011152311.42968.bruce@cran.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="E13BgyNx05feLLmH" Content-Disposition: inline In-Reply-To: <201011152311.42968.bruce@cran.org.uk> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: if_msk not working after suspend/resume if only one adapter is present X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 01:36:11 -0000 --E13BgyNx05feLLmH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 15, 2010 at 11:11:42PM +0000, Bruce Cran wrote: > I've been trying to get suspend/resume working on my Dell laptop. I have two > if_msk adapters: one's the built-in 100Mb port and the other's a Sonnet Gb > ExpressCard NIC. I've noticed that if I boot with the Gb card installed both > ports work fine when the laptop has been resumed but if I don't have the Gb > card installed then the built-in port stops working. Is there any way to > debug what might be going wrong? > Could you show me dmesg output? I've attached a blind patch which could be related with suspend/resume. I guess powering down code was not synchronized well for newer controllers. --E13BgyNx05feLLmH Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="msk.pdown.diff" Index: sys/dev/msk/if_msk.c =================================================================== --- sys/dev/msk/if_msk.c (revision 215345) +++ sys/dev/msk/if_msk.c (working copy) @@ -2941,8 +2941,6 @@ CSR_WRITE_4(sc, B0_HWE_IMSK, 0); CSR_READ_4(sc, B0_HWE_IMSK); - msk_phy_power(sc, MSK_PHY_POWERDOWN); - /* Put hardware reset. */ CSR_WRITE_2(sc, B0_CTST, CS_RST_SET); sc->msk_pflags |= MSK_FLAG_SUSPEND; --E13BgyNx05feLLmH--