From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 15 21:05:21 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 423E051C for ; Mon, 15 Sep 2014 21:05:21 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 289A7F0D for ; Mon, 15 Sep 2014 21:05:21 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8FL5Lh6048581 for ; Mon, 15 Sep 2014 21:05:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 193500] Interrupt storm after loading i915kms module on Gen4 Intel GPU Date: Mon, 15 Sep 2014 21:05:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: i915 X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jan.kokemueller@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 21:05:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D193500 --- Comment #16 from Jan Kokem=C3=BCller --- Created attachment 147363 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D147363&action= =3Dedit ktrdump while loading i915kms (debug.ktr.mask=3D4) (In reply to Konstantin Belousov from comment #15) > So can you describe what the problem is and why your patch help ? My best guess is that it's some kind of initialization problem regarding the interrupts, because the behavior stops after a suspend/resume cycle. The problem started with (or was uncovered by) the opregion code changes. If I = stub out intel_enable_asle the problem goes away. The patch makes it so that intel_enable_asle gets first called only after I disable/enable the interru= pts of the card. Then there is no interrupt storm anymore. I'll try to debug th= is further. > To see what kind of interrupt causes the storm, compile kernel with KTR_D= RM > and enable ktr(4) tracing for it. I compiled the kernel with KTR, and enabled KTR_DRM by setting "sysctl debug.ktr.mask=3D4". Then I loaded an unpatched i915kms module. I've attach= ed the log (interesting events are from 34 to 48). It seems only the interrupts on irq260 are accounted for. Any way I can trace the interrupts on irq16? --=20 You are receiving this mail because: You are the assignee for the bug.=