cat /proc/ide/hdc/media: Input/output error Comes from: static int proc_ide_read_media (char *page, char **start, off_t off, int count, int *eof, void *data) { - ide_drive_t *drive = (ide_drive_t *) data; + ide_drive_t *drive; const char *media; int len; + down(&ide_cfg_sem); + drive = ide_drive_from_key(data); + if(drive == NULL) + { + up(&ide_cfg_sem); + return -EIO; + } + presumably.
Works for me. How do you generate the failure case ? There should be no difference except in the case you unloaded a driver in which case the old code gave you back stale memory containing the previous answer and we error it. If you can give me a reproducer I can try and work out how it occurs in your case
Failure case is pretty simple: ICH-5 SATA box, disk using ata_piix on sda, CD-ROM on hdc. Non-SATA IDE is built static. Happens right after boot, without loading/unloading anything.
Happens in both 32 and 64-bit mode on the box (it's EM64t).
Located and fixed, one liner bug in the ide probe/setup code for legacy interfaces at default addresses.
Created attachment 107100 [details] IDE fix
Yup, works for me.
I am having the same problem and and number of things seem unstable if you run this Kernel and are getting this Input/Output error. Therefore, please can we have a new kernel build with this fix included? Thanks in advance
If you see I/O error for anything but those /pro c/ide files it is unrelated. Most likely you should look in dmesg and see if you have anything logged such as disk errors
An update has been released for Fedora Core 3 (kernel-2.6.12-1.1372_FC3) which may contain a fix for your problem. Please update to this new kernel, and report whether or not it fixes your problem. If you have updated to Fedora Core 4 since this bug was opened, and the problem still occurs with the latest updates for that release, please change the version field of this bug to 'fc4'. Thank you.
This bug has been automatically closed as part of a mass update. It had been in NEEDINFO state since July 2005. If this bug still exists in current errata kernels, please reopen this bug. There are a large number of inactive bugs in the database, and this is the only way to purge them. Thank you.