Re: usb/172199: high interrupts load xhci

2012-11-21 Thread Victor van Vlaardingen
The following reply was made to PR usb/172199; it has been noted by GNATS.

From: "Victor van Vlaardingen" 
To: ,

Cc:  
Subject: Re: usb/172199: high interrupts load xhci
Date: Thu, 22 Nov 2012 08:09:03 +0100

 This is a multi-part message in MIME format.
 
 --=_NextPart_000_0224_01CDC888.A290ABB0
 Content-Type: text/plain;
charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 >Hi,
 >
 >Can you collect some dmesg?
 >
 >sysctl hw.usb.xhci.debug=3D16 ; sleep 1; sysctl hw.usb.xhci.debug=3D0
 >
 >--HPS
 
 Hi,
 
 I have the same symptom, but with plugging and unplugging a monitor and =
 also just toggling the monitor's power.
 With the high interrupt happening I did your dmesg test. I got a whole =
 bunch of :
 xhci_interrupt: real interrupt (sts=3D0x, iman=3D0x0002)
 
 I have seen this on a :
 Gigabyte GA-Z77-DS3H (with Core i3-2120T)
 Intel DH77KC (same Core i3-2120T)
 
 I'm using the intergrated graphics on the cpu.
 It doesn't matter whether the DSUB (only on the GA) or DVI port is used.
 
 Currently I'm on the Intel board and its interrupt usage reported by =
 systat -vmstat is :
 Interrupts
 159k total
 atkbd0 1
 158k xhci0 ehci
 4 em1 17
 56 ath0 19
 2 ehci1 23
 1127 cpu0:timer
 2 em0 256
 35 ahci0 257
 16 cpu1:timer
 10 cpu3:timer
 22 cpu2:timer
 
 Some more info about the system follows :
 
 [root@bsd /]# uptime
  6:57AM  up 11:28, 1 user, load averages: 0.51, 0.38, 0.23
 
 
 [root@bsd /]# uname -a
 FreeBSD bsd.hostname.here 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue =
 Jun 12 02:52:29 UTC 2012 =
 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
 
 Note that I saw the same thing when I tried 9.1RC3 amd64
 
 
 [root@bsd /]# dmesg
 Copyright (c) 1992-2012 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-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012
 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC =
 amd64
 CPU: Intel(R) Core(TM) i3-2120T CPU @ 2.60GHz (2594.16-MHz K8-class CPU)
   Origin =3D "GenuineIntel"  Id =3D 0x206a7  Family =3D 6  Model =3D 2a  =
 Stepping =3D 7
   =
 Features=3D0xbfebfbff
   =
 Features2=3D0x159ae3bf
   AMD Features=3D0x28100800
   AMD Features2=3D0x1
   TSC: P-state invariant, performance statistics
 real memory  =3D 17179869184 (16384 MB)
 avail memory =3D 16423026688 (15662 MB)
 Event timer "LAPIC" quality 600
 ACPI APIC Table: 
 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
  cpu2 (AP): APIC ID:  2
  cpu3 (AP): APIC ID:  3
 ACPI Warning: FADT (revision 5) is longer than ACPI 2.0 version, =
 truncating length 268 to 244 (20110527/tbfadt-320)
 ioapic0  irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0:  on motherboard
 acpi0: Power Button (fixed)
 acpi0: reservation of 67, 1 (4) failed
 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
 cpu0:  on acpi0
 cpu1:  on acpi0
 cpu2:  on acpi0
 cpu3:  on acpi0
 pcib0:  port 0xcf8-0xcff on acpi0
 pci0:  on pcib0
 vgapci0:  port 0xf000-0xf03f mem =
 0xf780-0xf7bf,0xe000-0xefff irq 16 at device 2.0 on pci0
 xhci0:  mem 0xf7d2-0xf7d2 irq =
 16 at device 20.0 on pci0
 xhci0: 32 byte context size.
 usbus0 on xhci0
 pci0:  at device 22.0 (no driver attached)
 em0:  port 0xf080-0xf09f mem =
 0xf7d0-0xf7d1,0xf7d35000-0xf7d35fff irq 20 at device 25.0 on =
 pci0
 em0: Using an MSI interrupt
 em0: Ethernet address: e8:40:f2:ab:e1:13
 ehci0:  mem 0xf7d34000-0xf7d343ff irq =
 16 at device 26.0 on pci0
 usbus1: EHCI version 1.0
 usbus1:  on ehci0
 pcib1:  irq 16 at device 28.0 on pci0
 pci1:  on pcib1
 pcib2:  irq 19 at device 28.7 on pci0
 pci2:  on pcib2
 pcib3:  irq 19 at device 0.0 on pci2
 pci3:  on pcib3
 ath0:  mem 0xf7c6-0xf7c6 irq 19 at device 0.0 on =
 pci3
 ath0: AR2413 mac 7.9 RF2413 phy 4.5
 em1:  port =
 0xe000-0xe03f mem 0xf7c4-0xf7c5,0xf7c2-0xf7c3 irq 17 at =
 device 2.0 on pci3
 em1: Ethernet address: 00:1b:21:29:a6:4c
 ehci1:  mem 0xf7d33000-0xf7d333ff irq =
 23 at device 29.0 on pci0
 usbus2: EHCI version 1.0
 usbus2:  on ehci1
 isab0:  at device 31.0 on pci0
 isa0:  on isab0
 ahci0:  port =
 0xf0d0-0xf0d7,0xf0c0-0xf0c3,0xf0b0-0xf0b7,0xf0a0-0xf0a3,0xf060-0xf07f =
 mem 0xf7d32000-0xf7d327ff irq 19 at device 31.2 on pci0
 ahci0: AHCI v1.30 with 6 6Gbps ports, Port Multiplier not supported
 ahcich0:  at channel 0 on ahci0
 ahcich1:  at channel 1 on ahci0
 ahcich2:  at channel 5 on ahci0
 pci0:  at device 31.3 (no driver attached)
 acpi_button0:  on acpi0
 acpi_tz0:  on acpi0
 acpi_tz1:  on acpi0
 hpet0:  iomem 

