Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Sep 2011 14:06:41 +0200
From:      Attilio Rao <attilio@freebsd.org>
To:        "crsnet.pl" <crsnet@crsnet.pl>, Jack F Vogel <jfv@freebsd.org>
Cc:        Adrian Chadd <adrian@freebsd.org>, 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
Message-ID:  <CAJ-FndCcvuoSeY%2B5oYzmA03-E4HfUndEHHiY7J6dJtY=zYJ5VA@mail.gmail.com>
In-Reply-To: <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl>
References:  <8bce9b8a86d5c7a83095d8e58f794f64@i-pi.pl> <9e25323fa87abb93af1946c9ed2c399e@i-pi.pl> <CAJ-Vmo=M_Y6dveSvHr8b0HdsuzXctCRGKwSo1ENuOpstrDtfqA@mail.gmail.com> <2ffb7b182a16c6ced96733b7a9f7c6d0@i-pi.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/27 crsnet.pl <crsnet@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: <Broadcom Corp> ... disconnected
> ugen4.2: <Sierra Wireless> ... 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,M=
TRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,P
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 BE>
> =C2=A0Features2=3D0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xT=
PR,PDCM>
> =C2=A0AMD Features=3D0x20100800<SYSCALL,NX,LM>
> =C2=A0AMD Features2=3D0x1<LAHF>
> =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: <LENOVO TP-7T =C2=A0 >
> 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 <Version 2.0> irqs 0-23 on motherboard
> kbd1 at kbdmux0
> acpi0: <LENOVO TP-7T> on motherboard
> CPU0: local APIC error 0x40
> acpi_ec0: <Embedded Controller: GPE 0x12, ECDT> 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: <ACPI CPU> on acpi0
> cpu1: <ACPI CPU> on acpi0
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_button0: <Sleep Button> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem
> 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
> agp0: <Intel GM965 SVGA controller> on vgapci0
> agp0: aperture size is 256M, detected 7676k stolen memory
> vgapci1: <VGA-compatible display> mem 0xfa100000-0xfa1fffff at device 2.1=
 on
> pci0
> pci0: <simple comms> at device 3.0 (no driver attached)
> atapci0: <Intel ATA controller> port
> 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq=
 18
> at device 3.2 on pci0
> ata2: <ATA channel 0> on atapci0
> ata3: <ATA channel 1> on atapci0
> pci0: <simple comms, UART> at device 3.3 (no driver attached)
> em0: <Intel(R) PRO/1000 Network Connection 7.2.3> 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
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-FndCcvuoSeY%2B5oYzmA03-E4HfUndEHHiY7J6dJtY=zYJ5VA>