From owner-freebsd-usb@freebsd.org Tue Mar 27 20:28:47 2018 Return-Path: Delivered-To: freebsd-usb@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 8FB1CF571A9 for ; Tue, 27 Mar 2018 20:28:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1521F7E7DF for ; Tue, 27 Mar 2018 20:28:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 525CE6034 for ; Tue, 27 Mar 2018 20:28:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2RKSku9083694 for ; Tue, 27 Mar 2018 20:28:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2RKSkBM083692 for freebsd-usb@FreeBSD.org; Tue, 27 Mar 2018 20:28:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 226968] IRQ storm on cpu0 timer when holding down key on USB keyboard Date: Tue, 27 Mar 2018 20:28:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: johalun0@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 20:28:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226968 --- Comment #6 from Johannes Lundberg --- Here output from=20 # dtrace -n 'profile-997hz /arg0/ { @[func(arg0)]=3Dcount(); }' run for about 10 seconds for each state=20 First idle state -- SNIP -- linux_common.ko`linux_kernver 1 linux.ko`linux_gettimeofday 1 linux.ko`linux_sendsig 1 kernel`ithread_loop 2 kernel`witness_checkorder 2 kernel`witness_warn 2 linux.ko`0xffffffff820c2f60 2 kernel`_isitmyx 3 kernel`witness_unlock 4 kernel`vt_fb_bitblt_bitmap 11 kernel`spinlock_exit 11 kernel`cpu_idle 37 kernel`acpi_cpu_idle 26778 And then with cpu0:timer firing at 800k/s -- SNIP -- kernel`pagezero 1 linux.ko`0xffffffff820c2f60 1 kernel`vt_fb_bitblt_text 2 kernel`vt_fb_bitblt_bitmap 11 kernel`lock_mtx 16 kernel`lock_delay 21 kernel`unlock_mtx 31 kernel`cpu_idle 55 kernel`callout_when 57 kernel`witness_lock 77 kernel`callout_reset_sbt_on 85 kernel`spinlock_enter 99 kernel`__mtx_lock_spin_flags 103 kernel`softclock_call_cc 118 kernel`ukbd_timeout 119 kernel`witness_checkorder 150 kernel`__mtx_assert 155 kernel`usbd_in_polling_mode 167 kernel`__mtx_lock_flags 179 kernel`__mtx_unlock_flags 180 kernel`ukbd_interrupt 298 kernel`memcpy 313 kernel`witness_unlock 318 kernel`spinlock_exit 11745 kernel`acpi_cpu_idle 45519 And some procstat -ak during irq storm root@jd2:/usr/home/johannes # procstat -ak|grep 100023 12 100023 intr swi4: clock (0) mi_switch ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) =20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) callout_reset_sbt_on ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) =20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_e= xit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) =20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) ukbd_interrupt ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) callout_reset_sbt_on ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) callout_reset_sbt_on ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) =20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) callout_reset_sbt_on ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline=20 root@jd2:/usr/home/johannes # procstat -ak | grep 100023 12 100023 intr swi4: clock (0) ukbd_interrupt ukbd_timeout softclock_call_cc softclock intr_event_execute_handlers ithread_loop fork_exit fork_trampoline --=20 You are receiving this mail because: You are the assignee for the bug.=