Skip to contentSkip to conversation

r8169: Kernel Panic when a lot of data is transferred through network interface

Bug 16142 Applied Borislav Petkov 3 participants 20 messages Jun 17, 2010 – Jul 6, 2010 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

switching to mail for now.

Ok, this looks almost exactly like
https://bugzilla.kernel.org/show_bug.cgi?id=13399 and I have a theory :)

Hans, can you apply the debug patch below, rebuild your kernel and catch the _whole_ output this time (not the oops only) and send it to me? It might be a bit much with all the stack traces so let me know of any troubles you might have catching it.

Thanks.

--

drivers/ide/ide-cd.c +10 -3
index 64207df..436304c 100644
@@ -552,8 +552,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
 	if (!OK_STAT(stat, 0, BAD_R_STAT)) {
 		rc = cdrom_decode_status(drive, stat);
 		if (rc) {
-			if (rc == 2)
+			if (rc == 2) {
+				printk(KERN_EMERG "%s: bad status with a sense rq\n", __func__);
 				goto out_end;
+			}
 			return ide_stopped;
 		}
 	}
@@ -667,8 +669,10 @@ out_end:
 		blk_end_request_all(rq, 0);
 		hwif->rq = NULL;
 	} else {
-		if (sense && uptodate)
+		if (sense && uptodate) {
+			printk(KERN_EMERG "%s: complete failed rq: %p\n", __func__, rq);
 			ide_cd_complete_failed_rq(drive, rq);
+		}
 
 		if (blk_fs_request(rq)) {
 			if (cmd->nleft == 0)
@@ -688,10 +692,13 @@ out_end:
 				rq->resid_len += cmd->last_xfer_len;
 		}
 
+		printk(KERN_EMERG "%s: completing rq %p\n", __func__, rq);
 		ide_complete_rq(drive, uptodate ? 0 : -EIO, blk_rq_bytes(rq));
 
-		if (sense && rc == 2)
+		if (sense && rc == 2) {
+			printk(KERN_EMERG "%s: request sense failure, rq: %p\n", __func__, rq);
 			ide_error(drive, "request sense failure", stat);
+		}
 	}
 	return ide_stopped;
 }
drivers/ide/ide-io.c +5 -0
index 172ac92..3317778 100644
@@ -57,6 +57,9 @@
 int ide_end_rq(ide_drive_t *drive, struct request *rq, int error,
 	       unsigned int nr_bytes)
 {
+
+	dump_stack();
+
 	/*
 	 * decide whether to reenable DMA -- 3 is a random magic for now,
 	 * if we DMA timeout more than 3 times, just stay in PIO
@@ -118,6 +121,8 @@ int ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes)
 	struct request *rq = hwif->rq;
 	int rc;
 
+	dump_stack();
+
 	/*
 	 * if failfast is set on a request, override number of sectors
 	 * and complete the whole request right now
Signature · 2 lines
Regards/Gruss,
    Boris.

A message that is not in the archive (sent off-list or not yet received): 20100617150008.16a5e653@cpc

#2 lore raw

From: Hans Mueller <[email protected]>
Date: Thu, Jun 17, 2010 at 03:00:08PM +0200

(readding original Cc list)

Ok, here's another debug/fix patch which should fix your issue. It boots fine here but I can't hit your condition so please test it exactly the same as yesterday and do catch the _complete_ output again. By complete I mean not only the output from the ide-cd driver only but of the machine from the very first line after it restarts for it could contain valuable information there too.

Thanks a lot for your effort, here's the patch (you should replace this one with the old patch, ask for help if you need any):

---

drivers/ide/ide-cd.c +23 -6
index 64207df..5ccc93d 100644
@@ -506,15 +506,22 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 	return (flags & REQ_FAILED) ? -EIO : 0;
 }
 
-static void ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
+/*
+ * notify callers that we ended the rq by returning a !0 value
+ */
+static int ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
 {
 	unsigned int nr_bytes = cmd->nbytes - cmd->nleft;
 
 	if (cmd->tf_flags & IDE_TFLAG_WRITE)
 		nr_bytes -= cmd->last_xfer_len;
 
-	if (nr_bytes > 0)
+	if (nr_bytes > 0) {
 		ide_complete_rq(drive, 0, nr_bytes);
+		return 1;
+	}
+
+	return 0;
 }
 
 static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
@@ -552,8 +559,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
 	if (!OK_STAT(stat, 0, BAD_R_STAT)) {
 		rc = cdrom_decode_status(drive, stat);
 		if (rc) {
-			if (rc == 2)
+			if (rc == 2) {
+				printk(KERN_EMERG "%s: bad status with a sense rq: %p\n", __func__, rq);
 				goto out_end;
+			}
 			return ide_stopped;
 		}
 	}
@@ -667,8 +676,10 @@ out_end:
 		blk_end_request_all(rq, 0);
 		hwif->rq = NULL;
 	} else {
-		if (sense && uptodate)
+		if (sense && uptodate) {
+			printk(KERN_EMERG "%s: complete failed rq: %p\n", __func__, rq);
 			ide_cd_complete_failed_rq(drive, rq);
+		}
 
 		if (blk_fs_request(rq)) {
 			if (cmd->nleft == 0)
@@ -679,7 +690,10 @@ out_end:
 		}
 
 		if (uptodate == 0 && rq->bio)
-			ide_cd_error_cmd(drive, cmd);
+			if (ide_cd_error_cmd(drive, cmd)) {
+				printk(KERN_EMERG "ide_cd_error_cmd completes rq: %p\n", rq);
+				return ide_stopped;
+			}
 
 		/* make sure it's fully ended */
 		if (blk_fs_request(rq) == 0) {
@@ -688,10 +702,13 @@ out_end:
 				rq->resid_len += cmd->last_xfer_len;
 		}
 
+		printk(KERN_EMERG "%s: completing rq %p\n", __func__, rq);
 		ide_complete_rq(drive, uptodate ? 0 : -EIO, blk_rq_bytes(rq));
 
-		if (sense && rc == 2)
+		if (sense && rc == 2) {
+			printk(KERN_EMERG "%s: request sense failure, rq: %p\n", __func__, rq);
 			ide_error(drive, "request sense failure", stat);
+		}
 	}
 	return ide_stopped;
 }
