NetBSD Problem Report #55497
From agrier@poofygoof.com Sun Jul 19 01:23:16 2020
Return-Path: <agrier@poofygoof.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 127DF1A9213
for <gnats-bugs@gnats.NetBSD.org>; Sun, 19 Jul 2020 01:23:16 +0000 (UTC)
Message-Id: <20200719000730.4B6B72A86C@faramir.poofy.goof.com>
Date: Sat, 18 Jul 2020 17:07:30 -0700 (PDT)
From: agrier@faramir.poofy.goof.com
Reply-To: agrier@faramir.poofy.goof.com
To: gnats-bugs@NetBSD.org
Subject: piixide causing interrupt storm
X-Send-Pr-Version: 3.95
>Number: 55497
>Category: port-amd64
>Synopsis: piixide causing interrupt storm
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-amd64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 19 01:25:00 +0000 2020
>Originator: agrier@faramir.poofy.goof.com
>Release: NetBSD 7.2_STABLE
>Organization:
Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com
"The price of reliability is the pursuit of the utmost simplicity. It
is a price which the very rich find most hard to pay." -- Tony Hoare
>Environment:
System: NetBSD faramir.poofy.goof.com 7.2_STABLE NetBSD 7.2_STABLE (GENERIC) #1: Sun Feb 10 18:29:20 PST 2019 agrier@virgil.poofy.goof.com:/var/obj/7.2_STABLE/amd64/amd/memphis/media/NetBSD/7/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
seeing interrupt storm on ioapic0 pin 18:
ioapic0 pin 18 800784898423 222444
eating roughly half a core with interrupt time. why?
>How-To-Repeat:
boot system, examine output of vmstat -i.
>Fix:
disable interrupts by setting bit10 (disable interrupts) of PCI control
register on unused piixide0 interface:
piixide0 at pci0 dev 31 function 1: Intel 82801GB/GR IDE Controller (ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel configured to native-PCI mode
piixide0: using ioapic0 pin 18 for native-PCI interrupt
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to native-PCI mode
piixide0: secondary channel ignored (disabled)
# nothing connected to atabus0!
faramir$ sudo pcictl /dev/pci0 read -b 0 -d 31 -f 1 4
02880005
faramir$ sudo pcictl /dev/pci0 write -b 0 -d 31 -f 1 4 0x02880405
# interrupt storm stops.
I have not tried a newer kernel yet, but have observed this since
NetBSD-6.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.