2001-03-29 02:17:43

by Jeffrey Hundstad

[permalink] [raw]
Subject: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

Hello,

I'm using Linux-2.4.2-ac27 SMP compiled with gcc version 2.95.2 20000220
(Debian GNU/Linux).

After an "insmod aic7xxx" "cat /proc/bus/pci/devices" works just fine.
After an "rmmod aic7xxx" "cat /proc/bus/pci/devices" fails to produce
any output and never finishes. Top show the process in R state taking
as much CPU as it can get.

Killing the process doesn't do anything, rebooting is the only way to
get rid of it. This problem does not happen with aic7xxx_old.

Strace shows a "read" on the fd of /proc/bus/pci/devices that never
finishes.

My aic7xxx devices as reported by "lspci -vvv":

00:12.0 SCSI storage controller: Adaptec AIC-7881U (rev 01)
Subsystem: Adaptec: Unknown device 7881
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop-
ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 8 min, 8 max, 64 set, cache line size 08
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at e800 [size=256]
Region 1: Memory at febff000 (32-bit, non-prefetchable)
[size=4K]
Expansion ROM at febe0000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- AuxPwr- DSI+ D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

--
jeffrey hundstad
minnesota state university, mankato
mankato, mn
usa



2001-03-29 03:41:01

by Jeffrey Hundstad

[permalink] [raw]
Subject: Re: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

aic7xxx_osm.h:#define AIC7XXX_DRIVER_VERSION "6.1.5"


"Justin T. Gibbs" wrote:

> >Hello,
> >
> >I'm using Linux-2.4.2-ac27 SMP compiled with gcc version 2.95.2 20000220
> >(Debian GNU/Linux).
>
> What version of the aic7xxx driver is embedded in 2.4.2-ac27? This
> particular issue was fixed just after 6.1.5 was released.
>
> --
> Justin

2001-03-29 04:01:15

by Justin T. Gibbs

[permalink] [raw]
Subject: Re: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

>aic7xxx_osm.h:#define AIC7XXX_DRIVER_VERSION "6.1.5"

Pick up the latest from here:

http://people.FreeBSD.org/~gibbs/linux/

--
Justin

2001-03-29 03:21:28

by Justin T. Gibbs

[permalink] [raw]
Subject: Re: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

>Hello,
>
>I'm using Linux-2.4.2-ac27 SMP compiled with gcc version 2.95.2 20000220
>(Debian GNU/Linux).

What version of the aic7xxx driver is embedded in 2.4.2-ac27? This
particular issue was fixed just after 6.1.5 was released.

--
Justin

2001-03-29 04:22:25

by Alan

[permalink] [raw]
Subject: Re: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

> What version of the aic7xxx driver is embedded in 2.4.2-ac27? This
> particular issue was fixed just after 6.1.5 was released.

The last patch you sent to me + small other fixups for aicdb.h. I dont have
time to chase after peoples drivers. If you want a newer aic7xxx in -ac just
mail me a diff to update to it

2001-03-29 05:15:40

by Justin T. Gibbs

[permalink] [raw]
Subject: Re: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

>> What version of the aic7xxx driver is embedded in 2.4.2-ac27? This
>> particular issue was fixed just after 6.1.5 was released.
>
>The last patch you sent to me + small other fixups for aicdb.h. I dont have
>time to chase after peoples drivers. If you want a newer aic7xxx in -ac just
>mail me a diff to update to it

I don't recall ever sending you diffs for the driver. My guess is that
6.1.5 got integrated into -ac from Linus' tree.

Up to now, I haven't been tracking -ac kernels. I started sending
diffs to Linus based on the pre series kernels. No-one has requested
patch sets against -ac kernels, but if I need to support this branch,
I'll start generating them and passing them your way.

Chasing after all of the kernel versions can be time consuming for
driver developers too. ;-)

--
Justin

2001-03-29 05:34:13

by Jeffrey Hundstad

[permalink] [raw]
Subject: Re: Linux-2.4.2-ac27 - read on /proc/bus/pci/devices never finishes after rmmod aic7xxx

I don't mean to walk on folks but I did make a patch that brings the ac27
version from aic7xxx-6.1.5 to aic7xxx-6.1.8. I've compiled it and inserted it
and removed it without any of the hanging problems I encountered before. But
the tests stopped there, no guarantees from me, I wish I could ;-) Please
ignore this if you get something better. I included Mr. Gibbs changelog (for
the changes from 6.1.5 to 6.1.8 his log is QUITE detailed.)

Thanks to everyone!

--
Jeffrey Hundstad


Alan Cox wrote:

> > What version of the aic7xxx driver is embedded in 2.4.2-ac27? This
> > particular issue was fixed just after 6.1.5 was released.
>
> The last patch you sent to me + small other fixups for aicdb.h. I dont have
> time to chase after peoples drivers. If you want a newer aic7xxx in -ac just
> mail me a diff to update to it


Attachments:
CHANGELOG-6.1.5-6.1.8.gz (4.35 kB)
linux-2.4.2-ac27-aic7xxx-6.1.5-6.1.8.patch.gz (33.89 kB)
Download all attachments