drivers/ide/ide-io.c +2 -0
index 172ac92..0952e3b 100644
@@ -57,6 +57,8 @@
 int ide_end_rq(ide_drive_t *drive, struct request *rq, int error,
 	       unsigned int nr_bytes)
 {
+	dump_stack();
+
 	/*
 	 * decide whether to reenable DMA -- 3 is a random magic for now,
 	 * if we DMA timeout more than 3 times, just stay in PIO
Signature · 2 lines
Regards/Gruss,
    Boris.
#3 lore raw

Hi,

a questions to you Boris:

Quoted 1 line · On Fri, 18 Jun 2010 09:45:10 +0200 Borislav Petkov <[email protected]> wrote:

[...] and do catch the _complete_ output again.

Can you tell me how to do this? Can I make the kernel to wait until I connect
with firescope?
As far as I know, I can only connect if the kernel already loaded / initialized the firewire drivers, when using firescope. Therefore I cannot 'connect' before the kernel started booting, can I?

Regards Jonas

#4 lore raw

From: Hans Mueller <[email protected]>
Date: Fri, Jun 18, 2010 at 03:08:00PM +0200

Quoted 7 lines
Quoted 1 line

[...] and do catch the _complete_ output again.

Can you tell me how to do this? Can I make the kernel to wait until I connect with firescope? As far as I know, I can only connect if the kernel already loaded / initialized the firewire drivers, when using firescope. Therefore I cannot 'connect' before the kernel started booting, can I?

I haven't tried the firewire thing yet so I can't help you there. But basically what I'm saying is simply try catching as much output as you can and send me the whole thing you've caught - maybe that'll suffice.

Thanks.

Signature · 2 lines
Regards/Gruss,
    Boris.
#5 lore raw
In reply to Borislav Petkov

Hi Boris,

I'm afraid I have to play the good answer, bad answer game ...

The good one:
The patch seems to solve the bug, no oops happen. (Tested copying the file about 10 times). Good! :)

The bad one:
The system hang while shutting down. (happened several times) The last message on the screen was: "Shutting down the Logical Volume Manager"

The Kernel log is attached.

Regards Jonas

Quoted 16 lines · On Fri, 18 Jun 2010 09:45:10 +0200 Borislav Petkov <[email protected]> wrote:

Ok, here's another debug/fix patch which should fix your issue. It boots fine here but I can't hit your condition so please test it exactly the same as yesterday and do catch the _complete_ output again. By complete I mean not only the output from the ide-cd driver only but of the machine from the very first line after it restarts for it could contain valuable information there too.

Thanks a lot for your effort, here's the patch (you should replace this one with the old patch, ask for help if you need any):

--
[...]

Signature · 2 lines
Regards/Gruss,
    Boris.
#6 lore raw

From: Hans Mueller <[email protected]>
Date: Sat, Jun 19, 2010 at 12:50:45AM +0200

Quoted 4 lines

The bad one:
The system hang while shutting down. (happened several times) The last message on the screen was: "Shutting down the Logical Volume Manager"

It looks like it timeouts while trying to execute a request. Which means that we're still not doing everything right to end that erroneous request and it looks like it gets reused halfway or something. Hmm, not good.

Ok, I've got the next patch for you to try. Catch the output when shutting down the machine - we might get some more info into where exactly the hang happens. Along with that, do

objdump -d block/blk-exec.o

and send me the whole thing - it should be small enough to attach to this mail.

Thanks.

---

block/blk-core.c +2 -2
index 9fe174d..1213e13 100644
@@ -173,9 +173,9 @@ void blk_dump_rq_flags(struct request *rq, char *msg)
 {
 	int bit;
 
-	printk(KERN_INFO "%s: dev %s: type=%x, flags=%x\n", msg,
+	printk(KERN_INFO "%s: dev %s: type=%x, flags=%x, ref_count: %d\n", msg,
 		rq->rq_disk ? rq->rq_disk->disk_name : "?", rq->cmd_type,
-		rq->cmd_flags);
+		rq->cmd_flags, rq->ref_count);
 
 	printk(KERN_INFO "  sector %llu, nr/cnr %u/%u\n",
 	       (unsigned long long)blk_rq_pos(rq),
drivers/ide/ide-cd.c +26 -6
index 64207df..90c5190 100644
@@ -448,6 +448,7 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 		int error;
 
 		rq = blk_get_request(drive->queue, write, __GFP_WAIT);
+		blk_dump_rq_flags(rq, "ide_cd_queue_pc got rq");
 
 		memcpy(rq->cmd, cmd, BLK_MAX_CDB);
 		rq->cmd_type = REQ_TYPE_ATA_PC;
@@ -464,12 +465,14 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 		}
 
 		error = blk_execute_rq(drive->queue, info->disk, rq, 0);
+		blk_dump_rq_flags(rq, "ide_cd_queue_pc exec rq");
 
 		if (buffer)
 			*bufflen = rq->resid_len;
 
 		flags = rq->cmd_flags;
 		blk_put_request(rq);
+		blk_dump_rq_flags(rq, "ide_cd_queue_pc put rq");
 
 		/*
 		 * FIXME: we should probably abort/retry or something in case of
@@ -506,15 +509,22 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 	return (flags & REQ_FAILED) ? -EIO : 0;
 }
 
-static void ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
+/*
+ * notify callers that we ended the rq by returning a true value
+ */
+static bool ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
 {
 	unsigned int nr_bytes = cmd->nbytes - cmd->nleft;
 
 	if (cmd->tf_flags & IDE_TFLAG_WRITE)
 		nr_bytes -= cmd->last_xfer_len;
 
-	if (nr_bytes > 0)
+	if (nr_bytes > 0) {
 		ide_complete_rq(drive, 0, nr_bytes);
+		return true;
+	}
+
+	return false;
 }
 
 static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
@@ -552,8 +562,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
 	if (!OK_STAT(stat, 0, BAD_R_STAT)) {
 		rc = cdrom_decode_status(drive, stat);
 		if (rc) {
-			if (rc == 2)
+			if (rc == 2) {
+				printk(KERN_EMERG "%s: bad status with a sense rq: %p\n", __func__, rq);
 				goto out_end;
+			}
 			return ide_stopped;
 		}
 	}
@@ -667,8 +679,10 @@ out_end:
 		blk_end_request_all(rq, 0);
 		hwif->rq = NULL;
 	} else {
-		if (sense && uptodate)
+		if (sense && uptodate) {
+			printk(KERN_EMERG "%s: complete failed rq: %p\n", __func__, rq);
 			ide_cd_complete_failed_rq(drive, rq);
+		}
 
 		if (blk_fs_request(rq)) {
 			if (cmd->nleft == 0)
@@ -679,7 +693,10 @@ out_end:
 		}
 
 		if (uptodate == 0 && rq->bio)
-			ide_cd_error_cmd(drive, cmd);
+			if (ide_cd_error_cmd(drive, cmd)) {
+				blk_dump_rq_flags(rq, "ide_cd_error_cmd completes rq");
+				return ide_stopped;
+			}
 
 		/* make sure it's fully ended */
 		if (blk_fs_request(rq) == 0) {
@@ -688,10 +705,13 @@ out_end:
 				rq->resid_len += cmd->last_xfer_len;
 		}
 
+		printk(KERN_EMERG "%s: completing rq %p\n", __func__, rq);
 		ide_complete_rq(drive, uptodate ? 0 : -EIO, blk_rq_bytes(rq));
 
-		if (sense && rc == 2)
+		if (sense && rc == 2) {
+			printk(KERN_EMERG "%s: request sense failure, rq: %p\n", __func__, rq);
 			ide_error(drive, "request sense failure", stat);
+		}
 	}
 	return ide_stopped;
 }
