NetBSD Problem Report #55263

From www@netbsd.org  Thu May 14 16:19:29 2020
Return-Path: <www@netbsd.org>
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 A08F01A9213
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 14 May 2020 16:19:29 +0000 (UTC)
Message-Id: <20200514161928.64DC61A9218@mollari.NetBSD.org>
Date: Thu, 14 May 2020 16:19:28 +0000 (UTC)
From: cryintothebluesky@gmail.com
Reply-To: cryintothebluesky@gmail.com
To: gnats-bugs@NetBSD.org
Subject: BeagleBone Black too many interrupts on CPU when using 5V DC power cable
X-Send-Pr-Version: www-1.0

>Number:         55263
>Category:       port-evbarm
>Synopsis:       BeagleBone Black too many interrupts on CPU when using 5V DC power cable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 14 16:20:01 +0000 2020
>Closed-Date:    Fri Jun 05 08:23:15 +0000 2020
>Last-Modified:  Sun Jun 07 16:40:01 +0000 2020
>Originator:     Sad Clouds
>Release:        9.0
>Organization:
>Environment:
>Description:
I see a strange issue with NetBSD-9.0 on BeagleBone Black. When it is powered via USB cable, everything is OK and CPU is normally idle.

But when it is powered via 5V DC cable, about 30-40% of CPU is constantly consumed by interrupts (as reported by top).

Looking at output of "vmstat -iv" the only thing I notice is "irq 64" which is a bit higher (34 vs 7) when powered via 5V DC:

5V DC:
$ vmstat -iv
interrupt           total rate
intc (cpu0) irq 98      0    0
intc (cpu0) irq 96      0    0
intc (cpu0) irq 32      0    0
intc (cpu0) irq 62      0    0
intc (cpu0) irq 70      0    0
intc (cpu0) irq 12   1723   10
intc (cpu0) irq 72      1    0
intc (cpu0) irq 30      0    0
intc (cpu0) irq 40      0    0
intc (cpu0) irq 41   1143    6
intc (cpu0) irq 42    884    5
intc (cpu0) irq 43      0    0
intc (cpu0) irq 64   5625   34
intc (cpu0) irq 28     41    0
intc (cpu0) irq 18   2143   12
intc (cpu0) irq 19      1    0
intc (cpu0) irq 69  16324   98
intc (cpu0) irq 3       0    0
Total               27885  169

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Wed, 03 Jun 2020 19:18:37 +0000
State-Changed-Why:
Fixed in -current, please test.


From: "Jared D. McNeill" <jmcneill@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55263 CVS commit: src/sys/arch/arm/ti
Date: Wed, 3 Jun 2020 19:16:23 +0000

 Module Name:	src
 Committed By:	jmcneill
 Date:		Wed Jun  3 19:16:23 UTC 2020

 Modified Files:
 	src/sys/arch/arm/ti: ti_motg.c

 Log Message:
 PR# port-evbarm/55263: BeagleBone Black too many interrupts on CPU when
 using 5V DC power cable

 Handle vbus status change events, and don't busy spin in the hard intr
 handler when we see a vbus error (this will always be set when VBUS is not
 present).


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/ti/ti_motg.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Sad Clouds <cryintothebluesky@gmail.com>
To: gnats-bugs@netbsd.org
Cc: jmcneill@NetBSD.org, port-evbarm-maintainer@netbsd.org,
 netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: port-evbarm/55263 (BeagleBone Black too many interrupts on CPU
 when using 5V DC power cable)
Date: Thu, 4 Jun 2020 21:25:55 +0100

 I can confirm it looks to be fixed now.

State-Changed-From-To: feedback->closed
State-Changed-By: jmcneill@NetBSD.org
State-Changed-When: Fri, 05 Jun 2020 08:23:15 +0000
State-Changed-Why:
Fixed.


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55263 CVS commit: [netbsd-9] src/sys/arch/arm/ti
Date: Sun, 7 Jun 2020 16:37:53 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Jun  7 16:37:53 UTC 2020

 Modified Files:
 	src/sys/arch/arm/ti [netbsd-9]: ti_motg.c

 Log Message:
 Pull up following revision(s) (requested by jmcneill in ticket #945):

 	sys/arch/arm/ti/ti_motg.c: revision 1.2

 PR# port-evbarm/55263: BeagleBone Black too many interrupts on CPU when
 using 5V DC power cable

 Handle vbus status change events, and don't busy spin in the hard intr
 handler when we see a vbus error (this will always be set when VBUS is not
 present).


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/sys/arch/arm/ti/ti_motg.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.