From nobody@FreeBSD.org  Fri Mar 14 23:29:34 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E3C701065789
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Mar 2008 23:29:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id CD1178FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Mar 2008 23:29:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m2ENQDev088200
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Mar 2008 23:26:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2ENQDKw088199;
	Fri, 14 Mar 2008 23:26:13 GMT
	(envelope-from nobody)
Message-Id: <200803142326.m2ENQDKw088199@www.freebsd.org>
Date: Fri, 14 Mar 2008 23:26:13 GMT
From: Helko Glathe <Helko.Glathe@freenet.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: wpi doesnt work if kernel has options SCHED_ULE
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121720
>Category:       kern
>Synopsis:       [wpi] wpi doesnt work if kernel has options SCHED_ULE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thompsa
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 14 23:30:01 UTC 2008
>Closed-Date:    Wed Dec 22 15:18:20 UTC 2010
>Last-Modified:  Wed Dec 22 15:18:20 UTC 2010
>Originator:     Helko Glathe
>Release:        7.0
>Organization:
>Environment:
FreeBSD FreeBSD-TWS29 7.0-RELEASE FreeBSD 7.0-RELEASE #2: Fri Mar 14 20:57:18 CET 2008     kater@FreeBSD-TWS29:/usr/obj/usr/src/sys/MYKERNEL70  i386
>Description:
First I compiled the kernel for FreeBSD 7.0 with

options         SCHED_4BSD

and the wpi-interface worked fine.

The compilation with

options         SCHED_ULE

caused the following error lines at dmesg-output:

wpi0: could not configure bluetooth coexistence
wpi0: wpi_cmd: cmd 16 not sent, busy
wpi0: could not configure
wpi0: could not send authentication request

The wpi-interface works fine after recompiling the kernel with

options         SCHED_4BSD

instead.
>How-To-Repeat:
Compile your FreeBSD 7.0 kernel with

options         SCHED_ULE
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 15 08:22:29 UTC 2008 
Responsible-Changed-Why:  
This sounds like an error in the individual driver to me. 

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

From: Andrew Lankford <lankfordandrew@charter.net>
To: bug-followup@FreeBSD.org, Helko.Glathe@freenet.de
Cc:  
Subject: Re: kern/121720: [wpi] wpi doesnt work if kernel has options SCHED_ULE
Date: Mon, 17 Mar 2008 02:49:43 -0400

 Same problem here with my 7-STABLE machine.  Settling for SCHED_4BSD did 
 the trick.  If this is a problem with the driver, then perhaps a MFC of 
 some recent (as in several days old) "stability fixes" to the wpi source 
 will fix the problem: 
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/wpi/if_wpi.c
 
 wpi in STABLE has panicked my laptop at least once.
 
 If you're impatient, I imagine that the latest cvs patches may work with 
 7-STABLE.
 
 Andrew Lankford

From: "Yousif Hassan" <yousif@alumni.jmu.edu>
To: "Andrew Lankford" <lankfordandrew@charter.net>,
	<bug-followup@FreeBSD.org>,
	<Helko.Glathe@freenet.de>
Cc:  
Subject: Re: kern/121720: [wpi] wpi doesnt work if kernel has optionsSCHED_ULE
Date: Tue, 18 Mar 2008 11:34:09 -0400

 ----- Original Message ----- 
 From: "Andrew Lankford" <lankfordandrew@charter.net>
 To: <freebsd-net@FreeBSD.org>
 Sent: Monday, March 17, 2008 3:20 AM
 Subject: Re: kern/121720: [wpi] wpi doesnt work if kernel has 
 optionsSCHED_ULE
 
 
 > The following reply was made to PR kern/121720; it has been noted by 
 > GNATS.
 >
 > From: Andrew Lankford <lankfordandrew@charter.net>
 > To: bug-followup@FreeBSD.org, Helko.Glathe@freenet.de
 > Cc:
 > Subject: Re: kern/121720: [wpi] wpi doesnt work if kernel has options 
 > SCHED_ULE
 > Date: Mon, 17 Mar 2008 02:49:43 -0400
 >
 > Same problem here with my 7-STABLE machine.  Settling for SCHED_4BSD did
 > the trick.  If this is a problem with the driver, then perhaps a MFC of
 > some recent (as in several days old) "stability fixes" to the wpi source
 > will fix the problem:
 > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/wpi/if_wpi.c
 >
 > wpi in STABLE has panicked my laptop at least once.
 >
 > If you're impatient, I imagine that the latest cvs patches may work with
 > 7-STABLE.
 >
 > Andrew Lankford
 
 I'm adding this as a point of reference in case it helps a developer:
 
 My HP dv9700t runs SCHED_ULE and wpi works great.   This leads me to suspect 
 that this is probably not just as simple as if_wpi and the scheduler; I 
 believe this has to do with a combination of the wpi driver and the BIOS 
 (and/or ACPI).  There have been other problem reports related to different 
 loading / attach / buggy behavior with wpi - different computers seem to 
 produce different results.  This sounds related (albeit SCHED_4BSD appears 
 to solve this particular issue).
 
 FWIW.
 
 --Y 
 
Responsible-Changed-From-To: freebsd-net->thompsa 
Responsible-Changed-By: sam 
Responsible-Changed-When: Tue Mar 18 21:54:31 UTC 2008 
Responsible-Changed-Why:  
Hand to Andrew as he's been working on this driver. 

FWIW my guess is this is preemption causing problems with the questionable 
locking that used to be done by the driver.  I think Andrew's recent 
round of changes eliminated that stuff. 

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

From: Andrew Thompson <thompsa@FreeBSD.org>
To: bug-followup@FreeBSD.org, Helko.Glathe@freenet.de
Cc:  
Subject: Re: kern/121720: [wpi] wpi doesnt work if kernel has options
	SCHED_ULE
Date: Wed, 19 Mar 2008 11:25:37 +1300

 Hi,
 
 
 The wpi fixes have been merged into RELENG_7 today, you could either
 upgrade to 7-STABLE or just grab all the updated files in
 src/sys/dev/wpi as they will compile on 7-release fine.
 
 
 cheers,
 Andrew
State-Changed-From-To: open->feedback 
State-Changed-By: thompsa 
State-Changed-When: Thu Jun 12 06:12:01 UTC 2008 
State-Changed-Why:  
Is the problem fixed in 7-STABLE? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121720 
State-Changed-From-To: feedback->closed 
State-Changed-By: bschmidt 
State-Changed-When: Wed Dec 22 15:17:20 UTC 2010 
State-Changed-Why:  
After talking to Andrew about this PR -> feedback timeout. 

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