Re: Lynx Point USB - large amount of interrupts (300k / second)

2015-01-10 Thread Hans Petter Selasky

On 01/10/15 16:53, Adrian Chadd wrote:

Real interrupt:

frindex=0x12f6 ctrdsegm=0x periodic=0xda3cf000 async=0xda3d1000
port 1 status=0x1005
port 2 status=0x1000
ehci_interrupt: real interrupt
cmd=0x00010031
  EHCI_CMD_ITC_1
  EHCI_CMD_ASE
  EHCI_CMD_PSE
  EHCI_CMD_RS
sts=0xc008
  EHCI_STS_ASS
  EHCI_STS_PSS
  EHCI_STS_FLR
ien=0x0037



Hi,

Can you collect some statistics how frequently the message appears, and 
which one is repeating most?


Also did you try setting:

hw.usb.ehci.iaadbug=1

hw.usb.ehci.lostintrbug=1

separately in /boot/loader.conf ?

--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"


Re: Lynx Point USB - large amount of interrupts (300k / second)

2015-01-10 Thread Adrian Chadd
Real interrupt:

frindex=0x12f6 ctrdsegm=0x periodic=0xda3cf000 async=0xda3d1000
port 1 status=0x1005
port 2 status=0x1000
ehci_interrupt: real interrupt
cmd=0x00010031
 EHCI_CMD_ITC_1
 EHCI_CMD_ASE
 EHCI_CMD_PSE
 EHCI_CMD_RS
sts=0xc008
 EHCI_STS_ASS
 EHCI_STS_PSS
 EHCI_STS_FLR
ien=0x0037




-adrian


On 10 January 2015 at 03:52, Hans Petter Selasky  wrote:
> On 01/10/15 00:37, Daniel Kolesa wrote:
>>
>> 2015-01-09 23:26 GMT+00:00 Daniel Kolesa :
>>>
>>> 2015-01-09 20:24 GMT+00:00 Adrian Chadd :

 hi,

 I have a haswell desktop box at home:

 CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz (3192.67-MHz K8-class CPU)

 With lynx point USB:
>>>
>>>
>>> Also Haswell here, but with H97 chipset, which means Wildcat Point
>>> USB. Not getting the issue.
>>>

 adrian@test-2:~ % dmesg | grep ehci
 ehci0:  mem
 0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0
 usbus1 on ehci0
 ehci1:  mem
 0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0
 usbus2 on ehci1

>
> Hi,
>
> You can easily check who's generating the interrupts by setting:
>
> hw.usb.ehci.debug=16
> hw.usb.xhci.debug=16
>
> If the interrupt status is all-zero, then it is a bug somewhere else!
>
> --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"


Re: Lynx Point USB - large amount of interrupts (300k / second)

2015-01-10 Thread Hans Petter Selasky

On 01/10/15 00:37, Daniel Kolesa wrote:

2015-01-09 23:26 GMT+00:00 Daniel Kolesa :

2015-01-09 20:24 GMT+00:00 Adrian Chadd :

hi,

I have a haswell desktop box at home:

CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz (3192.67-MHz K8-class CPU)

With lynx point USB:


Also Haswell here, but with H97 chipset, which means Wildcat Point
USB. Not getting the issue.



adrian@test-2:~ % dmesg | grep ehci
ehci0:  mem
0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0
usbus1 on ehci0
ehci1:  mem
0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0
usbus2 on ehci1



Hi,

You can easily check who's generating the interrupts by setting:

hw.usb.ehci.debug=16
hw.usb.xhci.debug=16

If the interrupt status is all-zero, then it is a bug somewhere else!

--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"


Re: Lynx Point USB - large amount of interrupts (300k / second)

