Re: FreeBSD 9-Beta3 on X300 2 problems

2011-09-28 Thread Attilio Rao
2011/9/27 crsnet.pl crs...@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@x300:/sys/amd64/compile/GENERIC amd64
 WARNING: WITNESS option enabled, expect reduced performance.
 CPU: Intel(R) Core(TM)2 Duo CPU     L7100  @ 1.20GHz (1197.03-MHz K8-class
 CPU)
  Origin = GenuineIntel  Id = 0x6fb  Family = 6  Model = f  Stepping = 11
  Features=0xbfebfbffFPU,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=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  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:
 0x102C/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, a (3) failed
 acpi0: reservation of 10, 7ef0 (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
 0xfa00-0xfa0f,0xe000-0xefff 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 0xfa10-0xfa1f 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
 0xfa20-0xfa21,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 @ dev/e1000/e1000_ich8lan.c:785
  2nd 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


-- 
Peace can only be achieved by understanding - A. Einstein
___
freebsd-sta...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 

Re: FreeBSD 9-Beta3 on X300 2 problems

2011-09-27 Thread 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@x300:/sys/amd64/compile/GENERIC amd64
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Intel(R) Core(TM)2 Duo CPU L7100  @ 1.20GHz (1197.03-MHz 
K8-class CPU)
  Origin = GenuineIntel  Id = 0x6fb  Family = 6  Model = f  Stepping 
= 11
  
Features=0xbfebfbffFPU,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=0xe3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM

  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  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: 
0x102C/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, a (3) failed
acpi0: reservation of 10, 7ef0 (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 
0xfa00-0xfa0f,0xe000-0xefff 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 0xfa10-0xfa1f 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 0xfa20-0xfa21,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 @ dev/e1000/e1000_ich8lan.c:785
 2nd dev_spec-nvm_mutex @ dev/e1000/e1000_ich8lan.c:751
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
_witness_debugger() at _witness_debugger+0x2e
witness_checkorder() at witness_checkorder+0x8de
_mtx_lock_flags() at _mtx_lock_flags+0x79
e1000_acquire_nvm_ich8lan() at e1000_acquire_nvm_ich8lan+0x1e
e1000_read_nvm_ich8lan() at e1000_read_nvm_ich8lan+0x76
e1000_post_phy_reset_ich8lan() at e1000_post_phy_reset_ich8lan+0x1b1
e1000_reset_hw_ich8lan() at e1000_reset_hw_ich8lan+0x4c1
em_attach() at em_attach+0x11bd
device_attach() at device_attach+0x69
bus_generic_attach() at bus_generic_attach+0x1a
acpi_pci_attach() at acpi_pci_attach+0x14f

Re: FreeBSD 9-Beta3 on X300 2 problems

2011-09-26 Thread Adrian Chadd
Hi,

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.
(And you haven't told us what your hardware is.)


Adrian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org