From owner-freebsd-current@freebsd.org Sun Jan 21 15:42:22 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D55B8ECFAA5 for ; Sun, 21 Jan 2018 15:42:22 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6B48170854 for ; Sun, 21 Jan 2018 15:42:22 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id g1so11776294wmg.2 for ; Sun, 21 Jan 2018 07:42:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rARkayDCQbYDYkTEEDphHO7L8WyJw4sT3yAl93gpVAg=; b=GPyNiF2hvsKuMX8p4CEHwMD+N4OEZud69hTyUNYiogEWUvwulecodZdJ0nwMt6dL0c r+hN5ZPWeFCInUpEpueUT2PaEYQidhdMHmxfHUADfJcFkXDaX5aCpM8XO4nX2D/MS1wp 8GMqXWWNNfJ0ap2gJMenNJgq31/zSOR9NhlNtega8y96cQ7WETvgmvo4OQ2B9Jv+PZjX 8la0HBo7iTxmXP1esfHMRuixTJCNEPx7OPXz5ikgRfAoo0tQXwF6TmCAcTXPhdxghZpX GstDKKiSCQGdenn2Q6j5XNvjyN6Z66zvM7IqOwgU5QB5xC63+9DYkfgz2n8IaD9vSV5Z pygw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rARkayDCQbYDYkTEEDphHO7L8WyJw4sT3yAl93gpVAg=; b=pZ1llkwq7wFaIie60ROCQT2Q9lJ7sjFl9EWFsFEbE0AYgz4AoxVHQT/4XRKxPBQe8s yXhm/LsvIAKJggkVwxxzsJgdFXzcVE4/1ri3X0lfn0Sry0ckzYmOyCSYNBeOsOE65emS VghE0qotJC+l4iK4NPvGLe84m/osUgnqgIdAB/XJJ/2T6vHB1K3S/8md81/cFqhWHE0V f3wameyXacWPRWmrqj2LcAXup5+Jak9lP5svUaMVTgpbDGDivrVY/+3/Ntxh7wm1Z1vC ekhp+mkKuxSFx6i56G2NOsQXbomWQwsh5bQeRSPXmEynHN2vLw+IMJFZCiFHIYZeLzCr R7/Q== X-Gm-Message-State: AKwxytcOs8cr94ngiFz8m9O4AgDoUo8O9m8/KRLgtvCLXLtcy2W8KR/q f2IYeivtkfXBSsyRt2NsjDG97sBG1kQGa5bI8Ic92w== X-Google-Smtp-Source: AH8x2268cPuwt15IbUceqFkg16mp/ELeYq4D/Mh0CWx1BvyadV2Fqn+FqID7qPo4En2Nd75EGyiglibE2k9OHZJqzPo= X-Received: by 10.28.179.9 with SMTP id c9mr2756647wmf.99.1516549340562; Sun, 21 Jan 2018 07:42:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.136.187 with HTTP; Sun, 21 Jan 2018 07:41:40 -0800 (PST) From: Johannes Lundberg Date: Sun, 21 Jan 2018 15:41:40 +0000 Message-ID: Subject: Periodical interrupt storm when playing game with USB keyboard To: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 15:42:22 -0000 Hi Finally I found the root to the problem that's been having me puzzled for the last week. I started playing UT2004 on my laptop while away from home. Worked perfectly. When I'm home and connect external display+mouse/keyboard, I get weird random lag. It is intr process that goes up to 100% CPU usage (swi4: clock) for a couple of seconds every 30 seconds or so, but only when I'm moving around in the game. To move around you need to hold down any of the wasd-keys. Turns out, the interrupt storms only happen when I use my external keyboard, not with the laptop keyboard. The internal keyboard is: atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 and external (Microsoft sculpt ergonomic desktop): ugen0.2: at usbus0 ukbd0: on usbus0 The game runs with a linux binary. 32/64bit both act the same. It uses libSDL-1.2 from /compat/linux/lib for rendering but not sure about input events. I tried lowering the key repeat rate both with xset and kbdcontrol but it has no effect. I don't have any wired USB keyboard to try with. Anyone have a clue to what's going on? Hardware is Dell Latitude E7270 with FreeBSD 12-CURRENT drm-next-kmod linux-c6