2015-01-09 Thread Daniel Kolesa
2015-01-09 23:26 GMT+00:00 Daniel Kolesa :
> 2015-01-09 20:24 GMT+00:00 Adrian Chadd :
>> hi,
>>
>> I have a haswell desktop box at home:
>>
>> CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz (3192.67-MHz K8-class CPU)
>>
>> With lynx point USB:
>
> Also Haswell here, but with H97 chipset, which means Wildcat Point
> USB. Not getting the issue.
>
>>
>> adrian@test-2:~ % dmesg | grep ehci
>> ehci0:  mem
>> 0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0
>> usbus1 on ehci0
>> ehci1:  mem
>> 0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0
>> usbus2 on ehci1
>>
>>
>> ehci0@pci0:0:26:0:class=0x0c0320 card=0x367d17aa chip=0x8c2d8086
>> rev=0x05 hdr=0x00
>> vendor = 'Intel Corporation'
>> device = 'Lynx Point USB Enhanced Host Controller'
>> class  = serial bus
>> subclass   = USB
>>
>> ehci1@pci0:0:29:0:  class=0x0c0320 card=0x367d17aa chip=0x8c268086
>> rev=0x05 hdr=0x00
>> vendor = 'Intel Corporation'
>> device = 'Lynx Point USB Enhanced Host Controller'
>> class  = serial bus
>> subclass   = USB
>>
>>
>> and:
>>
>> xhci0:  mem 0xf7f0-0xf7f0
>> irq 16 at device 20.0 on pci0
>> xhci0: 32 byte context size.
>> xhci0: Port routing mask set to 0x
>> usbus0 on xhci0
>>
>> xhci0@pci0:0:20:0:  class=0x0c0330 card=0x367d17aa chip=0x8c318086
>> rev=0x05 hdr=0x00
>> vendor = 'Intel Corporation'
>> device = 'Lynx Point USB xHCI Host Controller'
>> class  = serial bus
>> subclass   = USB
>>
>> .. now, whta I'm seeing is this:
>>
>> irq16: ehci0 21441217509  25285
>> stray irq160  0
>>
>> ... systat -vmstat 1 shows the interrupt rate to be ridiculous though,
>> like 230,000 interrupts a second.
>
> The numbers it shows here are very small.
>
>>
>> Proc:Interrupts
>>   r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Fltioflt  256k total
>>  45   6  510k   11  245 255k   163cow255k ehci0 
>> 16
>> 1 zfodehci1 
>> 23
>>
>> .. so, what gives? :) Has anyone else seen this?
>>
>>
>>
>> -adrian
>> ___
>> 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"
>
> Daniel

Oops. Accidentally sent only to Adrian rather than the list. Sorry
___
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"


Lynx Point USB - large amount of interrupts (300k / second)

2015-01-09 Thread Adrian Chadd
hi,

I have a haswell desktop box at home:

CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz (3192.67-MHz K8-class CPU)

With lynx point USB:

adrian@test-2:~ % dmesg | grep ehci
ehci0:  mem
0xf7f1c000-0xf7f1c3ff irq 16 at device 26.0 on pci0
usbus1 on ehci0
ehci1:  mem
0xf7f1b000-0xf7f1b3ff irq 23 at device 29.0 on pci0
usbus2 on ehci1


ehci0@pci0:0:26:0:class=0x0c0320 card=0x367d17aa chip=0x8c2d8086
rev=0x05 hdr=0x00
vendor = 'Intel Corporation'
device = 'Lynx Point USB Enhanced Host Controller'
class  = serial bus
subclass   = USB

ehci1@pci0:0:29:0:  class=0x0c0320 card=0x367d17aa chip=0x8c268086
rev=0x05 hdr=0x00
vendor = 'Intel Corporation'
device = 'Lynx Point USB Enhanced Host Controller'
class  = serial bus
subclass   = USB


and:

xhci0:  mem 0xf7f0-0xf7f0
irq 16 at device 20.0 on pci0
xhci0: 32 byte context size.
xhci0: Port routing mask set to 0x
usbus0 on xhci0

xhci0@pci0:0:20:0:  class=0x0c0330 card=0x367d17aa chip=0x8c318086
rev=0x05 hdr=0x00
vendor = 'Intel Corporation'
device = 'Lynx Point USB xHCI Host Controller'
class  = serial bus
subclass   = USB

.. now, whta I'm seeing is this:

irq16: ehci0 21441217509  25285
stray irq160  0

... systat -vmstat 1 shows the interrupt rate to be ridiculous though,
like 230,000 interrupts a second.

Proc:Interrupts
  r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Fltioflt  256k total
 45   6  510k   11  245 255k   163cow255k ehci0 16
1 zfodehci1 23

.. so, what gives? :) Has anyone else seen this?



-adrian
___
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"