Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jan 1999 09:29:27 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        Bill Trost <trost@cloud.rain.com>
Cc:        mobile@FreeBSD.ORG
Subject:   Re: Reclaiming irqs for unsupported PCI hardware? 
Message-ID:  <199901261629.JAA12392@mt.sri.com>
In-Reply-To: <11813.917309787@grey.cloud.rain.com>
References:  <199901220158.RAA12743@dingo.cdrom.com> <11813.917309787@grey.cloud.rain.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>     Perhaps we're just looking at this the wrong way?  We don't try to
>     detect when floppies are stupidly removed, perhaps we shouldn't try
>     to do it with pccard/cardbus cards either?
> 
>     Commentary?
> 
> I recently pulled a MS-DOS floppy while copying a file to it.  The net
> result of doing so was that the cp command hung and the console got
> spewed with error messages like
> 
> 	fd0c: hard error writing fsbn 897 (No status)
> 	fd0c: hard error writing fsbn 1 of 1-3 (No status)
> 
> I would expect the pccard stuff to behave similarly when its cards get
> pulled (remember, PCMCIA was originally just a replacement for floppies
> (-: ).

Unfortunately, the 'hardware' still exists when you pull a floppy, and
it doesn't exist when you pull a PCCARD.  Who handles the fact that
you've got a interrupt and a driver, but no hardware to run on?  (And
no, it is *very* hard to write an IRQ that can deal with this reliably).

When a floppy is pulled, it's easy for the 'hardware' to determine that
something bad happened, since the hardware still exists.

> Incidentally, is there any reason why "gone" is not checked in the inner
> loop of the sio interrupt routine?

Ask Bruce.  Getting the 'gone' flag in there was hard enough. :)

> My guess is that the driver would be less apt to hang if this check
> were moved.  Then again, I don't even know where "gone" gets set, so
> maybe this is moot.

Above in the PCCARD code.


Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901261629.JAA12392>