NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/55497: piixide causing interrupt storm



>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@localhost
>Release:        NetBSD 7.2_STABLE
>Organization:
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier%poofygoof.com@localhost
  "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@localhost:/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:
 	
 	



Home | Main Index | Thread Index | Old Index