Skip to content

Commit 1ad5544

Browse files
Rachita KothiyalLinus Torvalds
authored andcommitted
[PATCH] Fix cdrom being confused on using kdump
I have seen the cdrom drive appearing confused on using kdump on certain x86_64 systems. During the booting up of the second kernel, the following message would keep flooding the console, and the booting would not proceed any further. hda: cdrom_pc_intr: The drive appears confused (ireason = 0x01) In this patch, whenever we are hitting a confused state in the interrupt handler with the DRQ set, we end the request and return ide_stopped. Using this I dont see the status error. Signed-off-by: Rachita Kothiyal <rachita@in.ibm.com> Acked-by: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 5fa21d8 commit 1ad5544

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/ide/ide-cd.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,9 +1451,12 @@ static ide_startstop_t cdrom_pc_intr (ide_drive_t *drive)
14511451
} else {
14521452
confused:
14531453
printk (KERN_ERR "%s: cdrom_pc_intr: The drive "
1454-
"appears confused (ireason = 0x%02x)\n",
1454+
"appears confused (ireason = 0x%02x). "
1455+
"Trying to recover by ending request.\n",
14551456
drive->name, ireason);
14561457
rq->flags |= REQ_FAILED;
1458+
cdrom_end_request(drive, 0);
1459+
return ide_stopped;
14571460
}
14581461

14591462
/* Now we wait for another interrupt. */

0 commit comments

Comments
 (0)