Re: usb/172199: high interrupts load xhci

2012-10-01 Thread Hans Petter Selasky
The following reply was made to PR usb/172199; it has been noted by GNATS.

From: Hans Petter Selasky 
To: freebsd-usb@freebsd.org
Cc: Aleksei Reytsman ,
 freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/172199: high interrupts load xhci
Date: Mon, 1 Oct 2012 10:44:11 +0200

 On Monday 01 October 2012 10:15:48 Aleksei Reytsman wrote:
 > >Number: 172199
 > >Category:   usb
 > >Synopsis:   high interrupts load xhci
 > >Confidential:   no
 > >Severity:   non-critical
 > >Priority:   low
 > >Responsible:freebsd-usb
 > >State:  open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:  sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Mon Oct 01 08:20:03 UTC 2012
 > >Closed-Date:
 > >Last-Modified:
 > >Originator: Aleksei Reytsman
 > >Release:9.0
 > 
 > >Organization:
 > Solvex-Tourne ltd
 > 
 > >Environment:
 > # uname -a
 > FreeBSD servergate 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Mar 28 15:00:36
 > MSK 2012 root@servergate:/usr/src/sys/amd64/compile/MYKERNEL  amd64
 > 
 > >Description:
 > Hello.
 > I have a very high interrupts load on my FreeBSD machine. It happens when i
 > plug any USB device (like a keyboard), and the load is still high after
 > disconnecting the device. It becomes normal after reboot. My system based
 > on ASUS P8Z68-V Pro/Gen3 motherboard.
 > MYKERNEL is the GENERIC kernel with ipfw support.
 > Sorry for bad English.
 > Some debug information below:
 > 
 > # vmstat -i
 > interrupt  total   rate
 > irq16: xhci1 10760525071  17776
 > irq23: ehci0 ehci1   1826517  3
 > cpu0:timer 619928626   1024
 > irq256: em0:rx 05426 89
 > irq257: em0:tx 042013316 69
 > irq258: em0:link   2  0
 > irq262: em2:rx 0   541775211895
 > irq263: em2:tx 0   498677204823
 > irq264: em2:link   1  0
 > irq265: em3:rx 0   300580772496
 > irq266: em3:tx 0   593156009979
 > irq268: ahci05757554  9
 > cpu1:timer 123236782203
 > cpu3:timer 100504666166
 > cpu2:timer  58767827 97
 > Total13701027334  22634
 > 
 > # systat -vmstat
 > 1 usersLoad  0.32  0.51  0.50  Oct  1 11:52
 > 
 > Mem:KBREALVIRTUAL   VN PAGER   SWAP
 > PAGER Tot   Share  TotShareFree   in   out in  
 > out Act 1481080  158408  5595688   175752 2913052  count
 > All 1581028  164260 1079516k   209568  pages
 > Proc:Interrupts
 >   r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Fltcow173k total
 > 137  349k   24  122 171k 10553zfod   166k xhci1
 > 16 ozfod 3 ehci0 ehci 0.1%Sys  18.0%Intr  0.0%User  0.0%Nice 81.9%Idle
 >%ozfod  1128 cpu0:timer
 > 
 > |||||||||||   daefr76 em0:rx
 > |||||||||||   0
 > 
 > + prcfr72
 > em0:tx 0 17 dtbuf3 totfr   em0:link Namei Name-cache  
 > Dir-cache204931 desvn  react  1216 em2:rx 0 Callshits   % 
 >   hits   %179871 numvn  pdwak  1146 em2:tx 0 353 353 100  
 >   49693 frevn  pdpgs   em2:link intrn   933 em3:rx
 > 0 Disks  ada0  ada1 pass0 pass1  731484 wire   1312
 > em3:tx 0 KB/t  30.98 30.98  0.00  0.00 1123916 act
 >  24 ahci0 268 tps  1212 0 0 3233464
 > inact   914 cpu1:timer MB/s   0.35  0.35  0.00  0.00  
 >   276 cache   139 cpu3:timer %busy 0 0 0 0
 > 2912776 free 72 cpu2:timer 837152 buf
 > # pciconf -lv
 > hostb0@pci0:0:0:0:  class=0x06 card=0x844d1043 chip=0x01008086
 > rev=0x09 hdr=0x00 vendor = 'Intel Corporation'
 > device = '2nd Generation Core Processor Family DRAM Controller'
 > class  = bridge
 > subclass   = HOST-PCI
 > - - - - -
 > xhci0@pci0:4:0:0:   class=0x0c0330 card=0x84881043 chip=0x10421b21
 > rev=0x00 hdr=0x00 vendor = 'ASMedia Technology Inc.'
 > device = 'ASM1042 SuperSpeed USB Host Controller'
 > class  =

Re: usb/172199: high interrupts load xhci

2012-10-01 Thread Hans Petter Selasky
On Monday 01 October 2012 10:15:48 Aleksei Reytsman wrote:
> >Number: 172199
> >Category:   usb
> >Synopsis:   high interrupts load xhci
> >Confidential:   no
> >Severity:   non-critical
> >Priority:   low
> >Responsible:freebsd-usb
> >State:  open
> >Quarter:
> >Keywords:
> >Date-Required:
> >Class:  sw-bug
> >Submitter-Id:   current-users
> >Arrival-Date:   Mon Oct 01 08:20:03 UTC 2012
> >Closed-Date:
> >Last-Modified:
> >Originator: Aleksei Reytsman
> >Release:9.0
> 
> >Organization:
> Solvex-Tourne ltd
> 
> >Environment:
> # uname -a
> FreeBSD servergate 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Wed Mar 28 15:00:36
> MSK 2012 root@servergate:/usr/src/sys/amd64/compile/MYKERNEL  amd64
> 
> >Description:
> Hello.
> I have a very high interrupts load on my FreeBSD machine. It happens when i
> plug any USB device (like a keyboard), and the load is still high after
> disconnecting the device. It becomes normal after reboot. My system based
> on ASUS P8Z68-V Pro/Gen3 motherboard.
> MYKERNEL is the GENERIC kernel with ipfw support.
> Sorry for bad English.
> Some debug information below:
> 
> # vmstat -i
> interrupt  total   rate
> irq16: xhci1 10760525071  17776
> irq23: ehci0 ehci1   1826517  3
> cpu0:timer 619928626   1024
> irq256: em0:rx 05426 89
> irq257: em0:tx 042013316 69
> irq258: em0:link   2  0
> irq262: em2:rx 0   541775211895
> irq263: em2:tx 0   498677204823
> irq264: em2:link   1  0
> irq265: em3:rx 0   300580772496
> irq266: em3:tx 0   593156009979
> irq268: ahci05757554  9
> cpu1:timer 123236782203
> cpu3:timer 100504666166
> cpu2:timer  58767827 97
> Total13701027334  22634
> 
> # systat -vmstat
> 1 usersLoad  0.32  0.51  0.50  Oct  1 11:52
> 
> Mem:KBREALVIRTUAL   VN PAGER   SWAP
> PAGER Tot   Share  TotShareFree   in   out in  
> out Act 1481080  158408  5595688   175752 2913052  count
> All 1581028  164260 1079516k   209568  pages
> Proc:Interrupts
>   r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Fltcow173k total
> 137  349k   24  122 171k 10553zfod   166k xhci1
> 16 ozfod 3 ehci0 ehci 0.1%Sys  18.0%Intr  0.0%User  0.0%Nice 81.9%Idle
>%ozfod  1128 cpu0:timer
> 
> |||||||||||   daefr76 em0:rx
> |||||||||||   0
> 
> + prcfr72
> em0:tx 0 17 dtbuf3 totfr   em0:link Namei Name-cache  
> Dir-cache204931 desvn  react  1216 em2:rx 0 Callshits   % 
>   hits   %179871 numvn  pdwak  1146 em2:tx 0 353 353 100  
>   49693 frevn  pdpgs   em2:link intrn   933 em3:rx
> 0 Disks  ada0  ada1 pass0 pass1  731484 wire   1312
> em3:tx 0 KB/t  30.98 30.98  0.00  0.00 1123916 act
>  24 ahci0 268 tps  1212 0 0 3233464
> inact   914 cpu1:timer MB/s   0.35  0.35  0.00  0.00  
>   276 cache   139 cpu3:timer %busy 0 0 0 0
> 2912776 free 72 cpu2:timer 837152 buf
> # pciconf -lv
> hostb0@pci0:0:0:0:  class=0x06 card=0x844d1043 chip=0x01008086
> rev=0x09 hdr=0x00 vendor = 'Intel Corporation'
> device = '2nd Generation Core Processor Family DRAM Controller'
> class  = bridge
> subclass   = HOST-PCI
> - - - - -
> xhci0@pci0:4:0:0:   class=0x0c0330 card=0x84881043 chip=0x10421b21
> rev=0x00 hdr=0x00 vendor = 'ASMedia Technology Inc.'
> device = 'ASM1042 SuperSpeed USB Host Controller'
> class  = serial bus
> subclass   = USB
> - - - - -
> xhci1@pci0:7:0:0:   class=0x0c0330 card=0x84881043 chip=0x10421b21
> rev=0x00 hdr=0x00 vendor = 'ASMedia Technology Inc.'
> device = 'ASM1042 SuperSpeed USB Host Controller'
> class  = serial bus
> subclass   = USB
> 
> >How-To-Repeat:
> Plug any USB device.
> 
> >Fix:
> >
> >
> >Release-Note:
> >Audit-Trail:
> 
> >Unformatted:

Hi,

Can you collect some dmesg?

sysctl hw.usb.xhci.debug=16 ; sleep 1; sysctl hw.usb.xhci.debug=0

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