drivers/ide/ide-io.c +3 -0
index 172ac92..73becd8 100644
@@ -128,6 +128,9 @@ int ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes)
 	rc = ide_end_rq(drive, rq, error, nr_bytes);
 	if (rc == 0)
 		hwif->rq = NULL;
+	else
+		blk_dump_rq_flags(rq, "still buffers pending for this rq");
+
 
 	return rc;
 }
Signature · 2 lines
Regards/Gruss,
    Boris.
#7 lore raw

Hi,

Quoted 3 lines · On Sat, 19 Jun 2010 12:05:11 +0200 Borislav Petkov <[email protected]> wrote:

Ok, I've got the next patch for you to try. Catch the output when shutting down the machine - we might get some more info into where exactly the hang happens. Along with that, do

I have attached two logs:

log10: _no_ hang while shutting down
log11: hang while shutting down

The hang seems to occur only if used my testcase (copying the file via scp (log11)). If I just boot the system and than shut it down again, the hang did not happen (log 10)

Quoted 1 line

objdump -d block/blk-exec.o

The file is attached.

Quoted 1 line

Thanks

Thanks for providing patches

Regards Jonas

#8 lore raw

From: Hans Mueller <[email protected]>
Date: Sat, Jun 19, 2010 at 01:27:08PM +0200

Right, ok, so this one is starting to get reeeal nasty...

Thanks for the logs.

Quoted 3 lines

The hang seems to occur only if used my testcase (copying the file via scp (log11)). If I just boot the system and than shut it down again, the hang did not happen (log 10)

yeah, about that, can you boot your machine and do

cat /proc/interrupts > irqs

and

dmesg > dmesg.log

and send me the two files. It could be that the ide layer doesn't see any interrupts anymore...

Also, when you shutdown after having done your test case, do you see any activity after the "task ... blocked" backtrace? IOW, your log11 shows that the device is processing some more requests but it could be because of that other bug you said the capturing program had and maybe because the kernel log buffer is not empty yet...

Here's the next debugging patch :), this one enables ide-cd full debug, please apply and catch the output when shutting down.

Thanks for your hard work!

---

block/blk-core.c +2 -2
index 9fe174d..1213e13 100644
@@ -173,9 +173,9 @@ void blk_dump_rq_flags(struct request *rq, char *msg)
 {
 	int bit;
 
-	printk(KERN_INFO "%s: dev %s: type=%x, flags=%x\n", msg,
+	printk(KERN_INFO "%s: dev %s: type=%x, flags=%x, ref_count: %d\n", msg,
 		rq->rq_disk ? rq->rq_disk->disk_name : "?", rq->cmd_type,
-		rq->cmd_flags);
+		rq->cmd_flags, rq->ref_count);
 
 	printk(KERN_INFO "  sector %llu, nr/cnr %u/%u\n",
 	       (unsigned long long)blk_rq_pos(rq),
drivers/ide/ide-cd.c +29 -7
index 64207df..cefcaf4 100644
@@ -448,6 +448,7 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 		int error;
 
 		rq = blk_get_request(drive->queue, write, __GFP_WAIT);
+		blk_dump_rq_flags(rq, "ide_cd_queue_pc got rq");
 
 		memcpy(rq->cmd, cmd, BLK_MAX_CDB);
 		rq->cmd_type = REQ_TYPE_ATA_PC;
@@ -464,12 +465,14 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 		}
 
 		error = blk_execute_rq(drive->queue, info->disk, rq, 0);
+		blk_dump_rq_flags(rq, "ide_cd_queue_pc exec rq");
 
 		if (buffer)
 			*bufflen = rq->resid_len;
 
 		flags = rq->cmd_flags;
 		blk_put_request(rq);
+		blk_dump_rq_flags(rq, "ide_cd_queue_pc put rq");
 
 		/*
 		 * FIXME: we should probably abort/retry or something in case of
@@ -506,15 +509,23 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 	return (flags & REQ_FAILED) ? -EIO : 0;
 }
 
-static void ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
+/*
+ * notify callers that we ended the rq by returning a true value
+ */
+static bool ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
 {
 	unsigned int nr_bytes = cmd->nbytes - cmd->nleft;
 
 	if (cmd->tf_flags & IDE_TFLAG_WRITE)
 		nr_bytes -= cmd->last_xfer_len;
 
-	if (nr_bytes > 0)
+	if (nr_bytes > 0) {
+		blk_dump_rq_flags(drive->hwif->rq, "ide_cd_error_cmd completes rq");
 		ide_complete_rq(drive, 0, nr_bytes);
+		return true;
+	}
+
+	return false;
 }
 
 static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
@@ -552,8 +563,10 @@ static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
 	if (!OK_STAT(stat, 0, BAD_R_STAT)) {
 		rc = cdrom_decode_status(drive, stat);
 		if (rc) {
-			if (rc == 2)
+			if (rc == 2) {
+				printk(KERN_EMERG "%s: bad status with a sense rq: %p\n", __func__, rq);
 				goto out_end;
+			}
 			return ide_stopped;
 		}
 	}
@@ -667,8 +680,10 @@ out_end:
 		blk_end_request_all(rq, 0);
 		hwif->rq = NULL;
 	} else {
-		if (sense && uptodate)
+		if (sense && uptodate) {
+			printk(KERN_EMERG "%s: complete failed rq: %p\n", __func__, rq);
 			ide_cd_complete_failed_rq(drive, rq);
+		}
 
 		if (blk_fs_request(rq)) {
 			if (cmd->nleft == 0)
@@ -679,7 +694,10 @@ out_end:
 		}
 
 		if (uptodate == 0 && rq->bio)
-			ide_cd_error_cmd(drive, cmd);
+			if (ide_cd_error_cmd(drive, cmd)) {
+				printk(KERN_EMERG "ide_cd_error_cmd completes rq");
+				return ide_stopped;
+			}
 
 		/* make sure it's fully ended */
 		if (blk_fs_request(rq) == 0) {
@@ -688,10 +706,13 @@ out_end:
 				rq->resid_len += cmd->last_xfer_len;
 		}
 
+		printk(KERN_EMERG "%s: completing rq %p\n", __func__, rq);
 		ide_complete_rq(drive, uptodate ? 0 : -EIO, blk_rq_bytes(rq));
 
-		if (sense && rc == 2)
+		if (sense && rc == 2) {
+			printk(KERN_EMERG "%s: request sense failure, rq: %p\n", __func__, rq);
 			ide_error(drive, "request sense failure", stat);
+		}
 	}
 	return ide_stopped;
 }
@@ -1707,6 +1728,8 @@ static int ide_cd_probe(ide_drive_t *drive)
 	struct gendisk *g;
 	struct request_sense sense;
 
+	drive->debug_mask = 0xffffffff;
+
 	ide_debug_log(IDE_DBG_PROBE, "driver_req: %s, media: 0x%x",
 				     drive->driver_req, drive->media);
 
@@ -1716,7 +1739,6 @@ static int ide_cd_probe(ide_drive_t *drive)
 	if (drive->media != ide_cdrom && drive->media != ide_optical)
 		goto failed;
 
-	drive->debug_mask = debug_mask;
 	drive->irq_handler = cdrom_newpc_intr;
 
 	info = kzalloc(sizeof(struct cdrom_info), GFP_KERNEL);
drivers/ide/ide-cd.h +1 -1
index 93a3cf1..613542a 100644
@@ -8,7 +8,7 @@
 #include <linux/cdrom.h>
 #include <asm/byteorder.h>
 
-#define IDECD_DEBUG_LOG		0
+#define IDECD_DEBUG_LOG		1
 
 #if IDECD_DEBUG_LOG
 #define ide_debug_log(lvl, fmt, args...) __ide_debug_log(lvl, fmt, ## args)
drivers/ide/ide-io.c +6 -1
index 172ac92..c522435 100644
@@ -126,8 +126,13 @@ int ide_complete_rq(ide_drive_t *drive, int error, unsigned int nr_bytes)
 		nr_bytes = blk_rq_sectors(rq) << 9;
 
 	rc = ide_end_rq(drive, rq, error, nr_bytes);
-	if (rc == 0)
+	if (rc == 0) {
+		printk(KERN_EMERG "ide_complete_rq: no buffers pending for this rq");
 		hwif->rq = NULL;
+	}
+	else
+		blk_dump_rq_flags(rq, "still buffers pending for this rq");
+
 
 	return rc;
 }
Signature · 2 lines
Regards/Gruss,
    Boris.
#9 lore raw

Okey, I hope I captured all the data you asked me for

Quoted 2 lines · On Wed, 23 Jun 2010 10:02:00 +0200 Borislav Petkov <[email protected]> wrote:

cat /proc/interrupts > irqs
dmesg > dmesg.log

They are attached

Quoted 2 lines

Also, when you shutdown after having done your test case, do you see any activity after the "task ... blocked" backtrace?

log12 contains everything exactly how I saw it on my screen; the data I saw, ended with "[...] comp", too.

log12 contains the kernel buffers data from the time between starting the transfer and the hang while shutting down.

Signature · 2 lines
Gruß/Regards,
Jonas

cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x25
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011efafdc0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011efafdc0, buffer (null), len 0
ide-cd: cdrom_read_tocentry: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x43, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x43, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 4
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x43, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x43, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x43, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011efafdc0, biotail ffff88011efafdc0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x43
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011ed9f7c0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011ed9f7c0, buffer (null), len 0
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011efafdc0, biotail ffff88011efafdc0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_queue_pc: cmd[0]: 0x4a, write: 0x0, timeout: 700, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x4a, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011efafdc0, biotail ffff88011efafdc0, buffer (null), len 8
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x4a, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x4a, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 8
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0xa, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x4a, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x4a
cdrom_newpc_intr: completing rq ffff88011d55dce0
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128a440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011efafdc0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128a440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011efafdc0, buffer (null), len 0
ide-cd: ide_cd_queue_pc: cmd[0]: 0x1e, write: 0x0, timeout: 0, cmd_flags: 0x0 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x1e, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=1082440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x1e, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x1e, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x1e
cdrom_newpc_intr: completing rq ffff88011d55dce0
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=1082440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=1082440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
eth0: no IPv6 routers present
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_read_toc: enter
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_read_capacity: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x25, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x25, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 8
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x25, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x25, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x25, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x25
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011ed9f7c0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011ed9f7c0, buffer (null), len 0
ide-cd: cdrom_read_tocentry: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x43, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x43, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 4
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x43, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x43, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x43, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x43
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011da600c0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011da600c0, buffer (null), len 0
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_queue_pc: cmd[0]: 0x4a, write: 0x0, timeout: 700, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x4a, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011ed9f7c0, biotail ffff88011ed9f7c0, buffer (null), len 8
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x4a, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x4a, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 8
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0xa, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x4a, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x4a
cdrom_newpc_intr: completing rq ffff88011e184320
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128a440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011ed9f7c0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128a440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011ed9f7c0, buffer (null), len 0
ide-cd: ide_cd_queue_pc: cmd[0]: 0x1e, write: 0x0, timeout: 0, cmd_flags: 0x0 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x1e, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=1082440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x1e, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x1e, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x1e
cdrom_newpc_intr: completing rq ffff88011e184320
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=1082440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=1082440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_read_toc: enter
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_read_capacity: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x25, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x25, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 8
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x25, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x25, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x25, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011eb84240, biotail ffff88011eb84240, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x25
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011da600c0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011da600c0, buffer (null), len 0
ide-cd: cdrom_read_tocentry: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x43, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x43, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011eb84240, biotail ffff88011eb84240, buffer (null), len 4
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x43, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x43, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x43, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x43
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011eb84240, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011eb84240, buffer (null), len 0
ide-cd: cdrom_check_status: enter
ide-cd: ide_cd_queue_pc: cmd[0]: 0x0, write: 0x0, timeout: 0, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x0, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=108a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x0, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x0, write: 0x0
ide-cd: cdrom_decode_status: cmd: 0x0, rq->cmd_type: 0xa, err: 0x24, stat 0x51
ide-cd: ide_cd_do_request: cmd: 0x3, block: 18446744073709551615
ide_cd_do_request: dev hda: type=3, flags=210440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 18
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x3, rq->cmd_type: 0x3
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 18
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0x3, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x3, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x3
cdrom_newpc_intr: complete failed rq: ffff88011e15d680
ide-cd: cdrom_analyze_sense_data: error_code: 0x0, sense_key: 0x0
ide-cd: cdrom_analyze_sense_data: failed cmd: 0x0
cdrom_newpc_intr: completing rq ffff88011e15d680
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=108e440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=108e440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_queue_pc: cmd[0]: 0x4a, write: 0x0, timeout: 700, cmd_flags: 0x8000 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x4a, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=128a440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio ffff88011da600c0, biotail ffff88011da600c0, buffer (null), len 8
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x4a, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x4a, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x58, thislen: 8
ide-cd: cdrom_newpc_intr: data transfer, rq->cmd_type: 0xa, ireason: 0x2
ide-cd: cdrom_newpc_intr: cmd: 0x4a, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x4a
cdrom_newpc_intr: completing rq ffff88011e61fe20
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=128a440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011da600c0, buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=128a440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail ffff88011da600c0, buffer (null), len 0
ide-cd: ide_cd_queue_pc: cmd[0]: 0x1e, write: 0x0, timeout: 0, cmd_flags: 0x0 ide_cd_queue_pc got rq: dev ?: type=0, flags=1082000, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: ide_cd_do_request: cmd: 0x1e, block: 18446744073709551615
ide_cd_do_request: dev hda: type=a, flags=1082440, ref_count: 2
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide-cd: cdrom_do_block_pc: rq->cmd[0]: 0x1e, rq->cmd_type: 0xa
ide-cd: cdrom_newpc_intr: cmd: 0x1e, write: 0x0
ide-cd: cdrom_newpc_intr: DRQ: stat: 0x50, thislen: 0
ide-cd: ide_cd_request_sense_fixup: rq->cmd[0]: 0x1e
cdrom_newpc_intr: completing rq ffff88011e61fe20
ide_complete_rq: no buffers pending for this rq
ide_cd_queue_pc exec rq: dev hda: type=a, flags=1082440, ref_count: 1
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0
ide_cd_queue_pc put rq: dev hda: type=a, flags=1082440, ref_count: 0
sector 18446744073709551615, nr/cnr 0/0
bio (null), biotail (null), buffer (null), len 0

#10 lore raw

From: Hans Mueller <[email protected]>
Date: Fri, Jun 25, 2010 at 06:58:46PM +0200

Hi, sorry for the delay.

Right, and I had a suspicion about sharing IRQs with the NIC:

CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7

   0:      42503          0          0          0          0          0          0          0   IO-APIC-edge      timer
   1:          2          0          0          0          0          0          0          0   IO-APIC-edge      i8042
   4:          2          0          0          0          0          0          0          0   IO-APIC-edge
   9:          0          0          0          0          0          0          0          0   IO-APIC-fasteoi   acpi
  12:          4          0          0          0          0          0          0          0   IO-APIC-edge      i8042
  14:          0          0          0          0          0          0          0          0   IO-APIC-edge      ide2
  15:          0          0          0          0          0          0          0          0   IO-APIC-edge      ide3
  16:         26          0          0          0          0          0          0          0   IO-APIC-fasteoi   ehci_hcd:usb1
  17:        127          0          0          0          0          0          0          0   IO-APIC-fasteoi   hda_intel
  18:         47          0          0          0          0          0          0          0   IO-APIC-fasteoi   firewire_ohci, ahci
  19:        753          0          0          0          0          0          0          0   IO-APIC-fasteoi   ide0, ide1, eth0
  21:       3989          0          0          0          0          0          0          0   IO-APIC-fasteoi   ahci

so IRQ19 is shared between the nic and the first ide controller and the sata controller is using another irq line which could explain why the issue doesn't happen with libata. Is your nick a pluggable card and if yes, can you move it to another PCI slot so that ide0 and ide1 don't share the same irq line with eth0 and retest again? Before retesting though, do 'cat /proc/interrupts' to make sure.

I'm guessing the problem will go away then...

Thanks.

Signature · 2 lines
Regards/Gruss,
    Boris.
#11 lore raw

Hi,

Quoted 1 line · On Wed, 30 Jun 2010 08:54:26 +0200 Borislav Petkov <[email protected]> wrote:

Is your nick a pluggable card [...]

No sorry, it's an onboard card.
Furthermore, I don't know how to change the IRQ using linux. (Or rather if it's possible at all)
I didn't find a possibility in my board's bios to change the IRQ mappings, too.

Signature · 2 lines
Gruß/Regards,
Jonas
#12 lore raw

From: Hans Mueller <[email protected]>
Date: Wed, Jun 30, 2010 at 08:02:54PM +0200

Quoted 9 lines
Quoted 1 line · On Wed, 30 Jun 2010 08:54:26 +0200 Borislav Petkov <[email protected]> wrote:

Is your nick a pluggable card [...]

No sorry, it's an onboard card.
Furthermore, I don't know how to change the IRQ using linux. (Or rather if it's possible at all)
I didn't find a possibility in my board's bios to change the IRQ mappings, too.

Ok, first you can try something which is real easy: I see you have an ide2 and ide3 channels each having their own irq line. You could move the cdrom connector to the other ide controller and test again.

Alternatively, if you have a spare PCI NIC, you can insert it into one of the PCI slots after having disabled the onboard NIC in the BIOS. Just for testing purposes, to see whether "unsharing" the IRQ line fixes the issue.

Thanks.

Signature · 2 lines
Regards/Gruss,
    Boris.
#13 lore raw

Hi,

Quoted 4 lines · On Wed, 30 Jun 2010 20:31:38 +0200 Borislav Petkov <[email protected]> wrote:

Alternatively, if you have a spare PCI NIC, you can insert it into one of the PCI slots after having disabled the onboard NIC in the BIOS. Just for testing purposes, to see whether "unsharing" the IRQ line fixes the issue.

I have currently no access to the computer, I will be able to test things again on monday.
But as I wrote in my original bugreport, I tested with a PCI NIC. (But the onboard NIC was not completely disabled, it was only disabled via ifconfig ... down)
When using the PCI NIC, the whole problem (kernel panik) did not occure.

--
Regards Jonas

#14 lore raw

From: Hans Mueller <[email protected]>
Date: Sat, Jul 03, 2010 at 09:49:18AM +0200

Quoted 9 lines

Hi,

Quoted 4 lines · On Wed, 30 Jun 2010 20:31:38 +0200 Borislav Petkov <[email protected]> wrote:

Alternatively, if you have a spare PCI NIC, you can insert it into one of the PCI slots after having disabled the onboard NIC in the BIOS. Just for testing purposes, to see whether "unsharing" the IRQ line fixes the issue.

Quoted 6 lines

I have currently no access to the computer, I will be able to test things again on monday.
But as I wrote in my original bugreport, I tested with a PCI NIC. (But the onboard NIC was not completely disabled, it was only disabled via ifconfig ... down)
When using the PCI NIC, the whole problem (kernel panik) did not occure.

Ok, this confirms my suspicion that it is shared-irq related. Also, we already verified that switching to libata does fix the issue for you so you are good to go. Considering the DEPRECATED status of ide, I have a very little incentive in hunting this thing further down, so let's leave it at that.

I'll send the first fix to Dave since it is still needed and add a note to bugzilla for further reference.

Jonas, big thanks for your hard work with testing patches and ideas. I really appreciate it! :)

Signature · 2 lines
Regards/Gruss,
    Boris.
#15 lore raw

PATCH 1/1 ide-cd: Do not access completed requests in the irq handler

Hi Dave,

this came out as a by-product after debugging
https://bugzilla.kernel.org/show_bug.cgi?id=16142

It fixes the oops at
https://bugzilla.kernel.org/attachment.cgi?id=26776, please apply.

--
From: Borislav Petkov <[email protected]>
Date: Fri, 2 Jul 2010 09:08:09 +0200
Subject: [PATCH] ide-cd: Do not access completed requests in the irq handler

ide_cd_error_cmd() can complete an erroneous request with leftover buffers. Signal this with its return value so that the request is not accessed after its completion in the irq handler and we oops.

Cc <[email protected]> # 32.x 33.x 34.x
---
 drivers/ide/ide-cd.c |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)
drivers/ide/ide-cd.c +11 -3
index 64207df..2de76cc 100644
@@ -506,15 +506,22 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 	return (flags & REQ_FAILED) ? -EIO : 0;
 }
 
-static void ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
+/*
+ * returns true if rq has been completed
+ */
+static bool ide_cd_error_cmd(ide_drive_t *drive, struct ide_cmd *cmd)
 {
 	unsigned int nr_bytes = cmd->nbytes - cmd->nleft;
 
 	if (cmd->tf_flags & IDE_TFLAG_WRITE)
 		nr_bytes -= cmd->last_xfer_len;
 
-	if (nr_bytes > 0)
+	if (nr_bytes > 0) {
 		ide_complete_rq(drive, 0, nr_bytes);
+		return true;
+	}
+
+	return false;
 }
 
 static ide_startstop_t cdrom_newpc_intr(ide_drive_t *drive)
@@ -679,7 +686,8 @@ out_end:
 		}
 
 		if (uptodate == 0 && rq->bio)
-			ide_cd_error_cmd(drive, cmd);
+			if (ide_cd_error_cmd(drive, cmd))
+				return ide_stopped;
 
 		/* make sure it's fully ended */
 		if (blk_fs_request(rq) == 0) {
Signature · 6 lines
1.7.1


-- 
Regards/Gruss,
    Boris.
Applied
#16 lore raw

Re: [PATCH] ide-cd: Do not access completed requests in the irq handler

From: Borislav Petkov <[email protected]>
Date: Sat, 3 Jul 2010 13:01:04 +0200

Quoted 11 lines

this came out as a by-product after debugging
https://bugzilla.kernel.org/show_bug.cgi?id=16142

It fixes the oops at
https://bugzilla.kernel.org/attachment.cgi?id=26776, please apply.

--
From: Borislav Petkov <[email protected]>
Date: Fri, 2 Jul 2010 09:08:09 +0200
Subject: [PATCH] ide-cd: Do not access completed requests in the irq handler

Quoted 6 lines

ide_cd_error_cmd() can complete an erroneous request with leftover buffers. Signal this with its return value so that the request is not accessed after its completion in the irq handler and we oops.

Cc <[email protected]> # 32.x 33.x 34.x

Applied, thanks Borislav.

#17 lore raw
In reply to Borislav Petkov

Hi

Quoted 5 lines · On Sat, 3 Jul 2010 10:23:04 +020I0 Borislav Petkov <[email protected]> wrote:

Ok, this confirms my suspicion that it is shared-irq related. Also, we already verified that switching to libata does fix the issue for you so you are good to go. Considering the DEPRECATED status of ide, I have a very little incentive in hunting this thing further down, so let's leave it at that.

Okey good. :)

Quoted 2 lines

Jonas, big thanks for your hard work with testing patches and ideas. I really appreciate it! :)

You're welcome. :)

Big thanks to all of you who tried to resolve the bug, or helped in another way.
I do especially emphasize this, as it seems not to standard to answer bugreports at all. (At least on the b43 bugreport list; I reported a bug as their driver seems to have destroyed my wifi card. Don't missundersstand me I know this can happen, but I exspected the will to stop the driver from destroying other peoples hardware.)

--
Regards/Gruss Jonas

#18 lore raw

From: Hans Mueller <[email protected]>
Date: Sat, Jul 03, 2010 at 01:41:49PM +0200

Quoted 2 lines

I do especially emphasize this, as it seems not to standard to answer bugreports at all.

It's a shame that users get that impression but sadly I must admit I know what you mean and yes, we should try harder instead of hacking in gazillion new features. But the answer is simple: writing new features is much more fun than bughunting...

Quoted 4 lines

(At least on the b43 bugreport list; I reported a bug as their driver seems to have destroyed my wifi card. Don't missundersstand me I know this can happen, but I exspected the will to stop the driver from destroying other peoples hardware.)

Hmm, that's strange. I remember reading that while there's no real maintainer of the driver, there are still people doing some work on it, according to this:
http://marc.info/?l=linux-wireless&m=127747220616577&w=2

Did you also add the wireless maintainer to the Cc of your bugreport
- "John W. Linville" <[email protected]> - along with a detailed description of what the problem is, which kernel, how to reproduce along with dmesg?

Signature · 2 lines
Regards/Gruss,
    Boris.
#19 lore raw

Hi,

even if this is quite offtopic and I'm not sure whether linux-ide sould be still in the Cc field, I answert to all to leave nobody with half of the story :)

Quoted 2 lines · On Sat, 3 Jul 2010 13:53:05 +0200 Borislav Petkov <[email protected]> wrote:

Did you also add the wireless maintainer to the Cc of your bugreport
- "John W. Linville" <[email protected]> [...]

No that is the only thing I did not. I followed the instructions from:
http://linuxwireless.org/en/users/Drivers/b43#bug_reporting
It wasn't mentioned to Cc anybody as far as I know :)

Quoted 3 lines

[...] along with a detailed
description of what the problem is, which kernel, how to reproduce along with dmesg?

I attached the text of the original mail (but not the attachments as there should be no need for them in here; if I am wrong with this, ask me for them :) )
If there is anything wrong with the bugreport, feel free to criticize.

I am aware that this is offtopic, so do not spend to much time on it, I am going to send a copy of the original mail to the wireless maintainer, as you suggested, and see what will happen.

Gruss / Regards,
Jonas

#20 lore raw

From: Hans Mueller <[email protected]>
Date: Mon, Jul 05, 2010 at 01:44:01PM +0200

Quoted 3 lines

even if this is quite offtopic and I'm not sure whether linux-ide sould be still in the Cc field, I answert to all to leave nobody with half of the story :)

Right.

Quoted 9 lines
Quoted 2 lines

Did you also add the wireless maintainer to the Cc of your bugreport
- "John W. Linville" <[email protected]> [...]

No that is the only thing I did not. I followed the instructions from:
http://linuxwireless.org/en/users/Drivers/b43#bug_reporting
It wasn't mentioned to Cc anybody as far as I know :)

Quoted 8 lines
Quoted 3 lines

[...] along with a detailed
description of what the problem is, which kernel, how to reproduce along with dmesg?

I attached the text of the original mail (but not the attachments as there should be no need for them in here; if I am wrong with this, ask me for them :) )
If there is anything wrong with the bugreport, feel free to criticize.

Yep, it looks good. Bottom line is: The bug report should try to plausibly lay out what the symptoms are and how to reproduce them, if possible. Better be too verbose than not to mention something which might turn out important.

Btw, does MacOS recognize your wlan card at all or is it completely bricked? And does it freeze only after you reboot from Linux?

Quoted 3 lines

I am aware that this is offtopic, so do not spend to much time on it, I am going to send a copy of the original mail to the wireless maintainer, as you suggested, and see what will happen.

Yes, good luck :)

Signature · 2 lines
Regards/Gruss,
Boris.