From owner-freebsd-questions@FreeBSD.ORG Wed Sep 28 12:33:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5460A1065672; Wed, 28 Sep 2011 12:33:10 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 647D88FC0C; Wed, 28 Sep 2011 12:33:08 +0000 (UTC) Received: by wwe3 with SMTP id 3so8195682wwe.31 for ; Wed, 28 Sep 2011 05:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j9cgZHBCRSfMZZ+AILFfqBYUfRw7lLub3UKeqbAM2VY=; b=tY3HS/U5ZMpMjQZ4qApO4RnRRy7W/E2+9f0kRfwM9ULpTioaSm+XPq+NOcAHbbw8TL Iwc9CuLPJsjZwCoSKc6igl++gNjHZWqzDNVSolrRv5lyGrwec1XrAs58NeM2jxxqcaQt jrgPxAdvixr50CZiMy2raEGh4xmhjNN9PpPxo= MIME-Version: 1.0 Received: by 10.216.203.79 with SMTP id e57mr1008465weo.12.1317211601152; Wed, 28 Sep 2011 05:06:41 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.216.1.21 with HTTP; Wed, 28 Sep 2011 05:06:41 -0700 (PDT) In-Reply-To: <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> References: <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl> Date: Wed, 28 Sep 2011 14:06:41 +0200 X-Google-Sender-Auth: Ncm04hNhUoFv-CNNS1UNS4rLDQ8 Message-ID: From: Attilio Rao To: "crsnet.pl" , Jack F Vogel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Wed, 28 Sep 2011 13:52:38 +0000 Cc: Adrian Chadd , freebsd-stable@freebsd.org, freebsd-drivers@freebsd.org, freebsd-current@freebsd.org, freebsd-hardware@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD 9-Beta3 on X300 2 problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2011 12:33:10 -0000 2011/9/27 crsnet.pl : >> Hi, > > Hello, thanks for reply. >> >> Please try to do this without wlan loaded at all (not just down, but >> build your wifi support as a module.) >> Then try without X, see whether it's related to that or not. >> > First i make kldunload if_iwn. > When i try to suspend from X, Xorg close, i see console and laptop suspen= d. > When i resume it, i get console (any key dosent work), when i try to ALT+= F9 > i get black screen and beep;/ > > But when i try to suspen from console. I get : > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP0: AE_BAD_PARAMETER > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP1: AE_BAD_PARAMETER > pci0: failed to set ACPI power state D2 \_SB_.PCI0_EXP2: AE_BAD_PARAMETER > And laptop suspend, when i resume it. He hangs when i press any buttons i= t > does nothing. And than i see on console that info : > ugen0.2: ... disconnected > ugen4.2: ... disconnected > ubt0: at uhub0 ... disconnected > then i see this presed lethers > and > acpi0: suspend request ignored (not ready yet) and laptops langs and beep= ;/ > >> (And you haven't told us what your hardware is.) > > #dmesg (+WITNESS) > Copyright (c) 1992-2011 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > =C2=A0 =C2=A0 =C2=A0 =C2=A0The Regents of the University of California. A= ll rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-BETA3 #3: Tue Sep 27 10:47:57 CEST 2011 > =C2=A0 =C2=A0cr4sh@x300:/sys/amd64/compile/GENERIC amd64 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Intel(R) Core(TM)2 Duo CPU =C2=A0 =C2=A0 L7100 =C2=A0@ 1.20GHz (1197= .03-MHz K8-class > CPU) > =C2=A0Origin =3D "GenuineIntel" =C2=A0Id =3D 0x6fb =C2=A0Family =3D 6 =C2= =A0Model =3D f =C2=A0Stepping =3D 11 > =C2=A0Features=3D0xbfebfbff > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BE> > =C2=A0Features2=3D0xe3bd > =C2=A0AMD Features=3D0x20100800 > =C2=A0AMD Features2=3D0x1 > =C2=A0TSC: P-state invariant, performance statistics > real memory =C2=A0=3D 2147483648 (2048 MB) > avail memory =3D 2019139584 (1925 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > =C2=A0cpu0 (BSP): APIC ID: =C2=A00 > =C2=A0cpu1 (AP): APIC ID: =C2=A01 > ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 > (20110527/tbfadt-556) > ACPI Warning: Optional field Gpe1Block has zero address or length: > 0x000000000000102C/0x0 (20110527/tbfadt-586) > ioapic0: Changing APIC ID to 1 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > acpi0: on motherboard > CPU0: local APIC error 0x40 > acpi_ec0: port 0x62,0x66 on acpi0 > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 7ef00000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 > cpu0: on acpi0 > cpu1: on acpi0 > acpi_lid0: on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > vgapci0: port 0x1800-0x1807 mem > 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 > agp0: on vgapci0 > agp0: aperture size is 256M, detected 7676k stolen memory > vgapci1: mem 0xfa100000-0xfa1fffff at device 2.1= on > pci0 > pci0: at device 3.0 (no driver attached) > atapci0: port > 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq= 18 > at device 3.2 on pci0 > ata2: on atapci0 > ata3: on atapci0 > pci0: at device 3.3 (no driver attached) > em0: port 0x1840-0x185f mem > 0xfa200000-0xfa21ffff,0xfa225000-0xfa225fff irq 20 at device 25.0 o > > =C2=A0 =C2=A0 =C2=A0 =C2=A0n pci0 > em0: Using an MSI interrupt > acquiring duplicate lock of same type: "network driver" > =C2=A01st &dev_spec->swflag_mutex @ dev/e1000/e1000_ich8lan.c:785 > =C2=A02nd &dev_spec->nvm_mutex @ dev/e1000/e1000_ich8lan.c:751 I think that MTX_NETWORK_LOCK is not suitable for this case as you will have 2 different locks with the same name in softc. I think that this patch should be good to go (and fixes the WITNESS warning= ): http://www.freebsd.org/~attilio/e1000_mutex_init.patch Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein