From owner-freebsd-stable@freebsd.org Sat Mar 2 03:16:53 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 99AD5150E19E for ; Sat, 2 Mar 2019 03:16:53 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [96.73.9.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A20C71D76 for ; Sat, 2 Mar 2019 03:16:52 +0000 (UTC) (envelope-from rebecca@bluestop.org) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 12E14780C7 for ; Fri, 1 Mar 2019 20:17:54 -0700 (MST) Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ekGko9uKiMLX for ; Fri, 1 Mar 2019 20:17:53 -0700 (MST) Received: from macbex.local (gw.bluestop.org [96.73.9.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA for ; Fri, 1 Mar 2019 20:17:53 -0700 (MST) To: freebsd-stable@freebsd.org From: Rebecca Cran Subject: EHCI interrupt storm (~24000 per second) on 12.0 (Lynx Point chipset) Message-ID: Date: Fri, 1 Mar 2019 20:16:44 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4A20C71D76 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.75 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bluestop.org:s=mail]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-2.93)[ip: (-9.74), ipnet: 96.64.0.0/11(-4.28), asn: 7922(-0.56), country: US(-0.07)]; DKIM_TRACE(0.00)[bluestop.org:+]; DMARC_POLICY_ALLOW(-0.50)[bluestop.org,quarantine]; MX_GOOD(-0.01)[mail.bluestop.org]; NEURAL_HAM_SHORT(-0.81)[-0.815,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Mar 2019 03:16:53 -0000 I have an Intel Server board (it's a UEFI Development Kit system, based on the S1200V3RPS) that I recently upgraded to 12.0-RELEASE, and today noticed the intr task taking up too much CPU time. I can't say whether this is a regression from 11.x or not. Looking at the output of "vmstat -i" there appears to be an interrupt storm: bcran@muon:~ % vmstat -i interrupt                          total       rate irq4: uart0                          248          4 irq16: ehci0                         147          2 irq23: ehci1                     1689451      24000 cpu0:timer                          6398         91 cpu1:timer                          3696         53 cpu2:timer                          2246         32 cpu3:timer                          2386         34 cpu4:timer                          3152         45 cpu5:timer                          2341         33 cpu6:timer                         75101       1067 cpu7:timer                          1646         23 irq265: igb0:rxq0                    118          2 irq266: igb0:rxq1                    133          2 irq267: igb0:rxq2                     17          0 irq268: igb0:rxq3                    259          4 irq269: igb0:aq                        2          0 irq270: igb1:rxq0                      2          0 irq275: ahci0                      17450        248 Total                            1804793      25639 This is after I tried setting hw.usb.ehci.lostintrbug=1 in /boot/loader and rebooting. The USB devices connected are: bcran@muon:~ % sudo usbconfig ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.3: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (2mA) dmesg shows it being a Lynx Point USB controller: ehci1: mem 0xc2b29000-0xc2b293ff at device 29.0 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci1 usbus1: 480Mbps High Speed USB v2.0 Strangely, em0 is failing to attach, but I guess that's unrelated? em0: port 0x5040-0x505f mem 0xc2b00000-0xc2b1ffff,0xc2b2b000-0xc2b2bfff at device 25.0 on pci0 em0: attach_pre capping queues at 1 em0: Setup of Shared code failed, error -2 em0: IFDI_ATTACH_PRE failed 6 device_attach: em0 attach returned 6 -- Rebecca Cran