pcmcia ide (CF adapter) and exit resource munging

From: Florian Lohoff (flo@rfc822.org)
Date: Mon Aug 27 2001 - 10:28:36 EST


Hi,
with 2.4.8 + pcmcia-cs modules 3.1.27 i see the problem that i put a
CF Card with the pcmcia adapter into the pcmcia slot - It gets detected
corrent and i mount the drive/vfat partition. Then i eject the card
(without unmounting) and the "virtual ide controller" does not get freed.
All processes still accessing the drive get killed which is completely ok

Means - the next time i insert a CF Card/Microdrive with the adapter
it does not get hde it gets hdg and so forth. It seems the driver
never realizes the controller has been gone.

[ ... dmesg output ... ]

hde: CFA, ATA DISK drive
ide2 at 0x100-0x107,0x10e on irq 5
hde: 128128 sectors (66 MB) w/4KiB Cache, CHS=1001/4/32
 hde: hde1
ide_cs: hde: Vcc = 3.3, Vpp = 0.0
VFS: Disk change detected on device ide2(33,1)
 hde: hde1
VFS: Disk change detected on device ide2(33,1)
 hde: hde1
VFS: Disk change detected on device ide2(33,1)
 hde: hde1
VFS: Disk change detected on device ide2(33,1)
 hde: hde1
ide2: unexpected interrupt, status=0xff, count=2
Trying to free nonexistent resource <00000100-0000010f>
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,1)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
hdg: IBM-DSCM-11000, ATA DISK drive
ide3 at 0x110-0x117,0x11e on irq 10
hdg: 2104704 sectors (1078 MB) w/60KiB Cache, CHS=2088/16/63
 hdg: [PTBL] [522/64/63] hdg1
ide_cs: hdg: Vcc = 3.3, Vpp = 0.0
VFS: Disk change detected on device ide3(34,1)
 hdg: hdg1
VFS: Disk change detected on device ide3(34,1)
 hdg: hdg1
VFS: Disk change detected on device ide3(34,1)
 hdg: hdg1
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table
VFS: Disk change detected on device ide2(33,0)
 hde:hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
hde: drive not ready for command
ide2: reset timed-out, status=0xff
hde: status timeout: status=0xff { Busy }
end_request: I/O error, dev 21:00 (hde), sector 0
hde: drive not ready for command
 unable to read partition table

Flo

-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:24 EST