From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Maciej Rutecki <maciej.rutecki@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Tarkan Erimer <tarkan.erimer@turknet.net.tr>,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media
Date: Wed, 08 Jul 2009 09:27:24 -0500 [thread overview]
Message-ID: <1247063244.4159.40.camel@mulgrave.site> (raw)
In-Reply-To: <8db1092f0907080609w60e37ac0id49a44bd4796b425@mail.gmail.com>
On Wed, 2009-07-08 at 15:09 +0200, Maciej Rutecki wrote:
> Similar issue on 2 machines. 2.6.31-rc1-git3 works ok. 2.6.31-rc2
> cannot recognize *any* DVD media with K3b. No messages in dmesg or
> syslog.
>
> Unfortunately I can't try bisection, because I don't have more time
> (work). I try do it at the end of week.
Also were there any tools upgrades around this? The messages:
> [ 4526.750295] sr 0:0:0:0: [sr0] Result: hostbyte=DID_OK
> driverbyte=DRIVER_SENSE
> [ 4526.750302] sr 0:0:0:0: [sr0] Sense Key : Illegal Request [current]
> [ 4526.750308] sr 0:0:0:0: [sr0] Add. Sense: Illegal mode for this track
> [ 4526.750316] end_request: I/O error, dev sr0, sector 0
> [ 4526.750321] Buffer I/O error on device sr0, logical block 0
Clearly imply the errors are coming from the device: The sense code is
generated by it. So this means that either the DVD has been put into
some type of wrong mode or something in sr is sending the wrong command.
You might also try this patch from martin petersen: it will print out
the actual command that's causing the problems ... that might give a
clue.
James
---
Subject: [PATCH] SCSI: Print failed commands
From: "Martin K. Petersen" <martin.petersen@oracle.com>
When a request fails we print the sense data but not the actual command
that failed. Add a printout of the operation + CDB for failed commands.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
---
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 30f3275..79ea5be 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -896,6 +896,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
scsi_print_result(cmd);
if (driver_byte(result) & DRIVER_SENSE)
scsi_print_sense("", cmd);
+ scsi_print_command(cmd);
}
blk_end_request_all(req, -EIO);
scsi_next_command(cmd);
next prev parent reply other threads:[~2009-07-08 14:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4A4CB4B4.5010307@turknet.net.tr>
2009-07-02 20:07 ` [BUG] Linux-2.6.31-rc1-git9 Cannot Recognize Empty DVD Media Andrew Morton
2009-07-08 13:09 ` Maciej Rutecki
2009-07-08 14:27 ` James Bottomley [this message]
2009-07-08 16:06 ` Daniel Walker
2009-07-08 16:44 ` James Bottomley
2009-07-08 16:57 ` Jens Axboe
2009-07-08 23:49 ` FUJITA Tomonori
2009-07-08 23:54 ` FUJITA Tomonori
2009-07-09 6:27 ` Maciej Rutecki
2009-07-09 7:50 ` Jens Axboe
2009-07-09 8:08 ` FUJITA Tomonori
2009-07-09 8:12 ` Jens Axboe
2009-07-08 18:22 ` Maciej Rutecki
2009-07-08 22:52 ` Martin K. Petersen
2009-07-09 4:28 ` James Bottomley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1247063244.4159.40.camel@mulgrave.site \
--to=james.bottomley@hansenpartnership.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=maciej.rutecki@gmail.com \
--cc=tarkan.erimer@turknet.net.tr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox