Re: FreeBSD 9-Beta3 on X300 2 problems

From: Attilio Rao <attilio_at_freebsd.org>
Date: Wed, 28 Sep 2011 14:06:41 +0200
2011/9/27 crsnet.pl <crsnet_at_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 suspend.
> 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 it
> 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
>        The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 9.0-BETA3 #3: Tue Sep 27 10:47:57 CEST 2011
>    cr4sh_at_x300:/sys/amd64/compile/GENERIC amd64
> WARNING: WITNESS option enabled, expect reduced performance.
> CPU: Intel(R) Core(TM)2 Duo CPU     L7100  _at_ 1.20GHz (1197.03-MHz K8-class
> CPU)
>  Origin = "GenuineIntel"  Id = 0x6fb  Family = 6  Model = f  Stepping = 11
>  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,P
>
>                 BE>
>  Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
>  AMD Features=0x20100800<SYSCALL,NX,LM>
>  AMD Features2=0x1<LAHF>
>  TSC: P-state invariant, performance statistics
> real memory  = 2147483648 (2048 MB)
> avail memory = 2019139584 (1925 MB)
> Event timer "LAPIC" quality 400
> ACPI APIC Table: <LENOVO TP-7T   >
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
> FreeBSD/SMP: 1 package(s) x 2 core(s)
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  1
> 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
>
>        n pci0
> em0: Using an MSI interrupt
> acquiring duplicate lock of same type: "network driver"
>  1st &dev_spec->swflag_mutex _at_ dev/e1000/e1000_ich8lan.c:785
>  2nd &dev_spec->nvm_mutex _at_ 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


-- 
Peace can only be achieved by understanding - A. Einstein
Received on Wed Sep 28 2011 - 10:06:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC