From nobody@FreeBSD.org  Mon Mar 21 00:13:34 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5CDBE16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Mar 2005 00:13:34 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 42C8A43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Mar 2005 00:13:34 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j2L0DYt8050302
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 Mar 2005 00:13:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j2L0DYWE050301;
	Mon, 21 Mar 2005 00:13:34 GMT
	(envelope-from nobody)
Message-Id: <200503210013.j2L0DYWE050301@www.freebsd.org>
Date: Mon, 21 Mar 2005 00:13:34 GMT
From: Martin <nakal@nurfuerspam.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bktr eating about 10% CPU load once it was used
X-Send-Pr-Version: www-2.3

>Number:         79066
>Category:       kern
>Synopsis:       [bktr] bktr(4) eating about 10% CPU load once it was used
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 21 00:20:00 GMT 2005
>Closed-Date:    
>Last-Modified:  Wed Mar 12 03:24:58 UTC 2008
>Originator:     Martin
>Release:        STABLE
>Organization:
>Environment:
5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Sat Mar 19 01:15:59 CET 2005 i386
>Description:
Once a TV-application was started (here: xawtv), the kernel will continue to consume CPU time, even you terminate the application.

ps aux shows the following entry:
root     45  7,0  0,0     0     8  ??  DL    6:26pm  24:09,84 [bktr0_msp34xx]

You can also see using systat that bktr0_msp34xx is still active after closing xawtv.

Further info:
bktr0: <BrookTree 878> mem 0xdddfe000-0xdddfefff irq 19 at device
11.0 on pci0
bktr0: Hauppauge Model 44804 C108
bktr0: Detected a MSP34255?-?31 at 0x80
bktr0: Hauppauge WinCast/TV, Philips PAL I tuner,  msp3400c stereo.

device  bktr
options OVERRIDE_CARD=2
options OVERRIDE_MSP=2
options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL
options BKTR_NEW_MSP34XX_DRIVER
options BKTR_GPIO_ACCESS

I've seen this behavior on more than one PC and also on earlier FreeBSD versions.

>How-To-Repeat:
You need xawtv and a WinTV card.

1) start xawtv
2) exit xawtv
3) take a look at "ps aux" and "systat" output

>Fix:
n/a
>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@mavetju.org>
To: Martin <nakal@nurfuerspam.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/79066: bktr eating about 10% CPU load once it was used
Date: Mon, 21 Mar 2005 11:25:16 +1100

 On Mon, Mar 21, 2005 at 12:13:34AM +0000, Martin wrote:
 > ps aux shows the following entry:
 > root     45  7,0  0,0     0     8  ??  DL    6:26pm  24:09,84 [bktr0_msp34xx]
 
 Could be that it only happens if you have compiled your kernel with
 the BKTR_NEW_MSP34XX_DRIVER option?
 
 Without it here (5.2.1 machine):
 root          21  0.0  0.0     0   12  ??  WL   11Jan05   0:00.94  (irq10: ohci0 bktr0)
 
 Edwin
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/

From: Martin <nakal@nurfuerspam.de>
To: Edwin Groothuis <edwin@mavetju.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/79066: bktr eating about 10% CPU load once it was used
Date: Mon, 21 Mar 2005 02:13:07 +0100

 Am Montag, den 21.03.2005, 11:25 +1100 schrieb Edwin Groothuis:
 
 > Could be that it only happens if you have compiled your kernel with
 > the BKTR_NEW_MSP34XX_DRIVER option?
 
 Yes, that's right. I just recompiled the kernel without the option.
 xawtv terminates correctly now.
 
 Thanks,
 Martin
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: vwe 
State-Changed-When: Sun Mar 9 20:38:52 UTC 2008 
State-Changed-Why:  

Submitter has been asked for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79066 

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, nakal@nurfuerspam.de
Cc:  
Subject: Re: kern/79066: [bktr] bktr(4) eating about 10% CPU load once it
 was used
Date: Sun, 09 Mar 2008 21:35:59 +0100

 Martin,
 
 do you see the reported problem with recent releases of FreeBSD (say,
 6.3 or 7.0)?
 
 Thanks!

From: Martin <nakal@nurfuerspam.de>
To: Volker <volker@vwsoft.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/79066: [bktr] bktr(4) eating about 10% CPU load once it
 was used
Date: Tue, 11 Mar 2008 17:21:26 +0100

 Am Sun, 09 Mar 2008 21:35:59 +0100
 schrieb Volker <volker@vwsoft.com>:
 
 > Martin,
 > 
 > do you see the reported problem with recent releases of FreeBSD (say,
 > 6.3 or 7.0)?
 
 Hi,
 
 I still see this problem. There is still a process active after I
 closed mplayer.
 
 43  ??  DL     0:33,56 [bktr0_msp34xx]
 
 systat output:
                     /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
      Load Average   |
 
                     /0%  /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
 root     idle: cpu0 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 root     idle: cpu1 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 root     bktr0_msp3 XXX
 
 I'm using FreeBSD 7.0-STABLE.
 
 --
 Martin
State-Changed-From-To: feedback->open 
State-Changed-By: vwe 
State-Changed-When: Wed Mar 12 03:23:47 UTC 2008 
State-Changed-Why:  

Feedback received. Awaiting maintainer attention. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79066 
>Unformatted:
