From marka@nominum.com  Tue Jan  2 17:04:40 2001
Return-Path: <marka@nominum.com>
Received: from drugs.dv.isc.org (drugs.dv.isc.org [130.155.191.236])
	by hub.freebsd.org (Postfix) with ESMTP id 3AD2D37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  2 Jan 2001 17:04:38 -0800 (PST)
Received: (from marka@localhost)
	by drugs.dv.isc.org (8.11.1/8.11.1) id f0314IN77226;
	Wed, 3 Jan 2001 12:04:18 +1100 (EST)
	(envelope-from marka)
Message-Id: <200101030104.f0314IN77226@drugs.dv.isc.org>
Date: Wed, 3 Jan 2001 12:04:18 +1100 (EST)
From: marka@nominum.com
Reply-To: marka@nominum.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: pccard & rndcontrol
X-Send-Pr-Version: 3.2

>Number:         24032
>Category:       kern
>Synopsis:       rndcontrol and pccardd use of interupt handler incompatable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    markm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 02 17:10:01 PST 2001
>Closed-Date:    Mon Mar 28 12:52:02 GMT 2005
>Last-Modified:  Mon Mar 28 12:52:02 GMT 2005
>Originator:     Mark Andrews
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Nominum
>Environment:

FreeBSD drugs.dv.isc.org 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Fri Nov 24 00:33:35 EST 2000     marka@drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS  i386

>Description:

	rndcontrol and pccard use of the interupt handler is incompatable
	with each other.  It is possible to remove the interupt handler
	of a installed card via rndcontrol -c irq.

	Inserting a card clears the interupt handler installed via
	rndcontrol without clearing the associated bit in the mask.

>How-To-Repeat:

	rndcontrol -s <irq>
	insert card that wil use <irq>
	rndcontrol -c <irg>
	

>Fix:

	Minimum fix, rndcontrol -c should ensure that it is still the
	installed handler before trying to restore the handler saved
	via rndcontrol -s.

	A full fix would require two interupt handling tables one
	for rndcontrol to manipulate and for the devices to manipulate
	The handlers in the later called from the handlers in the
	former.

	There are other alternatives which require the code intalling
	the interupt handlers to know about add_interrupt_randomness
	and do the appopriate things.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: unfurl 
Responsible-Changed-When: Wed May 30 22:31:36 PDT 2001 
Responsible-Changed-Why:  
imp requested it be so. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24032 
Responsible-Changed-From-To: imp->markm 
Responsible-Changed-By: imp 
Responsible-Changed-When: Thu May 31 00:05:12 MDT 2001 
Responsible-Changed-Why:  
Markm is mr rndcontrol. :-) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24032 
State-Changed-From-To: open->closed 
State-Changed-By: markm 
State-Changed-When: Mon Mar 28 12:51:32 GMT 2005 
State-Changed-Why:  
Completely rewritten in later releases. 

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