From rsm@acm.org Sun Mar 28 12:41:24 1999
Return-Path: <rsm@acm.org>
Received: from mail5.svr.pol.co.uk (mail5.svr.pol.co.uk [195.92.193.20])
	by hub.freebsd.org (Postfix) with ESMTP id 1C08015372
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Mar 1999 12:41:15 -0800 (PST)
	(envelope-from rsm@acm.org)
Received: from modem-81.cerium.dialup.pol.co.uk ([62.136.28.209] helo=valis.goatsucker.org)
	by mail5.svr.pol.co.uk with esmtp (Exim 2.12 #1)
	id 10RMMX-0005LY-00
	for FreeBSD-gnats-submit@freebsd.org; Sun, 28 Mar 1999 21:40:54 +0100
Received: (from scott@localhost)
	by valis.goatsucker.org (8.8.8/8.8.7) id SAA00372;
	Sun, 28 Mar 1999 18:57:55 +0100 (BST)
	(envelope-from scott)
Message-Id: <199903281757.SAA00372@valis.goatsucker.org>
Date: Sun, 28 Mar 1999 18:57:55 +0100 (BST)
From: scott@freebsd-uk.eu.org
Sender: rsm@acm.org
Reply-To: scott@freebsd-uk.eu.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] Add pcic double-loading bug fix to ERRATA.TXT
X-Send-Pr-Version: 3.2

>Number:         10840
>Category:       docs
>Synopsis:       [PATCH] Add pcic double-loading bug fix to ERRATA.TXT
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    jkh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 28 12:50:00 PST 1999
>Closed-Date:    Fri Dec 17 10:21:13 PST 1999
>Last-Modified:  Fri Dec 17 10:22:28 PST 1999
>Originator:     Scott Mitchell
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Queen Mary and Westfield College
>Environment:

	FreeBSD 3.1-RELEASE with PCCARD support

>Description:

	The /etc/rc.pccard script on 3.1-RELEASE does not check
whether PCCARD support has already been loaded when loading the
pcic kernel module.  If PCCARD support was also statically linked
into the kernel, the pcic code is loaded twice.  This leads to
erratic and downright nasty behaviour from the PCCARD code.

	People are complaining about this on a daily basis to the
-mobile and -questions mailing lists -- a description of the
problem and a simple workaround should be in the ERRATA.TXT file.

>How-To-Repeat:

	Watch -mobile or -questions for the next person getting
bitten by this problem :)

>Fix:

	Add something like the following to ERRATA.TXT:

o You've recompiled your kernel to include PCCARD support, and
  set pccard_enable="YES" in /etc/rc.conf (just as you did for
  previous releases).  Now your PCCARDs don't work: the kernel
  messages indicate that you have two card controllers, cards
  are not recognised when they are inserted, etc.

Fix: The 'pcic' (card slot controller) code is getting loaded
     twice; the two copies are conflicting with each other and
     causing the symptoms described above.  The fix is to _not_
     enable the pcic devices in your kernel config file, ie.

	# PCCARD (PCMCIA) support
	controller     card0
	#device         pcic0   at card?
	#device         pcic1   at card?

     Leave the pccard_enable="YES" line in /etc/rc.conf -- the
     etc/rc.pccard script does more than just load the driver
     so it still needs to be run.

     I believe that /etc/rc.pccard has been modified to detect
     this condition and work around it in 3.1-STABLE.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->jkh 
Responsible-Changed-By: nik 
Responsible-Changed-When: Fri May 28 16:55:07 PDT 1999 
Responsible-Changed-Why:  
*.TXT files generally Jordan's responsibility. 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Fri Dec 17 10:21:13 PST 1999 
State-Changed-Why:  
3.1-RELEASE is no longer up for FTP at most locations and I know of few 
people loading it from scratch; if someone wants to add it to the appropriate 
errata.sgml file for posterity, however, I won't object even though it's 
unlikely to be critical at this point. 
>Unformatted:
