From peter@citylink.dinoex.sub.org  Sat Jun  3 14:57:42 2000
Return-Path: <peter@citylink.dinoex.sub.org>
Received: from net2.dinoex.sub.org (net2.dinoex.de [212.184.201.182])
	by hub.freebsd.org (Postfix) with ESMTP id 1E40237BD53
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  3 Jun 2000 14:57:37 -0700 (PDT)
	(envelope-from peter@citylink.dinoex.sub.org)
Received: from citylink.dinoex.sub.org (uucp@localhost)
	by net2.dinoex.sub.org (8.10.1/8.10.1) with UUCP id e53M5SJ08340
	for freebsd.org!FreeBSD-gnats-submit; Sun, 4 Jun 2000 00:05:28 +0200 (CEST)
	(envelope-from peter@citylink.dinoex.sub.org)
Received: (from root@localhost)
	by marmor. (8.9.3/8.9.3) id UAA00552;
	Sat, 3 Jun 2000 20:37:42 +0200 (CEST)
	(envelope-from root)
Message-Id: <200006031837.UAA00552@marmor.>
Date: Sat, 3 Jun 2000 20:37:42 +0200 (CEST)
From: Peter Much <peter@citylink.dinoex.sub.org>
Reply-To: peter@citylink.dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: PCMCIA sio will happily attach to a used irq line
X-Send-Pr-Version: 3.2

>Number:         18994
>Category:       kern
>Synopsis:       PCMCIA sio will happily attach to a used irq line
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 03 15:00:02 PDT 2000
>Closed-Date:    Mon Nov 6 12:56:14 MST 2000
>Last-Modified:  Mon Nov 06 12:57:16 MST 2000
>Originator:     Peter Much
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
n/a
>Environment:

	Any PCMCIA card containing a standard sio interface, e.g.
        modem cards.

>Description:

	If the irq line that is defined in /etc/pccard.conf
        for that card is already in use by some other device,
        the sio driver will nevertheless attach the card to
        that irq line - or so it seems at last.

>How-To-Repeat:

	define irq 8 (that's rtc) in /etc/pccard.conf for 
        some modem card, restart pccardd and plug the card
        in. 
        This will be accepted, and the card will work (somehow
        at least...)

>Fix:

	In sys/isa/sio.c, right at the end of sioattach(), 
        the irq line is given to bus_alloc_resource(). If 
	this succeeds, BUS_SETUP_INTR() is called. If it does
        not succeed, nothing is done and sioattach returns
        successfully. This should be changed.


>Release-Note:
>Audit-Trail:

From: Peter Much <peter@citylink.dinoex.sub.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: kern/18994: PCMCIA sio will happily attach to a used irq line
Date: Sat, 3 Jun 2000 20:37:42 +0200 (CEST)

 >Number:         18994
 >Category:       kern
 >Synopsis:       PCMCIA sio will happily attach to a used irq line
 >Confidential:   no
 >Severity:       non-critical
 >Priority:       low
 >Responsible:    freebsd-bugs
 >State:          open
 >Quarter:        
 >Keywords:       
 >Date-Required:
 >Class:          sw-bug
 >Submitter-Id:   current-users
 >Arrival-Date:   Sat Jun 03 15:00:02 PDT 2000
 >Closed-Date:
 >Last-Modified:
 >Originator:     Peter Much
 >Release:        FreeBSD 4.0-RELEASE i386
 >Organization:
 n/a
 >Environment:
 
 	Any PCMCIA card containing a standard sio interface, e.g.
         modem cards.
 
 >Description:
 
 	If the irq line that is defined in /etc/pccard.conf
         for that card is already in use by some other device,
         the sio driver will nevertheless attach the card to
         that irq line - or so it seems at last.
 
 >How-To-Repeat:
 
 	define irq 8 (that's rtc) in /etc/pccard.conf for 
         some modem card, restart pccardd and plug the card
         in. 
         This will be accepted, and the card will work (somehow
         at least...)
 
 >Fix:
 
 	In sys/isa/sio.c, right at the end of sioattach(), 
         the irq line is given to bus_alloc_resource(). If 
 	this succeeds, BUS_SETUP_INTR() is called. If it does
         not succeed, nothing is done and sioattach returns
         successfully. This should be changed.
 
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 
 
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Mon Jun 5 04:14:39 PDT 2000 
Responsible-Changed-Why:  
This is Warner's league.  And he's the resident pccard meister/maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=18994 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Mon Nov 6 12:56:14 MST 2000 
State-Changed-Why:  
mihira-san has fixed this, at least for attached devices.  NEWCARD doesn't have 
this problem. 


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